[liblouis-liblouisxml] Re: Trying to reproduce the letter, etc. bug

  • From: Mesar Hameed <mesar.hameed@xxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Tue, 3 Apr 2012 00:26:02 +0100

The problem is that i have not been able to find an actual example that shows 
the correct way to do it, and I dont have much 
time for experimenting.

Is anyone able to shed some light on the matter?


Thanks.
On Fri 30/03/12,16:58, Christian Egli wrote:
> Mesar Hameed <mesar.hameed@xxxxxxxxx> writes:
> 
> > I have just added test/letterDefTest.c
> 
> > I havent had much experience with defining unicode tests before, I hope its 
> > ok to specify \xhhhh as I have done.
> 
> The way you are doing this in letterDefTest.c will probably not work. If
> you add string literals like "\xhhhh" to the C code the compiler will
> change them into Unicode chars[1]. So even if we were to use
> extParseChars in tests/brl_checks.c these chars would not be interpreted
> correctly. So while liblouis can handle Unicode I'm not sure whether the
> test code in tests/brl_checks.c can.
> 
> Thanks
> Christian
> 
> Footnotes: 
> [1]  
> http://stackoverflow.com/questions/442735/how-can-i-embed-unicode-string-constants-in-a-source-file
> -- 
> Christian Egli
> Swiss Library for the Blind, Visually Impaired and Print Disabled
> Grubenstrasse 12, CH-8045 Zürich, Switzerland
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: