]> git.lyx.org Git - features.git/blob - lib/layouts/braille.module
Update layouts
[features.git] / lib / layouts / braille.module
1 #\DeclareLyXModule[braille.sty]{Braille}
2 #\DeclareCategory{Accessibility}
3 #DescriptionBegin
4 #Defines an environment to typeset Braille.
5 #For more details see Braille.lyx in examples.
6 #DescriptionEnd
7 # Author: Uwe Stöhr <uwestoehr@web.de>
8
9 Format 82
10
11 AddToPreamble
12         \usepackage{braille}
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}}
19 EndPreamble
20
21
22 # default Braille
23 Style Braille_(default)
24         LatexType       command
25         LatexName       braillenormal
26         NextNoIndent    1
27         LeftMargin      XBraille:
28         LabelSep        xx
29         ParSkip         0.0
30         ItemSep         0.2
31         TopSep          0.7
32         BottomSep       0.7
33         ParSep          0.3
34         Align           Block
35         AlignPossible   Block, Left
36         LabelType       Static
37         LabelString     "Braille:"
38         LabelFont
39           Shape         Italic
40           Color         Blue
41         EndFont
42 End
43
44
45 # Braille in text size
46 Style Braille_(textsize)
47         LatexType       command
48         LatexName       brailletext
49         NextNoIndent    1
50         LeftMargin      XBraille:
51         LabelSep        xx
52         ParSkip         0.0
53         ItemSep         0.2
54         TopSep          0.7
55         BottomSep       0.7
56         ParSep          0.3
57         Align           Block
58         AlignPossible   Block, Left
59         LabelType       Static
60         LabelString     "Braille:"
61         LabelFont
62           Shape         Italic
63           Color         Blue
64         EndFont
65 End
66
67
68 # turn on dots
69 Style Braille_(dots_on)
70         LatexType       command
71         LatexName       brailleputtinydotstrue
72         NextNoIndent    1
73         KeepEmpty       1
74         LeftMargin      XBraille_dots_on
75         LabelSep        xx
76         ParSkip         0.0
77         ItemSep         0.2
78         TopSep          0.7
79         BottomSep       0.7
80         ParSep          0.3
81         Align           Block
82         AlignPossible   Block, Left
83         LabelType       Static
84         LabelString     "Braille_dots_on"
85         LabelFont
86           Shape         Italic
87           Color         Green
88         EndFont
89 End
90
91
92 # turn off dots
93 Style Braille_(dots_off)
94         LatexType       command
95         LatexName       brailleputtinydotsfalse
96         NextNoIndent    1
97         KeepEmpty       1
98         LeftMargin      XBraille_dots_off
99         LabelSep        xx
100         ParSkip         0.0
101         ItemSep         0.2
102         TopSep          0.7
103         BottomSep       0.7
104         ParSep          0.3
105         Align           Block
106         AlignPossible   Block, Left
107         LabelType       Static
108         LabelString     "Braille_dots_off"
109         LabelFont
110           Shape         Italic
111           Color         Green
112         EndFont
113 End
114
115
116 # turn off mirroring
117 Style Braille_(mirror_on)
118         LatexType       command
119         LatexName       braillemirrortrue
120         NextNoIndent    1
121         KeepEmpty       1
122         LeftMargin      XBraille_mirror_on
123         LabelSep        xx
124         ParSkip         0.0
125         ItemSep         0.2
126         TopSep          0.7
127         BottomSep       0.7
128         ParSep          0.3
129         Align           Block
130         AlignPossible   Block, Left
131         LabelType       Static
132         LabelString     "Braille_mirror_on"
133         LabelFont
134           Shape         Italic
135           Color         Green
136         EndFont
137 End
138
139
140 # turn off mirroring
141 Style Braille_(mirror_off)
142         LatexType       command
143         LatexName       braillemirrorfalse
144         NextNoIndent    1
145         KeepEmpty       1
146         LeftMargin      XBraille_mirror_off
147         LabelSep        xx
148         ParSkip         0.0
149         ItemSep         0.2
150         TopSep          0.7
151         BottomSep       0.7
152         ParSep          0.3
153         Align           Block
154         AlignPossible   Block, Left
155         LabelType       Static
156         LabelString     "Braille_mirror_off"
157         LabelFont
158           Shape         Italic
159           Color         Green
160         EndFont
161 End
162
163
164 InsetLayout "Flex:Braillebox"
165         LyxType         custom
166         LatexType       command
167         LatexName       braillebox
168         LabelString     "Braille box"
169         Font
170           Color         foreground
171           Size          Small
172           Family        Roman
173           Shape         Up
174           Series        Medium
175           Misc          No_Emph
176           Misc          No_Noun
177           Misc          No_Bar
178         EndFont
179         LabelFont
180           Color         green
181           Size          Small
182         EndFont
183 End
184