| 1 |
# Vietnamese signs and punctuations |
| 2 |
# |
| 3 |
#-copyright: Sao Mai Center for the Blind |
| 4 |
#-license: LGPLv2.1 |
| 5 |
# |
| 6 |
# Copyright (C) 2018, 2023 by Sao Mai Center for the Blind <www.saomaicenter.org/en> |
| 7 |
# |
| 8 |
# This file is part of liblouis. |
| 9 |
# |
| 10 |
# liblouis is free software: you can redistribute it and/or modify it |
| 11 |
# under the terms of the GNU Lesser General Public License as |
| 12 |
# published by the Free Software Foundation, either version 2.1 of the |
| 13 |
# License, or (at your option) any later version. |
| 14 |
# |
| 15 |
# liblouis is distributed in the hope that it will be useful, but |
| 16 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 18 |
# Lesser General Public License for more details. |
| 19 |
# |
| 20 |
# You should have received a copy of the GNU Lesser General Public |
| 21 |
# License along with liblouis. If not, see |
| 22 |
# <http://www.gnu.org/licenses/>. |
| 23 |
# |
| 24 |
# Created and maintained by: Dang Hoai Phuc, [email protected] |
| 25 |
|
| 26 |
display ! 2346 |
| 27 |
punctuation ! 235 |
| 28 |
|
| 29 |
display " 5 |
| 30 |
punctuation " 236 |
| 31 |
|
| 32 |
display ? 1456 |
| 33 |
punctuation ? 26 |
| 34 |
match %[^_~]%<* " %[_.$]*%[a#] 236 |
| 35 |
match %[a#]%[_.$]* " %>*%[^_~] 356 |
| 36 |
|
| 37 |
display # 3456 |
| 38 |
sign # 3456 |
| 39 |
display $ 1246 |
| 40 |
sign $ 4-234 |
| 41 |
display % 146 |
| 42 |
sign % 3456-245-356 |
| 43 |
math % 3456-245-356 |
| 44 |
display & 12346 |
| 45 |
sign & 12346 |
| 46 |
punctuation ' 3 |
| 47 |
display ( 12356 |
| 48 |
punctuation ( 4-126 |
| 49 |
display ) 23456 |
| 50 |
punctuation ) 4-345 |
| 51 |
display * 16 |
| 52 |
punctuation * 236 |
| 53 |
# Want to handle * sign case below but the command doesn't work. Noted for future updte |
| 54 |
# match %# * %# 5-236 |
| 55 |
display + 346 |
| 56 |
math + 5-235 |
| 57 |
display , 6 |
| 58 |
punctuation , 2 |
| 59 |
decpoint , 256 |
| 60 |
punctuation - 36 |
| 61 |
math - 5-36 |
| 62 |
hyphen - 36 |
| 63 |
display . 46 |
| 64 |
punctuation . 256 |
| 65 |
decpoint . 3 |
| 66 |
display / 34 |
| 67 |
sign / 34 |
| 68 |
math / 5-34 |
| 69 |
punctuation / 34 |
| 70 |
display : 156 |
| 71 |
punctuation : 25 |
| 72 |
display ; 56 |
| 73 |
punctuation ; 23 |
| 74 |
display < 126 |
| 75 |
math < 5-246 |
| 76 |
display = 123456 |
| 77 |
math = 5-2356 |
| 78 |
display > 345 |
| 79 |
punctuation > 5-135 |
| 80 |
display @ 47 |
| 81 |
sign @ 4 |
| 82 |
display [ 2467 |
| 83 |
punctuation [ 46-126 |
| 84 |
display \\ 12567 |
| 85 |
sign \\ 4-16 |
| 86 |
display ] 124567 |
| 87 |
punctuation ] 46-345 |
| 88 |
display ^ 457 |
| 89 |
sign ^ 4-26 |
| 90 |
display _ 456 |
| 91 |
sign _ 4-456 |
| 92 |
display ` 4 |
| 93 |
sign ` 4-4 grave accent |
| 94 |
display } 12456 |
| 95 |
punctuation } 456-345 |
| 96 |
display | 1256 |
| 97 |
sign | 456-1256 |
| 98 |
display { 246 |
| 99 |
punctuation { 456-126 |
| 100 |
display ~ 45 |
| 101 |
math ~ 4-35 |
| 102 |
always ... 3-3-3 |
| 103 |
|
| 104 |
# Most of Vietnamese unicode signs have same UEB char definitions |
| 105 |
# Modifiers |
| 106 |
|
| 107 |
# acute accent |
| 108 |
sign \x00b4 45-34 ´ |
| 109 |
sign \x0301 45-34 ́ |
| 110 |
noback correct [$l]"́" "́"* |
| 111 |
|
| 112 |
# circumflex/carot |
| 113 |
display \x005e 457 ^ |
| 114 |
sign \x005e 4-26 ^ |
| 115 |
sign \x0302 45-146 ̂ |
| 116 |
noback correct [$l]"̂" "̂"* |
| 117 |
|
| 118 |
# grave accent |
| 119 |
sign \x0060 46-16 ` |
| 120 |
noback punctuation ` 4 |
| 121 |
sign \x0300 45-16 ̀̀ |
| 122 |
noback correct [$l]"̀" "̀"* |
| 123 |
|
| 124 |
# tilde |
| 125 |
display \x007e 45 ~ |
| 126 |
math \x007e 4-35 ~ |
| 127 |
sign \x0303 45-12456 ̃ |
| 128 |
noback correct [$l]"̃" "̃"* |
| 129 |
noback pass2 @45-12456-6 @6-45-12456 move after capital sign |
| 130 |
|
| 131 |
# macron |
| 132 |
sign \x00af 4-36 ¯ |
| 133 |
sign \x0304 45-4-36 ̄ |
| 134 |
noback correct [$l]"̄" "̄"* |
| 135 |
|
| 136 |
# cedilla |
| 137 |
sign \x00b8 45-12346 ¸ |
| 138 |
sign \x0327 45-12346 ̧ |
| 139 |
noback correct [$l]"̧" "̧"* |
| 140 |
|
| 141 |
# diaeresis/umlat |
| 142 |
sign \x00a8 45-25 ¨ |
| 143 |
sign \x0308 45-25 ̈ |
| 144 |
noback correct [$l]"̈" "̈"* |
| 145 |
|
| 146 |
# caron |
| 147 |
sign \x02c7 45-345 ˇ |
| 148 |
sign \x030c 45-346 ̌ |
| 149 |
noback correct [$l]"̌" "̌"* |
| 150 |
|
| 151 |
# breve |
| 152 |
sign \x02d8 4-346 ˘ |
| 153 |
sign \x0306 4-346 ̆ |
| 154 |
noback correct [$l]"̆" "̆"* |
| 155 |
|
| 156 |
# ring/circle |
| 157 |
sign \x02da 45-1246 ˚ |
| 158 |
sign \x030a 45-1246 ̊ |
| 159 |
noback correct [$l]"̊" "̊"* |
| 160 |
|
| 161 |
# Unicode: Latin-1 Supplement |
| 162 |
punctuation \x0093 236 |
| 163 |
punctuation \x0094 356 |
| 164 |
punctuation \x0096 36 |
| 165 |
sign \x00a1 45-56-235 ¡ |
| 166 |
punctuation \x00a1 235 ¡ |
| 167 |
sign \x00a2 4-14 ¢ cent |
| 168 |
sign \x00a3 4-123 £ pound |
| 169 |
sign \x00a4 1246 ¤ currency |
| 170 |
sign \x00a5 4-13456 ¥ yen |
| 171 |
sign \x00a6 46-1256 ¦ broken bar |
| 172 |
punctuation \x00a6 456-1256 ¦ broken bar |
| 173 |
sign \x00a7 45-234 § section |
| 174 |
sign \x00a9 45-14 © copyright |
| 175 |
punctuation \x00ab 456-236 « |
| 176 |
sign \x00ac 4-1456 ¬ |
| 177 |
punctuation \x00ad 36 - soft hyphen |
| 178 |
sign \x00ae 45-1235 ® registered |
| 179 |
sign \x00b0 45-245 ° |
| 180 |
math \x00b1 456-235 ± |
| 181 |
|
| 182 |
# fake grade 1 and superscript indicator |
| 183 |
math \x00b2 35-3456-12 ² |
| 184 |
math \x00b3 35-3456-14 ³ |
| 185 |
|
| 186 |
sign \x00b5 6-134 µ |
| 187 |
math \x00b7 4-16 · |
| 188 |
|
| 189 |
# fake numeric indicator |
| 190 |
math \x00bc 3456-1-34-145 ¼ |
| 191 |
math \x00bd 3456-1-34-12 ½ |
| 192 |
math \x00be 3456-14-34-145 ¾ |
| 193 |
|
| 194 |
sign \x00b6 45-1234 ¶ pilcrow |
| 195 |
punctuation \x00bb 456-356 » |
| 196 |
punctuation \x00bf 45-56-26 ¿ |
| 197 |
math \x00d7 5-236 × |
| 198 |
math \x00f7 34 ÷ |
| 199 |
|
| 200 |
# Unicode: IPA Extensions |
| 201 |
sign \x02e6 45-46-14 ˦ high tone |
| 202 |
sign \x02e7 45-46-25 ˧ mid tone |
| 203 |
sign \x02e8 45-46-36 ˨ low tone |
| 204 |
|
| 205 |
# Unicode: General Punctuation |
| 206 |
|
| 207 |
space \x2000 0 |
| 208 |
space \x2001 0 |
| 209 |
space \x2002 0 |
| 210 |
space \x2003 0 |
| 211 |
space \x2004 0 |
| 212 |
space \x2005 0 |
| 213 |
space \x2006 0 |
| 214 |
space \x2007 0 |
| 215 |
space \x2008 0 |
| 216 |
space \x2009 0 |
| 217 |
space \x200a 0 |
| 218 |
space \x200b 0 |
| 219 |
punctuation \x2010 36 ‐ |
| 220 |
punctuation \x2011 36 ‑ |
| 221 |
noback punctuation \x2013 36 – backtranslate as \x2014 |
| 222 |
punctuation \x2014 36 — Rules of UEB, App.3 |
| 223 |
punctuation \x2015 5-6-36 ― |
| 224 |
noback punctuation \x2018 6-236 ‘ |
| 225 |
noback punctuation \x2019 6-356 ’ |
| 226 |
match %a \x2019 %a 3 # single quote between letters is really apostrophe |
| 227 |
punctuation \x201c 236 “ |
| 228 |
punctuation \x201d 356 ” |
| 229 |
sign \x2020 4-6-1456 † dagger |
| 230 |
sign \x2021 4-6-12456 ‡ double dagger |
| 231 |
sign \x2022 456-256 • bullet |
| 232 |
punctuation \x2026 3-3-3 … ellipsis |
| 233 |
space \x202f 0 narrow no-break space |
| 234 |
sign \x2032 3 ′ prime (derivative) |
| 235 |
sign \x2033 3-3 ″ double prime (second derivative) |
| 236 |
|
| 237 |
|
| 238 |
# Unicode: Currency Symbols |
| 239 |
sign \x20a3 4-124 ₣ franc |
| 240 |
sign \x20a6 4-1345 ₦ naira |
| 241 |
sign \x20ac 4-15 € euro |
| 242 |
|
| 243 |
|
| 244 |
# Unicode: Letterlike Symbols |
| 245 |
|
| 246 |
sign \x2122 45-2345 ™ |
| 247 |
noback sign \x2126 456-2456 Ω Ohm sign, same as capital Omega |
| 248 |
|
| 249 |
# Unicode: Number Forms |
| 250 |
|
| 251 |
# fake numerical indicator for simple fractions |
| 252 |
math \x2150 3456-1-34-1245 ⅐ |
| 253 |
math \x2151 3456-1-34-24 ⅑ |
| 254 |
math \x2152 3456-1-34-1-245 ⅒ |
| 255 |
math \x2153 3456-1-34-14 ⅓ |
| 256 |
math \x2154 3456-12-34-14 ⅔ |
| 257 |
math \x2155 3456-1-34-15 ⅕ |
| 258 |
math \x2156 3456-12-34-15 ⅖ |
| 259 |
math \x2157 3456-14-34-15 ⅗ |
| 260 |
math \x2158 3456-145-34-15 ⅘ |
| 261 |
math \x2159 3456-1-34-124 ⅙ |
| 262 |
math \x215a 3456-15-34-124 ⅚ |
| 263 |
math \x215b 3456-1-34-125 ⅛ |
| 264 |
math \x215c 3456-14-34-125 ⅜ |
| 265 |
math \x215d 3456-15-34-125 ⅝ |
| 266 |
math \x215e 3456-1245-34-125 ⅞ |
| 267 |
math \x2189 3456-245-34-14 ↉ |
| 268 |
|
| 269 |
|
| 270 |
# Unicode: Arrows |
| 271 |
|
| 272 |
sign \x2190 56-1256-246 ← |
| 273 |
sign \x2191 56-1256-346 ↑ |
| 274 |
sign \x2192 56-1256-135 → |
| 275 |
sign \x2193 56-1256-146 ↓ |
| 276 |
sign \x2196 56-1256-156 ↖ |
| 277 |
sign \x2197 56-1256-234 ↗ |
| 278 |
sign \x2198 56-1256-126 ↘ |
| 279 |
sign \x2199 56-1256-345 ↙ |
| 280 |
sign \x21a6 56-1256-1256 ↦ |
| 281 |
sign \x21b2 56-1256-256 ↲ |
| 282 |
sign \x21b3 56-1256-356 ↳ |
| 283 |
sign \x21b5 56-1256-256-146 ↵ Rules of UEB, page 21 |
| 284 |
sign \x21c0 56-1256-4-1235 ⇀ |
| 285 |
sign \x21c1 56-1256-6-1235 ⇁ |
| 286 |
sign \x21cc 45-456-2356 ⇌ equilibrium arrow (harpoons) |
| 287 |
sign \x21d2 56-1256-2356-2356 ⇒ |
| 288 |
|
| 289 |
|
| 290 |
# Unicode: Mathematical Operators |
| 291 |
|
| 292 |
sign \x2200 45-1 ∀ for all |
| 293 |
sign \x2202 4-145 ∂ partial derivative |
| 294 |
sign \x2203 45-15 ∃ there exists |
| 295 |
sign \x2204 45-15-4 ∄ there does not exist |
| 296 |
sign \x2205 4-245 ∅ empty set |
| 297 |
noback sign \x2206 456-145 ∆ Increment same as capital Delta |
| 298 |
sign \x2207 45-145 ∇ nabla |
| 299 |
sign \x2208 4-15 ∈ element of |
| 300 |
sign \x2209 4-15-4 ∉ not an element of |
| 301 |
sign \x220b 4-45-15 ∋ contains (such that) |
| 302 |
sign \x220c 4-45-15-4-156 ∌ does not contain as member |
| 303 |
sign \x220f 456-1234 ∏ product (capital pi) |
| 304 |
sign \x2211 456-234 ∑ sum (capitol sigma) |
| 305 |
sign \x2212 5-36 − minus sign (not hyphen) |
| 306 |
sign \x2213 36-5-235 ∓ minus or plus |
| 307 |
noback sign \x2216 456-16 ∖ set minus |
| 308 |
noback sign \x2217 5-35 ∗ asterisk operator |
| 309 |
sign \x2218 5-356 ∘ hollow dot (ring operator) |
| 310 |
sign \x221a 146 √ square root |
| 311 |
sign \x221d 456-5-2356 ∝ proportional to |
| 312 |
sign \x221e 3456-135 ∞ infinity |
| 313 |
sign \x2220 1246-1245 ∠ angle |
| 314 |
sign \x2221 46-1246-1245 ∡ measured angle |
| 315 |
noback sign \x2223 126-356-345 ∣ divides |
| 316 |
sign \x2224 126-3456-345 ∤ does not divide |
| 317 |
sign \x2225 1246-2356 ∥ parallel to |
| 318 |
sign \x2226 1246-2356-4 ∦ not parallel to |
| 319 |
sign \x2227 4-236 ∧ logical and |
| 320 |
sign \x2228 4-235 ∨ logical or |
| 321 |
sign \x2229 46-236 ∩ set intersection |
| 322 |
sign \x222a 46-235 ∪ set union |
| 323 |
sign \x222b 23456 ∫ integral |
| 324 |
sign \x222e 5-23456 contour integral |
| 325 |
noback sign \x2234 6-16 ∴ therefore # using noback to avoid conflict with Child |
| 326 |
sign \x2235 4-34 ∵ because |
| 327 |
noback sign \x2236 25 ∶ ratio # using noback to avoid conflict with : |
| 328 |
sign \x2237 25-25 ∷ proportion |
| 329 |
noback sign \x223c 4-35 ∼ tilde operator |
| 330 |
sign \x2241 4-35-4-156 ≁ not tilde |
| 331 |
sign \x2243 5-26-26 ≃ asymptotically equal to |
| 332 |
sign \x2244 5-26-26-4 ≄ not asymptotically equal |
| 333 |
sign \x2245 5-26-26 ≅ approximately equal to |
| 334 |
sign \x2247 5-26-26-4 ≇ neither approximately nor actually equal |
| 335 |
sign \x2248 5-26-26 ≈ almost equal to |
| 336 |
sign \x2249 5-26-26-4 ≉ not almost equal |
| 337 |
sign \x224f 45-5-2356 ≏ difference between |
| 338 |
sign \x2251 46-5-2356 ≑ geometrically equal |
| 339 |
noback sign \x2260 5-23456 ≠ not equal |
| 340 |
sign \x2261 456-123456 ≡ identical (equivalent) to |
| 341 |
sign \x2262 456-123456-4-156 ≢ not identical to |
| 342 |
sign \x2264 5-246-2356 ≤ less than or equal to |
| 343 |
sign \x2265 5-135-2356 ≥ greater than or equal to |
| 344 |
sign \x226a 5-246-246 ≪ much less than |
| 345 |
sign \x226b 5-135-135 ≫ much greater than |
| 346 |
sign \x226e 5-246-4 ≮ not less than |
| 347 |
sign \x226f 5-135-4 ≯ not greater than |
| 348 |
sign \x2270 456-4-126-4-156 ≰ neither less than nor equal to |
| 349 |
sign \x2271 456-4-345-4-156 ≱ neither greather than nor equal to |
| 350 |
sign \x2282 45-126 ⊂ subset of |
| 351 |
sign \x2283 45-345 ⊃ superset of |
| 352 |
sign \x2284 45-126-4 ⊄ not subset of |
| 353 |
sign \x2285 45-345-4 ⊅ not superset of |
| 354 |
sign \x2286 45-126-2356 ⊆ subset or equal to |
| 355 |
sign \x2287 45-345-2356 ⊇ superset or equal to |
| 356 |
sign \x2288 456-45-126-4-156 ⊈ neither a subset nor equal |
| 357 |
sign \x2289 456-45-345-4-156 ⊉ neither a superset nor equal |
| 358 |
sign \x228a 46-45-126 ⊊ proper subset |
| 359 |
sign \x228b 46-45-345 ⊋ proper superset |
| 360 |
noback sign \x22a2 456-25 ⊢ right tack |
| 361 |
sign \x22a3 4-456-25 ⊣ left tack |
| 362 |
sign \x22a5 3456-36 ⊥ up tack |
| 363 |
sign \x22a6 456-25 ⊦ assertion |
| 364 |
sign \x22a8 45-456-25 ⊨ valid |
| 365 |
sign \x22ac 456-25-4-156 ⊬ does not prove |
| 366 |
sign \x22ad 45-456-25-4-156 ⊭ not true |
| 367 |
sign \x22b2 4-456-126 ⊲ normal subgroup |
| 368 |
sign \x22b3 4-456-345 ⊳ contains as normal subgroup |
| 369 |
sign \x22b4 456-456-126 ⊴ normal subgroup or equal |
| 370 |
sign \x22b5 456-456-345 ⊵ contains as normal subgroup or equal |
| 371 |
sign \x22be 3456-456-246 ⊾ right angle with arc |
| 372 |
sign \x22c5 5-236 ⋅ dot operator |
| 373 |
sign \x22ea 4-456-126-4-156 ⋪ not normal subgroup |
| 374 |
sign \x22eb 4-456-345-4-156 ⋫ does not contain as normal subgroup |
| 375 |
sign \x22ec 456-456-126-4-156 ⋬ not normal subgroup nor equal |
| 376 |
sign \x22ed 456-456-345-4-156 ⋭ does not contain as normal subgroup nor equal |
| 377 |
|
| 378 |
# Unicode: Miscellaneous Technical |
| 379 |
|
| 380 |
math \x2329 456-126 〈 |
| 381 |
math \x232A 456-345 〉 |
| 382 |
|
| 383 |
|
| 384 |
# Unicode: Box Drawing |
| 385 |
|
| 386 |
noback sign \x2502 456 │ tally mark - vertical single solid line segment |
| 387 |
noback sign \x250a 45 ┊ first variant vertical line segment |
| 388 |
noback sign \x2551 6-456 ║ second variant vertical line segment |
| 389 |
noback sign \x2571 345 ╱ right-leaning single solid diagonal line segment # using noback to avoid conflict with "ar" contraction |
| 390 |
noback sign \x2572 126 ╲ left-leaning single solid diagonal line segment # using noback to avoid conflict with "gh" contraction |
| 391 |
|
| 392 |
|
| 393 |
# Unicode: Geometric Shapes |
| 394 |
|
| 395 |
sign \x25a0 456-1246-3456-145 ■ filled (solid) square |
| 396 |
sign \x25a1 1246-3456-145 □ square |
| 397 |
sign \x25a7 46-1246-3456-145 ▧ shaded square (upper left to lower right) |
| 398 |
sign \x25b2 456-1246-3456-14 ▲ filled (solid) (equilateral) triangle |
| 399 |
sign \x25b3 1246-3456-14 △ regular (equilateral) triangle |
| 400 |
sign \x25cb 1246-123456 ○ circle |
| 401 |
sign \x25cd 46-1246-123456 ◍ shaded circle |
| 402 |
sign \x25aa 456-256 ▪ |
| 403 |
noback sign \x25cf 5-35 ● black circle # not representing filled circle shape as it is mostly used in password fields to represent hidden characters |
| 404 |
|
| 405 |
|
| 406 |
# Unicode: Miscellaneous Symbols |
| 407 |
|
| 408 |
sign \x2640 45-1346 ♀ |
| 409 |
sign \x2642 45-13456 ♂ |
| 410 |
sign \x266D 3456-126 ♭ |
| 411 |
sign \x266E 3456-16 ♮ |
| 412 |
sign \x266F 3456-146 ♯ |
| 413 |
|
| 414 |
|
| 415 |
# Unicode: Dingbats |
| 416 |
|
| 417 |
sign \x2713 4-146 ✓ check mark |
| 418 |
noback sign \x2714 4-146 ✔ check mark |
| 419 |
|
| 420 |
|
| 421 |
# Unicode: Miscellaneous Mathematical Symbols-A |
| 422 |
|
| 423 |
noback sign \x27c2 1246-1236 ⟂ perpendicular |
| 424 |
|
| 425 |
|
| 426 |
# Unicode: Miscellaneous Mathematical Symbols-B |
| 427 |
|
| 428 |
sign \x2980 3456-456-123 ⦀ triple vertical bar delimiter |
| 429 |
sign \x29b5 46-245 ⦵ 'normal' (superscript circle crossed by horizontal line) |
| 430 |
|
| 431 |
|
| 432 |
# Unicode: Supplemental Mathematical Operators |
| 433 |
|
| 434 |
sign \x2a23 45-146-5-235 ⨣ |
| 435 |
sign \x2a24 45-12456-5-235 ⨤ |
| 436 |
sign \x2ae4 46-456-25 ⫤ reverse 'is valid' sign |
| 437 |
noback sign \x2af4 3456-456-123 ⫴ triple vertical bar binary relation |
| 438 |
noback sign \x2afc 3456-456-123 ⫼ large triple vertical bar operator |
| 439 |
|
| 440 |
|
| 441 |
# Unicode: CJK Symbols and Punctuation |
| 442 |
|
| 443 |
sign \x3003 5-2 〃 ditto mark |
| 444 |
math \x3008 5-246 〈 |
| 445 |
math \x3009 5-135 〉 |
| 446 |
|