Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • s9444737--tu-dresden.de/brailleplot
1 result
Show changes
Commits on Source (5)
Showing
with 21 additions and 114 deletions
......@@ -11,6 +11,7 @@ import de.tudresden.inf.mci.brailleplot.datacontainers.PointListContainer;
import de.tudresden.inf.mci.brailleplot.datacontainers.SimpleCategoricalPointListContainerImpl;
import de.tudresden.inf.mci.brailleplot.diagrams.CategoricalBarChart;
import de.tudresden.inf.mci.brailleplot.diagrams.Diagram;
import de.tudresden.inf.mci.brailleplot.diagrams.LineChart;
import de.tudresden.inf.mci.brailleplot.layout.AbstractCanvas;
import de.tudresden.inf.mci.brailleplot.layout.PlotCanvas;
import de.tudresden.inf.mci.brailleplot.layout.RasterCanvas;
......@@ -209,7 +210,8 @@ public final class App {
throw new UnsupportedOperationException("Scatter Plots coming soon."); // TODO: integrate scatter plots
case "LineChart":
PointListContainer<PointList> lineChartContainer = csvParser.parse(CsvType.DOTS, csvOrientation);
throw new UnsupportedOperationException("Line Charts coming soon."); // TODO: integrate line charts
diagram = new LineChart(lineChartContainer);
break;
case "BarChart":
CategoricalPointListContainer<PointList> barChartContainer;
try { // first try to parse as regular bar chart and convert to single category bar cart.
......
......@@ -169,7 +169,7 @@ public class LiblouisBrailleTextRasterizer implements Rasterizer<BrailleText> {
} else {
tempMaxWidth = maxWidth;
}
return (int) ceil((double) widthOfText / (double) tempMaxWidth);
return (int) ceil((double) widthOfText / (double) (tempMaxWidth / 2));
}
......
# JProperties Semantic 6-Dot Mapping BrailleTable
#
# Table: basic_DE
# Version 1 Rev. 1 (19-08-20)
#
# Description:
# This table contains a mapping from letters to a 6*n-bit-string, representing the braillecell.
# It's used by the BrailleTextRasterizer.
# Sometimes, there are cases where we need more then one braillecell, these are then comma seperated.
# =============================================================================
#Special characters
# Space
\u0020=000000
# Exclamation mark
\u0021=011010
?=010001
.=001000
,=010000
:=010010
+=000100,011010
-=001001
/=000010,010000
%=001111,010110,001011
ß=011101
ü=110011
ö=010101
ä=001110
&=111101
@=000100,001110
*=000001,001010
°=000100,001011
_=000100,000111
|=000111,111000
[=000001,011011
]=000001,011011
{=000011,011011
}=000011,011011
# = character
\u003D=000100,011011
\u0023=001111
# Numbers
1=100000
2=110000
3=100100
4=100110
5=100010
6=110100
7=110110
8=110010
9=010100
0=010110
NUM=001111
# a-z
a=100000
b=110000
c=100100
d=100110
e=100010
f=110100
g=110110
h=110010
i=010100
j=010110
k=101000
l=111000
m=101100
n=101110
o=101010
p=111100
q=111110
r=111010
s=011100
t=011110
u=101001
v=111001
w=010111
x=101101
y=101111
z=101011
CAP=000101
# Suspension Braille
SUS=000001
......@@ -19,7 +19,6 @@
.=001000
,=010000
\:=010010
-=001001
ß=011101
'=000001
# = character
......@@ -50,16 +49,16 @@ $=000101
# Numbers
1=100000
2=110000
3=100100
4=100110
5=100010
6=110100
7=110110
8=110010
9=010100
0=010110
1=100001
2=110001
3=100101
4=100111
5=100011
6=110101
7=110111
8=110011
9=010101
0=001111
# a-z
a=100000
......
......@@ -17,7 +17,7 @@
printer.name=Dummy Printer
printer.mode=normalprinter
printer.semantictable=src/main/resources/mapping/basic_DE.properties
printer.semantictable=src/main/resources/mapping/kurzschrift_DE.properties
printer.floatingDot.support=true
printer.floatingDot.resolution=0.05
......
......@@ -15,7 +15,7 @@
printer.mode=normalprinter
printer.semantictable=src/main/resources/mapping/basic_DE.properties
printer.semantictable=src/main/resources/mapping/kurzschrift_DE.properties
printer.floatingDot.support=false
# The following values represent the fixed indentation and maximum technical printing area of the embosser.
......
......@@ -15,7 +15,7 @@
printer.mode=normalprinter
printer.semantictable=src/main/resources/mapping/basic_DE.properties
printer.semantictable=src/main/resources/mapping/kurzschrift_DE.properties
printer.floatingDot.support=false
# Illegal property name example
......
......@@ -14,7 +14,7 @@
# are not overriding the defaults.
printer.mode=normalprinter
printer.semantictable=src/main/resources/mapping/basic_DE.properties
printer.semantictable=src/main/resources/mapping/kurzschrift_DE.properties
printer.floatingDot.support=false
# The following values represent the fixed indentation and maximum technical printing area of the embosser.
......
......@@ -18,7 +18,7 @@
# Missing required property (not specified by default):
# printer.name=Dummy Printer
printer.mode=normalprinter
printer.semantictable=src/main/resources/mapping/basic_DE.properties
printer.semantictable=src/main/resources/mapping/kurzschrift_DE.properties
printer.floatingDot.support=true
printer.floatingDot.resolution=0.05
......
......@@ -11,7 +11,7 @@
# Define these here to have neat small concrete test configs.
printer.name=Dummy Printer
printer.mode=normalprinter
printer.semantictable=src/main/resources/mapping/basic_DE.properties
printer.semantictable=src/main/resources/mapping/kurzschrift_DE.properties
printer.floatingDot.support=false
printer.raster.type=6-dot
......
......@@ -18,7 +18,7 @@
# Missing required property (not specified by default):
printer.name=Dummy Printer
printer.mode=normalprinterKek
printer.semantictable=src/main/resources/mapping/basic_DE.properties
printer.semantictable=src/main/resources/mapping/kurzschrift_DE.properties
printer.floatingDot.support=true
printer.floatingDot.resolution=0.05
......