Skip to content

Commit

Permalink
Merge branch 'master' into ueb
Browse files Browse the repository at this point in the history
  • Loading branch information
mhameed committed Jun 16, 2014
2 parents 0ae6804 + be21ddc commit 66f57cd
Show file tree
Hide file tree
Showing 6 changed files with 371 additions and 21 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Expand Up @@ -36,6 +36,7 @@
/build-aux/ltmain.sh
/build-aux/mdate-sh
/build-aux/missing
/build-aux/test-driver
/build-aux/texinfo.tex

# /build-aux/snippet/
Expand Down Expand Up @@ -129,6 +130,8 @@
/tests/inpos_compbrl
/tests/present_progressive
/tests/*.exe
/tests/*.log
/tests/*.trs
/tests/TAGS
/tests/lastworditalafter
/tests/en_gb_g1_italics
Expand All @@ -145,6 +148,11 @@
/tests/getTable
/tests/typeform
/tests/pass0_typebuf
/tests/hash_collision
/tests/hyphenate_achena
/tests/hyphenate_alderen
/tests/hyphenate_straightforward
/tests/hyphenate_xxx

# /tests/doctests/
/tests/doctests/Makefile
Expand Down
15 changes: 12 additions & 3 deletions NEWS
Expand Up @@ -10,7 +10,6 @@ liblouis NEWS -- history of user-visible changes. -*- org -*-
number and strings such as 5-inch-diameter and 25-year-old-man
should now back-translate correctly. Thanks to John Boyer.


** Braille Table Improvements
- fr-bfu-comp8.utb: corrections, zero was wrongly displayed in some
instances.
Expand All @@ -23,8 +22,18 @@ liblouis NEWS -- history of user-visible changes. -*- org -*-
- UEB chardefs - correct title and fixed a long standing bug where
dots 46 was inserted between letters (especialy for web
addresses). Thanks to Joseph Lee.
- UEB-g1: corrected the at sign dot combination. Thanks to Joseph
Lee.
- Fixed letter sign in en-us and en-ueb tables. Thanks to John
Boyer and Ken Perry.
- UEB Fixes thanks to Mesar Hameed, Ken Perry and Joseph lee:
- Fix problem with at sign.
- Removed section of accented letters, that were left behind from
US table.
- Added todo for accents, to define according to the formal docs.
- Corrected mathematical forall symbol.
- Modified emphasis dot combinations to follow UEB standard.
- Bulgarian bg.ctb: updated to meet modern standards (added latinn letters,
corrected punctuation/mathematical symbols, misc typos). Thanks to Rumiana
Kamenska

** Backwards incompatible changes
- Delete the table chardefs-ueb.cti as these rules are now
Expand Down
269 changes: 269 additions & 0 deletions contrib/braille-input.el
@@ -0,0 +1,269 @@
;; This code is inspired by Vim unicode braille () and http://benizi.com/vim/braille.vim

(robin-define-package "braille-numerical"
"A simple input method for braille."

("b0" ?⠀)
("b1" ?⠁)
("b2" ?⠂)
("b12" ?⠃)
("b3" ?⠄)
("b13" ?⠅)
("b23" ?⠆)
("b123" ?⠇)
("b4" ?⠈)
("b14" ?⠉)
("b24" ?⠊)
("b124" ?⠋)
("b34" ?⠌)
("b134" ?⠍)
("b234" ?⠎)
("b1234" ?⠏)
("b5" ?⠐)
("b15" ?⠑)
("b25" ?⠒)
("b125" ?⠓)
("b35" ?⠔)
("b135" ?⠕)
("b235" ?⠖)
("b1235" ?⠗)
("b45" ?⠘)
("b145" ?⠙)
("b245" ?⠚)
("b1245" ?⠛)
("b345" ?⠜)
("b1345" ?⠝)
("b2345" ?⠞)
("b12345" ?⠟)
("b6" ?⠠)
("b16" ?⠡)
("b26" ?⠢)
("b126" ?⠣)
("b36" ?⠤)
("b136" ?⠥)
("b236" ?⠦)
("b1236" ?⠧)
("b46" ?⠨)
("b146" ?⠩)
("b246" ?⠪)
("b1246" ?⠫)
("b346" ?⠬)
("b1346" ?⠭)
("b2346" ?⠮)
("b12346" ?⠯)
("b56" ?⠰)
("b156" ?⠱)
("b256" ?⠲)
("b1256" ?⠳)
("b356" ?⠴)
("b1356" ?⠵)
("b2356" ?⠶)
("b12356" ?⠷)
("b456" ?⠸)
("b1456" ?⠹)
("b2456" ?⠺)
("b12456" ?⠻)
("b3456" ?⠼)
("b13456" ?⠽)
("b23456" ?⠾)
("b123456" ?⠿)
("b7" ?⡀)
("b17" ?⡁)
("b27" ?⡂)
("b127" ?⡃)
("b37" ?⡄)
("b137" ?⡅)
("b237" ?⡆)
("b1237" ?⡇)
("b47" ?⡈)
("b147" ?⡉)
("b247" ?⡊)
("b1247" ?⡋)
("b347" ?⡌)
("b1347" ?⡍)
("b2347" ?⡎)
("b12347" ?⡏)
("b57" ?⡐)
("b157" ?⡑)
("b257" ?⡒)
("b1257" ?⡓)
("b357" ?⡔)
("b1357" ?⡕)
("b2357" ?⡖)
("b12357" ?⡗)
("b457" ?⡘)
("b1457" ?⡙)
("b2457" ?⡚)
("b12457" ?⡛)
("b3457" ?⡜)
("b13457" ?⡝)
("b23457" ?⡞)
("b123457" ?⡟)
("b67" ?⡠)
("b167" ?⡡)
("b267" ?⡢)
("b1267" ?⡣)
("b367" ?⡤)
("b1367" ?⡥)
("b2367" ?⡦)
("b12367" ?⡧)
("b467" ?⡨)
("b1467" ?⡩)
("b2467" ?⡪)
("b12467" ?⡫)
("b3467" ?⡬)
("b13467" ?⡭)
("b23467" ?⡮)
("b123467" ?⡯)
("b567" ?⡰)
("b1567" ?⡱)
("b2567" ?⡲)
("b12567" ?⡳)
("b3567" ?⡴)
("b13567" ?⡵)
("b23567" ?⡶)
("b123567" ?⡷)
("b4567" ?⡸)
("b14567" ?⡹)
("b24567" ?⡺)
("b124567" ?⡻)
("b34567" ?⡼)
("b134567" ?⡽)
("b234567" ?⡾)
("b1234567" ?⡿)
("b8" ?⢀)
("b18" ?⢁)
("b28" ?⢂)
("b128" ?⢃)
("b38" ?⢄)
("b138" ?⢅)
("b238" ?⢆)
("b1238" ?⢇)
("b48" ?⢈)
("b148" ?⢉)
("b248" ?⢊)
("b1248" ?⢋)
("b348" ?⢌)
("b1348" ?⢍)
("b2348" ?⢎)
("b12348" ?⢏)
("b58" ?⢐)
("b158" ?⢑)
("b258" ?⢒)
("b1258" ?⢓)
("b358" ?⢔)
("b1358" ?⢕)
("b2358" ?⢖)
("b12358" ?⢗)
("b458" ?⢘)
("b1458" ?⢙)
("b2458" ?⢚)
("b12458" ?⢛)
("b3458" ?⢜)
("b13458" ?⢝)
("b23458" ?⢞)
("b123458" ?⢟)
("b68" ?⢠)
("b168" ?⢡)
("b268" ?⢢)
("b1268" ?⢣)
("b368" ?⢤)
("b1368" ?⢥)
("b2368" ?⢦)
("b12368" ?⢧)
("b468" ?⢨)
("b1468" ?⢩)
("b2468" ?⢪)
("b12468" ?⢫)
("b3468" ?⢬)
("b13468" ?⢭)
("b23468" ?⢮)
("b123468" ?⢯)
("b568" ?⢰)
("b1568" ?⢱)
("b2568" ?⢲)
("b12568" ?⢳)
("b3568" ?⢴)
("b13568" ?⢵)
("b23568" ?⢶)
("b123568" ?⢷)
("b4568" ?⢸)
("b14568" ?⢹)
("b24568" ?⢺)
("b124568" ?⢻)
("b34568" ?⢼)
("b134568" ?⢽)
("b234568" ?⢾)
("b1234568" ?⢿)
("b78" ?⣀)
("b178" ?⣁)
("b278" ?⣂)
("b1278" ?⣃)
("b378" ?⣄)
("b1378" ?⣅)
("b2378" ?⣆)
("b12378" ?⣇)
("b478" ?⣈)
("b1478" ?⣉)
("b2478" ?⣊)
("b12478" ?⣋)
("b3478" ?⣌)
("b13478" ?⣍)
("b23478" ?⣎)
("b123478" ?⣏)
("b578" ?⣐)
("b1578" ?⣑)
("b2578" ?⣒)
("b12578" ?⣓)
("b3578" ?⣔)
("b13578" ?⣕)
("b23578" ?⣖)
("b123578" ?⣗)
("b4578" ?⣘)
("b14578" ?⣙)
("b24578" ?⣚)
("b124578" ?⣛)
("b34578" ?⣜)
("b134578" ?⣝)
("b234578" ?⣞)
("b1234578" ?⣟)
("b678" ?⣠)
("b1678" ?⣡)
("b2678" ?⣢)
("b12678" ?⣣)
("b3678" ?⣤)
("b13678" ?⣥)
("b23678" ?⣦)
("b123678" ?⣧)
("b4678" ?⣨)
("b14678" ?⣩)
("b24678" ?⣪)
("b124678" ?⣫)
("b34678" ?⣬)
("b134678" ?⣭)
("b234678" ?⣮)
("b1234678" ?⣯)
("b5678" ?⣰)
("b15678" ?⣱)
("b25678" ?⣲)
("b125678" ?⣳)
("b35678" ?⣴)
("b135678" ?⣵)
("b235678" ?⣶)
("b1235678" ?⣷)
("b45678" ?⣸)
("b145678" ?⣹)
("b245678" ?⣺)
("b1245678" ?⣻)
("b345678" ?⣼)
("b1345678" ?⣽)
("b2345678" ?⣾)
("b12345678" ?⣿))

(register-input-method
"braille-numerical"
"braille"
'robin-use-package
"braille"
"A simple numerical braille input method")

13 changes: 2 additions & 11 deletions liblouis/lou_translateString.c
Expand Up @@ -677,17 +677,8 @@ validMatch ()
TranslationTableCharacterAttributes prevAttr = 0;
int k;
int kk = 0;
unsigned short mask = EMPHASIS | capsemph;
if (!transCharslen)
return 0;
switch (transOpcode)
{
case CTO_Syllable:
mask |= SYLLABLEMARKS;
break;
default:
break;
}
for (k = src; k < src + transCharslen; k++)
{
if (currentInput[k] == ENDSEGMENT)
Expand All @@ -704,7 +695,7 @@ validMatch ()
if ((currentInputChar->lowercase != ruleChar->lowercase))
return 0;
if (typebuf != NULL && (typebuf[src] & capsemph) == 0 &&
(typebuf[k] & mask) != (typebuf[src] & mask))
(typebuf[k] | typebuf[src]) != (typebuf[src]))
return 0;
if (currentInputChar->attributes != CTC_Letter)
{
Expand Down Expand Up @@ -1803,7 +1794,7 @@ markSyllables ()
if (syllableMarker > 3)
syllableMarker = 1;
currentMark = syllableMarker << 6;
/*The syllable marker is bita 6 and 7 of typebuf. */
/*The syllable marker is bits 6 and 7 of typebuf. */
if ((src + transCharslen) > srcmax)
return 0;
for (k = 0; k < transCharslen; k++)
Expand Down

0 comments on commit 66f57cd

Please sign in to comment.