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

  • From: Christian Egli <christian.egli@xxxxxx>
  • To: Mesar Hameed <mesar.hameed@xxxxxxxxx>
  • Date: Fri, 30 Mar 2012 16:58:25 +0200

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: