[liblouis-liblouisxml] Re: Unicode output

  • From: "John J. Boyer" <johnjboyer@xxxxxxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Fri, 22 May 2009 09:06:31 -0500

Lars,

Thanks for the explanation. The display opacode will indeed produce 
these Unicode characters for these dot patterns. These are 16- or 32-bit 
characters, depending on how liblouis and liblouisxml were compiled. If 
you use liblouis directly in your applications, you will get the Unicode 
characters. However, to get them from liblouisxml or xml2brl you need to 
specify the output encoding. The default encoding is to 8-bit 
characters. To get 16-bit characters specify 
outputEncoding utf16
in your configuration file. For 32-bit characters use utf32

You are "pushing the envelope". I'm glad you are trying these things.

John

On Fri, May 22, 2009 at 11:14:05AM +0200, Lars Bj�rndal wrote:
> "John J. Boyer" <johnjboyer@xxxxxxxxxxxxx> writes:
> 
> > Just to reiterate, the display opcode does not define characters. It 
> > only changes the characters-dots mapping for different braille displays 
> > and embossers.
> 
> What I want to do, is to produce braille that should be displayed with
> a font that shows the braille dots on screen. In the font, Unicode
> character 2801, for example will dispaly dot 1. I would expect that a
> display opcode should work for this purpose, but unfortunately it doesn't.
> 
> Best regards,
> Lars
> 
> > On Wed, May 20, 2009 at 11:14:37AM +0200, Lars Bj�rndal wrote:
> >> Hi, John!
> >> 
> >> You wrote:
> >> 
> >> > I assume you have character definitions for the Unicode characters. If 
> >> > not, try replacing the display opcode with the sign opcode.
> >> 
> >> It gave exactly the same result with 'sign' as with 'display' - sorry.
> >> The characters was only defined in the .dis file.
> >> 
> >> Lars
> >> 
> >> > On Tue, May 19, 2009 at 09:26:47PM +0200, Lars Bj�rndal wrote:
> >> >> Hello!
> >> >> 
> >> >> I tried to include a dis file which should produce Unicode braille.
> >> >> The unicodebrl.dis looks like this:
> >> >> 
> >> >> display \X2801 1
> >> >> display \X2802 2
> >> >> display \X2803 12
> >> >> display \X2804 3
> >> >> display \X2805 13
> >> >> display \X2806 23
> >> >> ...
> >> >> 
> >> >> However, the result isn't as expected. Is this a bug, do you think?
> >> >> 
> >> >> Best regards,
> >> >> Lars
> 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

Other related posts: