File: ContractionTables.html

package info (click to toggle)
brltty 6.8-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 35,776 kB
  • sloc: ansic: 150,447; java: 13,484; sh: 9,667; xml: 5,702; tcl: 2,634; makefile: 2,328; awk: 713; lisp: 366; python: 321; ml: 301
file content (958 lines) | stat: -rw-r--r-- 33,486 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="generator" content="Docutils 0.20.1: https://docutils.sourceforge.io/" />
<title>Contraction Tables</title>
<style type="text/css">

/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.

See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/

/* used to remove borders from tables and images */
.borderless, table.borderless td, table.borderless th {
  border: 0 }

table.borderless td, table.borderless th {
  /* Override padding for "table.docutils td" with "! important".
     The right padding separates the table cells. */
  padding: 0 0.5em 0 0 ! important }

.first {
  /* Override more specific margin styles with "! important". */
  margin-top: 0 ! important }

.last, .with-subtitle {
  margin-bottom: 0 ! important }

.hidden {
  display: none }

.subscript {
  vertical-align: sub;
  font-size: smaller }

.superscript {
  vertical-align: super;
  font-size: smaller }

a.toc-backref {
  text-decoration: none ;
  color: black }

blockquote.epigraph {
  margin: 2em 5em ; }

dl.docutils dd {
  margin-bottom: 0.5em }

object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
  overflow: hidden;
}

/* Uncomment (and remove this text!) to get bold-faced definition list terms
dl.docutils dt {
  font-weight: bold }
*/

div.abstract {
  margin: 2em 5em }

div.abstract p.topic-title {
  font-weight: bold ;
  text-align: center }

div.admonition, div.attention, div.caution, div.danger, div.error,
div.hint, div.important, div.note, div.tip, div.warning {
  margin: 2em ;
  border: medium outset ;
  padding: 1em }

div.admonition p.admonition-title, div.hint p.admonition-title,
div.important p.admonition-title, div.note p.admonition-title,
div.tip p.admonition-title {
  font-weight: bold ;
  font-family: sans-serif }

div.attention p.admonition-title, div.caution p.admonition-title,
div.danger p.admonition-title, div.error p.admonition-title,
div.warning p.admonition-title, .code .error {
  color: red ;
  font-weight: bold ;
  font-family: sans-serif }

/* Uncomment (and remove this text!) to get reduced vertical space in
   compound paragraphs.
div.compound .compound-first, div.compound .compound-middle {
  margin-bottom: 0.5em }

div.compound .compound-last, div.compound .compound-middle {
  margin-top: 0.5em }
*/

div.dedication {
  margin: 2em 5em ;
  text-align: center ;
  font-style: italic }

div.dedication p.topic-title {
  font-weight: bold ;
  font-style: normal }

div.figure {
  margin-left: 2em ;
  margin-right: 2em }

div.footer, div.header {
  clear: both;
  font-size: smaller }

div.line-block {
  display: block ;
  margin-top: 1em ;
  margin-bottom: 1em }

div.line-block div.line-block {
  margin-top: 0 ;
  margin-bottom: 0 ;
  margin-left: 1.5em }

div.sidebar {
  margin: 0 0 0.5em 1em ;
  border: medium outset ;
  padding: 1em ;
  background-color: #ffffee ;
  width: 40% ;
  float: right ;
  clear: right }

div.sidebar p.rubric {
  font-family: sans-serif ;
  font-size: medium }

div.system-messages {
  margin: 5em }

div.system-messages h1 {
  color: red }

div.system-message {
  border: medium outset ;
  padding: 1em }

div.system-message p.system-message-title {
  color: red ;
  font-weight: bold }

div.topic {
  margin: 2em }

h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
  margin-top: 0.4em }

h1.title {
  text-align: center }

h2.subtitle {
  text-align: center }

hr.docutils {
  width: 75% }

img.align-left, .figure.align-left, object.align-left, table.align-left {
  clear: left ;
  float: left ;
  margin-right: 1em }

img.align-right, .figure.align-right, object.align-right, table.align-right {
  clear: right ;
  float: right ;
  margin-left: 1em }

img.align-center, .figure.align-center, object.align-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

table.align-center {
  margin-left: auto;
  margin-right: auto;
}

.align-left {
  text-align: left }

.align-center {
  clear: both ;
  text-align: center }

