[liblouis-liblouisxml] Re: What is the lowercase bug?

  • From: Christian Egli <christian.egli@xxxxxx>
  • To: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • Date: Mon, 14 May 2012 16:34:05 +0200

Hi John

"John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx> writes:

> Please clarify what this means. I have not been able to find a problem 
> when I use lou_translate tool directly. I can type in a Unicode string 
> using the \xhhhh format and it works.

The problem is that a word opcode doesn't match if you define a
character with lowercase. It matches if you define the character with
uplow. I created two minimal tables
(tests/tables/lowercase_with_unicode.ctb and
tests/tables/uplow_with_unicode.ctb which define a few characters and a
few contractions (using the word opcode). If you load these in
lou_allround and try to translate the word "gross" you correctly get
"g^". However if you translate "gro\x00df" the contraction only works if
you define \x00df with uplow (and fails with lowercase). There is a test
case to reproduce this (test/uplow_with_unicode.c)

Incidentally I believe that this is the same bug as the letter def bug
that Mesar has been raising.

Thanks
Christian

-- 
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland

-----
Tag der offenen Tuer
Die SBS laedt Sie herzlich ein: 30. Juni 2012 von 9 bis 16 Uhr.
Mehr Informationen erhalten Sie unter www.sbs.ch/offenetuer
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: