Skip to content

Commit

Permalink
Fix issues with \x001b and \x00a0 using pass2 rules
Browse files Browse the repository at this point in the history
see #4
  • Loading branch information
bertfrees committed Sep 4, 2015
1 parent 7b279b7 commit bafdc96
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tables/no-no-8dot.utb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ sign \x0017 245678 # END OF TRANSMISSION BLOCK ( - <Kontrolltegn>)
sign \x0018 134678 # CANCEL ( - <Kontrolltegn>)
sign \x0019 1345678 # END OF MEDIUM ( - <Kontrolltegn>)
sign \x001A 135678 # SUBSTITUTE ( - <Kontrolltegn>)
sign \x001B 12348 # ESCAPE ( - <Kontrolltegn>)

# does not work because `space \x001b 1b` is hardcoded in compileTranslationTable.c; replacing with a pass2 rule
# sign \x001B 12348 # ESCAPE ( - <Kontrolltegn>)
pass2 @1b @12348

sign \x001C 123458 # FILE SEPARATOR ( - <Kontrolltegn>)
sign \x001D 1368 # GROUP SEPARATOR ( - <Kontrolltegn>)
sign \x001E 24568 # RECORD SEPARATOR ( - <Kontrolltegn>)
Expand Down Expand Up @@ -157,7 +161,11 @@ sign \x203A 678 # SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (› - Enkel
sign \x0153 1234568 # LATIN SMALL LIGATURE OE (œ - Liten latinsk bokstav oe)
sign \x017E 23468 # LATIN SMALL LETTER Z WITH CARON (ž - Liten latinsk bokstav z med caron)
sign \x0178 125678 # LATIN CAPITAL LETTER Y WITH DIAERESIS (Ÿ - Stor latinsk bokstav Y med trema)
sign \x00A0 8 # NO-BREAK SPACE ( - Hardt mellomrom)

# does not work because `space \x00a0 a` is hardcoded in compileTranslationTable.c; replacing with a pass2 rule
# sign \x00A0 8 # NO-BREAK SPACE ( - Hardt mellomrom)
pass2 @a @8

sign \x00A1 2358 # INVERTED EXCLAMATION MARK (¡ - Omvendt utropstegn)
sign \x00A2 2578 # CENT SIGN (¢ - Cent-tegn)
sign \x00A3 1238 # POUND SIGN (£ - Pund-tegn)
Expand Down

0 comments on commit bafdc96

Please sign in to comment.