| 1 |
# liblouis: Unified English Braille Code (Grade 1) |
| 2 |
# |
| 3 |
# ----------- |
| 4 |
#-name: Unified English braille, grade 1 |
| 5 |
#-index-name: English, unified, uncontracted |
| 6 |
#-display-name: Unified English uncontracted braille |
| 7 |
# |
| 8 |
#+language:en |
| 9 |
#+type:literary |
| 10 |
#+contraction:no |
| 11 |
#+grade:1 |
| 12 |
#+system:ueb |
| 13 |
# |
| 14 |
# TODO: Please add a reference to official documentation about |
| 15 |
# the implemented braille code. Preferably submit the documents |
| 16 |
# to https://github.com/liblouis/braille-specs. |
| 17 |
# ----------- |
| 18 |
# |
| 19 |
# Copyright (C) 2004-2008 ViewPlus Technologies, Inc. www.viewplus.com |
| 20 |
# Copyright (C) 2004-2006 JJB Software, Inc. www.jjb-software.com |
| 21 |
# Copyright (C) 2016 American Printing House for the Blind, Inc. www.aph.org |
| 22 |
# Copyright (C) 2016 Joseph Lee <[email protected]> |
| 23 |
# Copyright (C) 2021 RNIB, www.rnib.org.uk |
| 24 |
# |
| 25 |
# This file is part of liblouis. |
| 26 |
# |
| 27 |
# liblouis is free software: you can redistribute it and/or modify it |
| 28 |
# under the terms of the GNU Lesser General Public License as |
| 29 |
# published by the Free Software Foundation, either version 2.1 of the |
| 30 |
# License, or (at your option) any later version. |
| 31 |
# |
| 32 |
# liblouis is distributed in the hope that it will be useful, but |
| 33 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 34 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 35 |
# Lesser General Public License for more details. |
| 36 |
# |
| 37 |
# You should have received a copy of the GNU Lesser General Public |
| 38 |
# License along with liblouis. If not, see |
| 39 |
# <http://www.gnu.org/licenses/>. |
| 40 |
# |
| 41 |
#-maintainer: James Bowden <[email protected]> |
| 42 |
#-author: John J. Boyer <[email protected]> |
| 43 |
#-author: Mike Gray <[email protected]> |
| 44 |
#-author: Joseph Lee <[email protected]> |
| 45 |
|
| 46 |
include en-ueb-chardefs.uti UEB specific char defs. |
| 47 |
# some dots are undefined now |
| 48 |
include en-ueb-math.ctb UEB math from common linear format |
| 49 |
|
| 50 |
numsign 3456 number sign, just a dots operand |
| 51 |
numericmodechars ., |
| 52 |
nocontractsign 56 |
| 53 |
nonumsign 56 |
| 54 |
numericnocontchars abcdefghijABCDEFGHIJ |
| 55 |
|
| 56 |
# A capital ends numeric mode, so clean up extraneous letter indicators between a number |
| 57 |
# and a subsequent capital letter |
| 58 |
noback pass2 _$D[@6-56]$U @6 # handle "1234Card" |
| 59 |
noback pass2 _$D[@6-6-56]$U @6-6 # handle "1234CARD" |
| 60 |
noback pass2 _$D[@256-6-6-56]$U @256-6-6 # handle "1234.CARD" |
| 61 |
noback pass2 _$D[@256-6-56]$U @256-6 # handle "1234.Card" |
| 62 |
|
| 63 |
# Correct order of comma and numeric indicator |
| 64 |
match %a , %# 2-34569 force correct position of numeric indicator |
| 65 |
noback pass2 @3456-2-34569 @2-3456 Clear up extra indicator after the match line |
| 66 |
|
| 67 |
# Correct order of dot and numeric indicator |
| 68 |
match %a . %# 256-34569 force correct position of numeric indicator |
| 69 |
noback pass2 @3456-256-34569 @256-3456 Clear up extra indicator after the match line |
| 70 |
|
| 71 |
# numeric space |
| 72 |
noback correct _$d["\x00a0"]$d "\xE020" # change space to custom symbol representing numeric space |
| 73 |
nofor correct _$d["\xE020"]$d "\x00a0" |
| 74 |
litdigit \xE020 5a # add virtual dot to make distinction with other uses of dot 5 |
| 75 |
noback pass2 @5a @5 |
| 76 |
nofor pass2 [@3456]$D @3456#1=1 # enter numeric mode when number sign followed by digit is encountered |
| 77 |
nofor pass2 $D * |
| 78 |
nofor pass2 #1=1[@5]$D @5a # when in numeric mode interpret dot 5 as numeric space |
| 79 |
nofor pass2 $a *#1=0 # exit numeric mode when other character than digit or numeric space is encountered |
| 80 |
|
| 81 |
capsletter 6 |
| 82 |
begcapsword 6-6 |
| 83 |
endcapsword 6-3 |
| 84 |
lencapsphrase 3 |
| 85 |
begcapsphrase 6-6-6 |
| 86 |
endcapsphrase after 6-3 |
| 87 |
|
| 88 |
emphclass italic |
| 89 |
emphclass underline |
| 90 |
emphclass bold |
| 91 |
emphclass script |
| 92 |
emphclass transnote |
| 93 |
emphclass trans1 |
| 94 |
emphclass trans2 |
| 95 |
emphclass trans3 |
| 96 |
emphclass trans4 |
| 97 |
emphclass trans5 |
| 98 |
|
| 99 |
emphletter italic 46-23 |
| 100 |
begemphword italic 46-2 |
| 101 |
endemphword italic 46-3 |
| 102 |
lenemphphrase italic 3 |
| 103 |
begemphphrase italic 46-2356 |
| 104 |
endemphphrase italic after 46-3 |
| 105 |
|
| 106 |
emphletter bold 45-23 |
| 107 |
begemphword bold 45-2 |
| 108 |
endemphword bold 45-3 |
| 109 |
lenemphphrase bold 3 |
| 110 |
begemphphrase bold 45-2356 |
| 111 |
endemphphrase bold after 45-3 |
| 112 |
|
| 113 |
emphletter underline 456-23 |
| 114 |
begemphword underline 456-2 |
| 115 |
endemphword underline 456-3 |
| 116 |
lenemphphrase underline 3 |
| 117 |
begemphphrase underline 456-2356 |
| 118 |
endemphphrase underline after 456-3 |
| 119 |
|
| 120 |
emphletter script 4-23 |
| 121 |
begemphword script 4-2 |
| 122 |
endemphword script 4-3 |
| 123 |
lenemphphrase script 3 |
| 124 |
begemphphrase script 4-2356 |
| 125 |
endemphphrase script after 4-3 |
| 126 |
|
| 127 |
begemph transnote 4-46-126 |
| 128 |
endemph transnote 4-46-354 |
| 129 |
|
| 130 |
|
| 131 |
emphletter trans1 4-3456-23 |
| 132 |
begemphword trans1 4-3456-2 |
| 133 |
endemphword trans1 4-3456-3 |
| 134 |
lenemphphrase trans1 3 |
| 135 |
begemphphrase trans1 4-3456-2356 |
| 136 |
endemphphrase trans1 after 4-3456-3 |
| 137 |
|
| 138 |
emphletter trans2 45-3456-23 |
| 139 |
begemphword trans2 45-3456-2 |
| 140 |
endemphword trans2 45-3456-3 |
| 141 |
lenemphphrase trans2 3 |
| 142 |
begemphphrase trans2 45-3456-2356 |
| 143 |
endemphphrase trans2 after 45-3456-3 |
| 144 |
|
| 145 |
emphletter trans3 456-3456-23 |
| 146 |
begemphword trans3 456-3456-2 |
| 147 |
endemphword trans3 456-3456-3 |
| 148 |
lenemphphrase trans3 3 |
| 149 |
begemphphrase trans3 456-3456-2356 |
| 150 |
endemphphrase trans3 after 456-3456-3 |
| 151 |
|
| 152 |
emphletter trans4 5-3456-23 |
| 153 |
begemphword trans4 5-3456-2 |
| 154 |
endemphword trans4 5-3456-3 |
| 155 |
lenemphphrase trans4 3 |
| 156 |
begemphphrase trans4 5-3456-2356 |
| 157 |
endemphphrase trans4 after 5-3456-3 |
| 158 |
|
| 159 |
emphletter trans5 46-3456-23 |
| 160 |
begemphword trans5 46-3456-2 |
| 161 |
endemphword trans5 46-3456-3 |
| 162 |
lenemphphrase trans5 3 |
| 163 |
begemphphrase trans5 46-3456-2356 |
| 164 |
endemphphrase trans5 after 46-3456-3 |
| 165 |
|
| 166 |
# display/passthrough for unicode braille |
| 167 |
include braille-patterns.cti |