1 # liblouis: Marburg maths Table for mathematics
3 # Based on the Linux screenreader BRLTTY, copyright (C) 1999-2006 by
6 # Copyright (C) 2004, 2005, 2006
7 # ViewPlus Technologies, Inc. www.viewplus.com
9 # JJB Software, Inc. www.jjb-software.com
12 # This file is free software; you can redistribute it and/or modify it
13 # under the terms of the Lesser or Library GNU General Public License
15 # Free Software Foundation; either version 3, or (at your option) any
18 # This file is distributed in the hope that it will be useful, but
19 # WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # Library GNU General Public License for more details.
23 # You should have received a copy of the Library GNU General Public
24 # License along with this program; see the file COPYING. If not, write
26 # the Free Software Foundation, 51 Franklin Street, Fifth Floor,
27 # Boston, MA 02110-1301, USA.
29 # Maintained by John J. Boyer john.boyer@jjb-software.com
30 # Updated 6-18-08 by Mike Sivill <mike.sivill@viewplus.com>
32 include marburg_single_cell_defs.cti
33 include marburg_unicode_defs.cti
34 # grouping definitions are character-definition rules
35 grouping mrow \x0001\x0002 1e,2e
36 grouping mfrac \x0003\x0004 3e,4e
37 grouping brackets \x0005\x0006 126,345
47 # litdigit opcodes must be in this table, not the single-cell table.
48 include litdigits6Dots.uti
50 # No letsign but endnum for letters a-j.
62 # Ordinary translation entries
80 always # 35-2345 print number sign before number
83 pass2 [{mrow]@126/@345}mrow ?
84 pass2 @126[{mrow]/}mrow@345 ?
97 # swap opcodes for replacement and testing.
98 swapcd dropped 0123456789 356,2,23,25,456,26,235,2356,236,35
99 swapdd upnum 245,1,12,14,145,15,124,1245,125,24 0,0,0,0,0,0,0,0,0,0
100 swapdd lownum 356,2,23,25,256,26,235,2356,236,35 0,0,0,0,0,0,0,0,0,0
102 # now we start doing the real work
105 correct {mrow$ld1-20[}mrow] ?
106 correct "\eb"[{mrow]/}mrow"\ee" ?
107 context "\eb"[]$l"\ee" @56
108 context "\eb"[]","$l"\ee" @56
109 context {mfrac$d1-10[]"@456-34"$d1-10}mfrac #1=1
110 # context []"@456-34"$d1-10}mfrac #1=1
111 context []"@346"$d1-10"@12456" #1=1
112 context []"@16"$d1-10"@12456" #1=1
113 # context []"@146"$d1-10 #1=1
114 context #1=1$d1-10 #1=0%dropped
116 # exactdots opcodes for dot patterns in ukmaths.sem
128 # Function names and abbreviations
131 word cosh 1246-125-14
132 word sinh 1246-125-234
133 word tanh 1246-125-2345
134 word cosech 1246-125-126
135 word coth 1246-125-1256
136 word sech 1246-125-36
144 word arccosh 1246-236-14
145 word arcsinh 1246-236-234
146 word arctanh 1246-236-2345
147 word arccosech 1246-236-126
148 word arccoth 1246-236-1256
149 word arcsech 1246-236-36
151 word arccos 1246-4-14
152 word antilog 1246-4-123
153 word arcsin 1246-4-234
154 word arctan 1246-4-2345
155 word arccosec 1246-4-126
156 word arccot 1246-4-1256
157 word arcsec 1246-4-25
158 word colog 1246-45-123
161 pass2 [@3456]%lownum1-10 ?
162 pass2 [@456-34-3456]%lownum1-10 ?
165 pass3 @346%lownum1-10[@12456] ?
166 pass3 @16[%lownum1-10]@12456 *
167 pass3 {mfrac[@3456%upnum1-10%lownum1-10]}mfrac *