| 1 |
# liblouis: Russian mathematical Braille definitions |
| 2 |
# |
| 3 |
# Mathematical notation follows the Russian "System of Symbols for Math, |
| 4 |
# Physics, Chemistry, and Astronomy" (Bykov et al., 2nd ed., 1982; reprinted |
| 5 |
# 2009) and the Guidelines for edition of mass-distribution Braille |
| 6 |
# publications. This subtable is included by ru-litbrl.ctb after digit and |
| 7 |
# Latin-letter definitions. |
| 8 |
# |
| 9 |
# Copyright (C) 2020-2022, 2025 Andrey Yakuboy <[email protected]> |
| 10 |
# Copyright (C) 2026 Danil Kostenkov <[email protected]> |
| 11 |
# |
| 12 |
# This file is part of liblouis. |
| 13 |
# |
| 14 |
# liblouis is free software: you can redistribute it and/or modify it |
| 15 |
# under the terms of the GNU Lesser General Public License as |
| 16 |
# published by the Free Software Foundation, either version 2.1 of the |
| 17 |
# License, or (at your option) any later version. |
| 18 |
# |
| 19 |
# liblouis is distributed in the hope that it will be useful, but |
| 20 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 22 |
# Lesser General Public License for more details. |
| 23 |
# |
| 24 |
# You should have received a copy of the GNU Lesser General Public |
| 25 |
# License along with liblouis. If not, see |
| 26 |
# <http://www.gnu.org/licenses/>. |
| 27 |
|
| 28 |
# Semantic characters for structured mathematics. |
| 29 |
# |
| 30 |
# F32E/F32F and F400-F403 reuse structural code points already consumed by |
| 31 |
# en-ueb-math.ctb. The remaining PUA characters define a proposed, table-local |
| 32 |
# input contract for a prospective structured-math producer. They are not part |
| 33 |
# of the Russian sources or a public interchange standard. No LibLouisUTDML |
| 34 |
# formatter currently emits this Russian-specific stream, and this table does |
| 35 |
# not depend on such a formatter already being implemented. The tokens |
| 36 |
# distinguish structures that can not be represented unambiguously by plain |
| 37 |
# Unicode. F401 suppresses an opening indicator, F402 marks a closing |
| 38 |
# indicator, and F403 marks an indexed root. F328 and F329 add the two |
| 39 |
# separators required by Russian mathematical braille. |
| 40 |
|
| 41 |
noback math \xf400 0 # semantic prefix |
| 42 |
noback math \xf401 0 # suppress opening indicator |
| 43 |
noback math \xf402 0 # closing-indicator prefix |
| 44 |
noback math \xf403 0 # indexed-root prefix |
| 45 |
|
| 46 |
replace \xf32e # begin expression |
| 47 |
replace \xf32f # end expression |
| 48 |
noback math \xf328 6 # mathematical punctuation separator |
| 49 |
noback math \xf329 5 # disambiguator |
| 50 |
|
| 51 |
# Right/left lower and upper indices. An upper index is also the exponent |
| 52 |
# primitive; source structure determines which mathematical meaning applies. |
| 53 |
noback math \xf320 16 |
| 54 |
replace \xf401\xf320 |
| 55 |
noback always \xf402\xf320 156 |
| 56 |
noback math \xf321 34 |
| 57 |
replace \xf401\xf321 |
| 58 |
noback always \xf402\xf321 156 |
| 59 |
|
| 60 |
# Exactly-below and exactly-above scripts. |
| 61 |
noback math \xf322 46-16 |
| 62 |
noback always \xf402\xf322 156 |
| 63 |
noback math \xf323 46-34 |
| 64 |
noback always \xf402\xf323 156 |
| 65 |
|
| 66 |
# Roots: start, end of radicand, and start of a root with an index. The index |
| 67 |
# uses lowered digits directly, without a superscript indicator. |
| 68 |
noback math \xf32a 146 |
| 69 |
noback always \xf403\xf32a 146 |
| 70 |
noback math \xf32b 1456 |
| 71 |
noback math \xf32c 146-34 |
| 72 |
|
| 73 |
# Fractions: start, end, diagonal bar and horizontal bar. |
| 74 |
noback math \xf500 23 |
| 75 |
noback math \xf501 56 |
| 76 |
noback math \xf502 6-34 |
| 77 |
noback math \xf503 1256 |
| 78 |
replace \xf504 # boundary between integer and fractional parts of a mixed number |
| 79 |
noback always \xf505 6-3 # mathematical ellipsis (Guidelines, section 2.1) |
| 80 |
noback always \xf506 5 # mathematical line break where no space belongs |
| 81 |
noback always \xf507 6 # mathematical line break where a space belongs |
| 82 |
noback digit \xf50c 3 # formatter-supplied digit-group separator |
| 83 |
replace \xf554 # suppress separator before punctuation in an exceptional context |
| 84 |
# Ambiguous print characters use semantic input: |
| 85 |
# a colon is also punctuation, while an asterisk is an ordinary star. Keeping |
| 86 |
# distinct PUA tokens preserves both meanings. The omitted-digit token has the |
| 87 |
# digit attribute so a following digit stays in the current numeric mode. |
| 88 |
noback math \xf555 256 # division written as a colon |
| 89 |
noback digit \xf556 346 # omitted digit inside a number |
| 90 |
|
| 91 |
# Formatter-selected segments represent braces that join several print lines. |
| 92 |
# F570/F571 are the one-line forms. For a multi-line frame the formatter emits |
| 93 |
# a top token on the first line, zero or more middle tokens, and a bottom token |
| 94 |
# on the last line. Layout and the required blank cell between the frame and |
| 95 |
# its content remain the formatter's responsibility. |
| 96 |
noback always \xf570 12346 # one-line joining brace, left |
| 97 |
noback always \xf571 13456 # one-line joining brace, right |
| 98 |
noback always \xf572 1234 # multi-line joining frame, left top |
| 99 |
noback always \xf573 123 # multi-line joining frame, left middle |
| 100 |
noback always \xf574 1236 # multi-line joining frame, left bottom |
| 101 |
noback always \xf575 1456 # multi-line joining frame, right top |
| 102 |
noback always \xf576 456 # multi-line joining frame, right middle |
| 103 |
noback always \xf577 3456 # multi-line joining frame, right bottom |
| 104 |
noback always \xf55a 2 # decimal comma before a parenthesized period |
| 105 |
noback always \xf55b 126 # opening bracket of a periodic decimal fraction |
| 106 |
noback always \xf560 245 |
| 107 |
noback always \xf561 1 |
| 108 |
noback always \xf562 12 |
| 109 |
noback always \xf563 14 |
| 110 |
noback always \xf564 145 |
| 111 |
noback always \xf565 15 |
| 112 |
noback always \xf566 124 |
| 113 |
noback always \xf567 1245 |
| 114 |
noback always \xf568 125 |
| 115 |
noback always \xf569 24 |
| 116 |
|
| 117 |
# F401 also suppresses the number sign for digits inside an explicitly |
| 118 |
# structured fraction. These rules consume the prefix and emit the ordinary |
| 119 |
# (upper-row) digit cell while preserving the surrounding semantic structure. |
| 120 |
noback always \xf4010 245 |
| 121 |
noback always \xf4011 1 |
| 122 |
noback always \xf4012 12 |
| 123 |
noback always \xf4013 14 |
| 124 |
noback always \xf4014 145 |
| 125 |
noback always \xf4015 15 |
| 126 |
noback always \xf4016 124 |
| 127 |
noback always \xf4017 1245 |
| 128 |
noback always \xf4018 125 |
| 129 |
noback always \xf4019 24 |
| 130 |
|
| 131 |
# Brackets with explicit recognition dots. Plain bracket characters below |
| 132 |
# remain available when the surrounding context makes recognition unambiguous. |
| 133 |
noback always \xf508 6-12356 # recognized opening square bracket |
| 134 |
noback always \xf509 6-23456 # recognized closing square bracket |
| 135 |
noback always \xf50a 4-246 # recognized opening angle bracket |
| 136 |
noback always \xf50b 4-135 # recognized closing angle bracket |
| 137 |
|
| 138 |
# Function tokens. PUA input keeps |
| 139 |
# function names distinct from ordinary Latin-letter runs. These rules are |
| 140 |
# forward-only because their cells are also ordinary Cyrillic letter sequences |
| 141 |
# (for example 1246-123 is "ял") and can not be reconstructed unambiguously. |
| 142 |
noback always \xf510 1246-234 # sin |
| 143 |
noback always \xf511 1246-14 # cos |
| 144 |
noback always \xf512 1246-2345 # tg |
| 145 |
noback always \xf513 1246-14-2345 # ctg |
| 146 |
noback always \xf514 1246-1-234 # arcsin |
| 147 |
noback always \xf515 1246-1-14 # arccos |
| 148 |
noback always \xf516 1246-1-2345 # arctg |
| 149 |
noback always \xf517 1246-1-14-2345 # arcctg |
| 150 |
noback always \xf518 1246-123 # log |
| 151 |
noback always \xf519 1246-123-1245 # lg |
| 152 |
noback always \xf51a 1246-123-1345 # ln |
| 153 |
noback always \xf51b 1246-134-1346 # max |
| 154 |
noback always \xf51c 1246-134-1345 # min |
| 155 |
noback always \xf51d 1246-15 # exp |
| 156 |
noback always \xf51e 1246-123-134 # lim |
| 157 |
|
| 158 |
# Structured mark positions and mark contents. Position and content |
| 159 |
# are separate tokens so producers can preserve ordering around the base. |
| 160 |
noback always \xf530 46 # upper mark, left or right |
| 161 |
noback always \xf531 456 # lower mark, left or right |
| 162 |
noback always \xf532 45 # mark exactly above |
| 163 |
noback always \xf533 56 # mark exactly below |
| 164 |
noback always \xf534 5 # reserved mark discriminator |
| 165 |
noback always \xf540 25 # horizontal line / overbar |
| 166 |
noback always \xf541 35 # prime |
| 167 |
noback always \xf542 23 # star |
| 168 |
noback always \xf543 236 # cross |
| 169 |
noback always \xf544 356 # circle |
| 170 |
noback always \xf545 2356 # square |
| 171 |
noback always \xf546 26 # tilde |
| 172 |
noback always \xf547 256 # hat |
| 173 |
noback always \xf548 56-35 # check / chevron |
| 174 |
noback always \xf549 46-35 # angular minute |
| 175 |
noback always \xf54a 46-35-35 # angular second |
| 176 |
noback always \xf54b 25-2 # right arrow mark |
| 177 |
noback always \xf54c 5-25 # left arrow mark |
| 178 |
noback always \xf54d 235 # plus mark |
| 179 |
noback always \xf54e 36 # minus mark |
| 180 |
|
| 181 |
# Vector notation: arrow or bar placed after a one-letter or two-letter vector |
| 182 |
# name. The two-letter forms carry the recognition prefix 45. |
| 183 |
noback always \xf550 25-2 # vector arrow, one-letter name |
| 184 |
noback always \xf551 45-25-2 # vector arrow, two-letter name |
| 185 |
noback always \xf552 25 # vector bar, one-letter name |
| 186 |
noback always \xf553 45-25 # vector bar, two-letter name |
| 187 |
|
| 188 |
# Plain-Unicode integer script digits. The formatter supplies F320 or F321 as |
| 189 |
# the structural indicator before a subscript or superscript run. The digits |
| 190 |
# themselves use the lowered numeric row, without a number sign or terminator. |
| 191 |
noback math \x2070 356 |
| 192 |
noback math \x00b9 2 |
| 193 |
noback math \x00b2 23 |
| 194 |
noback math \x00b3 25 |
| 195 |
noback math \x2074 256 |
| 196 |
noback math \x2075 26 |
| 197 |
noback math \x2076 235 |
| 198 |
noback math \x2077 2356 |
| 199 |
noback math \x2078 236 |
| 200 |
noback math \x2079 35 |
| 201 |
noback math \x2080 356 |
| 202 |
noback math \x2081 2 |
| 203 |
noback math \x2082 23 |
| 204 |
noback math \x2083 25 |
| 205 |
noback math \x2084 256 |
| 206 |
noback math \x2085 26 |
| 207 |
noback math \x2086 235 |
| 208 |
noback math \x2087 2356 |
| 209 |
noback math \x2088 236 |
| 210 |
noback math \x2089 35 |
| 211 |
|
| 212 |
# Protect against isolated semantic prefixes. |
| 213 |
replace \xf400 |
| 214 |
replace \xf401 |
| 215 |
replace \xf402 |
| 216 |
replace \xf403 |
| 217 |
|
| 218 |
# General math symbols |
| 219 |
|
| 220 |
noback math + 235 |
| 221 |
nofor math + 56-235 |
| 222 |
noback math \x2212 36 |
| 223 |
nofor math \x2212 56-36 |
| 224 |
noback math \x00d7 236 # multiplication cross |
| 225 |
nofor math \x00d7 56-236 |
| 226 |
noback math \x00f7 256 |
| 227 |
nofor math \x00f7 56-256 |
| 228 |
noback math \x00b1 235-36 |
| 229 |
noback math \x2213 36-235 |
| 230 |
noback math > 135 |
| 231 |
noback math < 246 |
| 232 |
noback math \x2265 135-2356 |
| 233 |
noback math \x2264 246-2356 |
| 234 |
noback math \x2260 23456 |
| 235 |
noback math % 3456-356 |
| 236 |
noback math \x2030 3456-356-356 # per mille |
| 237 |
noback math \x2116 1345 # numero sign |
| 238 |
noback always \x2116\s 1345 # numero sign absorbs following print space |
| 239 |
noback math \x2248 26-26 |
| 240 |
|
| 241 |
# Greek alphabet |
| 242 |
|
| 243 |
lowercase \x03B1 1 # α Alpha |
| 244 |
lowercase \x03B2 12 # β Beta |
| 245 |
lowercase \x03B3 1245 # γ Gamma |
| 246 |
lowercase \x03B4 145 # δ Delta |
| 247 |
lowercase \x03B5 15 # ε Epsilon |
| 248 |
lowercase \x03B6 1356 # ζ Zeta |
| 249 |
lowercase \x03B7 245 # η Eta |
| 250 |
lowercase \x03B8 125 # θ Theta |
| 251 |
lowercase \x03B9 24 # ι Iota |
| 252 |
lowercase \x03ba 13 # κ Kappa |
| 253 |
lowercase \x03bb 123 # λ Lambda |
| 254 |
lowercase \x03bc 134 # μ Mu |
| 255 |
lowercase \x03bd 1345 # ν Nu |
| 256 |
lowercase \x03be 1346 # ξ Xi |
| 257 |
lowercase \x03bf 135 # ο Omicron |
| 258 |
lowercase \x03c0 1234 # π Pi |
| 259 |
lowercase \x03c1 1235 # ρ Rho |
| 260 |
lowercase \x03c3 234 # σ Sigma |
| 261 |
lowercase \x03c4 2345 # τ Tau |
| 262 |
lowercase \x03c5 136 # υ Upsilon |
| 263 |
lowercase \x03c6 124 # φ Phi |
| 264 |
lowercase \x03c7 14 # χ Chi |
| 265 |
lowercase \x03c8 13456 # ψ Psi |
| 266 |
lowercase \x03c9 2456 # ω Omega |
| 267 |
noback math \x03d5 56-124 # GREEK PHI SYMBOL |
| 268 |
base uppercase \x0391 \x03B1 # Αα Alpha |
| 269 |
base uppercase \x0392 \x03B2 # Ββ Beta |
| 270 |
base uppercase \x0393 \x03B3 # Γγ Gamma |
| 271 |
base uppercase \x0394 \x03B4 # Δδ Delta |
| 272 |
base uppercase \x0395 \x03B5 # Εε Epsilon |
| 273 |
base uppercase \x0396 \x03B6 # Ζζ Zeta |
| 274 |
base uppercase \x0397 \x03B7 # Ηη Eta |
| 275 |
base uppercase \x0398 \x03B8 # Θθ Theta |
| 276 |
base uppercase \x0399 \x03B9 # Ιι Iota |
| 277 |
base uppercase \x039a \x03ba # Κκ Kappa |
| 278 |
base uppercase \x039b \x03bb # Λλ Lambda |
| 279 |
base uppercase \x039c \x03bc # Μμ Mu |
| 280 |
base uppercase \x039d \x03bd # Νν Nu |
| 281 |
base uppercase \x039e \x03be # Ξξ Xi |
| 282 |
base uppercase \x039f \x03bf # Οο Omicron |
| 283 |
base uppercase \x03a0 \x03c0 # Ππ Pi |
| 284 |
base uppercase \x03a1 \x03c1 # Ρρ Rho |
| 285 |
base uppercase \x03a3 \x03c3 # Σσ Sigma |
| 286 |
base uppercase \x03a4 \x03c4 # Ττ Tau |
| 287 |
base uppercase \x03a5 \x03c5 # Υυ Upsilon |
| 288 |
base uppercase \x03a6 \x03c6 # Φφ Phi |
| 289 |
base uppercase \x03a7 \x03c7 # Χχ Chi |
| 290 |
base uppercase \x03a8 \x03c8 # Ψψ Psi |
| 291 |
base uppercase \x03a9 \x03c9 # Ωω Omega |
| 292 |
|
| 293 |
# Other math symbols |
| 294 |
|
| 295 |
noback math \x2032 35 # prime |
| 296 |
noback math \x2033 35-35 # double prime |
| 297 |
noback math \x2208 5-246 |
| 298 |
noback math \x2209 45-246 |
| 299 |
noback math \x2202 1456 |
| 300 |
noback math \x2215 356 # division slash |
| 301 |
noback math \x2217 35 # asterisk operator |
| 302 |
noback math \x00b0 46-356 |
| 303 |
noback math \x2103 46-356-46-14 |
| 304 |
# U+2109 is a compatibility composition of the confirmed degree sign and |
| 305 |
# Latin F; Fahrenheit is absent from the checked Russian normative sources. |
| 306 |
noback math \x2109 46-356-46-124 |
| 307 |
noback math \x221e 12456 # infinity |
| 308 |
noback math \x222b 2346 # integral |
| 309 |
# The Russian notation system confirms these integral forms. Double and triple |
| 310 |
# integrals repeat the integral cell; contour and surface forms retain the |
| 311 |
# historical liblouis compositions. |
| 312 |
noback math \x222c 2346-2346 # double integral, compatibility |
| 313 |
noback math \x222d 2346-2346-2346 # triple integral, compatibility |
| 314 |
noback math \x222e 2346-356 # contour integral |
| 315 |
noback math \x222f 2346-2346-356 # surface integral |
| 316 |
noback math \x2282 12346 |
| 317 |
noback math \x2284 4-12346 |
| 318 |
noback math \x2229 56-256 |
| 319 |
noback math \x222a 56-356 |
| 320 |
noback math \x2216 56-36 |
| 321 |
noback math \x2205 4-356 |
| 322 |
noback math \x22c5 3 # dot operator |
| 323 |
noback math \x21d2 2356-345 |
| 324 |
noback math \x21d0 236-2356 |
| 325 |
noback math \x21d4 236-2356-345 |
| 326 |
noback math \x2200 1246-3 |
| 327 |
noback math \x2203 1246-26 |
| 328 |
noback math \x2261 56-2356 |
| 329 |
noback math \x2227 56-26 |
| 330 |
noback math \x2228 56-35 |
| 331 |
noback math \x00ac 146 |
| 332 |
noback math \x221a 146-156 # square root |
| 333 |
noback math \x221b 146-25-156 # cube root |
| 334 |
noback math \x221c 146-256-156 # fourth root |
| 335 |
noback math \x2329 246 |
| 336 |
noback math \x232a 135 |
| 337 |
noback math \x27e8 246 # mathematical left angle bracket |
| 338 |
noback math \x27e9 135 # mathematical right angle bracket |
| 339 |
|
| 340 |
# Geometry |
| 341 |
|
| 342 |
noback math \x2220 456-246 # angle |
| 343 |
noback math \x2245 26 |
| 344 |
noback math \x25b3 456-145 # triangle |
| 345 |
noback math \x2312 456-345 |
| 346 |
noback math \x2225 456-456 |
| 347 |
noback math \x22a5 3456-3 |
| 348 |
noback math \x27c2 3456-3 # perpendicular, canonical Unicode |
| 349 |
noback math \x223c 26 |
| 350 |
noback math ~ 26 |
| 351 |
|
| 352 |
# Fraction symbols |
| 353 |
|
| 354 |
noback math \x00bd 3456-1-23 # 1/2 |
| 355 |
noback math \x2155 3456-1-26 # 1/5 |
| 356 |
noback math \x00bc 3456-1-256 # 1/4 |
| 357 |
noback math \x00be 3456-14-256 # 3/4 |
| 358 |
noback math \x2150 3456-1-2356 # 1/7 |
| 359 |
noback math \x2151 3456-1-35 # 1/9 |
| 360 |
noback math \x2152 3456-1-2-356 # 1/10 |
| 361 |
noback math \x2153 3456-1-25 # 1/3 |
| 362 |
noback math \x2154 3456-12-25 # 2/3 |
| 363 |
noback math \x2156 3456-12-26 # 2/5 |
| 364 |
noback math \x2157 3456-14-26 # 3/5 |
| 365 |
noback math \x2158 3456-145-26 # 4/5 |
| 366 |
noback math \x2159 3456-1-235 # 1/6 |
| 367 |
noback math \x215a 3456-15-235 # 5/6 |
| 368 |
noback math \x215b 3456-1-236 # 1/8 |
| 369 |
noback math \x215c 3456-14-236 # 3/8 |
| 370 |
noback math \x215d 3456-15-236 # 5/8 |
| 371 |
noback math \x215e 3456-1245-236 # 7/8 |
| 372 |
noback math \x2189 3456-245-25 # 0/3 |
| 373 |
noback math \x2044 1256 # fraction slash |
| 374 |
noback math \x2236 1256 # ratio |
| 375 |
|
| 376 |
# arrows |
| 377 |
# U+2190/U+2192 are the standard arrows. The visually distinct short arrows |
| 378 |
# belong to marks after letters and are represented by semantic PUA tokens. |
| 379 |
# U+27F5/U+27F6 are accepted as compatibility spellings of the standard arrows. |
| 380 |
|
| 381 |
noback math \x2190 246-25 |
| 382 |
noback math \x2191 56-34 |
| 383 |
noback math \x2192 25-135 |
| 384 |
noback math \x2193 45-16 |
| 385 |
noback math \x27f5 246-25 |
| 386 |
noback math \x27f6 25-135 |
| 387 |
# Additional arrows confirmed by the Russian notation system. |
| 388 |
noback math \x2194 246-25-135 |
| 389 |
noback math \x2195 1456-3 |
| 390 |
noback math \x2196 5-26 |
| 391 |
noback math \x2197 35-2 |
| 392 |
noback math \x2198 26-3 |
| 393 |
noback math \x2199 6-35 |
| 394 |
noback math \x21d1 34-34 |
| 395 |
noback math \x21d3 16-16 |