[liblouis-liblouisxml] Issue with emphasis

  • From: "Michael Whapples" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "mwhapples@xxxxxxx" for DMARC)
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Wed, 19 Nov 2014 19:19:12 +0000

Hello,
In the BrailleBlaster development team we are noticing some issues with liblouis and emphasis. I believe in all cases the bold typeform is being placed in the typeforms array and for the entire string length.

The first one is that the following string is leading to the end indicator being inserted in the wrong place, it comes before the final D.
Leslie W. Crawford, Ed.D.
This was noticed when using BrailleBlaster, so i decided to do some tests with lou_allround to see whether it was an issue with BrailleBlaster or liblouis.

In addition to the above issue, I spotted that emphasis seems to not work when additional spaces are inserted at the beginning of the string, the index value of the indicators does not seem to change. Take the following strings (ignore quotes, they are only to help see the spaces):
"Leslie W. Crawford, Ed.D."
" Leslie W. Crawford, Ed.D."
"  Leslie W. Crawford, Ed.D."
I think we can agree the translations should be the same except for additional spaces at the beginning, but this is not.

I have tested this latter one with liblouis 2.6.0, tried it with both en-us-g2.ctb and en-GB-g2.ctb but neither give the result of same translation except for leading spaces. So I suspect this might be an issue with the emphasis code rather than a specific table.

Can others confirm these issues?

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

Other related posts: