Debian Codegraph @

texmf-dist/doc/latex/braille/summary.tex

raw
1 \documentclass[draft]{article}
2 \usepackage{fullpage}
3 \usepackage[puttinydots]{braille}
4
5 \newcommand{\mytable}[1]{%
6 \enskip\begin{tabular}[t]{r|l}
7 \hline #1 \hline
8 \end{tabular}\enskip}
9
10 \newcommand{\mytablewith}[2]{%
11 \enskip\begin{tabular}[t]{r|l}
12 \multicolumn{2}{c}{#1} \\
13 \hline #2 \hline
14 \end{tabular}\enskip}
15
16 \newcommand{\mytaglist}[1]{%
17 \enskip\begin{tabular}[t]{@{}l@{}}
18 #1
19 \end{tabular}\enskip}
20
21
22 \begin{document}
23
24 \title{Summary of Grade 1 and 2 Braille}
25 \author{William Park}
26 \date{September 1998, April 1999}
27 \maketitle
28
29
30 \section{Braille Alphabets}
31
32 The following is list of \TeX\ macros and Braille symbols contained in
33 {\tt braille.sty}. The user command \verb+\braille{}+ converts
34 sequence of tags to Braille symbols. A tag can be one character which
35 appears as is, or multi characters which must be enclosed with \{\}.
36 For each tag, a predefined TeX macro is called to print out the
37 Braille symbols. For example, \verb+\braille{a{the}b}+ prints out
38 Braille symbols for {\em a}, {\em the}, and {\em b}.
39
40 As usual, \TeX\ collapses multiple spaces to single space, and ignores
41 spaces at the end of line, and tabs and newlines everywhere. This means
42 that for multi-line paragraph, there must be at least one space after
43 newline (\verb+\n+).
44
45 \begin{center}
46 \mytable{
47 \braille{a} & a 1 \\
48 \braille{b} & b 2 \\
49 \braille{c} & c 3 \\
50 \braille{d} & d 4 \\
51 \braille{e} & e 5 \\
52 \braille{f} & f 6 \\
53 \braille{g} & g 7 \\
54 \braille{h} & h 8 \\
55 \braille{i} & i 9 \\
56 \braille{j} & j 0 \\
57 \braille{k} & k \\
58 \braille{l} & l \\
59 \braille{m} & m \\
60 \braille{n} & n \\
61 \braille{o} & o \\
62 }
63 \mytable{
64 \braille{p} & p \\
65 \braille{q} & q \\
66 \braille{r} & r \\
67 \braille{s} & s \\
68 \braille{t} & t \\
69 \braille{u} & u \\
70 \braille{v} & v \\
71 \braille{w} & w \\
72 \braille{x} & x \\
73 \braille{y} & y \\
74 \braille{z} & z \\
75 \braille{{and}} & \{and\} \\
76 \braille{{ar}} & \{ar\} \\
77 \braille{{ble}} & \{ble\} \\
78 \braille{{ch}} & \{ch\} \\
79 }
80 \mytable{
81 \braille{{ed}} & \{ed\} \\
82 \braille{{en}} & \{en\} \\
83 \braille{{er}} & \{er\} \\
84 \braille{{for}} & \{for\} \\
85 \braille{{gh}} & \{gh\} \\
86 \braille{{in}} & \{in\} \\
87 \braille{{ing}} & \{ing\} \\
88 \braille{{into}} & \{into\} \\
89 \braille{{of}} & \{of\} \\
90 \braille{{ou}} & \{ou\} \\
91 \braille{{ow}} & \{ow\} \\
92 \braille{{sh}} & \{sh\} \\
93 \braille{{th}} & \{th\} \\
94 \braille{{the}} & \{the\} \\
95 \braille{{wh}} & \{wh\} \\
96 \braille{{with}} & \{with\} \\
97 }
98 \mytable{
99 \braille{,} & , \{ea\} \\
100 \braille{;} & ; \{bb\} \{be\} \\
101 \braille{:} & : \{cc\} \{con\} \\
102 \braille{.} & . \$ \{dd\} \{dis\} \\
103 \braille{!} & ! \{ff\} \{to\} \\
104 \braille{(} & ( ) \{gg\} \{were\} \\
105 \braille{{``}} & \{`\,`\} ? \{his\} \\
106 \braille{*} & * \\
107 \braille{{''}} & \{'\,'\} \{by\} \{was\} \\
108 \braille{'} & ' \\
109 \braille{-} & - \{com\} \\
110 \braille{/} & / \{st\} \\
111 \braille{[} & [ \\
112 \braille{]} & ] \\
113 \braille{{.`}} & \{.`\} \\ % open single quote (`)
114 \braille{{'.}} & \{'.\} \\ % close single quote (')
115 \braille{{percent}} & \{percent\} \\
116 }
117 \end{center}
118
119 Double quotes are specified by the usual \TeX\ notation of 2
120 consecutive single quotes (\verb+{``}...{''}+). Single quotes are
121 specified by 2 character notation (\verb+{.`}...{'.}+) similar to
122 actual Braille code. This is because apostrophe (') and closing
123 single quote (') are identical in print and in ASCII text. Also, \%
124 must be spelled out, because it is an escape character for comment in
125 \TeX.
126
127
128 \section{Prefix Indicator}
129
130 \begin{center}
131 \mytable{
132 \braille{{Capital}} & \{Capital\} \\
133 \braille{{Upper}} & \{Upper\} \\
134 \braille{{Italic}} & \{Italic\} \\
135 }
136 \mytable{
137 \braille{{Number}} & \{Number\} \\
138 \braille{{Letter}} & \{Letter\} \\
139 }
140 \end{center}
141
142
143 \section{Contraction for Part of Word}
144
145 \begin{center}
146 \mytablewith{Anywhere}{
147 \{and\}&and \\
148 \{ar\}&ar \\
149 \{ch\}&ch \\
150 \{ed\}&ed \\
151 \{en\}&en \\
152 \{er\}&er \\
153 \{for\}&for \\
154 \{gh\}&gh \\
155 \{in\}&in \\
156 }
157 \mytablewith{Anywhere}{
158 \{of\}&of \\
159 \{ou\}&ou \\
160 \{ow\}&ow \\
161 \{sh\}&sh \\
162 \{st\}&st \\
163 \{th\}&th \\
164 \{the\}&the \\
165 \{wh\}&wh \\
166 \{with\}&with \\
167 }
168 \mytablewith{Beginning}{
169 \{be\}&be \\
170 \{com\}&com \\
171 \{con\}&con \\
172 \{dis\}&dis \\
173 }
174 \mytablewith{Middle}{
175 \{bb\}&bb \\
176 \{ble\}&ble \\
177 \{cc\}&cc \\
178 \{dd\}&dd \\
179 \{ea\}&ea \\
180 \{ff\}&ff \\
181 \{gg\}&gg \\
182 \{ing\}&ing \\
183 }
184 \mytablewith{End}{
185 \{ble\}&ble \\
186 \{ing\}&ing \\
187 }
188 \end{center}
189
190
191 \section{Final Letter Contraction for Middle or End of Word}
192
193 \begin{center}
194 \mytablewith{Prefix \braillebox{46}}{
195 d&ound \\
196 e&ance \\
197 n&sion \\
198 s&less \\
199 t&ount \\
200 }
201 \mytablewith{Prefix \braillebox{56}}{
202 e&ence \\
203 g&ong \\
204 l&ful \\
205 n&tion \\
206 s&ness \\
207 t&ment \\
208 y&ity \\
209 }
210 \mytablewith{Prefix \braillebox{6}}{
211 n&ation \\
212 y&ally \\
213 }
214 \end{center}
215
216
217 \section{Initial Letter Contraction for Whole or Part of Word}
218
219 \begin{center}
220 \mytablewith{Prefix \braillebox{45}}{
221 \{the\}&these \\
222 \{th\}&those \\
223 u&upon \\
224 \{wh\}&whose \\
225 w&word \\
226 }
227 \mytablewith{Prefix \braillebox{456}}{
228 c&cannot \\
229 h&had \\
230 m&many \\
231 s&spirit \\
232 \{the\}&their \\
233 w&world \\
234 }
235 \mytablewith{Prefix \braillebox{5}}{
236 \{ch\}&character \\
237 d&day \\
238 e&ever \\
239 f&father \\
240 h&here \\
241 k&know \\
242 l&lord \\
243 m&mother \\
244 n&name \\
245 o&one \\
246 \{ou\}&ought \\
247 }
248 \mytablewith{Prefix \braillebox{5}}{
249 p&part \\
250 q&question \\
251 r&right \\
252 s&some \\
253 \{the\}&there \\
254 \{th\}&through \\
255 t&time \\
256 u&under \\
257 \{wh\}&where \\
258 w&work \\
259 y&young \\
260 }
261 \end{center}
262
263
264 \section{Abbreviation for Whole Word}
265
266 \begin{center}
267 \mytable{
268 ab&about \\
269 abv&above \\
270 ac&according \\
271 acr&across \\
272 af&after \\
273 afn&afternoon \\
274 afw&afterward \\
275 ag&again \\
276 ag\{st\}&against \\
277 alm&almost \\
278 alr&already \\
279 al&also \\
280 al\{th\}&although \\
281 alt&altogether \\
282 alw&always \\
283 \{and\}&and \\
284 z&as \\
285 \{be\}&be \\
286 \{be\}c&because \\
287 \{be\}f&before \\
288 \{be\}h&behind \\
289 \{be\}l&below \\
290 \{be\}n&beneath \\
291 \{be\}s&beside \\
292 \{be\}t&between \\
293 \{be\}y&beyond \\
294 bl&blind \\
295 brl&braille \\
296 b&but \\
297 \{by\}&by \\
298 }
299 \mytable{
300 c&can \\
301 \{ch\}&child \\
302 \{ch\}n&children \\
303 \{con\}cv&conceive \\
304 \{con\}cvg&conceiving \\
305 cd&could \\
306 dcv&deceive \\
307 dcvg&deceiving \\
308 dcl&declare \\
309 dclg&declaring \\
310 d&do \\
311 ei&either \\
312 \{en\}&enough \\
313 e&every \\
314 f\{st\}&first \\
315 \{for\}&for \\
316 fr&friend \\
317 f&from \\
318 g&go \\
319 gd&good \\
320 grt&great \\
321 h&have \\
322 h\{er\}f&herself \\
323 hm&him \\
324 hmf&himself \\
325 \{his\}&his \\
326 imm&immediate \\
327 \{in\}&in \\
328 \{into\}&into \\
329 x&it \\
330 }
331 \mytable{
332 xs&its \\
333 xf&itself \\
334 j&just \\
335 k&knowledge \\
336 lr&letter \\
337 l&like \\
338 ll&little \\
339 m&more \\
340 m\{ch\}&much \\
341 m\{st\}&must \\
342 myf&myself \\
343 nec&necessary \\
344 nei&neither \\
345 n&not \\
346 o'c&o'clock \\
347 \{of\}&of \\
348 \{one\}f&oneself \\
349 \{ou\}rvs&ourselves \\
350 \{ou\}&out \\
351 pd&paid \\
352 p&people \\
353 p\{er\}cv&perceive \\
354 p\{er\}cvg&perceiving \\
355 p\{er\}h&perhaps \\
356 qk&quick \\
357 q&quite \\
358 r&rather \\
359 rcv&receive \\
360 rcvg&receiving \\
361 rjc&rejoice \\
362 }
363 \mytable{
364 rjcg&rejoicing \\
365 sd&said \\
366 \{sh\}&shall \\
367 \{sh\}d&should \\
368 s&so \\
369 \{st\}&still \\
370 s\{ch\}&such \\
371 t&that \\
372 \{the\}&the \\
373 \{the\}mvs&themselves \\
374 \{th\}&this \\
375 \{th\}yf&thyself \\
376 \{to\}&to \\
377 td&today \\
378 tgr&together \\
379 tm&tomorrow \\
380 tn&tonight \\
381 u&us \\
382 v&very \\
383 \{was\}&was \\
384 \{were\}&were \\
385 \{wh\}&which \\
386 w&will \\
387 \{with\}&with \\
388 wd&would \\
389 y&you \\
390 yr&your \\
391 yrf&yourself \\
392 yrvs&yourselves \\
393 }
394 \end{center}
395
396 Abbreviation \verb+{in}+ cannot touch any other word or punctuation.
397 And, abbreviations \verb+{be}+, \verb+{enough}+, \verb+{his}+
398 \verb+{was}+, and \verb+{were}+ cannot touch punctuations.
399
400 Abbreviations \verb+{by}+, \verb+{into}+, and \verb+{to}+ must adjoin
401 next word without a space. But, abbreviations \verb+{and}+,
402 \verb+{for}+, \verb+{of}+, \verb+{the}+, \verb+{with}+, and letter
403 \verb+{a}+ can join one another if they occur as consecutive words.
404
405
406 \section{List of All Tags}
407
408 \begin{center}
409 \mytaglist{
410 about \\
411 above \\
412 according \\
413 across \\
414 after \\
415 afternoon \\
416 afterward \\
417 again \\
418 against \\
419 ally \\
420 almost \\
421 already \\
422 also \\
423 although \\
424 altogether \\
425 always \\
426 ance \\
427 and \\
428 ar \\
429 as \\
430 ation \\
431 bb \\
432 be \\
433 because \\
434 }
435 \mytaglist{
436 before \\
437 behind \\
438 below \\
439 beneath \\
440 beside \\
441 between \\
442 beyond \\
443 ble \\
444 blind \\
445 braille \\
446 but \\
447 by \\
448 can \\
449 cannot \\
450 cc \\
451 ch \\
452 character \\
453 child \\
454 children \\
455 com \\
456 con \\
457 conceive \\
458 conceiving \\
459 could \\
460 }
461 \mytaglist{
462 day \\
463 dd \\
464 deceive \\
465 deceiving \\
466 declare \\
467 declaring \\
468 dis \\
469 do \\
470 ea \\
471 ed \\
472 either \\
473 en \\
474 ence \\
475 enough \\
476 er \\
477 ever \\
478 every \\
479 father \\
480 ff \\
481 first \\
482 for \\
483 friend \\
484 from \\
485 ful \\
486 }
487 \mytaglist{
488 gg \\
489 gh \\
490 go \\
491 good \\
492 great \\
493 had \\
494 have \\
495 here \\
496 herself \\
497 him \\
498 himself \\
499 his \\
500 immediate \\
501 in \\
502 ing \\
503 into \\
504 it \\
505 its \\
506 itself \\
507 ity \\
508 just \\
509 know \\
510 knowledge \\
511 less \\
512 }
513 \mytaglist{
514 letter \\
515 like \\
516 little \\
517 lord \\
518 many \\
519 ment \\
520 more \\
521 mother \\
522 much \\
523 must \\
524 myself \\
525 name \\
526 necessary \\
527 neither \\
528 ness \\
529 not \\
530 o'clock \\
531 of \\
532 one \\
533 oneself \\
534 ong \\
535 ou \\
536 ought \\
537 ound \\
538 }
539 \mytaglist{
540 ount \\
541 ourselves \\
542 out \\
543 ow \\
544 paid \\
545 part \\
546 people \\
547 perceive \\
548 perceiving \\
549 perhaps \\
550 question \\
551 quick \\
552 quite \\
553 rather \\
554 receive \\
555 receiving \\
556 rejoice \\
557 rejoicing \\
558 right \\
559 said \\
560 sh \\
561 shall \\
562 should \\
563 sion \\
564 }
565 \mytaglist{
566 so \\
567 some \\
568 spirit \\
569 st \\
570 still \\
571 such \\
572 th \\
573 that \\
574 the \\
575 their \\
576 themselves \\
577 there \\
578 these \\
579 this \\
580 those \\
581 through \\
582 thyself \\
583 time \\
584 tion \\
585 to \\
586 today \\
587 together \\
588 tomorrow \\
589 tonight \\
590 }
591 \mytaglist{
592 under \\
593 upon \\
594 us \\
595 very \\
596 was \\
597 were \\
598 wh \\
599 where \\
600 which \\
601 whose \\
602 will \\
603 with \\
604 word \\
605 work \\
606 world \\
607 would \\
608 you \\
609 young \\
610 your \\
611 yourself \\
612 yourselves \\
613 }
614 \end{center}
615
616
617 \section{Examples}
618
619 \sloppy
620 \begin{itemize}
621 \item I like computer
622
623 {\bf Grade 1:} I like computer \\
624 \braille{I like computer}
625
626 {\bf Grade 2:} I \{like\} \{com\}put\{er\} \\
627 \braille{I {like} {com}put{er}}
628
629 \item This document was created with LaTeX running on Linux
630
631 {\bf Grade 1:}
632 This document was created with LaTeX running on Linux
633 \\
634 \braille{This document was created with LaTeX running on Linux}
635
636 {\bf Grade 2:}
637 \{Capital\}\{this\} docu\{ment\} \{was\} cr\{ea\}t\{ed\} \{with\}
638 LaTeX runn\{ing\} on L\{in\}ux
639 \\
640 \braille{{Capital}{this} docu{ment} {was} cr{ea}t{ed} {with} LaTeX
641 runn{ing} on L{in}ux}
642
643 \item Summary of grade 1 and 2 braille
644
645 {\bf Grade 2:}
646 Summ\{ar\}y \{of\} grade \{Number\}1 \{and\} \{Number\}2 \{braille\}
647 \\
648 \braille{Summ{ar}y {of} grade {Number}1 {and} {Number}2 {braille}}
649
650 \item William Park
651
652 {\bf Grade 1:} William Park \\
653 \braille{William Park}
654
655 \item September 1998
656
657 {\bf Grade 1:} September \{Number\}1998 \\
658 \braille{September {Number}1998}
659
660 \item I do not have to know how to read braille in order to produce
661 beautifully typeset braille documents. All I have to do is parse
662 ordinary text into tags for which TeX macros exist. TeX will,
663 then, print out predefined symbols associated with each tags.
664
665 {\bf Grade 2:}
666 I \{do\} \{not\} \{have\} \{to\}\{know\} h\{ow\} \{to\}r\{ea\}d
667 \{braille\} \{in\} ord\{er\} \{to\}produce b\{ea\}uti\{ful\}ly
668 typeset \{braille\} docu\{ment\}s. All I \{have\} \{to\}\{do\} is
669 p\{ar\}se ord\{in\}\{ar\}y text \{into\}tags \{for\} \{which\} TeX
670 macros exist. TeX \{will\}, \{the\}n, pr\{in\}t \{out\}
671 pr\{ed\}ef\{in\}\{ed\} symbols associat\{ed\} \{with\} ea\{ch\}
672 tags.
673 \\
674 \braille{I {do} {not} {have} {to}{know} h{ow} {to}r{ea}d {braille}
675 {in} ord{er} {to}produce b{ea}uti{ful}ly typeset {braille}
676 docu{ment}s. All I {have} {to}{do} is p{ar}se ord{in}{ar}y text
677 {into}tags {for} {which} TeX macros exi{st}. TeX {will}, {the}n,
678 pr{in}t {out} pr{ed}ef{in}{ed} symbols associat{ed} {with} ea{ch}
679 tags.}
680
681 \end{itemize}
682
683 \end{document}