-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackages_old.py
executable file
·2154 lines (1995 loc) · 106 KB
/
packages_old.py
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
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
class symbol:
def __init__(self,c = u"\N{REPLACEMENT CHARACTER}",**kwargs):
self.c = c
self.kwargs = kwargs
class combining:
def __init__(self,c = u"\N{REPLACEMENT CHARACTER}"):
self.c = c
class map:
def __init__(self,m = None):
self.m = m
unsupported = symbol()
notimplmented = symbol()
notimplemented = symbol()
notsupported = symbol()
class LaTeX2e:
all_commands = {
#Table 1: LATEX 2e Escapable "Special" Characters
"$" : symbol(u"$"),
"%" : symbol(u"%"),
"_" : symbol(u"_"),
"}" : symbol(u"}"),
"&" : symbol(u"&"),
"#" : symbol(u"#"),
"{" : symbol(u"{"),
#Table 3: LATEX 2e Commands Defined to Work in Both Math and Text Mode
"P" : symbol(u"\N{PILCROW SIGN}"),
"S" : symbol(u"\N{SECTION SIGN}"),
"copyright" : symbol(u"\N{COPYRIGHT SIGN}"),
"dag" : symbol(u"\N{DAGGER}"),
"ddag" : symbol(u"\N{DOUBLE DAGGER}"),
"dots" : symbol(u"\N{HORIZONTAL ELLIPSIS}"),
"pounds" : symbol(u"\N{POUND SIGN}"),
#Table 5: Non-ASCII Letters (Excluding Accented Letters)
"aa" : symbol(u"\N{LATIN SMALL LETTER A WITH RING ABOVE}"),
"AA" : symbol(u"\N{LATIN CAPITAL LETTER A WITH RING ABOVE}"),
"AE" : symbol(u"\N{LATIN CAPITAL LETTER AE}"),
"ae" : symbol(u"\N{LATIN SMALL LETTER AE}"),
#"DH" : symbol(u"\N{LATIN CAPITAL LETTER ETH}"),
#"dh" : symbol(u"\N{LATIN SMALL LETTER ETH}"),
#"DJ" : symbol(u"\N{LATIN CAPITAL LETTER D WITH STROKE}"),
#"dj" : symbol(u"\N{LATIN SMALL LETTER D WITH STROKE}"),
"L" : symbol(u"\N{LATIN CAPITAL LETTER L WITH STROKE}"),
"l" : symbol(u"\N{LATIN SMALL LETTER L WITH STROKE}"),
#"NG" : symbol(u"\N{LATIN CAPITAL LETTER ENG}"),
#"ng" : symbol(u"\N{LATIN SMALL LETTER ENG}"),
"o" : symbol(u"\N{LATIN SMALL LETTER O WITH STROKE}"),
"O" : symbol(u"\N{LATIN CAPITAL LETTER O WITH STROKE}"),
"OE" : symbol(u"\N{LATIN CAPITAL LIGATURE OE}"),
"oe" : symbol(u"\N{LATIN SMALL LIGATURE OE}"),
"ss" : symbol(u"\N{LATIN SMALL LETTER SHARP S}"),
"SS" : symbol(u"\N{LATIN CAPITAL LETTER SHARP S}"),
#"TH" : symbol(u"\N{LATIN CAPITAL LETTER THORN}"),
#"th" : symbol(u"\N{LATIN SMALL LETTER THORN}"),
}
text_commands = {
#Table 2: Predefined LATEX 2e Text-mode Commands
"textasciicircum" : symbol(u"^"),
"textasciitilde" : symbol(u"~"),
"textasteriskcentered" : symbol(u"*"),
"textbackslash" : symbol(u"\\"),
"textbar" : symbol(u"|"),
"textbraceleft" : symbol(u"{"),
"textbraceright" : symbol(u"}"),
"textbullet" : symbol(u"\N{BULLET}"),
"textcopyright" : symbol(u"\N{COPYRIGHT SIGN}"),
"textdagger" : symbol(u"\N{DAGGER}"),
"textdaggerdbl" : symbol(u"\N{DOUBLE DAGGER}"),
"textdollar" : symbol(u"$"),
"textellipsis" : symbol(u"\N{HORIZONTAL ELLIPSIS}"),
"textemdash" : symbol(u"\N{EM DASH}"),
"textendash" : symbol(u"\N{EN DASH}"),
"textexclamdown" : symbol(u"\N{INVERTED EXCLAMATION MARK}"),
"textgreater" : symbol(u">"),
"textless" : symbol(u"<"),
"textordfeminine" : symbol(u"\N{FEMININE ORDINAL INDICATOR}"),
"textordmasculine" : symbol(u"\N{MASCULINE ORDINAL INDICATOR}"),
"textparagraph" : symbol(u"\N{PILCROW SIGN}"),
"textperiodcentered" : symbol(u"\N{MIDDLE DOT}"),
"textquestiondown" : symbol(u"\N{INVERTED QUESTION MARK}"),
"textquotedblleft" : symbol(u"\N{LEFT DOUBLE QUOTATION MARK}"),
"textquotedblright" : symbol(u"\N{RIGHT DOUBLE QUOTATION MARK}"),
"textquoteleft" : symbol(u"\N{LEFT SINGLE QUOTATION MARK}"),
"textquoteright" : symbol(u"\N{RIGHT SINGLE QUOTATION MARK}"),
"textregistered" : symbol(u"\N{REGISTERED SIGN}"),
"textsection" : symbol(u"\N{SECTION SIGN}"),
"textsterling" : symbol(u"\N{POUND SIGN}"),
"texttrademark" : symbol(u"\N{TRADE MARK SIGN}"),
"textunderscore" : symbol(u"_"),
"textvisiblespace" : symbol(u"\N{OPEN BOX}"),
#Table 17: Text-mode Accents
'"' : combining("\N{COMBINING DIAERESIS}"),
"'" : combining("\N{COMBINING ACUTE ACCENT}"),
"." : combining("\N{COMBINING DOT ABOVE}"),
"=" : combining("\N{COMBINING MACRON}"),
"^" : combining("\N{COMBINING CIRCUMFLEX ACCENT}"),
"`" : combining("\N{COMBINING GRAVE ACCENT}"),
#"|" : combining("\N{COMBINING VERTICAL LINE ABOVE}"),#fc package
"~" : combining("\N{COMBINING TILDE}"),
"b" : combining("\N{COMBINING MACRON BELOW}"),
"c" : combining("\N{COMBINING CEDILLA}"),
"d" : combining("\N{COMBINING DOT BELOW}"),
#"G" : combining("\N{COMBINING DOUBLE GRAVE ACCENT}"),#fc package
# "h" : combining("\N{COMBINING HOOK ABOVE}"),#vntx package
"H" : combining("\N{COMBINING DOUBLE ACUTE ACCENT}"),
#"k" : combining("\N{Combining Ogonek}"),#fontenc package
"r" : combining("\N{COMBINING RING ABOVE}"),
"t" : combining("\N{COMBINING DOUBLE INVERTED BREVE}"),
"u" : combining("\N{COMBINING DOUBLE INVERTED BREVE}"),
#"U" : notimplemented,
"v" : combining("\N{COMBINING CARON}"),
"textcircled" : combining("\N{COMBINING ENCLOSING CIRCLE}"),
}
math_commands = {
#Table 42: Math-Mode Versions of Text Symbols
"mathdollar" : symbol(u"$"),
"mathellipsis" : symbol(u"\N{HORIZONTAL ELLIPSIS}"),
"mathparagraph" : symbol(u"\N{PILCROW SIGN}"),
"mathsection" : symbol(u"\N{SECTION SIGN}"),
"mathsterling" : symbol(u"\N{POUND SIGN}"),
"mathunderscore" : symbol(u"_"),
#Table 44: Binary Operators
"amalg" : symbol(u"\N{AMALGAMATION OR COPRODUCT}"),
"ast" : symbol(u"*"),
"bigcirc" : symbol(u"\N{WHITE CIRCLE}"),
"bigtriangledown": symbol(u"\N{WHITE DOWN-POINTING TRIANGLE}"),
"bigtriangleup" : symbol(u"\N{WHITE UP-POINTING TRIANGLE}"),
"bullet" : symbol(u"\N{BULLET OPERATOR}"),
"cap" : symbol(u"\N{INTERSECTION}"),
"cdot" : symbol(u"\N{DOT OPERATOR}"),
"circ" : symbol(u"\N{RING OPERATOR}"),
"cup" : symbol(u"\N{UNION}"),
"dagger" : symbol(u"\N{DAGGER}"),
"ddagger" : symbol(u"\N{DOUBLE DAGGER}"),
"diamond" : symbol(u"\N{DIAMOND OPERATOR}"),
"div" : symbol(u"\N{DIVISION SIGN}"),
#"lhd" : symbol(u"\N{}"),
"mp" : symbol(u"\N{MINUS-OR-PLUS SIGN}"),
"odot" : symbol(u"\N{CIRCLED DOT OPERATOR}"),
"ominus" : symbol(u"\N{CIRCLED MINUS}"),
"oplus" : symbol(u"\N{CIRCLED PLUS}"),
"oslash" : symbol(u"\N{CIRCLED DIVISION SLASH}"),
"otimes" : symbol(u"\N{CIRCLED TIMES}"),
"pm" : symbol(u"\N{PLUS-MINUS SIGN}"),
#"rhd" : symbol(u"\N{}"),
"setminus" : symbol(u"\N{SET MINUS}"),
"sqcap" : symbol(u"\N{SQUARE CAP}"),
"sqcup" : symbol(u"\N{SQUARE CUP}"),
"star" : symbol(u"\N{STAR OPERATOR}"),
"times" : symbol(u"\N{MULTIPLICATION SIGN}"),
"triangleleft" : symbol(u"\N{WHITE LEFT-POINTING SMALL TRIANGLE}"),
"triangleright" : symbol(u"\N{WHITE RIGHT-POINTING SMALL TRIANGLE}"),
#"unlhd" : symbol(u"\N{}"),
#"unrhd" : symbol(u"\N{}"),
"uplus" : symbol(u"\N{MULTISET UNION}"),
"vee" : symbol(u"\N{LOGICAL OR}"),
"wedge" : symbol(u"\N{LOGICAL AND}"),
"wr" : symbol(u"\N{WREATH PRODUCT}"),
#Table 57: Variable-sized Math Operators
"bigcap" : symbol(u"\N{N-ARY INTERSECTION}"),
"bigcup" : symbol(u"\N{N-ARY UNION}"),
"bigodot" : symbol(u"\N{N-ARY CIRCLED DOT OPERATOR}"),
"bigoplus" : symbol(u"\N{N-ARY CIRCLED PLUS OPERATOR}"),
"bigotimes" : symbol(u"\N{N-ARY CIRCLED TIMES OPERATOR}"),
"bigsqcup" : symbol(u"\N{N-ARY SQUARE UNION OPERATOR}"),
"biguplus" : symbol(u"\N{N-ARY UNION OPERATOR WITH PLUS}"),
"bigvee" : symbol(u"\N{N-ARY LOGICAL OR}"),
"bigwedge" : symbol(u"\N{N-ARY LOGICAL AND}"),
"coprod" : symbol(u"\N{N-ARY COPRODUCT}"),
"int" : symbol(u"\N{INTEGRAL}"),
"oint" : symbol(u"\N{CONTOUR INTEGRAL}"),
"prod" : symbol(u"\N{N-ARY PRODUCT}"),
"sum" : symbol(u"\N{N-ARY SUMMATION}"),
#Table 85: Subset and Superset Relations
#"sqsubset" : symbol(u"\N{SQUARE IMAGE OF}"),
"sqsubseteq" : symbol(u"\N{SQUARE IMAGE OF OR EQUAL TO}"),
#"sqsupset" : symbol(u"\N{SQUARE ORIGINAL OF}"),
"sqsupseteq" : symbol(u"\N{SQUARE ORIGINAL OF OR EQUAL TO}"),
"subset" : symbol(u"\N{SUBSET OF}"),
"subseteq" : symbol(u"\N{SUBSET OF OR EQUAL TO}"),
"supset" : symbol(u"\N{SUPERSET OF}"),
"supseteq" : symbol(u"\N{SUPERSET OF OR EQUAL TO}"),
#Table 92: Inequalities
"geq" : symbol(u"\N{GREATER-THAN OR EQUAL TO}"),
"gg" : symbol(u"\N{MUCH GREATER-THAN}"),
"leq" : symbol(u"\N{LESS-THAN OR EQUAL TO}"),
"ll" : symbol(u"\N{MUCH LESS-THAN}"),
"neq" : symbol(u"\N{NOT EQUAL TO}"),
#Table 102: Arrows
"Downarrow" : symbol(u"\N{DOWNWARDS DOUBLE ARROW}"),
"downarrow" : symbol(u"\N{DOWNWARDS ARROW}"),
"hookleftarrow" : symbol(u"\N{LEFTWARDS ARROW WITH HOOK}"),
"hookrightarrow" : symbol(u"\N{RIGHTWARDS ARROW WITH HOOK}"),
#"leadsto" : symbol(u"\N{LONG RIGHTWARDS SQUIGGLE ARROW}"),
"leftarrow" : symbol(u"\N{LEFTWARDS ARROW}"),
"Leftarrow" : symbol(u"\N{LEFTWARDS DOUBLE ARROW}"),
"Leftrightarrow" : symbol(u"\N{LEFT RIGHT DOUBLE ARROW}"),
"leftrightarrow" : symbol(u"\N{LEFT RIGHT ARROW}"),
"longleftarrow" : symbol(u"\N{LONG LEFTWARDS ARROW}"),
"Longleftarrow" : symbol(u"\N{LONG LEFTWARDS DOUBLE ARROW}"),
"longleftrightarrow" : symbol(u"\N{LONG LEFT RIGHT ARROW}"),
"Longleftrightarrow" : symbol(u"\N{LONG LEFT RIGHT DOUBLE ARROW}"),
"longmapsto" : symbol(u"\N{LONG RIGHTWARDS ARROW FROM BAR}"),
"Longrightarrow" : symbol(u"\N{LONG RIGHTWARDS DOUBLE ARROW}"),
"longrightarrow" : symbol(u"\N{LONG RIGHTWARDS ARROW}"),
"mapsto" : symbol(u"\N{RIGHTWARDS ARROW FROM BAR}"),
"nearrow" : symbol(u"\N{NORTH EAST ARROW}"),
"nwarrow" : symbol(u"\N{NORTH WEST ARROW}"),
"Rightarrow" : symbol(u"\N{RIGHTWARDS DOUBLE ARROW}"),
"rightarrow" : symbol(u"\N{RIGHTWARDS ARROW}"),
"searrow" : symbol(u"\N{SOUTH EAST ARROW}"),
"swarrow" : symbol(u"\N{SOUTH WEST ARROW}"),
"uparrow" : symbol(u"\N{UPWARDS ARROW}"),
"Uparrow" : symbol(u"\N{UPWARDS DOUBLE ARROW}"),
"updownarrow" : symbol(u"\N{UP DOWN DOUBLE ARROW}"),
"Updownarrow" : symbol(u"\N{UP DOWN ARROW}"),
#Table 103: Harpoons
"leftharpoondown" : symbol(u"\N{LEFTWARDS HARPOON WITH BARB DOWNWARDS}"),
"leftharpoonup" : symbol(u"\N{LEFTWARDS HARPOON WITH BARB UPWARDS}"),
"rightharpoondown" : symbol(u"\N{RIGHTWARDS HARPOON WITH BARB DOWNWARDS}"),
"rightharpoonup" : symbol(u"\N{RIGHTWARDS HARPOON WITH BARB UPWARDS}"),
"rightleftharpoons" : symbol(u"\N{RIGHTWARDS HARPOON OVER LEFTWARDS HARPOON}"),
#Table 128: Log-like Symbols
"arccos" : symbol(u"arccos"),
"arcsin" : symbol(u"arcsin"),
"arctan" : symbol(u"arctan"),
"arg" : symbol(u"arg"),
"cos" : symbol(u"cos"),
"cosh" : symbol(u"cosh"),
"cot" : symbol(u"cot"),
"coth" : symbol(u"coth"),
"csc" : symbol(u"csc"),
"deg" : symbol(u"deg"),
"det" : symbol(u"det"),
"dim" : symbol(u"dim"),
"exp" : symbol(u"exp"),
"gcd" : symbol(u"gcd"),
"hom" : symbol(u"hom"),
"inf" : symbol(u"inf"),
"ker" : symbol(u"ker"),
"lg" : symbol(u"lg"),
"lim" : symbol(u"lim"),
"liminf" : symbol(u"lim inf"),
"limsup" : symbol(u"lim sup"),
"ln" : symbol(u"ln"),
"log" : symbol(u"log"),
"max" : symbol(u"max"),
"min" : symbol(u"min"),
"Pr" : symbol(u"Pr"),
"sec" : symbol(u"sec"),
"sin" : symbol(u"sin"),
"sinh" : symbol(u"sinh"),
"sup" : symbol(u"sup"),
"tan" : symbol(u"tan"),
"tanh" : symbol(u"tanh"),
#Table 131: Greek Letters
"alpha" : symbol(u"\N{GREEK SMALL LETTER ALPHA}"),
"beta" : symbol(u"\N{GREEK SMALL LETTER BETA}"),
"gamma" : symbol(u"\N{GREEK SMALL LETTER GAMMA}"),
"delta" : symbol(u"\N{GREEK SMALL LETTER DELTA}"),
"epsilon" : symbol(u"\N{GREEK LUNATE EPSILON SYMBOL}"),
"varepsilon" : symbol(u"\N{LATIN SMALL LETTER OPEN E}"),
"zeta" : symbol(u"\N{GREEK SMALL LETTER ZETA}"),
"eta" : symbol(u"\N{GREEK SMALL LETTER ETA}"),
"theta" : symbol(u"\N{GREEK SMALL LETTER THETA}"),
"vartheta" : symbol(u"\N{GREEK THETA SYMBOL}"),
"iota" : symbol(u"\N{GREEK SMALL LETTER IOTA}"),
"kappa" : symbol(u"\N{GREEK SMALL LETTER KAPPA}"),
"lambda" : symbol(u"\N{GREEK SMALL LETTER LAMDA}"),
"mu" : symbol(u"\N{GREEK SMALL LETTER MU}"),
"nu" : symbol(u"\N{GREEK SMALL LETTER NU}"),
"xi" : symbol(u"\N{GREEK SMALL LETTER XI}"),
"pi" : symbol(u"\N{GREEK SMALL LETTER PI}"),
"varpi" : symbol(u"\N{GREEK PI SYMBOL}"),
"rho" : symbol(u"\N{GREEK SMALL LETTER RHO}"),
"varrho" : symbol(u"\N{GREEK RHO SYMBOL}"),
"sigma" : symbol(u"\N{GREEK SMALL LETTER SIGMA}"),
"varsigma" : symbol(u"\N{GREEK SMALL LETTER FINAL SIGMA}"),
"tau" : symbol(u"\N{GREEK SMALL LETTER TAU}"),
"upsilon" : symbol(u"\N{GREEK SMALL LETTER UPSILON}"),
"phi" : symbol(u"\N{GREEK PHI SYMBOL}"),
"varphi" : symbol(u"\N{GREEK SMALL LETTER PHI}"),
"chi" : symbol(u"\N{GREEK SMALL LETTER CHI}"),
"psi" : symbol(u"\N{GREEK SMALL LETTER PSI}"),
"omega" : symbol(u"\N{GREEK SMALL LETTER OMEGA}"),
"Gamma" : symbol(u"\N{GREEK CAPITAL LETTER GAMMA}"),
"Delta" : symbol(u"\N{GREEK CAPITAL LETTER DELTA}"),
"Theta" : symbol(u"\N{GREEK CAPITAL LETTER THETA}"),
"Lambda" : symbol(u"\N{GREEK CAPITAL LETTER LAMDA}"),
"Xi" : symbol(u"\N{GREEK CAPITAL LETTER XI}"),
"Pi" : symbol(u"\N{GREEK CAPITAL LETTER PI}"),
"Sigma" : symbol(u"\N{GREEK CAPITAL LETTER SIGMA}"),
"Upsilon" : symbol(u"\N{GREEK CAPITAL LETTER UPSILON}"),
"Phi" : symbol(u"\N{GREEK CAPITAL LETTER PHI}"),
"Psi" : symbol(u"\N{GREEK CAPITAL LETTER PSI}"),
"Omega" : symbol(u"\N{GREEK CAPITAL LETTER OMEGA}"),
#Table 139: Letter-like Symbols
"bot" : symbol(u"\N{UP TACK}"),
"ell" : symbol(u"\N{SCRIPT SMALL L}"),
"exists" : symbol(u"\N{THERE EXISTS}"),
"forall" : symbol(u"\N{FOR ALL}"),
"hbar" : symbol(u"\N{PLANCK CONSTANT OVER TWO PI}"),
"Im" : symbol(u"\N{BLACK-LETTER CAPITAL I}"),
"imath" : symbol(u"\N{LATIN SMALL LETTER DOTLESS I}"),
"in" : symbol(u"\N{ELEMENT OF}"),
"jmath" : symbol(u"\N{LATIN SMALL LETTER DOTLESS J}"),
"ni" : symbol(u"\N{CONTAINS AS MEMBER}"),
"partial": symbol(u"\N{PARTIAL DIFFERENTIAL}"),
"Re" : symbol(u"\N{BLACK-LETTER CAPITAL R}"),
"top" : symbol(u"\N{DOWN TACK}"),
"wp" : symbol(u"\N{SCRIPT CAPITAL P}"),
#Table 164: Math-mode Accents
"acute" : combining(u"\N{COMBINING ACUTE ACCENT}"),
"bar" : combining(u"\N{COMBINING MACRON}"),
"breve" : combining(u"\N{COMBINING BREVE}"),
"check" : combining(u"\N{COMBINING CARON}"),
"ddot" : combining(u"\N{COMBINING DIAERESIS}"),
"dot" : combining(u"\N{COMBINING DOT ABOVE}"),
"grave" : combining(u"\N{COMBINING GRAVE ACCENT}"),
"hat" : combining(u"\N{COMBINING CIRCUMFLEX ACCENT}"),
"mathring": combining(u"\N{COMBINING RING ABOVE}"),
"tilde" : combining(u"\N{COMBINING TILDE}"),
"vec" : combining(u"\N{Combining Right Arrow Above}"),
#Table 169: Extensible Accents
"widetilde" : combining(u"\N{Combining Double Tilde}"),
"overleftarrow" : combining(),
"overline" : combining(),
"overbrace" : combining(),
"widehat" : combining(u"\N{Combining Double Circumflex Above}"),
"overrightarrow": combining(),
"underline" : combining(),
"sqrt" : combining(),
#Table 189: Dots
"cdotp" : symbol(u"\N{MIDDLE DOT}"),
"cdots" : symbol(u"\N{MIDLINE HORIZONTAL ELLIPSIS}"),
"colon" : symbol(u"\N{COLON}"),
"ddots" : symbol(u"\N{DOWN RIGHT DIAGONAL ELLIPSIS}"),
"ldots" : symbol(u"\N{HORIZONTAL ELLIPSIS}"),
"ldotp" : symbol(u"\N{FULL STOP}"),
"vdots" : symbol(u"\N{Vertical Ellipsis}"),
#Table 201: Miscellaneous LATEX 2e Math Symbols
"aleph" : symbol(u"\N{ALEF SYMBOL}"),
"angle" : symbol(u"\N{ANGLE}"),
"backslash" : symbol(u"\\"),
#"Box" : symbol(u"\N{WHITE SQUARE}"),
"clubsuit" : symbol(u"\N{BLACK CLUB SUIT}"),
#"Diamond" : symbol(u"\N{WHITE DIAMOND}"),
"diamondsuit": symbol(u"\N{WHITE DIAMOND SUIT}"),
"emptyset" : symbol(u"\N{EMPTY SET}"),
"natural" : symbol(u"\N{MUSIC NATURAL SIGN}"),
"heartsuit" : symbol(u"\N{WHITE HEART SUIT}"),
"infty" : symbol(u"\N{INFINITY}"),
#"mho" : symbol(u"\N{INVERTED OHM SIGN}"),
"nabla" : symbol(u"\N{NABLA}"),
"neg" : symbol(u"\N{NOT SIGN}"),
"prime" : symbol(u"\N{PRIME}"),
"sharp" : symbol(u"\N{MUSIC SHARP SIGN}"),
"spadesuit" : symbol(u"\N{BLACK SPADE SUIT}"),
"surd" : symbol(u"\N{SQUARE ROOT}"),
"triangle" : symbol(u"\N{WHITE UP-POINTING TRIANGLE}"),
}
class fontenc:
all_commands = {
#Table 5: Non-ASCII Letters (Excluding Accented Letters)
"DH" : symbol(u"\N{LATIN CAPITAL LETTER ETH}"),
"dh" : symbol(u"\N{LATIN SMALL LETTER ETH}"),
"DJ" : symbol(u"\N{LATIN CAPITAL LETTER D WITH STROKE}"),
"dj" : symbol(u"\N{LATIN SMALL LETTER D WITH STROKE}"),
"NG" : symbol(u"\N{LATIN CAPITAL LETTER ENG}"),
"ng" : symbol(u"\N{LATIN SMALL LETTER ENG}"),
"TH" : symbol(u"\N{LATIN CAPITAL LETTER THORN}"),
"th" : symbol(u"\N{LATIN SMALL LETTER THORN}"),\
#Table 8: Punctuation Marks Not Found in OT1
"guillemotleft" : symbol(u"\N{LEFT-POINTING DOUBLE ANGLE QUOTATION MARK}"),
"guillemotright" : symbol(u"\N{RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK}"),
"guilsinglleft" : symbol(u"\N{SINGLE LEFT-POINTING ANGLE QUOTATION MARK}"),
"guilsinglright" : symbol(u"\N{SINGLE RIGHT-POINTING ANGLE QUOTATION MARK}"),
"quotedblbase " : symbol(u"\N{QUOTATION MARK}"),
"quotesinglbase" : symbol(u"\N{DOUBLE LOW-9 QUOTATION MARK}"),
"textquotedbl" : symbol(u"\N{SINGLE LOW-9 QUOTATION MARK}"),
#Table 17: Text-mode Accents
"k" : combining("\N{Combining Ogonek}"),
}
class amsmath:
text_commands = {
#Table 4: AMS Commands Defined to Work in Both Math and Text Mode
"checkmark" : symbol(u"\N{CHECK MARK}"),
"circledR" : symbol(u"\N{REGISTERED SIGN}"),
"maltese" : symbol(u"\N{MALTESE CROSS}"),
}
math_commands = {
#Table 45: AMS Binary Operators
"barwedge" : symbol(u"\N{PROJECTIVE}"),
"boxdot" : symbol(u"\N{SQUARED DOT OPERATOR}"),
"boxminus" : symbol(u"\N{SQUARED MINUS}"),
"boxplus" : symbol(u"\N{SQUARED PLUS}"),
"boxtimes" : symbol(u"\N{SQUARED TIMES}"),
"Cap" : symbol(u"\N{DOUBLE INTERSECTION}"),
"centerdot" : symbol(u"\N{MIDDLE DOT}"),
"circledast" : symbol(u"\N{CIRCLED ASTERISK OPERATOR}"),
"circledcirc" : symbol(u"\N{CIRCLED RING OPERATOR}"),
"circleddash" : symbol(u"\N{CIRCLED DASH}"),
"Cup" : symbol(u"\N{DOUBLE UNION}"),
"curlyvee" : symbol(u"\N{CURLY LOGICAL OR}"),
"curlywedge" : symbol(u"\N{CURLY LOGICAL AND}"),
"divideontimes" : symbol(u"\N{DIVISION TIMES}"),
"dotplus" : symbol(u"\N{DOT PLUS}"),
"doublebarwedge" : symbol(u"\N{PERSPECTIVE}"),
"intercal" : symbol(u"\N{INTERCALATE}"),
"leftthreetimes" : symbol(u"\N{LEFT SEMIDIRECT PRODUCT}"),
"ltimes" : symbol(u"\N{LEFT NORMAL FACTOR SEMIDIRECT PRODUCT}"),
"rightthreetimes" : symbol(u"\N{RIGHT SEMIDIRECT PRODUCT}"),
"rtimes" : symbol(u"\N{RIGHT NORMAL FACTOR SEMIDIRECT PRODUCT}"),
"smallsetminus" : symbol(u"\N{SET MINUS}"),
"veebar" : symbol(u"\N{XOR}"),
#Table 58: AMS Variable-sized Math Operators
"iint" : symbol(u"\N{DOUBLE INTEGRAL}"),
"iiint" : symbol(u"\N{TRIPLE INTEGRAL}"),
"iiiint" : symbol(u"\N{QUADRUPLE INTEGRAL OPERATOR}"),
"idotsint" : symbol(u"\N{INTEGRAL}\{MIDLINE HORIZONTAL ELLIPSIS}\N{INTEGRAL}"),
#Table 68: AMS Binary Relations
"approxeq" : symbol(u"\N{APPROXIMATELY EQUAL TO}"),
"backepsilon" : symbol(u"\N{GREEK REVERSED LUNATE EPSILON SYMBOL}"),
"backsim" : symbol(u"\N{REVERSED TILDE}"),
"backsimeq" : symbol(u"\N{REVERSED TILDE EQUALS}"),
"because" : symbol(u"\N{BECAUSE}"),
"between" : symbol(u"\N{BETWEEN}"),
"Bumpeq" : symbol(u"\N{GEOMETRICALLY EQUIVALENT TO}"),
"bumpeq" : symbol(u"\N{DIFFERENCE BETWEEN}"),
"circeq" : symbol(u"\N{RING EQUAL TO}"),
"curlyeqprec" : symbol(u"\N{EQUAL TO OR PRECEDES}"),
"curlyeqsucc" : symbol(u"\N{EQUAL TO OR SUCCEEDS}"),
"doteqdot" : symbol(u"\N{GEOMETRICALLY EQUAL TO}"),
"eqcirc" : symbol(u"\N{RING IN EQUAL TO}"),
"fallingdotseq" : symbol(u"\N{APPROXIMATELY EQUAL TO OR THE IMAGE OF}"),
"multimap" : symbol(u"\N{MULTIMAP}"),
"pitchfork" : symbol(u"\N{PITCHFORK}"),
"precapprox" : symbol(u"\N{PRECEDES ABOVE ALMOST EQUAL TO}"),
"preccurlyeq" : symbol(u"\N{PRECEDES OR EQUAL TO}"),
"precsim" : symbol(u"\N{PRECEDES OR EQUIVALENT TO}"),
"risingdotseq" : symbol(u"\N{IMAGE OF OR APPROXIMATELY EQUAL TO}"),
"shortmid" : symbol(u"\N{DIVIDES}"),
"shortparallel" : symbol(u"\N{PARALLEL TO}"),
"smallfrown" : symbol(u"\N{FROWN}"),
"smallsmile" : symbol(u"\N{SMILE}"),
"succapprox" : symbol(u"\N{SUCCEEDS ABOVE ALMOST EQUAL TO}"),
"succcurlyeq" : symbol(u"\N{SUCCEEDS OR EQUAL TO}"),
"succsim" : symbol(u"\N{SUCCEEDS OR EQUIVALENT TO}"),
"therefore" : symbol(u"\N{THEREFORE}"),
"thickapprox" : symbol(u"\N{ALMOST EQUAL TO}"),
"thicksim" : symbol(u"\N{TILDE OPERATOR}"),
"varpropto" : symbol(u"\N{PROPORTIONAL TO}"),
"Vdash" : symbol(u"\N{FORCES}"),
"vDash" : symbol(u"\N{TRUE}"),
"Vvdash" : symbol(u"\N{TRIPLE VERTICAL BAR RIGHT TURNSTILE}"),
#Table 69: AMS Negated Binary Relations
"ncong" : symbol(u"\N{NEITHER APPROXIMATELY NOR ACTUALLY EQUAL TO}"),
"nmid" : symbol(u"\N{DOES NOT DIVIDE}"),
"nparallel" : symbol(u"\N{NOT PARALLEL TO}"),
"nprec" : symbol(u"\N{DOES NOT PRECEDE}"),
#"npreceq" : symbol(u"\N{PRECEDES ABOVE SINGLE-LINE EQUALS SIGN with slash}"),
"nshortmid" : symbol(u"\N{DOES NOT DIVIDE}",size = 'small'),
"nshortparallel" : symbol(u"\N{NOT PARALLEL TO}",size = 'small'),
"nsim" : symbol(u"\N{NOT TILDE}"),
"nsucc" : symbol(u"\N{DOES NOT SUCCEED}"),
#"nsucceq" : symbol(u"\N{SUCCEEDS ABOVE SINGLE-LINE EQUALS SIGN with slash}"),
"nvDash" : symbol(u"\N{NOT TRUE}"),
"nvdash" : symbol(u"\N{DOES NOT PROVE}"),
"nVDash" : symbol(u"\N{NEGATED DOUBLE VERTICAL BAR DOUBLE RIGHT TURNSTILE}"),
"precnapprox" : symbol(u"\N{PRECEDES ABOVE NOT ALMOST EQUAL TO}"),
"precnsim" : symbol(u"\N{PRECEDES BUT NOT EQUIVALENT TO}"),
"succnapprox" : symbol(u"\N{SUCCEEDS BUT NOT EQUIVALENT TO}"),
"succnsim" : symbol(u"\N{SUCCEEDS BUT NOT EQUIVALENT TO}"),
}
class fc:
all_commands = {
#Table 6: Letters Used to Typeset African Languages
"B" : map({
"D" : symbol(u"\N{LATIN CAPITAL LETTER D WITH STROKE}"),
"d" : symbol(u"\N{LATIN SMALL LETTER D WITH STROKE}"),
"H" : symbol(u"\N{LATIN CAPITAL LETTER H WITH STROKE}"),
"h" : symbol(u"\N{LATIN SMALL LETTER H WITH STROKE}"),
"t" : symbol(u"\N{LATIN SMALL LETTER T WITH STROKE}"),
"T" : symbol(u"\N{LATIN CAPITAL LETTER T WITH STROKE}"),
}),
"M" : map({
"d" : symbol(u"\N{LATIN SMALL LETTER D WITH TAIL}"),
"D" : symbol(u"\N{LATIN CAPITAL LETTER AFRICAN D}"),
"E" : symbol(u"\N{LATIN CAPITAL LETTER REVERSED E}"),
"e" : symbol(u"\N{LATIN SMALL LETTER TURNED E}"),
"t" : symbol(u"\N{LATIN SMALL LETTER T WITH RETROFLEX HOOK}"),
"T" : symbol(u"\N{LATIN CAPITAL LETTER T WITH RETROFLEX HOOK}"),
}),
"m" : map({
"b" : symbol(u"\N{LATIN SMALL LETTER B WITH HOOK}"),
"B" : symbol(u"\N{LATIN CAPITAL LETTER B WITH HOOK}"),
"C" : symbol(u"\N{LATIN CAPITAL LETTER C WITH HOOK}"),
"c" : symbol(u"\N{LATIN SMALL LETTER C WITH HOOK}"),
"D" : symbol(u"\N{LATIN CAPITAL LETTER D WITH HOOK}"),
"d" : symbol(u"\N{LATIN SMALL LETTER D WITH HOOK}"),
"E" : symbol(u"\N{LATIN CAPITAL LETTER OPEN E}"),
"e" : symbol(u"\N{LATIN SMALL LETTER OPEN E}"),
"f" : symbol(u"\N{LATIN SMALL LETTER F WITH HOOK}"),
"F" : symbol(u"\N{LATIN CAPITAL LETTER F WITH HOOK}"),
"G" : symbol(u"\N{LATIN CAPITAL LETTER GAMMA}"),
"g" : symbol(u"\N{LATIN SMALL LETTER GAMMA}"),
"I" : symbol(u"\N{LATIN CAPITAL LETTER IOTA}"),
"i" : symbol(u"\N{LATIN SMALL LETTER IOTA}"),
"J" : symbol(u"\N{LATIN CAPITAL LETTER N WITH LEFT HOOK}"),
"j" : symbol(u"\N{LATIN SMALL LETTER N WITH LEFT HOOK}"),
"K" : symbol(u"\N{LATIN CAPITAL LETTER K WITH HOOK}"),
"k" : symbol(u"\N{LATIN SMALL LETTER K WITH HOOK}"),
"N" : symbol(u"\N{LATIN CAPITAL LETTER N WITH LONG RIGHT LEG}"),
"n" : symbol(u"\N{LATIN SMALL LETTER N WITH LONG RIGHT LEG}"),
"o" : symbol(u"\N{LATIN SMALL LETTER OPEN O}"),
"O" : symbol(u"\N{LATIN CAPITAL LETTER OPEN O}"),
"P" : symbol(u"\N{LATIN CAPITAL LETTER P WITH HOOK}"),
"p" : symbol(u"\N{LATIN SMALL LETTER P WITH HOOK}"),
"s" : symbol(u"\N{LATIN SMALL LETTER ESH}"),
#"S" : symbol(u"\N{}"),
"t" : symbol(u"\N{LATIN SMALL LETTER T WITH HOOK}"),
"T" : symbol(u"\N{LATIN CAPITAL LETTER T WITH HOOK}"),
"u" : symbol(u"\N{LATIN SMALL LETTER V WITH HOOK}"),
"U" : symbol(u"\N{LATIN CAPITAL LETTER V WITH HOOK}"),
"v" : symbol(u"\N{LATIN SMALL LETTER V WITH HOOK}"),
"V" : symbol(u"\N{LATIN CAPITAL LETTER V WITH HOOK}"),
"Y" : symbol(u"\N{LATIN CAPITAL LETTER Y WITH HOOK}"),
"y" : symbol(u"\N{LATIN SMALL LETTER Y WITH HOOK}"),
"z" : symbol(u"\N{LATIN SMALL LETTER EZH}"),
"Z" : symbol(u"\N{LATIN CAPITAL LETTER EZH}"),
}),
"T": map({
"E" : symbol(u"\N{LATIN CAPITAL LETTER OPEN E}\N{Combining Tilde}"),
"e" : symbol(u"\N{LATIN SMALL LETTER OPEN E}\N{Combining Tilde}"),
"o" : symbol(u"\N{LATIN SMALL LETTER OPEN O}\N{Combining Tilde}"),
"O" : symbol(u"\N{LATIN CAPITAL LETTER OPEN O}\N{Combining Tilde}"),
}),
#Table 17: Text-mode Accents
"|" : combining("Combining Vertical Line Above"),
"G" : combining("\N{Combining Double Grave Accent}"),
"U" : combining("Combining Double Vertical Line Above"),
}
class vntex:
#Table 7: Letters Used to Typeset Vietnamese
all_commands = {
"OHORN" : symbol(u"\N{LATIN CAPITAL LETTER O WITH HORN}"),
"ohorn" : symbol(u"\N{LATIN SMALL LETTER O WITH HORN}"),
"UHORN" : symbol(u"\N{LATIN CAPITAL LETTER U WITH HORN}"),
"uhorn" : symbol(u"\N{LATIN SMALL LETTER U WITH HORN}"),
#Table 17: Text-mode Accents
"h" : combining("Combining Hook Above")
}
class pifont:
all_commnads = {
#Table 9: pifont Decorative Punctuation Marks
#this should be a function which returns chr(0x2700-32+ord(x))
#"ding" : {str(i):unichr(0x26E0+i) for i in range(0x20,0x100)}
}
class tipa:
all_commands = {
#Table 10: tipa Phonetic Symbols
"textbabygamma" : symbol(u"\N{LATIN SMALL LETTER RAMS HORN}"),
"textbarb" : unsupported,
#"textbarc" : symbol(u"\N{LATIN SMALL LETTER C WITH BAR}"),
"textbard" : unsupported,
"textbardotlessj" : symbol(u"\N{Latin Small Letter Dotless J with Stroke}"),
"textbarg" : unsupported,
"textbarglotstop" : symbol(u"\N{Latin Letter Glottal Stop with Stroke}"),
"textbari" : symbol(u"\N{Latin Small Letter I with Stroke}"),
"textbarl" : symbol(u"\N{Latin Small Letter L with Bar}"),
"textbaro" : symbol(u"\N{Latin Small Letter Barred O}"),
"textbarrevglotstop" : symbol(u"\N{Latin Letter Reversed Glottal Stop with Stroke}"),
"textbaru" : symbol(u"\N{Latin Small Letter U Bar}"),
"textbeltl" : symbol(u"\N{Latin Small Letter L with Belt}"),
"textbeta" : symbol(u"\N{Greek Small Letter Beta}"),
"textbullseye" : symbol(u"\N{Latin Letter Bilabial Click}"),
"textceltpal" : symbol(u"\N{ACUTE ACCENT}"),#???
"textchi" : symbol(u"\N{Greek Small Letter Chi}"),
"textcloseepsilon" : symbol(u"\N{Latin Small Letter Closed Open E}"),
"textcloserevepsilon" : symbol(u"\N{Latin Small Letter Closed Reversed Open E}"),
"textcommatailz" : symbol(u"\N{Latin Small Letter Z with Swash Tail}"),
"textcorner" : symbol(u"\N{Top Right Corner}"),
"textcrb" : symbol(u"\N{Latin Small Letter B with Stroke}"),
"textcrd" : symbol(u"\N{Latin Small Letter D with Stroke}"),
"textcrg" : symbol(u"\N{Latin Small Letter G with Stroke}"),
"textcrh" : symbol(u"\N{Latin Small Letter H with Stroke}"),
"textcrinvglotstop" : symbol(u"\N{Latin Letter Inverted Glottal Stop with Stroke}"),
"textcrlambda" : symbol(u"\N{Latin Small Letter Lambda with Stroke}"),
"textcrtwo" : symbol(u"\N{Latin Letter Two with Stroke}"),
"textctc" : symbol(u"\N{Latin Small Letter C with Curl}"),
"textctd" : symbol(u"\N{Latin Small Letter D with Curl}"),
"textctdctzlig" : unsupported,
"textctesh" : symbol(u"\N{Latin Small Letter Esh with Curl}"),
"textctj" : symbol(u"\N{Latin Small Letter J with Crossed-Tail}"),
"textctn" : symbol(u"\N{Latin Small Letter N with Curl}"),
"textctt" : symbol(u"\N{Latin Small Letter T with Curl}"),
"textcttctclig" : symbol(u"\N{Latin Small Letter Tc Digraph with Curl}"),
"textctyogh" : symbol(u"\N{Latin Small Letter Ezh with Curl}"),
"textctz" : symbol(u"\N{Latin Small Letter Z with Curl}"),
"textdctzlig" : symbol(u"\N{Latin Small Letter Dz Digraph with Curl}"),
"textdoublebaresh" :unsupported,
"textdoublebarpipe" : symbol(u"\N{Latin Letter Alveolar Click}"),
"textdoublebarslash" : symbol(u"\N{Not Equal To}"),
"textdoublepipe" : symbol(u"\N{LATIN LETTER LATERAL CLICK}"),#???
"textdoublevertline" : symbol(u"\N{DOUBLE VERTICAL LINE}"),#???
"textdownstep" : symbol(u"\N{Modifier Letter Raised Down Arrow}"),
"textdzlig" : symbol(u"\N{Latin Small Letter Dezh Digraph}"),
"textepsilon" : symbol(u"\N{Greek Small Letter Epsilon}"),
"textesh" : symbol(u"\N{Latin Small Letter Esh}"),
"textfishhookr" : unsupported,
"textg " : symbol(u"\N{Latin Small Letter G}"),
"textgamma" : symbol(u"\N{Latin Small Letter Gamma}"),
"textglobfall" : symbol(u"\N{SOUTH EAST ARROW}"),
"textglobrise" : unsupported,
"textglotstop" : symbol(u"\N{Latin Letter Glottal Stop}"),
"texthalflength" : symbol(u"\N{Modifier Letter Half Triangular Colon}"),
"texthardsign" : symbol(u"\N{Cyrillic Small Letter Hard Sign}"),
"texthooktop" : unsupported,
"texthtb" : symbol(u"\N{Latin Small Letter B with Hook}"),
#"texthtbardotlessj" : symbol(u"\N{LATIN SMALL LETTER DOTLESS J BAR HOOK}"),
"texthtbardotlessj" : unsupported,
"texthtc" : symbol(u"\N{Latin Small Letter C with Hook}"),
"texthtd" : symbol(u"\N{Latin Small Letter D with Hook}"),
"texthtg" : symbol(u"\N{Latin Small Letter G with Hook}"),
"texthth " : symbol(u"\N{Latin Small Letter H with Hook}"),
"texththeng" : unsupported,
"texthtk" : symbol(u"\N{Latin Small Letter K with Hook}"),
"texthtp" : symbol(u"\N{Latin Small Letter P with Hook}"),
"texthtq" : symbol(u"\N{Latin Small Letter Q with Hook}"),
"texthtrtaild " : unsupported,
"texthtscg" : symbol(u"\N{Latin Letter Small Capital G with Hook}"),
"texthtt" : unsupported,
"texthvlig" : unsupported,
"textinvglotstop" : symbol(u"\N{Latin Letter Inverted Glottal Stop}"),
"textinvscr" : symbol(u"\N{Latin Letter Small Capital Inverted R}"),
"textiota" : symbol(u"\N{Latin Small Letter Iota}"),
"textlambda" : symbol(u"\N{Greek Small Letter Lamda}"),
"textlengthmark" : symbol(u"\N{MODIFIER LETTER TRIANGULAR COLON}"),
"textlhookt" : symbol(u"\N{Latin Small Letter T with Palatal Hook}"),
"textlhtlongi" : unsupported,
"textlhtlongy" : symbol(u"\N{latin small letter turned h with fishhook}"),
"textlonglegr" : symbol(u"\N{LATIN SMALL LETTER R WITH LONG LEG}"),
"textlptr" : symbol(u"\N{Samaritan Vowel Sign Long I}"),
"textltailm" : symbol(u"\N{Latin Small Letter M with Hook}"),
"textltailn" : symbol(u"\N{Latin Small Letter N with Left Hook}"),
"textltilde" : symbol(u"\N{Latin Small Letter L with Middle Tilde}"),
"textlyoghlig" : unsupported, # l-ezh digraph?
"textObardotlessj" : symbol(u"\N{Latin Small Letter Dotless J with Stroke}"),
"textomega" : symbol(u"\N{Greek Small Letter Omega}"),
"textopencorner" : symbol(u"\N{Top Left Corner}"),
"textopeno" : symbol(u"\N{Latin Small Letter Open O}"),
"textpalhook" : combining(u"\N{Combining Palatalized Hook Below}"),
"textphi" : symbol(u"\N{Latin Small Letter Phi}"),
"textprimstress" : symbol(u"\N{Devanagari Stress Sign Udatta}"),
"textraiseglotstop" : symbol(u"\N{Modifier Letter Glottal Stop}"),
"textraisevibyi" : unsupported,
"textramshorns" : symbol(u"\N{Latin Small Letter Rams Horn}"),
"textrevapostrophe" : symbol(u"\N{Single High-Reversed-9 Quotation Mark}"),
"textreve" : symbol(u"\N{Latin Small Letter Reversed E}"),
"textrevepsilon" : unsupported , #there is a reversed closed epsilon and a reversed lunate epsilon but not this epsilon
"textrevglotstop" : symbol(u"\N{Latin Letter Pharyngeal Voiced Fricative}"),
"textrevyogh" : unsupported,
"textrhookrevepsilon" : unsupported,
"textrhookschwa" : symbol(u"\N{Latin Small Letter Schwa with Hook}"),
"textrhoticity" : unsupported,
"textrptr" : symbol(u"\N{Samaritan Mark Dagesh}"),
"textrtaild" : symbol(u"\N{Latin Small Letter D with Tail}"),
"textrtaill" : symbol(u"\N{Latin Small Letter Schwa with Hook}"),
"textrtailn" : symbol(u"\N{Latin Small Letter N with Retroflex Hook}"),
"textrtailr" : symbol(u"\N{Latin Small Letter R with Tail}"),
"textrtails" : symbol(u"\N{Latin Small Letter S with Hook}"),
"textrtailt" : symbol(u"\N{Latin Small Letter T with Retroflex Hook}"),
"textrtailz" : symbol(u"\N{Latin Small Letter Z with Retroflex Hook}"),
"textrthook" : combining(u"\N{Combining Retroflex Hook Below}"),
"textsca" : symbol(u"\N{Latin Letter Small Capital A}"),
"textscb" : symbol(u"\N{Latin Letter Small Capital B}"),
"textsce" : symbol(u"\N{Latin Letter Small Capital E}"),
"textscg" : symbol(u"\N{Latin Letter Small Capital G}"),
"textsch" : symbol(u"\N{Latin Letter Small Capital H}"),
"textschwa" : symbol(u"\N{Latin Small Letter Schwa}"),
"textsci" : symbol(u"\N{Latin Letter Small Capital I}"),
"textscj" : symbol(u"\N{Latin Letter Small Capital J}"),
"textscl" : symbol(u"\N{Latin Letter Small Capital L}"),
"textscn" : symbol(u"\N{Latin Letter Small Capital N}"),
"textscoelig" : symbol(u"\N{Latin Letter Small Capital Oe}"),
#"textscomega" : symbol(u"\N{Greek Letter Small Capital Omega}"),
"textscr" : symbol(u"\N{Latin Letter Small Capital R}"),
"textscripta" : symbol(u"\N{Latin Small Letter Alpha}"),
"textscriptg" : symbol(u"\N{Latin Small Letter Script G}"),
"textscriptv" : symbol(u"\N{Latin Small Letter V with Hook}"),
"textscu" : symbol(u"\N{Latin Letter Small Capital U}"),
"textscy" : symbol(u"\N{Latin Letter Small Capital Y}"),
"textsecstress" : unsupported,
"textsoftsign" : symbol(u"\N{Cyrillic Small Letter Soft Sign}"),
"textstretchc" : symbol(u"\N{Latin Letter Stretched C}"),
"texttctclig" : symbol(u"\N{Latin Small Letter Tc Digraph with Curl}"),
"textteshlig" : symbol(u"\N{Latin Small Letter Tesh Digraph}"),
"texttheta" : symbol(u"\N{Greek Small Letter Theta}"),
"textthorn" : symbol(u"\N{Latin Small Letter Thorn}"),
"texttoneletterstem" : unsupported,
"texttslig" : symbol(u"\N{Latin Small Letter Ts Digraph}"),
"textturna" : symbol(u"\N{Latin Small Letter Turned A}"),
"textturncelig" : unsupported,
"textturnh" : symbol(u"\N{Latin Small Letter Turned H}"),
"textturnk" : symbol(u"\N{Latin Small Letter Turned K}"),
"textturnlonglegr" : symbol(u"\N{Latin Small Letter Turned R with Long Leg}"),
"textturnm" : symbol(u"\N{Latin Small Letter Turned M}"),
"textturnmrleg" : symbol(u"\N{Latin Small Letter Turned M with Long Leg}"),
"textturnr" : symbol(u"\N{Latin Small Letter Turned R}"),
"textturnrrtail" : symbol(u"\N{Latin Small Letter Turned R with Hook}"),
"textturnscripta" : symbol(u"\N{Latin Small Letter Turned Alpha}"),
"textturnt" : symbol(u"\N{Latin Small Letter Turned T}"),
"textturnv" : symbol(u"\N{Latin Small Letter Turned V}"),
"textturnw" : symbol(u"\N{Latin Small Letter Turned W}"),
"textturny" : symbol(u"\N{Latin Small Letter Turned Y}"),
"textupsilon" : symbol(u"\N{Latin Small Letter Upsilon}"),
"textupstep" : symbol(u"\N{Modifier Letter Raised Up Arrow}"),
"textvertline" : symbol(u"\N{Vertical Line}"),
"textvibyi" : unsupported,
"textvibyy" : unsupported,
"textvibyy" : symbol(u"\N{Latin Small Letter Turned H with Fishhook and Tail}"),
"textwynn" : symbol(u"\N{Latin Letter Wynn}"),
"textyogh" : symbol(u"\N{Latin Capital Letter Yogh}"),
#Table 18: tipa Text-mode Accents
"textacutemacron" : combining(u"\N{Combining Macron}\N{Combining Acute Accent}"),
"textacutewedge" : combining(u"\N{Combining Caron}\N{Combining Acute Accent}"),
"textadvancing" : combining(u"\N{Combining Left Tack Below}"),
"textbottomtiebar" : combining(u"\N{Combining Double Breve Below}"),
"textbrevemacron" : combining(u"\N{Combining Macron}\N{Combining Breve}"),
"textcircumacute" : combining(u"\N{Combining Grave-Acute-Grave}"),
"textcircumdot" : combining(u"\N{Combining Dot Above}\N{Combining Circumflex Accent}"),
"textdotacute" : combining(u"\N{Combining Dot Above}\N{Combining Acute Accent}"),
"textdotbreve" : combining(u"\N{Combining Breve}\N{Combining Dot Above}"),#Combining Candrabindu??
"textdoublegrave" : combining(u"\N{Combining Double Grave Accent}"),
"textdoublevbaraccent" : combining(u""),
"textgravecircum" : combining(u"\N{Combining Grave-Acute-Grave}"),
"textgravedot" : combining(u"\N{Combining Grave Accent}\N{Combining Dot Above Right}"),
"textgravemacron" : combining(u"\N{Combining Macron}\N{Combining Grave Accent}"),
"textgravemid" : combining(u"\N{Combining Grave-Macron}"),
"textinvsubbridge" : combining(u"\N{Combining Inverted Bridge Below}"),
"textlowering" : combining(u"\N{Combining Down Tack Below}"),
"textmidacute" : combining(u"\N{Combining Macron-Acute}"),
"textovercross" : combining(u"\N{Combining X Above}"),
"textoverw" : combining(u"\N{Combining Latin Small Letter Flattened Open a Above}"),
"textpolhook" : combining(u"\N{Combining Ogonek}"),
"textraising" : combining(u"\N{Combining Up Tack Below}"),
"textretracting" : combining(u"\N{Combining Right Tack Below}"),
"textringmacron" : combining(u"\N{Combining Macron}\N{Combining Ring Above}"),
"textroundcap" : combining(u"\N{Combining Inverted Breve}"),
"textseagull" : combining(u"\N{Combining Seagull Below}"),
"textsubacute" : combining(u"\N{Combining Acute Accent Below}"),
"textsubarch" : combining(),
"textsubarch" : combining(u"\N{Combining Inverted Breve Below}"),
"textsubbar" : combining(u"\N{Combining Macron Below}"),
"textsubbridge" : combining(u"\N{Combining Bridge Below}"),
"textsubcircum" : combining(u"\N{Combining Circumflex Accent Below}"),
"textsubdot" : combining(u"\N{Combining Dot Below}"),
"textsubgrave" : combining(u"\N{Combining Grave Accent Below}"),
"textsublhalfring" : combining(u"\N{Combining Left Half Ring Below}"),
"textsubplus" : combining(u"\N{Combining Plus Sign Below}"),
"textsubrhalfring" : combining(u"\N{Combining Right Half Ring Below}"),
"textsubring" : combining(u"\N{Combining Ring Below}"),
"textsubsquare" : combining(u"\N{Combining Square Below}"),
"textsubtilde" : combining(u"\N{Combining Tilde Below}"),
"textsubumlaut" : combining(u"\N{Combining Diaeresis Below}"),
"textsubw" : combining(u"\N{Combining Inverted Double Arch Below}"),
"textsubwedge" : combining(u"\N{Combining Caron Below}"),
"textsuperimposetilde" : combining(u"\N{Combining Tilde Overlay}"),
"textsyllabic" : combining(u"\N{Combining Vertical Line Below}"),
"texttildedot" : combining(u"\N{Combining Dot Above}\N{Combining Tilde}"),
"texttoptiebar" : combining(u"\N{Combining Double Inverted Breve}"),
"textvbaraccent" : combining(),
}
class tipx:
all_commands = {
#Table 11: tipx Phonetic Symbols
"textaolig" : symbol(u"\N{Latin Small Letter Ao}"),
"textbenttailyogh" : symbol(u"\N{Latin Small Letter Ezh with Tail}"),
"textbktailgamma" : symbol(u"\N{Greek Small Letter Gamma}\N{Combining Retroflex Hook Below}"),
"textctinvglotstop" : unsupported,
"textctjvar" : symbol(u"\N{Latin Small Letter J with Crossed-Tail}"),
"textctstretchc" : unsupported,
"textctstretchcvar" : unsupported,
"textctturnt" : unsupported,
"textdblig" : symbol(u"\N{Latin Small Letter Db Digraph}"),
"textdoublebarpipevar" : symbol(u"\N{Latin Letter Alveolar Click}"),
"textdoublepipevar" : symbol(u"\N{Latin Letter Lateral Click}"),
"textdownfullarrow" : symbol(u"\N{Downwards Arrow}"),
"textfemale" : symbol(u"\N{Female Sign}"),
"textfrbarn" : unsupported,
#"textfrhookd" : symbol(u"\N{}"),
#"textfrhookdvar" : symbol(u"\N{}"),
#"textfrhookt" : symbol(u"\N{}"),
"textfrtailgamma" : symbol(u"\N{Greek Small Letter Gamma}\N{Combining Palatalized Hook Below}"),
#"textglotstopvari" : symbol(u"\N{}"),
#"textglotstopvarii" : symbol(u"\N{}"),
#"textglotstopvariii" : symbol(u"\N{}"),
"textgrgamma" : symbol(u"\N{Greek Small Letter Gamma}"),
#"textheng" : symbol(u"\N{LATIN SMALL LETTER H WITH PALATAL HOOK}"),
#"texthmlig" : symbol(u"\N{}"),
"texthtbardotlessjvar" : symbol(u"\N{Latin Small Letter Dotless J with Stroke and Hook}"),
#"textinvomega" : symbol(u"\N{}"),
#"textinvsca" : symbol(u"\N{}"),
#"textinvscripta" : symbol(u"\N{}"),
#"textlfishhookrlig" : symbol(u"\N{}"),
"textlhookfour" : symbol(u"4\N{Combining Palatalized Hook Below}"),
"textlhookp" : symbol(u"p\N{Combining Palatalized Hook Below}"),
#"textlhti" : symbol(u"\N{}"),
"textlooptoprevesh" : symbol(u"\N{Latin Letter Reversed Esh Loop}"),
"textnrleg " : symbol(u"\N{Latin Small Letter N with Long Right Leg}"),
"textObullseye" : symbol(u"\N{Latin Letter Bilabial Click}"),
"textpalhooklong" : combining(u"\N{Combining Palatalized Hook Below}"),
#"textpalhookvar" : symbol(u"\N{}"),
"textpipevar" : symbol(u"\N{Latin Letter Dental Click}"),
"textqplig" : symbol(u"\N{Latin Small Letter Qp Digraph}"),
"textrectangle" : symbol(u"\N{Raised Square}"),
#"textretractingvar" : symbol(u"\N{}"),
#"textrevscl" : symbol(u"\N{}"),
"textrevscr" : symbol(u"\N{Latin Letter Small Capital Reversed R}"),
"textrhooka" : symbol(u"\N{Latin Small Letter a with Retroflex Hook}"),
"textrhooke" : symbol(u"\N{Latin Small Letter E with Retroflex Hook}"),
"textrhookepsilon" : symbol(u"\N{Latin Small Letter Open E with Retroflex Hook}"),
"textrhookopeno" : symbol(u"\N{Latin Small Letter Open O with Retroflex Hook}"),
"textrtailhth" : symbol(u"\N{Latin Small Letter H with Hook}\N{Combining Retroflex Hook Below}"),
"textrthooklong" : combining(u"\N{Combining Retroflex Hook Below}"),
#"textscaolig" : symbol(u"\N{}"),
#"textscdelta" : symbol(u"\N{}"),
"textscf" : symbol(u"\N{Latin Letter Small Capital F}"),
"textsck" : symbol(u"\N{Latin Letter Small Capital K}"),
"textscm" : symbol(u"\N{Latin Letter Small Capital M}"),
"textscp" : symbol(u"\N{Latin Letter Small Capital P}"),
#"textscq" : symbol(u"\N{}"),
"textspleftarrow" : combining(u"\N{Combining Left Arrow Above}"),
"textstretchcvar" : symbol(u"\N{Latin Letter Stretched C}"),
"textsubdoublearrow" : combining(u"\N{Combining Left Right Arrow Below}"),
"textsubrightarrow" : symbol(u"\N{Combining Double Rightwards Arrow Below}"),
#"textthornvari" : symbol(u"\N{}"),
#"textthornvarii" : symbol(u"\N{}"),
#"textthornvariii" : symbol(u"\N{}"),
#"textthornvariv" : symbol(u"\N{}"),
#"textturnsck" : symbol(u"\N{}"),
#"textturnscu" : symbol(u"\N{}"),
#"textturnthree" : symbol(u"\N{}"),
#"textturntwo" : symbol(u"\N{}"),
#"textuncrfemale" : symbol(u"\N{}"),
"textupfullarrow" : symbol(u"\N{Upwards Arrow}"),
}
class wsuipa:
all_commands = {
"babygamma" : symbol(u"\N{Latin Small Letter Gamma}"),
#"barb" : symbol(u"\N{}"),
#"bard" : symbol(u"\N{}"),
"bari" : symbol(u"\N{Latin Small Letter I with Stroke}"),
"barl" : symbol(u"\N{Latin Small Letter L with Bar}"),
"baro" : symbol(u"\N{Latin Small Letter Barred O}"),
#"barp" : symbol(u"\N{}"),
"barsci" : symbol(u"\N{Latin Small Capital Letter I with Stroke}"),
"barscu" : symbol(u"\N{Latin Small Capital Letter U with Stroke}"),
#"baru" : symbol(u"\N{}"),
"clickb" : symbol(u"\N{Latin Letter Bilabial Click}"),
"textstretchc" : symbol(u"\N{Latin Letter Stretched C}"),
"clickt" : symbol(u"\N{Latin Small Letter Turned T}"),
"closedniomega" : symbol(u"\N{Latin Small Letter Closed Omega}"),
"closedrevepsilon" : symbol(u"\N{Latin Small Letter Closed Reversed Open E}"),
"crossb" : symbol(u"\N{Latin Small Letter B with Stroke}"),
"crossd" : symbol(u"\N{Latin Small Letter D with Stroke}"),
"crossh" : symbol(u"\N{Latin Small Letter H with Stroke}"),
"crossnilambda" : symbol(u"\N{Latin Small Letter Lambda with Stroke}"),
"curlyc" : symbol(u"\N{Latin Small Letter C with Curl}"),
"curlyesh" : symbol(u"\N{Latin Small Letter Esh with Curl}"),
"curlyyogh" : symbol(u"\N{Latin Small Letter Ezh with Curl}"),
"curlyz" : symbol(u"\N{Latin Small Letter Z with Curl}"),
#"dlbari" : symbol(u"\N{}"),
"dz" : symbol(u"\N{Latin Small Letter Dezh Digraph}"),
#"ejective" : symbol(u"\N{}"),
"eng" : symbol(u"\N{Latin Small Letter Eng}"),
#"er" : symbol(u"\N{}"),
"esh" : symbol(u"\N{Latin Small Letter Esh}"),
"eth" : symbol(u"\N{Latin Small Letter Eth}"),
"flapr" : symbol(u"\N{Latin Small Letter R with Fishhook}"),
"glotstop" : symbol(u"\N{Latin Letter Glottal Stop}"),
"hookb" : symbol(u"\N{Latin Small Letter B with Hook}"),
"hookd" : symbol(u"\N{Latin Small Letter D with Tail}"),
"hookg" : symbol(u"\N{Latin Small Letter G with Hook}"),
"hookh" : symbol(u"\N{Latin Small Letter H with Hook}"),
#"hookheng" : symbol(u"\N{}"),
"hookrevepsilon" : symbol(u"\N{Latin Small Letter Reversed Open E with Hook}"),
"hv" : symbol(u"\N{Latin Small Letter Hv}"),
"inva" : symbol(u"\N{Latin Small Letter Turned A}"),
#"invf" : symbol(u"\N{}"),
"invglotstop" : symbol(u"\N{Latin Letter Inverted Glottal Stop}"),
"invh" : symbol(u"\N{Latin Small Letter Turned H}"),
"invlegr" : symbol(u"\N{Latin Small Letter Turned R with Long Leg}"),
"invm" : symbol(u"\N{Latin Small Letter Turned M}"),
"invr" : symbol(u"\N{Latin Small Letter Turned R}"),
"invscr" : symbol(u"\N{Latin Letter Small Capital Turned R}"),
"invscripta" : symbol(u"\N{Latin Small Letter Turned Alpha}"),
"invv" : symbol(u"\N{Latin Small Letter Turned V}"),
"invw" : symbol(u"\N{Latin Small Letter Turned W}"),
"invy" : symbol(u"\N{Latin Small Letter Turned Y}"),
"ipagamma" : symbol(u"\N{Latin Capital Letter Gamma}"),
"labdentalnas" : symbol(u"\N{Latin Small Letter M with Hook}"),
#"latfric" : symbol(u"\N{Latin Small Letter L with Retroflex Hook and Belt}"),
"legm" : symbol(u"\N{Latin Small Letter Turned M with Long Leg}"),
"legr" : symbol(u"\N{Latin Small Letter R with Long Leg}"),
"lz" : symbol(u"\N{Latin Small Letter Lezh}"),
"nialpha" : symbol(u"\N{Greek Small Letter Alpha}"),
"nibeta" : symbol(u"\N{Greek Small Letter Beta}"),
"nichi" : symbol(u"\N{Greek Small Letter Chi}"),
"niepsilon" : symbol(u"\N{Greek Small Letter Epsilon}"),
"nigamma" : symbol(u"\N{Greek Small Letter Gamma}"),
"niiota" : symbol(u"\N{Greek Small Letter Iota}"),
"nilambda" : symbol(u"\N{Greek Small Letter Lamda}"),
"niomega" : symbol(u"\N{Greek Small Letter Omega}"),
"niphi" : symbol(u"\N{Greek Phi Symbol}"),
"nisigma" : symbol(u"\N{Greek Small Letter Sigma}"),
"nitheta" : symbol(u"\N{Greek Small Letter Theta}"),
"niupsilon" : symbol(u"\N{Latin Small Letter Upsilon}"),
"nj" : symbol(u"\N{Latin Small Letter N with Left Hook}"),
"oo" : symbol(u"\N{Latin Small Letter Oo}"),
"openo" : symbol(u"\N{Latin Small Letter Open O}"),
"reve" : symbol(u"\N{Latin Small Letter Reversed E}"),
#"reveject" : symbol(u"\N{}"),
#"revepsilon" : symbol(u"\N{}"),
"revglotstop" : symbol(u"\N{Latin Letter Pharyngeal Voiced Fricative}"),
"scd" : symbol(u"\N{Latin Letter Small Capital D}"),
"scg" : symbol(u"\N{Latin Letter Small Capital G}"),
"schwa" : symbol(u"\N{Latin Small Letter Schwa}"),
"sci" : symbol(u"\N{Latin Letter Small Capital I}"),
"scn" : symbol(u"\N{Latin Letter Small Capital N}"),
"scr" : symbol(u"\N{Latin Letter Small Capital R}"),
"scripta" : symbol(u"\N{Latin Small Letter Alpha}"),
"scriptg" : symbol(u"\N{Latin Small Letter Script G}"),
#"scriptv" : symbol(u"\N{}"),
"scu" : symbol(u"\N{Latin Letter Small Capital U}"),
"scy" : symbol(u"\N{Latin Letter Small Capital Y}"),
#"slashb" : symbol(u"\N{}"),
"slashc" : symbol(u"\N{Latin Small Letter C with Stroke}"),
#"slashd" : symbol(u"\N{}"),
#"slashu" : symbol(u"\N{}"),
"taild" : symbol(u"\N{Latin Small Letter D with Tail}"),