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