1 # liblouis: Nemeth 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 chardefs.cti All character definition opcodes
33 include nemethdefs.cti
36 multind 56-6 letsign capsign
45 # Letters are defined in en-chardefs
54 always # 35-2345 print number sign before number
62 always ! 12346 factorial
68 always ~~ 4-156-5-4-156
81 context ["\X25A1"]$d @1246-256-5
82 context ["\X25A0"]$d @1246-456-256-5
83 always \x00b0 45-46-16
86 # semantic character pairs
116 # Function names and abbreviations
117 always acos 1-14-135-234-a
118 always antilog 1-1345-2345-24-123-135-1234-a
119 always arc 1-1235-14-a
120 always arccos 1-1235-14-14-135-234-a
121 always arg 1-1235-1245-a
122 always asin 1-234-24-1345-a
123 always atan 1-2345-1-1345-a
124 always colog 14-123-135-1245-a
125 always cos 14-135-234-a
126 always cosh 14-135-234-125-a
127 always cot 14-135-2345-a
128 always coth 14-135-2345-125-a
129 always covers 14-135-1236-15-1235-234-a
130 always csc 14-234-14-a
131 always csch 14-234-14-125-a
132 always erf 15-1235-124-a
133 always inf 24-1345-124-a
135 always log 123-135-1234-a
136 always max 134-1-1346-a
137 always min 134-24-1345-a
138 always sec 234-15-14-a
139 always sech 234-15-14-125-a
140 always sin 234-24-1345-a
141 always sinh 234-24-1345-125-a
142 always tan 2345-1-1345-a
143 always tanh 2345-1-135-125-a
144 always vers 1236-15-1235-234-a
148 # computer braille character sequences
171 # get rid of base-line ind. after subscripts
172 pass2 @56[$d1-5]@5!$d *
173 # insert another superscript ind. on doube superscripts
174 pass2 @45[]$d@5-5 @45
175 #get rid of extra baseline inds.
179 pass2 @5-1b-15 @1b-15
180 # get rid rid of superscript ind. on prime sign
182 # Put 456 in mixed numbers
184 pass2 @456-1456!$s3-8[]@3456 @456
185 # Put number sign on numbers after spaces
188 pass2 @1b-12[]$d @3456
190 # fix anomaly with superscripts
193 # Fix single letter and digit with overbar
194 pass2 @5$l[@126-12456] @156
195 pass2 @5-6$l[@126-12456] @156
198 # get rid of space for overscripts
203 pass2 @a-12456 @12456
204 # fix complex fraction begin and end (not perfectly)
205 pass2 @1456-1456 @6-1456-1456
206 pass2 @3456-3456 @3456-6-3456
207 # Fix lim with overbar sign
208 pass2 @5-123-24-134-126-12456 @126-123-24-134
209 # Get rid of open paren before matrices
210 pass2 @12356-4-6-12356 @4-6-12356
211 pass2 @1256-4-6-12356 @4-6-12356
212 # take off baseline ind. comma space
214 pass2 @1b-12[]$d @3456 number sign before digit at beginning
215 pass2 @1b-12-36[]$d @3456 number sign before minus before digit at beginning