]> git.lyx.org Git - lyx.git/blob - lib/examples/Braille.lyx
Japanese splash from Koji.
[lyx.git] / lib / examples / Braille.lyx
1 #LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
2 \lyxformat 344
3 \begin_document
4 \begin_header
5 \textclass article
6 \begin_preamble
7 % color greyed-out notes blue
8 \renewenvironment{lyxgreyedout}
9  {\textcolor{blue}\bgroup}{\egroup}
10 \end_preamble
11 \use_default_options false
12 \begin_modules
13 braille
14 \end_modules
15 \language english
16 \inputencoding utf8
17 \font_roman default
18 \font_sans default
19 \font_typewriter default
20 \font_default_family default
21 \font_sc false
22 \font_osf false
23 \font_sf_scale 100
24 \font_tt_scale 100
25
26 \graphics default
27 \paperfontsize default
28 \spacing single
29 \use_hyperref true
30 \pdf_title "How to write Braille with LyX"
31 \pdf_author "Uwe Stöhr"
32 \pdf_bookmarks false
33 \pdf_bookmarksnumbered false
34 \pdf_bookmarksopen false
35 \pdf_bookmarksopenlevel 1
36 \pdf_breaklinks false
37 \pdf_pdfborder false
38 \pdf_colorlinks true
39 \pdf_backref false
40 \pdf_pdfusetitle false
41 \papersize default
42 \use_geometry true
43 \use_amsmath 1
44 \use_esint 1
45 \cite_engine basic
46 \use_bibtopic false
47 \paperorientation portrait
48 \leftmargin 2.5cm
49 \rightmargin 2.5cm
50 \secnumdepth 3
51 \tocdepth 3
52 \paragraph_separation skip
53 \defskip medskip
54 \quotes_language english
55 \papercolumns 1
56 \papersides 1
57 \paperpagestyle default
58 \tracking_changes false
59 \output_changes false
60 \author "" 
61 \author "" 
62 \end_header
63
64 \begin_body
65
66 \begin_layout Title
67 How to write Braille with LyX
68 \end_layout
69
70 \begin_layout Author
71 Uwe Stöhr
72 \begin_inset Newline newline
73 \end_inset
74
75
76 \begin_inset CommandInset href
77 LatexCommand href
78 target "uwestoehr@web.de"
79 type "mailto:"
80
81 \end_inset
82
83
84 \end_layout
85
86 \begin_layout Standard
87 First a general note: The Braille you can create with LaTeX is not a professiona
88 l one! Professional Braille can be 6 or 8
89 \begin_inset space \thinspace{}
90 \end_inset
91
92 dot, while LaTeX only supports only 6
93 \begin_inset space \thinspace{}
94 \end_inset
95
96 dot Braille without accented characters.
97 \end_layout
98
99 \begin_layout Standard
100 To write Braille with LyX, load the module 
101 \family sans
102 Braille
103 \family default
104  in the document settings under 
105 \family sans
106 Document
107 \begin_inset space ~
108 \end_inset
109
110 Class
111 \family default
112 .
113  Now select the environment 
114 \family sans
115 Braille
116 \begin_inset space ~
117 \end_inset
118
119 (default)
120 \family default
121  or 
122 \family sans
123 Braille
124 \begin_inset space ~
125 \end_inset
126
127 (textsize)
128 \family default
129  from the end of LyX's environment selection box and write your text.
130  The other Braille environments are only turn on/off some properties as
131  described below; keep them empty!
132 \end_layout
133
134 \begin_layout Standard
135 Here is an example:
136 \lyxline
137
138 \end_layout
139
140 \begin_layout Standard
141 with Latin letters:
142 \begin_inset Newline newline
143 \end_inset
144
145 This is an example sentence written in Braille.
146 \end_layout
147
148 \begin_layout Standard
149 with Braille letters:
150 \end_layout
151
152 \begin_layout Braille (default)
153 This is an example sentence written in Braille.
154 \end_layout
155
156 \begin_layout Standard
157
158 \lyxline
159
160 \end_layout
161
162 \begin_layout Standard
163 \begin_inset VSpace bigskip
164 \end_inset
165
166 You can see that LaTeX is not able to hyphenate words written in Braille.
167  You have to do this manually.
168 \end_layout
169
170 \begin_layout Standard
171 \begin_inset VSpace bigskip
172 \end_inset
173
174
175 \begin_inset Note Greyedout
176 status open
177
178 \begin_layout Plain Layout
179
180 \series bold
181 Note:
182 \series default
183  Only Latin letters, numbers, punctuations, parentheses, and brackets can
184  be printed in Braille.
185  Special characters like 
186 \begin_inset Quotes eld
187 \end_inset
188
189 @
190 \begin_inset Quotes erd
191 \end_inset
192
193 , or 
194 \begin_inset Quotes eld
195 \end_inset
196
197 $
198 \begin_inset Quotes erd
199 \end_inset
200
201 , accented characters like umlauts, and line breaks are not supported.
202 \end_layout
203
204 \end_inset
205
206
207 \end_layout
208
209 \begin_layout Standard
210 \begin_inset VSpace bigskip
211 \end_inset
212
213
214 \begin_inset Note Greyedout
215 status open
216
217 \begin_layout Plain Layout
218
219 \series bold
220 Note:
221 \series default
222  LyX and LaTeX's proper names 
223 \begin_inset Quotes eld
224 \end_inset
225
226 LaTeX
227 \begin_inset Quotes erd
228 \end_inset
229
230
231 \begin_inset Quotes eld
232 \end_inset
233
234 LaTeX2e
235 \begin_inset Quotes erd
236 \end_inset
237
238
239 \begin_inset Quotes eld
240 \end_inset
241
242 TeX
243 \begin_inset Quotes erd
244 \end_inset
245
246 , and 
247 \begin_inset Quotes eld
248 \end_inset
249
250 LyX
251 \begin_inset Quotes erd
252 \end_inset
253
254  must be inserted as ERT, as in the following example:
255 \end_layout
256
257 \end_inset
258
259
260 \end_layout
261
262 \begin_layout Standard
263
264 \lyxline
265
266 \end_layout
267
268 \begin_layout Standard
269 Latin: 
270 \begin_inset ERT
271 status collapsed
272
273 \begin_layout Plain Layout
274
275 LyX
276 \end_layout
277
278 \end_inset
279
280  is cool!
281 \begin_inset Newline newline
282 \end_inset
283
284 Braille:
285 \end_layout
286
287 \begin_layout Braille (default)
288 \begin_inset ERT
289 status collapsed
290
291 \begin_layout Plain Layout
292
293 LyX
294 \end_layout
295
296 \end_inset
297
298  is cool!
299 \end_layout
300
301 \begin_layout Standard
302
303 \lyxline
304
305 \end_layout
306
307 \begin_layout Standard
308 Here is an overview about the different Braille environments using the example
309  text 
310 \begin_inset Quotes eld
311 \end_inset
312
313 This is Braille.
314 \begin_inset Quotes erd
315 \end_inset
316
317
318 \end_layout
319
320 \begin_layout Standard
321 \begin_inset VSpace bigskip
322 \end_inset
323
324 Default:
325 \end_layout
326
327 \begin_layout Braille (default)
328 This is Braille.
329 \end_layout
330
331 \begin_layout Standard
332 Size that approximately matches the document's text size:
333 \end_layout
334
335 \begin_layout Braille (textsize)
336 This is Braille.
337 \end_layout
338
339 \begin_layout Standard
340 \begin_inset VSpace bigskip
341 \end_inset
342
343 Tiny dots can be displayed at empty positions:
344 \end_layout
345
346 \begin_layout Braille (dots on)
347
348 \end_layout
349
350 \begin_layout Braille (textsize)
351 This is Braille.
352 \end_layout
353
354 \begin_layout Standard
355 \begin_inset VSpace bigskip
356 \end_inset
357
358 The text can be printed mirrored to be later able to for "print" Braille
359  by hand with a needle or another suitable method:
360 \end_layout
361
362 \begin_layout Standard
363 Normal:
364 \end_layout
365
366 \begin_layout Braille (default)
367 This is Braille.
368 \end_layout
369
370 \begin_layout Standard
371 Mirrored:
372 \end_layout
373
374 \begin_layout Braille (mirror on)
375
376 \end_layout
377
378 \begin_layout Braille (default)
379 This is Braille.
380 \end_layout
381
382 \begin_layout Braille (mirror off)
383
384 \end_layout
385
386 \begin_layout Standard
387 \begin_inset VSpace bigskip
388 \end_inset
389
390 Braille characters can alternatively be created by writing a number to a
391  Braille box.
392  A Braille box is inserted with the menu
393 \family sans
394  Insert\SpecialChar \menuseparator
395 Custom
396 \begin_inset space ~
397 \end_inset
398
399 insets
400 \family default
401 .
402  Every number that is in this box, turns on the corresponding Braille dot,
403  for example the number
404 \series bold
405  6145
406 \series default
407  box leads to:
408 \begin_inset Newline newline
409 \end_inset
410
411
412 \begin_inset Flex Braillebox
413 status open
414
415 \begin_layout Plain Layout
416 6145
417 \end_layout
418
419 \end_inset
420
421
422 \end_layout
423
424 \begin_layout Standard
425 \begin_inset VSpace bigskip
426 \end_inset
427
428 Computer Braille that uses 8
429 \begin_inset space \thinspace{}
430 \end_inset
431
432 dots can be turned on with the command
433 \series bold
434  
435 \backslash
436 brailleeightdotstrue
437 \series default
438 .
439  But the two extra dots are only used when using a Braille box.
440  For example the number
441 \series bold
442  8175
443 \series default
444  in a Braille box leads to:
445 \begin_inset Newline newline
446 \end_inset
447
448
449 \begin_inset ERT
450 status collapsed
451
452 \begin_layout Plain Layout
453
454
455 \backslash
456 brailleeightdotstrue 
457 \end_layout
458
459 \end_inset
460
461  
462 \begin_inset Flex Braillebox
463 status open
464
465 \begin_layout Plain Layout
466 8175
467 \end_layout
468
469 \end_inset
470
471  
472 \begin_inset ERT
473 status collapsed
474
475 \begin_layout Plain Layout
476
477
478 \backslash
479 brailleeightdotsfalse 
480 \end_layout
481
482 \end_inset
483
484
485 \end_layout
486
487 \begin_layout Standard
488 \begin_inset VSpace bigskip
489 \end_inset
490
491 The size of the default Braille font can be changed by the length 
492 \series bold
493
494 \backslash
495 brailleunit
496 \series default
497 .
498  Its default value is 2.4
499 \begin_inset space \thinspace{}
500 \end_inset
501
502 mm.
503  To get e.
504 \begin_inset space \thinspace{}
505 \end_inset
506
507 g.
508 \begin_inset space \space{}
509 \end_inset
510
511 double-sized Braille where also the tiny dots have the double size, use
512  this command in TeX code in your document:
513 \end_layout
514
515 \begin_layout Standard
516
517 \series bold
518
519 \backslash
520 renewcommand{
521 \backslash
522 braillenormal}[1]
523 \begin_inset Newline newline
524 \end_inset
525
526
527 \begin_inset space ~
528 \end_inset
529
530 {
531 \backslash
532 setlength{
533 \backslash
534 brailleunit}{4.8mm}
535 \backslash
536 braille{#1}}
537 \end_layout
538
539 \begin_layout Standard
540 Double-sized Braille:
541 \begin_inset ERT
542 status collapsed
543
544 \begin_layout Plain Layout
545
546
547 \backslash
548 renewcommand{
549 \backslash
550 braillenormal}[1]
551 \end_layout
552
553 \begin_layout Plain Layout
554
555  {
556 \backslash
557 setlength{
558 \backslash
559 brailleunit}{4mm}
560 \backslash
561 braille{#1}}
562 \end_layout
563
564 \end_inset
565
566
567 \end_layout
568
569 \begin_layout Braille (default)
570 This is Braille.
571 \end_layout
572
573 \begin_layout Standard
574 \begin_inset ERT
575 status collapsed
576
577 \begin_layout Plain Layout
578
579
580 \backslash
581 renewcommand{
582 \backslash
583 braillenormal}[1]
584 \end_layout
585
586 \begin_layout Plain Layout
587
588  {
589 \backslash
590 setlength{
591 \backslash
592 brailleunit}{2mm}
593 \backslash
594 braille{#1}}
595 \end_layout
596
597 \end_inset
598
599
600 \end_layout
601
602 \begin_layout Standard
603 \begin_inset VSpace bigskip
604 \end_inset
605
606 For more informations about the Braille cell dimensions have a look at 
607 \begin_inset CommandInset href
608 LatexCommand href
609 name "Braille cell dimensions"
610 target "http://www.tiresias.org/research/reports/braille_cell.htm"
611
612 \end_inset
613
614 .
615 \end_layout
616
617 \end_body
618 \end_document