.align-right {
  text-align: right }

/* reset inner alignment in figures */
div.align-right {
  text-align: inherit }

/* div.align-center * { */
/*   text-align: left } */

.align-top    {
  vertical-align: top }

.align-middle {
  vertical-align: middle }

.align-bottom {
  vertical-align: bottom }

ol.simple, ul.simple {
  margin-bottom: 1em }

ol.arabic {
  list-style: decimal }

ol.loweralpha {
  list-style: lower-alpha }

ol.upperalpha {
  list-style: upper-alpha }

ol.lowerroman {
  list-style: lower-roman }

ol.upperroman {
  list-style: upper-roman }

p.attribution {
  text-align: right ;
  margin-left: 50% }

p.caption {
  font-style: italic }

p.credits {
  font-style: italic ;
  font-size: smaller }

p.label {
  white-space: nowrap }

p.rubric {
  font-weight: bold ;
  font-size: larger ;
  color: maroon ;
  text-align: center }

p.sidebar-title {
  font-family: sans-serif ;
  font-weight: bold ;
  font-size: larger }

p.sidebar-subtitle {
  font-family: sans-serif ;
  font-weight: bold }

p.topic-title {
  font-weight: bold }

pre.address {
  margin-bottom: 0 ;
  margin-top: 0 ;
  font: inherit }

pre.literal-block, pre.doctest-block, pre.math, pre.code {
  margin-left: 2em ;
  margin-right: 2em }

