[liblouis-liblouisxml] Re: Issue with emphasis

  • From: Paul Wood <paulw@xxxxxxxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Wed, 19 Nov 2014 20:10:56 +0000

Michael I'll send you the xslt when I'm back at work tomorrow with an
example so you can see how it works.
Paul
On 19 Nov 2014 19:48, "Michael Whapples" <dmarc-noreply@xxxxxxxxxxxxx>
wrote:

>  Hello,
> When you say you preprocess the XML, how does this apply the indicators to
> the Braille output?
>
> We have been considering doing our own emphasis handling in the Java code
> of BrailleBlaster, so we would be interested how others do such a thing and
> not use liblouis for emphasis and whether any issues were encountered in
> doing that.
>
> Michael Whapples
> On 19/11/2014 19:44, Paul Wood wrote:
>
> Just so you know we don't use liblouis to do the emphasis (italic), but
> preprocess the XML. AFAIK liblouis still hasn't been fixed so the emphasis
> works for SEB or UEB, but I thought it worked for US Braille. I know John
> was working on macro code but I have never seen the documentation.
> Paul
> On 19 Nov 2014 19:20, "Michael Whapples" <dmarc-noreply@xxxxxxxxxxxxx>
> wrote:
>
>> 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: