| 1 |
# |
| 2 |
# Copyright (C) 2010 by JJB Software, Inc. www.jjb-software.com |
| 3 |
# |
| 4 |
# This file is part of liblouis. |
| 5 |
# |
| 6 |
# liblouis is free software: you can redistribute it and/or modify it |
| 7 |
# under the terms of the GNU Lesser General Public License as |
| 8 |
# published by the Free Software Foundation, either version 2.1 of the |
| 9 |
# License, or (at your option) any later version. |
| 10 |
# |
| 11 |
# liblouis is distributed in the hope that it will be useful, but |
| 12 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 |
# Lesser General Public License for more details. |
| 15 |
# |
| 16 |
# You should have received a copy of the GNU Lesser General Public |
| 17 |
# License along with liblouis. If not, see |
| 18 |
# <http://www.gnu.org/licenses/>. |
| 19 |
|
| 20 |
# Previously, these definitions were hardcoded in the liblouis library |
| 21 |
# itself. Now they are migrated to an external table which can be |
| 22 |
# included by other tables. They are necessary for the proper operation |
| 23 |
# of liblouis or liblouisutdml. |
| 24 |
|
| 25 |
# This table also defines all the space characters to be empty braille |
| 26 |
# cells. |
| 27 |
|
| 28 |
space \s 0 SPACE |
| 29 |
|
| 30 |
sign \x0000 0 NULL |
| 31 |
space \x0009 0 CHARACTER TABULATION |
| 32 |
space \x000a 0 LINE FEED (LF) |
| 33 |
space \x000b 0 LINE TABULATION |
| 34 |
space \x000c 0 FORM FEED (FF) |
| 35 |
space \x000d 0 CARRIAGE RETURN (CR) |
| 36 |
space \x00a0 0 NO-BREAK SPACE |
| 37 |
space \x2000 0 EN QUAD |
| 38 |
space \x2001 0 EM QUAD |
| 39 |
space \x2002 0 EN SPACE |
| 40 |
space \x2003 0 EM SPACE |
| 41 |
space \x2004 0 THREE-PER-EM SPACE |
| 42 |
space \x2005 0 FOUR-PER-EM SPACE |
| 43 |
space \x2006 0 SIX-PER-EM SPACE |
| 44 |
space \x2007 0 FIGURE SPACE |
| 45 |
space \x2008 0 PUNCTUATION SPACE |
| 46 |
space \x2009 0 THIN SPACE |
| 47 |
space \x200a 0 HAIR SPACE |
| 48 |
space \x200b 0 ZERO WIDTH SPACE |
| 49 |
space \x2028 0 LINE SEPARATOR |
| 50 |
space \x2029 0 PARAGRAPH SEPARATOR |
| 51 |
space \x202f 0 NARROW NO-BREAK SPACE |
| 52 |
space \x205f 0 MEDIUM MATHEMATICAL SPACE |
| 53 |
space \x2060 0 WORD JOINER |
| 54 |
space \x2800 0 BRAILLE PATTERN BLANK |
| 55 |
space \xfeff 0 ZERO WIDTH NO-BREAK SPACE (also Unicode BOM) |
| 56 |
|
| 57 |
# replace \x200b #ZERO WIDTH SPACE |
| 58 |
noback correct "\x200b" "" |
| 59 |
|
| 60 |
replace \x2060 #WORD JOINER |
| 61 |
replace \xfeff #ZERO WIDTH NO-BREAK SPACE (also Unicode BOM) |
| 62 |
|