pre.code .ln { color: grey; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
pre.code .literal.string, code .literal.string { color: #0C5404 }
pre.code .name.builtin, code .name.builtin { color: #352B84 }
pre.code .deleted, code .deleted { background-color: #DEB0A1}
pre.code .inserted, code .inserted { background-color: #A3D289}

span.classifier {
  font-family: sans-serif ;
  font-style: oblique }

span.classifier-delimiter {
  font-family: sans-serif ;
  font-weight: bold }

span.interpreted {
  font-family: sans-serif }

span.option {
  white-space: nowrap }

span.pre {
  white-space: pre }

span.problematic {
  color: red }

span.section-subtitle {
  /* font-size relative to parent (h1..h6 element) */
  font-size: 80% }

table.citation {
  border-left: solid 1px gray;
  margin-left: 1px }

table.docinfo {
  margin: 2em 4em }

table.docutils {
  margin-top: 0.5em ;
  margin-bottom: 0.5em }

table.footnote {
  border-left: solid 1px black;
  margin-left: 1px }

table.docutils td, table.docutils th,
table.docinfo td, table.docinfo th {
  padding-left: 0.5em ;
  padding-right: 0.5em ;
  vertical-align: top }

table.docutils th.field-name, table.docinfo th.docinfo-name {
  font-weight: bold ;
  text-align: left ;
  white-space: nowrap ;
  padding-left: 0 }

/* "booktabs" style (no vertical lines) */
table.docutils.booktabs {
  border: 0px;
  border-top: 2px solid;
  border-bottom: 2px solid;
  border-collapse: collapse;
}
table.docutils.booktabs * {
  border: 0px;
}
table.docutils.booktabs th {
  border-bottom: thin solid;
  text-align: left;
}

h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
  font-size: 100% }

ul.auto-toc {
  list-style-type: none }

</style>
</head>
<body>
<div class="document" id="contraction-tables">
<h1 class="title">Contraction Tables</h1>

<div class="contents topic" id="contents">
<p class="topic-title">Contents</p>
<ul class="simple">
<li><a class="reference internal" href="#description" id="toc-entry-1">Description</a></li>
<li><a class="reference internal" href="#contraction-directives" id="toc-entry-2">Contraction Directives</a><ul>
<li><a class="reference internal" href="#the-literal-directive" id="toc-entry-3">The Literal Directive</a></li>
<li><a class="reference internal" href="#the-always-directive" id="toc-entry-4">The Always Directive</a></li>
<li><a class="reference internal" href="#the-repeatable-directive" id="toc-entry-5">The Repeatable Directive</a></li>
<li><a class="reference internal" href="#the-largesign-directive" id="toc-entry-6">The LargeSign Directive</a></li>
<li><a class="reference internal" href="#the-lastlargesign-directive" id="toc-entry-7">The LastLargeSign Directive</a></li>
<li><a class="reference internal" href="#the-word-directive" id="toc-entry-8">The Word Directive</a></li>
<li><a class="reference internal" href="#the-joinword-directive" id="toc-entry-9">The JoinWord Directive</a></li>
<li><a class="reference internal" href="#the-lowword-directive" id="toc-entry-10">The LowWord Directive</a></li>
<li><a class="reference internal" href="#the-contraction-directive" id="toc-entry-11">The Contraction Directive</a></li>
<li><a class="reference internal" href="#the-sufword-directive" id="toc-entry-12">The SufWord Directive</a></li>
<li><a class="reference internal" href="#the-prfword-directive" id="toc-entry-13">The PrfWord Directive</a></li>
<li><a class="reference internal" href="#the-begword-directive" id="toc-entry-14">The BegWord Directive</a></li>
<li><a class="reference internal" href="#the-begmidword-directive" id="toc-entry-15">The BegMidWord Directive</a></li>
<li><a class="reference internal" href="#the-midword-directive" id="toc-entry-16">The MidWord Directive</a></li>
<li><a class="reference internal" href="#the-midendword-directive" id="toc-entry-17">The MidEndWord Directive</a></li>
<li><a class="reference internal" href="#the-endword-directive" id="toc-entry-18">The EndWord Directive</a></li>
<li><a class="reference internal" href="#the-prepunc-directive" id="toc-entry-19">The PrePunc Directive</a></li>
<li><a class="reference internal" href="#the-postpunc-directive" id="toc-entry-20">The PostPunc Directive</a></li>
<li><a class="reference internal" href="#the-begnum-directive" id="toc-entry-21">The BegNum Directive</a></li>
<li><a class="reference internal" href="#the-midnum-directive" id="toc-entry-22">The MidNum Directive</a></li>
<li><a class="reference internal" href="#the-endnum-directive" id="toc-entry-23">The EndNum Directive</a></li>
</ul>
</li>
<li><a class="reference internal" href="#character-classes" id="toc-entry-24">Character Classes</a><ul>
<li><a class="reference internal" href="#the-class-directive" id="toc-entry-25">The Class Directive</a></li>
<li><a class="reference internal" href="#the-after-directive" id="toc-entry-26">The After Directive</a></li>
<li><a class="reference internal" href="#the-before-directive" id="toc-entry-27">The Before Directive</a></li>
</ul>
</li>
<li><a class="reference internal" href="#indicator-specification" id="toc-entry-28">Indicator Specification</a><ul>
<li><a class="reference internal" href="#the-capsign-directive" id="toc-entry-29">The CapSign Directive</a></li>
<li><a class="reference internal" href="#the-begcaps-directive" id="toc-entry-30">The BegCaps Directive</a></li>
<li><a class="reference internal" href="#the-endcaps-directive" id="toc-entry-31">The EndCaps Directive</a></li>
<li><a class="reference internal" href="#the-letsign-directive" id="toc-entry-32">The LetSign Directive</a></li>
<li><a class="reference internal" href="#the-numsign-directive" id="toc-entry-33">The NumSign Directive</a></li>
</ul>
</li>
<li><a class="reference internal" href="#special-directives" id="toc-entry-34">Special Directives</a><ul>
<li><a class="reference internal" href="#the-replace-directive" id="toc-entry-35">The Replace Directive</a></li>
<li><a class="reference internal" href="#the-emoji-directive" id="toc-entry-36">The Emoji Directive</a></li>
</ul>
</li>
<li><a class="reference internal" href="#standard-directives" id="toc-entry-37">Standard Directives</a><ul>
<li><a class="reference internal" href="#the-include-directive" id="toc-entry-38">The Include Directive</a></li>
</ul>
</li>
<li><a class="reference internal" href="#operands" id="toc-entry-39">Operands</a><ul>
<li><a class="reference internal" href="#the-string-operand" id="toc-entry-40">The String Operand</a></li>
<li><a class="reference internal" href="#the-representation-operand" id="toc-entry-41">The Representation Operand</a></li>
</ul>
</li>
<li><a class="reference internal" href="#contraction-table-list" id="toc-entry-42">Contraction Table List</a></li>
</ul>
</div>
<div class="section" id="description">
<h2><a class="toc-backref" href="#toc-entry-1">Description</a></h2>
<p>Files with names of the form <tt class="docutils literal">*.ctb</tt> are contraction tables, and with names
of the form <tt class="docutils literal">*.cti</tt> are contraction subtables. They are used by BRLTTY to
translate character sequences on the screen into their corresponding contracted
braille representations.</p>
<p>Contraction tables can usually be found in the <tt class="docutils literal">/etc/brltty/Contraction/</tt>
directory (see <a class="reference external" href="Customize.html">Local Customization</a> for more details). SEe
<a class="reference internal" href="#contraction-table-list">Contraction Table list</a> for a list of BRLTTY's contraction tables.</p>
<p>A contraction table consists of a sequence of directives, one per line, that
define how character sequences are to be represented in contracted braille.
UTF-8 character encoding must be used. Whitespace (blanks, tabs) at the
beginning of a line, as well as before and/or after any operand, is ignored.
Lines containing only whitespace are ignored. If the first non-whitespace
character of a line is <tt class="docutils literal">#</tt> then that line is a comment and is ignored.</p>
</div>
<div class="section" id="contraction-directives">
<h2><a class="toc-backref" href="#toc-entry-2">Contraction Directives</a></h2>
<p>The format of a contraction directive is:</p>
<pre class="literal-block">
<em>directive</em> <em>operand</em> ... <em>comment</em>
</pre>
<p>Each directive has a specific number of operands. Any text beyond the last
operand of a directive is interpreted as a comment. This commenting capability
is often used to list some of the words that make the directive necessary.</p>
<p>The order of the directives within a contraction table is, in general, anything
that is convenient for its maintainer(s). A directive that defines an entity,
e.g. <a class="reference internal" href="#the-class-directive">The Class Directive</a>, must precede all references to that entity.</p>
<p>Directives that match character sequences are automatically rearranged such
that longer sequences are matched first. If more than one directive matches the
same character sequence then their original table ordering is maintained.</p>
<p>Whenever a character needs to be written, its representation as defined via
<a class="reference internal" href="#the-always-directive">The Always Directive</a> is used. In principle, this means that every character
within the <em>representation</em> operand of every contraction directive should be
explicitly defined via <a class="reference internal" href="#the-always-directive">The Always Directive</a>. If a character's representation
hasn't been defined then the Unicode Replacement Character (U+FFFD) is used -
if it's representation hasn't been defined then all eight dots are used.</p>
<div class="section" id="the-literal-directive">
<h3><a class="toc-backref" href="#toc-entry-3">The Literal Directive</a></h3>
<pre class="literal-block">
literal <em>characters</em>
</pre>
<p>Translate the entire whitespace-bounded text containing the character sequence
into computer braille.</p>
</div>
<div class="section" id="the-always-directive">
<h3><a class="toc-backref" href="#toc-entry-4">The Always Directive</a></h3>
<pre class="literal-block">
always <em>characters</em> <em>representation</em>
</pre>
<p>Unconditionally translate the characters no matter where they appear. If
there's only one character, then, in addition, define the default
representation for that character.</p>
</div>
<div class="section" id="the-repeatable-directive">
<h3><a class="toc-backref" href="#toc-entry-5">The Repeatable Directive</a></h3>
<pre class="literal-block">
repeatable <em>characters</em> <em>representation</em>
</pre>
<p>Unconditionally translate the characters no matter where they appear. Ignore
any consecutive repetitions of the same sequence.</p>
</div>
<div class="section" id="the-largesign-directive">
<h3><a class="toc-backref" href="#toc-entry-6">The LargeSign Directive</a></h3>
<pre class="literal-block">
largeSign <em>characters</em> <em>representation</em>
</pre>
<p>Unconditionally translate the characters no matter where they appear. Remove
whitespace between consecutive words matched by this directive.</p>
</div>
<div class="section" id="the-lastlargesign-directive">
<h3><a class="toc-backref" href="#toc-entry-7">The LastLargeSign Directive</a></h3>
<pre class="literal-block">
lastLargeSign <em>characters</em> <em>representation</em>
</pre>
<p>Unconditionally translate the characters no matter where they appear. Remove
preceding whitespace if the previous word was matched by
<a class="reference internal" href="#the-largesign-directive">The LargeSign Directive</a>.</p>
</div>
<div class="section" id="the-word-directive">
<h3><a class="toc-backref" href="#toc-entry-8">The Word Directive</a></h3>
<pre class="literal-block">
word <em>characters</em> <em>representation</em>
</pre>
<p>Translate the characters if they're a word.</p>
</div>
<div class="section" id="the-joinword-directive">
<h3><a class="toc-backref" href="#toc-entry-9">The JoinWord Directive</a></h3>
<pre class="literal-block">
joinWord <em>characters</em> <em>representation</em>
</pre>
<p>Translate the characters if they're a word. Remove the following whitespace if
the first character after it is a letter.</p>
</div>
<div class="section" id="the-lowword-directive">
<h3><a class="toc-backref" href="#toc-entry-10">The LowWord Directive</a></h3>
<pre class="literal-block">
lowWord <em>characters</em> <em>representation</em>
</pre>
<p>Translate the characters if they're a whitespace-bounded word.</p>
</div>
<div class="section" id="the-contraction-directive">
<h3><a class="toc-backref" href="#toc-entry-11">The Contraction Directive</a></h3>
<pre class="literal-block">
contraction <em>characters</em>
</pre>
<p>Prefix the characters with a letter sign (see
<a class="reference internal" href="#the-letsign-directive">The LetSign Directive</a>) if they're a word.</p>
</div>
<div class="section" id="the-sufword-directive">
<h3><a class="toc-backref" href="#toc-entry-12">The SufWord Directive</a></h3>
<pre class="literal-block">
sufWord <em>characters</em> <em>representation</em>
</pre>
<p>Translate the characters if they're either a word or at the beginning of a
word.</p>
</div>
<div class="section" id="the-prfword-directive">
<h3><a class="toc-backref" href="#toc-entry-13">The PrfWord Directive</a></h3>
<pre class="literal-block">
prfWord <em>characters</em> <em>representation</em>
</pre>
<p>Translate the characters if they're either a word or at the end of a word.</p>
</div>
<div class="section" id="the-begword-directive">
<h3><a class="toc-backref" href="#toc-entry-14">The BegWord Directive</a></h3>
<pre class="literal-block">
begWord <em>characters</em> <em>representation</em>
</pre>
<p>Translate the characters if they're at the beginning of a word.</p>
</div>
<div class="section" id="the-begmidword-directive">
<h3><a class="toc-backref" href="#toc-entry-15">The BegMidWord Directive</a></h3>
<pre class="literal-block">
begMidWord <em>characters</em> <em>representation</em>
</pre>
<p>Translate the characters if they're either at the beginning or in the middle of
a word.</p>
</div>
<div class="section" id="the-midword-directive">
<h3><a class="toc-backref" href="#toc-entry-16">The MidWord Directive</a></h3>
<pre class="literal-block">
midWord <em>characters</em> <em>representation</em>
</pre>
<p>Translate the characters if they're in the middle of a word.</p>
</div>
<div class="section" id="the-midendword-directive">
<h3><a class="toc-backref" href="#toc-entry-17">The MidEndWord Directive</a></h3>
<pre class="literal-block">
midEndWord <em>characters</em> <em>representation</em>
</pre>
<p>Translate the characters if they're either in the middle or at the end of a
word.</p>
</div>
<div class="section" id="the-endword-directive">
<h3><a class="toc-backref" href="#toc-entry-18">The EndWord Directive</a></h3>
<pre class="literal-block">
endWord <em>characters</em> <em>representation</em>
</pre>
<p>Translate the characters if they're at the end of a word.</p>
</div>
<div class="section" id="the-prepunc-directive">
<h3><a class="toc-backref" href="#toc-entry-19">The PrePunc Directive</a></h3>
<pre class="literal-block">
prePunc <em>characters</em> <em>representation</em>
</pre>
<p>Translate the characters if they're part of punctuation at the beginning of a
word.</p>
</div>
<div class="section" id="the-postpunc-directive">
<h3><a class="toc-backref" href="#toc-entry-20">The PostPunc Directive</a></h3>
<pre class="literal-block">
postPunc <em>characters</em> <em>representation</em>
</pre>
<p>Translate the characters if they're part of punctuation at the end of a word.</p>
</div>
<div class="section" id="the-begnum-directive">
<h3><a class="toc-backref" href="#toc-entry-21">The BegNum Directive</a></h3>
<pre class="literal-block">
begNum <em>characters</em> <em>representation</em>
</pre>
<p>Translate the characters if they're at the beginning of a number.</p>
</div>
<div class="section" id="the-midnum-directive">
<h3><a class="toc-backref" href="#toc-entry-22">The MidNum Directive</a></h3>
<pre class="literal-block">
midNum <em>characters</em> <em>representation</em>
</pre>
<p>Translate the characters if they're in the middle of a number.</p>
</div>
<div class="section" id="the-endnum-directive">
<h3><a class="toc-backref" href="#toc-entry-23">The EndNum Directive</a></h3>
<pre class="literal-block">
endNum <em>characters</em> <em>representation</em>
</pre>
<p>Translate the characters if they're at the end of a number.</p>
</div>
</div>
<div class="section" id="character-classes">
<h2><a class="toc-backref" href="#toc-entry-24">Character Classes</a></h2>
<div class="section" id="the-class-directive">
<h3><a class="toc-backref" href="#toc-entry-25">The Class Directive</a></h3>
<pre class="literal-block">
class <em>name</em> <em>characters</em>
</pre>
<p>Define a new character class. A character class may not be used until it has
been defined.</p>
</div>
<div class="section" id="the-after-directive">
<h3><a class="toc-backref" href="#toc-entry-26">The After Directive</a></h3>
<pre class="literal-block">
after <em>class</em> <em>directive</em>
</pre>
<p>The specified directive is further constrained in that the matched character
sequence must be immediately preceded by a character belonging to the specified
class. If this directive is used more than once on the same line then the union
of the characters in all the classes is used.</p>
</div>
<div class="section" id="the-before-directive">
<h3><a class="toc-backref" href="#toc-entry-27">The Before Directive</a></h3>
<pre class="literal-block">
before <em>class</em> <em>directive</em>
</pre>
<p>The specified directive is further constrained in that the matched character
sequence must be immediately followed by a character belonging to the specified
class. If this directive is used more than once on the same line then the union
of the characters in all the classes is used.</p>
</div>
</div>
<div class="section" id="indicator-specification">
<h2><a class="toc-backref" href="#toc-entry-28">Indicator Specification</a></h2>
<div class="section" id="the-capsign-directive">
<h3><a class="toc-backref" href="#toc-entry-29">The CapSign Directive</a></h3>
<pre class="literal-block">
capSign <em>representation</em>
</pre>
<p>Define the symbol which capitalizes a single letter.</p>
</div>
<div class="section" id="the-begcaps-directive">
<h3><a class="toc-backref" href="#toc-entry-30">The BegCaps Directive</a></h3>
<pre class="literal-block">
begCaps <em>representation</em>
</pre>
<p>Define the symbol which begins a block of capital letters within a word.</p>
</div>
<div class="section" id="the-endcaps-directive">
<h3><a class="toc-backref" href="#toc-entry-31">The EndCaps Directive</a></h3>
<pre class="literal-block">
endCaps <em>representation</em>
</pre>
<p>Define the symbol which ends a block of capital letters within a word.</p>
</div>
<div class="section" id="the-letsign-directive">
<h3><a class="toc-backref" href="#toc-entry-32">The LetSign Directive</a></h3>
<pre class="literal-block">
letSign <em>representation</em>
</pre>
<p>Define the symbol which marks a letter which isn't part of a word.</p>
</div>
<div class="section" id="the-numsign-directive">
<h3><a class="toc-backref" href="#toc-entry-33">The NumSign Directive</a></h3>
<pre class="literal-block">
numSign <em>representation</em>
</pre>
<p>Define the symbol which marks the beginning of a number.</p>
</div>
</div>
<div class="section" id="special-directives">
<h2><a class="toc-backref" href="#toc-entry-34">Special Directives</a></h2>
<div class="section" id="the-replace-directive">
<h3><a class="toc-backref" href="#toc-entry-35">The Replace Directive</a></h3>
<pre class="literal-block">
replace <em>characters</em> <em>characters</em>
</pre>
<p>Translate the first character sequence into the second character sequence.
The replacement characters are then recontracted.</p>
</div>
<div class="section" id="the-emoji-directive">
<h3><a class="toc-backref" href="#toc-entry-36">The Emoji Directive</a></h3>
<pre class="literal-block">
emoji <em>language</em>
</pre>
<p>Translate an emoji character sequence into its description in the specified
language. The language operand is an ISO 639 two-letter language code.</p>
<p>This directive only works if at least ICU version 57 is installed.</p>
<p>This directive relies on data provided by the CLDR package.
CLDR stands for the Common Locale Data Repository project.
Knoqwn names for this package include:</p>
<ul class="simple">
<li>cldr-emoji-annotation</li>
<li>unicode-cldr</li>
</ul>
<p>At the time of this writing, this project is maintained at
<a class="reference external" href="https://github.com/unicode-org/cldr">https://github.com/unicode-org/cldr</a>.</p>
</div>
</div>
<div class="section" id="standard-directives">
<h2><a class="toc-backref" href="#toc-entry-37">Standard Directives</a></h2>
<div class="section" id="the-include-directive">
<h3><a class="toc-backref" href="#toc-entry-38">The Include Directive</a></h3>
<pre class="literal-block">
include <em>file</em> # <em>comment</em>
</pre>
<p>Use this directive to include the content of another file. It is recursive,
which means that an included file can itself include yet another file.
Care must be taken to ensure that an &quot;include loop&quot; is not created.</p>
<dl class="docutils">
<dt><em>file</em></dt>
<dd>The file to be included. It may be either a relative or an absolute path. If
relative, it is anchored at the directory containing the including file.</dd>
</dl>
</div>
</div>
<div class="section" id="operands">
<h2><a class="toc-backref" href="#toc-entry-39">Operands</a></h2>
<div class="section" id="the-string-operand">
<h3><a class="toc-backref" href="#toc-entry-40">The String Operand</a></h3>
<p>A <em>string</em> operand may be specified as a non-whitespace sequence of:</p>
<ul>
<li><p class="first">Any single character other than a backslash (\\) or a white-space
character.</p>
</li>
<li><p class="first">A backslash-prefixed special character. These are:</p>
<table border="1" class="docutils">
<colgroup>
<col width="21%" />
<col width="79%" />
</colgroup>
<tbody valign="top">
<tr><td>Sequence</td>
<td>Meaning</td>
</tr>
<tr><td><tt class="docutils literal">\b</tt></td>
<td>The backspace character.</td>
</tr>
<tr><td><tt class="docutils literal">\f</tt></td>
<td>The formfeed character.</td>
</tr>
<tr><td><tt class="docutils literal">\n</tt></td>
<td>The newline character.</td>
</tr>
<tr><td><tt class="docutils literal"><span class="pre">\o###</span></tt></td>
<td>The three-digit octal representation of a character.</td>
</tr>
<tr><td><tt class="docutils literal">\r</tt></td>
<td>The carriage return character.</td>
</tr>
<tr><td><tt class="docutils literal">\R</tt></td>
<td>The Unicode replacement character.</td>
</tr>
<tr><td><tt class="docutils literal">\s</tt></td>
<td>The space character.</td>
</tr>
<tr><td><tt class="docutils literal">\t</tt></td>
<td>The horizontal tab character.</td>
</tr>
<tr><td><tt class="docutils literal"><span class="pre">\u####</span></tt></td>
<td>The four-digit hexadecimal representation of a character.</td>
</tr>
<tr><td><tt class="docutils literal"><span class="pre">\U########</span></tt></td>
<td>The eight-digit hexadecimal representation of a character.</td>
</tr>
<tr><td><tt class="docutils literal">\v</tt></td>
<td>The vertical tab character.</td>
</tr>
<tr><td><tt class="docutils literal">\x##</tt></td>
<td>The two-digit hexadecimal representation of a character.</td>
</tr>
<tr><td><tt class="docutils literal">\X##</tt></td>
<td>(the case of the X and of the digits isn't significant)</td>
</tr>
<tr><td><tt class="docutils literal">\&lt;name&gt;</tt></td>
<td>The Unicode name of a character (use _ for space).</td>
</tr>
<tr><td><tt class="docutils literal">\{variable}</tt></td>
<td>The value of a variable.</td>
</tr>
<tr><td><tt class="docutils literal">\\</tt></td>
<td>A literal backslash.</td>
</tr>
<tr><td><tt class="docutils literal">\#</tt></td>
<td>A literal number sign.</td>
</tr>
</tbody>
</table>
</li>
</ul>
</div>
<div class="section" id="the-representation-operand">
<h3><a class="toc-backref" href="#toc-entry-41">The Representation Operand</a></h3>
<p>The contracted braille representation of a character sequence. Braille cells
are separated from one another by a minus (<tt class="docutils literal">-</tt>) sign. Each braille cell is
specified as a sequence of one to eight dot numbers. A dot number is a digit
within the range <tt class="docutils literal">1</tt>-<tt class="docutils literal">8</tt> as defined by the standard braille dot numbering
convention (see <a class="reference external" href="BrailleDots.html">Braille Dots</a> for details). The special dot number
<tt class="docutils literal">0</tt> means no dots, and may not be used in conjunction with any other dot
numbers.</p>
<p>The equals (<tt class="docutils literal">=</tt>) sign , when used all by itself, means that the <em>characters</em>
operand of the contraction directive is to be written without any translation.</p>
</div>
</div>
<div class="section" id="contraction-table-list">
<h2><a class="toc-backref" href="#toc-entry-42">Contraction Table List</a></h2>
<table border="1" class="docutils">
<colgroup>
<col width="50%" />
<col width="50%" />
</colgroup>
<thead valign="bottom">
<tr><th class="head">name</th>
<th class="head">description</th>
</tr>
</thead>
<tbody valign="top">
<tr><td>auto</td>
<td>locale-based autoselection</td>
</tr>
<tr><td>af</td>
<td>Afrikaans (contracted)</td>
</tr>
<tr><td>am</td>
<td>Amharic (uncontracted)</td>
</tr>
<tr><td>de</td>
<td>German</td>
</tr>
<tr><td>de-g0</td>
<td>German (uncontracted)</td>
</tr>
<tr><td>de-g1</td>
<td>German (basic contractions)</td>
</tr>
<tr><td>de-g2</td>
<td>German (contracted)</td>
</tr>
<tr><td>de-1998</td>
<td>German (contracted - 1998 standard)</td>
</tr>
<tr><td>de-2015</td>
<td>German (contracted - 2015 standard)</td>
</tr>
<tr><td>en</td>
<td>English</td>
</tr>
<tr><td>en_US</td>
<td>English (United States)</td>
</tr>
<tr><td>en-ueb-g1</td>
<td>English (Unified, uncontracted)</td>
</tr>
<tr><td>en-ueb-g2</td>
<td>English (Unified, contracted)</td>
</tr>
<tr><td>en-us-g2</td>
<td>English (United States, contracted)</td>
</tr>
<tr><td>es</td>
<td>Spanish (contracted)</td>
</tr>
<tr><td>fr</td>
<td>French</td>
</tr>
<tr><td>fr-g1</td>
<td>French (uncontracted)</td>
</tr>
<tr><td>fr-g2</td>
<td>French (contracted)</td>
</tr>
<tr><td>ha</td>
<td>Hausa (contracted)</td>
</tr>
<tr><td>id</td>
<td>Indonesian (contracted)</td>
</tr>
<tr><td>ipa</td>
<td>International Phonetic Alphabet</td>
</tr>
<tr><td>ja</td>
<td>Japanese (uncontracted)</td>
</tr>
<tr><td>ko</td>
<td>Korean</td>
</tr>
<tr><td>ko-g0</td>
<td>Korean (uncontracted)</td>
</tr>
<tr><td>ko-g1</td>
<td>Korean (partially contracted)</td>
</tr>
<tr><td>ko-g2</td>
<td>Korean (contracted)</td>
</tr>
<tr><td>lt</td>
<td>Lithuanian (uncontracted)</td>
</tr>
<tr><td>mg</td>
<td>Malagasy (contracted)</td>
</tr>
<tr><td>mun</td>
<td>Munda (contracted)</td>
</tr>
<tr><td>nl</td>
<td>Dutch (contracted)</td>
</tr>
<tr><td>ny</td>
<td>Chichewa (contracted)</td>
</tr>
<tr><td>pt</td>
<td>Portuguese (contracted)</td>
</tr>
<tr><td>ru</td>
<td>Russian (contracted)</td>
</tr>
<tr><td>si</td>
<td>Sinhalese (uncontracted)</td>
</tr>
<tr><td>sw</td>
<td>Swahili (contracted)</td>
</tr>
<tr><td>th</td>
<td>Thai (contracted)</td>
</tr>
<tr><td>zh_TW</td>
<td>Chinese (Taiwan, uncontracted)</td>
</tr>
<tr><td>zu</td>
<td>Zulu (contracted)</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>