1 #\DeclareLyXModule[braille.sty]{Braille}
2 #\DeclareCategory{Accessibility}
4 #Defines an environment to typeset Braille.
5 #For more details see Braille.lyx in examples.
7 # Author: Uwe Stöhr <uwestoehr@web.de>
13 \newcommand{\braillenormal}[1]
14 {\setlength{\brailleunit}{2.4mm}\braille{#1}}
15 % With \brailleunit == 0.75ex, the braille letters will
16 % approximately match the other letters in size.
17 \newcommand{\brailletext}[1]
18 {\setlength{\brailleunit}{0.75ex}\braille{#1}}
23 Style Braille_(default)
25 LatexName braillenormal
35 AlignPossible Block, Left
37 LabelString "Braille:"
43 DocBookAttr role='braille'
47 # Braille in text size
48 Style Braille_(textsize)
60 AlignPossible Block, Left
62 LabelString "Braille:"
68 DocBookAttr role='braille-text'
73 Style Braille_(dots_on)
75 LatexName brailleputtinydotstrue
78 LeftMargin XBraille_dots_on
86 AlignPossible Block, Left
88 LabelString "Braille_dots_on"
94 DocBookAttr role='braille-dots-on'
99 Style Braille_(dots_off)
101 LatexName brailleputtinydotsfalse
104 LeftMargin XBraille_dots_off
112 AlignPossible Block, Left
114 LabelString "Braille_dots_off"
120 DocBookAttr role='braille-dots-off'
125 Style Braille_(mirror_on)
127 LatexName braillemirrortrue
130 LeftMargin XBraille_mirror_on
138 AlignPossible Block, Left
140 LabelString "Braille_mirror_on"
146 DocBookAttr role='braille-mirror-on'
151 Style Braille_(mirror_off)
153 LatexName braillemirrorfalse
156 LeftMargin XBraille_mirror_off
164 AlignPossible Block, Left
166 LabelString "Braille_mirror_off"
172 DocBookAttr role='braille-mirror-off'
176 InsetLayout "Flex:Braillebox"
180 LabelString "Braille box"