Christian, The \x escape sequence accepts exactly 4 hexadecimal digits. This is true even if liblouis has been compiled for 32-bit Unicode. To use 5 hexidecimal digits you need the \y escape sequence. The \z escape sequence requires 8 hexidecimal digits. These restrictions were made so that the code would know where the hexadecimal number ended. John On Thu, Jul 02, 2009 at 09:42:07AM +0200, Christian Egli wrote: > Hi Samuel > > On Wed, 2009-07-01 at 17:42 +0200, Samuel Thibault wrote: > > Christian Egli, le Wed 01 Jul 2009 13:53:33 +0200, a écrit : > > > Could it be that lines such as the following: > > > punctuation \x02654 137 WHITE CHESS KING > > > should be > > > punctuation \x2654 137 WHITE CHESS KING > > > > Ah, yes. Dave thought that would be allowed and I hadn't checked it. > > Here is an updated patch. > > Thank you very much. I applied the patch and the test passes for these > tables now. > > According to the documentation [1] 5-digit (20 bit) character such as > \xhhhhh are allowed if liblouis has been compiled for 32-bit Unicode, so > your original patch should have worked with a 32-bit Unicode liblouis. I > thought I had also tested with a build where I enabled 32-bit with > --enable-ucs4, but the tests failed there as well. Hm, maybe we need > some test cases for 32-bit enabled liblouis. > > Thanks > Christian > > [1] > http://liblouis.googlecode.com/svn/documentation/liblouis.html#How-to-Write-Translation-Tables > -- > Christian Egli > Swiss Library for the Blind and Visually Impaired > Grubenstrasse 12, CH-8045 Zürich, Switzerland > > For a description of the software and to download it go to > http://www.jjb-software.com -- My websites: GodTouches Digital Ministry, Inc. http://www.abilitiessoft.com/godtouches Abilitiessoft, Inc. http://www.abilitiessoft.com Location: Madison, WI, USA For a description of the software and to download it go to http://www.jjb-software.com