Debian Codegraph @

tables/en-ueb-math.ctb

raw
1 # liblouis: English (Unified) math definitions
2 #
3 # Copyright (C) 2016 American Printing House for the Blind, Inc. www.aph.org
4 #
5 # This file is part of liblouis.
6 #
7 # liblouis is free software: you can redistribute it and/or modify it
8 # under the terms of the GNU Lesser General Public License as
9 # published by the Free Software Foundation, either version 2.1 of the
10 # License, or (at your option) any later version.
11 #
12 # liblouis is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # Lesser General Public License for more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with liblouis. If not, see
19 # <http://www.gnu.org/licenses/>.
20
21 # Semantic character sequences
22 # Prefix characters, only definitions as they should always occur as pairs with other characters.
23
24 math \xf400 0
25 math \xf401 0
26 math \xf402 0
27 math \xf403 0
28 # Begin and end equations
29 replace \xf32e
30 replace \xf32f
31 # Subscript and superscript
32 math \xf320 26-126
33 replace \xf401\xf320
34 #always \xf402\xf320 345
35 math \xf321 35-126
36 replace \xf401\xf321
37 #always \xf402\xf321 345
38 # Underscript and overscript
39 math \xf322 46-26-126
40 replace \xf401\xf322
41 #always \xf402\xf322 345
42 math \xf323 46-35-126
43 replace \xf401\xf323
44 #always \xf402\xf323 345
45 # Roots
46 math \xf32a 146
47 math \xf32b 346
48 math \xf32c 146-35-126
49 #always \xf403\xf32a 345
50 # Fractions
51 math \xf500 12356
52 math \xf501 23456
53 math \xf503 46-34
54 # Grouping symbols
55 math \xf326 126
56 #math \xf327 345
57
58 # Protect against incorrect use of escapes or where escape not really needed
59 # eg. brackets from mfenced
60 replace \xf400
61 replace \xf401
62 replace \xf402
63 replace \xf403
64
65 # Corrections
66 # Remove grouping from around superscripts and subscripts
67 noback pass2 @35-126[$d1-5]@345 @35*
68 noback pass2 @26-126[$d1-5]@345 @26*
69 # Remove grouping from fractions
70 noback pass2 @12356-126[$d1-5]@345-46-34_2 @12356*
71 noback pass2 @46-34-126[$d1-5]@345-23456 @46-34*@23456