]> git.lyx.org Git - lyx.git/blob - lib/layouts/braille.module
193eb96f1695a928e7532d7c8084af6dfe090736
[lyx.git] / lib / layouts / braille.module
1 #\DeclareLyXModule[braille.sty]{Defines an environment to typeset Braille.}{Braille}
2
3 # Author: Uwe Stöhr <uwestoehr@web.de>
4
5 Format 6
6
7 Preamble
8         \usepackage{braille}
9         \newcommand{\braillenormal}[1]
10          {\setlength{\brailleunit}{2.4mm}\braille{#1}}
11         % With \brailleunit == 0.75ex, the braille letters will
12         % approximately match the other letters in size.
13         \newcommand{\brailletext}[1]
14          {\setlength{\brailleunit}{0.75ex}\braille{#1}}
15 EndPreamble
16
17 # default Braille
18 Style Braille_(default)
19         LatexType               command
20         LatexName               braillenormal
21         NextNoIndent            1
22         LeftMargin              XBraille:
23         LabelSep                xx
24         ParSkip                 0.0
25         ItemSep                 0.2
26         TopSep                  0.7
27         BottomSep               0.7
28         ParSep                  0.3
29         Align                   Block
30         AlignPossible           Block, Left
31         LabelType               Static
32         LabelString             "Braille:"
33         LabelFont
34                 Shape           Italic
35                 Color           Blue
36         EndFont
37 End
38
39 # Braille in text size
40 Style Braille_(textsize)
41         LatexType               command
42         LatexName               brailletext
43         NextNoIndent            1
44         LeftMargin              XBraille:
45         LabelSep                xx
46         ParSkip                 0.0
47         ItemSep                 0.2
48         TopSep                  0.7
49         BottomSep               0.7
50         ParSep                  0.3
51         Align                   Block
52         AlignPossible           Block, Left
53         LabelType               Static
54         LabelString             "Braille:"
55         LabelFont
56                 Shape           Italic
57                 Color           Blue
58         EndFont
59 End
60
61 # turn on dots
62 Style Braille_(dots_on)
63         LatexType               command
64         LatexName               brailleputtinydotstrue
65         NextNoIndent            1
66         KeepEmpty               1
67         LeftMargin              XBraille_dots_on
68         LabelSep                xx
69         ParSkip                 0.0
70         ItemSep                 0.2
71         TopSep                  0.7
72         BottomSep               0.7
73         ParSep                  0.3
74         Align                   Block
75         AlignPossible           Block, Left
76         LabelType               Static
77         LabelString             "Braille_dots_on"
78         LabelFont
79                 Shape           Italic
80                 Color           Green
81         EndFont
82 End
83
84 # turn off dots
85 Style Braille_(dots_off)
86         LatexType               command
87         LatexName               brailleputtinydotsfalse
88         NextNoIndent            1
89         KeepEmpty               1
90         LeftMargin              XBraille_dots_off
91         LabelSep                xx
92         ParSkip                 0.0
93         ItemSep                 0.2
94         TopSep                  0.7
95         BottomSep               0.7
96         ParSep                  0.3
97         Align                   Block
98         AlignPossible           Block, Left
99         LabelType               Static
100         LabelString             "Braille_dots_off"
101         LabelFont
102                 Shape           Italic
103                 Color           Green
104         EndFont
105 End
106
107 # turn off dots
108 Style Braille_(mirror_on)
109         LatexType               command
110         LatexName               braillemirrortrue
111         NextNoIndent            1
112         KeepEmpty               1
113         LeftMargin              XBraille_mirror_on
114         LabelSep                xx
115         ParSkip                 0.0
116         ItemSep                 0.2
117         TopSep                  0.7
118         BottomSep               0.7
119         ParSep                  0.3
120         Align                   Block
121         AlignPossible           Block, Left
122         LabelType               Static
123         LabelString             "Braille_mirror_on"
124         LabelFont
125                 Shape           Italic
126                 Color           Green
127         EndFont
128 End
129
130 # turn off dots
131 Style Braille_(mirror_off)
132         LatexType               command
133         LatexName               braillemirrorfalse
134         NextNoIndent            1
135         KeepEmpty               1
136         LeftMargin              "XBraille mirror off"
137         LabelSep                xx
138         ParSkip                 0.0
139         ItemSep                 0.2
140         TopSep                  0.7
141         BottomSep               0.7
142         ParSep                  0.3
143         Align                   Block
144         AlignPossible           Block, Left
145         LabelType               Static
146         LabelString             "Braille mirror off"
147         LabelFont
148                 Shape           Italic
149                 Color           Green
150         EndFont
151 End
152