[liblouis-liblouisxml] Re: Whitespace

Lars,

You are right. The first character defined with a given dot pattern will 
be used as the translation of all the characters. For example, in the 
following lines space or blank will always be returned.

space \s 0
space \t 0
space \x000a 0
space x000d 0

If you want to define something as a whitespace, but don't want it 
translated to blank you can use "virtual dots." re
These have numbers 
from 
9 to e (like hexadecimal). For example

space \t 9 
space \x001b 1b escape
space \x00a0 a unbreakable space

Virtual dots are also useful to obtain better handling of accented
letters when braille is displayed as dot patterns on a screen.

John

On Wed, Feb 20, 2008 at 10:18:41PM +0100, Lars Bjrndal wrote:
> Hello!
> 
> I'm a litle bit confused about how to handle whitespace characters
> with LibLouis. While I use LibLouis in HTCom from Handy Tech (which is
> an old version of LibLouis), new lines are treated as spaces.
> 
> John, you said that the first character defined, will be used for a
> dot combination (0 in this case), so I suppose that if space comes
> before new line, new line are treated as space, because both are set
> to 0. If the new line are defined before space, then all spaces are
> converted to new line. Am I right?
> 
> Could you please explain how this should work? Are some of the 9x
> characters of interest here?
> 
> Thanks
> 
> Lars
> For a description of the software and to download it go to
> http://www.jjb-software.com

-- 
John J. boyer; President, Chief Software Developer
JJB Software, Inc.
http://www.jjb-software.com
Madison, WI USA
Developing software for people with disabilities

For a description of the software and to download it go to
http://www.jjb-software.com

Other related posts: