From 994364aac87b9f5f18f08430d93c991b9050dea5 Mon Sep 17 00:00:00 2001
From: Leonard Kupper <leonard.kupper@mailbox.tu-dresden.de>
Date: Thu, 11 Jul 2019 14:05:41 +0200
Subject: [PATCH] Move app resources into resource folder.

---
 .gitignore                                    |  2 +-
 src/main/resources/default.properties         | 25 +++++++++++++
 .../resources/index_everest_d_v4.properties   | 37 +++++++++++++++++++
 src/main/resources/parser_bar.csv             |  2 +
 4 files changed, 65 insertions(+), 1 deletion(-)
 create mode 100644 src/main/resources/default.properties
 create mode 100644 src/main/resources/index_everest_d_v4.properties
 create mode 100644 src/main/resources/parser_bar.csv

diff --git a/.gitignore b/.gitignore
index 6a56a2db..9c0cf26d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,7 +9,7 @@ out
 brailleplot.iml
 
 # Application
-dummyPrinterConfig.properties
+!src/main/resources/*
 
 # Java
 *.class
diff --git a/src/main/resources/default.properties b/src/main/resources/default.properties
new file mode 100644
index 00000000..5843cdd5
--- /dev/null
+++ b/src/main/resources/default.properties
@@ -0,0 +1,25 @@
+# JProperties Printer & Format Configuration
+#
+# Embosser: Default
+# Version 1 Rev. 0 (19-06-27)
+#
+# Description:
+# This is the default configuration file for the braille plot application.
+# The configuration specifies the default values of required properties.
+#
+# https://gitlab.hrz.tu-chemnitz.de/s9444737--tu-dresden.de/brailleplot/wikis/Software%20Design#configuration-files
+# =============================================================================
+
+# Default Printer Properties
+printer.max.charsPerLine=35
+printer.max.linesPerPage=29
+printer.equidistantSupport=false
+printer.max.characterDistance=2.5
+
+# Default Format Definition (assume A4 portrait)
+format.default.page.width=210
+format.default.page.height=297
+format.default.margin.left=10
+format.default.margin.top=10
+format.default.margin.right=10
+format.default.margin.bottom=10
\ No newline at end of file
diff --git a/src/main/resources/index_everest_d_v4.properties b/src/main/resources/index_everest_d_v4.properties
new file mode 100644
index 00000000..85263603
--- /dev/null
+++ b/src/main/resources/index_everest_d_v4.properties
@@ -0,0 +1,37 @@
+# JProperties Printer & Format Configuration
+#
+# Embosser: Index Everest-D V4
+# Version 1 Rev. 0 (19-07-10)
+#
+# Description:
+# This is the main configuration file for use with the braille plot application
+# when embossing with the 'Index Everest-D V4'.
+# The configuration specifies the general printer abilities and defines
+# pre-selectable formats for this embosser.
+#
+# https://gitlab.hrz.tu-chemnitz.de/s9444737--tu-dresden.de/brailleplot/wikis/Software%20Design#configuration-files
+# =============================================================================
+
+# General Printer Properties
+printer.name=Index Everest-D V4
+printer.max.characterDistance=2.5
+printer.equidistantSupport=true
+printer.brailletable=mapping.properties
+
+# A4 Format
+format.A4.page.width=210
+format.A4.page.height=297
+format.A4.margin.top=0
+format.A4.margin.left=0
+format.A4.margin.bottom=0
+format.A4.margin.right=0
+#https://codes.iccsafe.org/content/ICCA117_12003/chapter-7-communication-elements-and-features#ICCA117.1_2003_Ch07_Sec703
+format.A4.raster.dotDistance.horizontal=2.5
+format.A4.raster.dotDistance.vertical=2.5
+format.A4.raster.cellDistance.horizontal=5.1
+format.A4.raster.cellDistance.vertical=5.2
+
+# B5 Format
+format.B5.page.width=176
+format.B5.page.height=250
+format.B5.isPortrait=false
\ No newline at end of file
diff --git a/src/main/resources/parser_bar.csv b/src/main/resources/parser_bar.csv
new file mode 100644
index 00000000..b88106bb
--- /dev/null
+++ b/src/main/resources/parser_bar.csv
@@ -0,0 +1,2 @@
+,a,b,c,d,e,f,g,h
+Wert,500,36,357,473,75,-215,220,356
\ No newline at end of file
-- 
GitLab