[liblouis-liblouisxml] Re: One more question about boxing lines

  • From: "John J. Boyer" <johnjboyer@xxxxxxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Thu, 23 Oct 2008 03:36:58 -0500

Chris,

This is due to the fact that the liblouis table is set up to truncate
long strings of hyphens, underscores, periods, blanks, etc. such as
occur in many print documents and are only an annoyance to braille
readers. This can be handled by having a subtable with repeated opcodes
to handle these situations and placing it at the end of a table list in
the literaryTextTable line of the configuration file. However, this
would involve a minor rewrite of the liblouis tables.

I'm glad to see you bringing up these questions, because it means that 
liblouis(xml) is evolving.

John

On Wed, Oct 22, 2008 at 04:13:45PM -0700, Chris von See wrote:
> I also noticed that if I insert four hyphens into the file prior to  
> translation then I only get three hyphens out.
> 
> The input to liblouisxml is:
> 
> <p>This blank should be filled in ---- and so should this one ----  
> and this one ---- but not this one _.</p>
> 
> The braille ASCII I get out is:
> 
> ,? blank %d 2 fill 9 --- & s %d ? "o
> --- & ? "o --- b n ? "o _.
> 
> Do you know of any reasons why these would be truncated?
> 
> 
> Thanks
> Chris
> 
> 
> On Oct 22, 2008, at 2:51 PM, Chris von See wrote:
> 
> >Hello John -
> >
> >One more question: I inserted 40 cells of dots 3-6 as a boxing line  
> >in the XML prior to calling liblouisxml, but when I looked at the  
> >output I only got 27 cells out.  I inserted the boxing line using  
> >the following XML:
> >
> ><span class="boxingLine">----------------------------------------</ 
> >span>
> >
> >and inserted the following line into the semantic action file:
> >
> >style1 span,class,boxingLine
> >
> >"style1" is defined in the config file as:
> >
> ># boxingLines
> >style style1
> >     firstLineIndent 0
> >
> >
> >Do you have any thoughts on why the boxing lines are being truncated?
> >
> >
> >Thanks and regards
> >Chris von See
> 
> For a description of the software and to download it go to
> http://www.jjb-software.com

-- 
John J. Boyer, Executive Director
GodTouches Digital Ministry, Inc.
http://www.godtouches.org
Madison, Wisconsin, USA
Peace, Love, Service

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

Other related posts: