[liblouis-liblouisxml] Re: xml2brl: Bug report

  • From: "John J. Boyer" <john@xxxxxxxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Tue, 31 Aug 2010 10:41:51 -0500

The problem is actually in the hyphenate functions in liblouis. They 
need attention, especially in view of the recent updates to the mapping 
of character and braille positions.

John

On Tue, Aug 31, 2010 at 03:33:51PM +0200, Lars Bj?rndal wrote:
> Hi!
> 
> I found a bug that's reproducable.
> 
> Put the following string in a .txt file:
> 
> -- Cut --
> som kan endres fra menyen "innstillinger".
> -- Cut --
> 
> Use the following command to convert the string:
> 
> "xml2brl -C cellsperline=30 -C hyphenate=yes -C 
> literaryTextTable=no-no-generic.dis,no-no-g1.ctb,hyph_no_NO.dic 
> <filename>t.txt"
> 
> The result will look like:
> 
>   s k endres f meny2 /in-
> nstilling5/.
> 
> The hyphenation is placed one character to the left, compared to what
> we expect.
> 
> If you instead try this string in the text file:
> 
> -- Cut --
> som kan endres test fra menyen innstillinger.
> -- Cut --
> you get the following output:
> 
>   s k endres test f meny2 inn-
> stilling5.
> 
> As you see, the hyphenation is placed after the second n, which is
> correct.
> 
> So, it seems that the quote mark somehow confuses the hyphenation
> process.
> 
> Thanks, and best regards,
> Lars
> 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: