[liblouis-liblouisxml] Re: Have a bug with louis.backTranslate and louis.backTranslateStrings function?

  • From: Hammer Attila <hammera@xxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Thu, 31 May 2012 08:36:57 +0200

Hy Jon,

I readed this notes with Liblouis documentation.
Possible correcting table level this type errors during backtranslation without lost the compatibility with other platforms awailable hungarian euro braille character mappings? I try adding some correct opcodes in hu1.ctb, but not always I get right good results: #Some correction opcodes with need to Liblouis backtranslate function producing correct hungarian text result from a brf document
correct "0" "\x00fa"
correct "2" "z"
correct "{" "\x00fc"
correct "}" "\x0171"
correct "1" "\x00e9"
correct "7" "\x0151"
correct "9" "\x00f3"
correct "q" "\x00f6"
correct "\"" "\x00e1"
correct ">" "@"
correct "|" "\x00ed"

For example, if I run now my modified test harness file, I get only 15 failed tests of 1560 tests. Only the problem if I using this modification have some braille differences with I not want:
--- Braille Difference Failure: ---
text:                     'A telefonszámom: 06-1-256-256.'
CursorAt: 0               '^                             '
expected brl:             '$a telefon5"mom: #jf-#a-#bef-#bef.'
actual brl:               '$a telefon5"mom: 0#f-1-2#ef-2#ef.'

I need using different opcode, or too risk doing this type modifications to hide this bug?

Attila
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: