[liblouis-liblouisxml] Re: More fun with boxing lines

  • From: Chris von See <chris@xxxxxxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Thu, 23 Oct 2008 12:28:01 -0700

Another thought: can I just indicate that these are to be grade 1 somehow? Will that do the trick?



On Oct 23, 2008, at 12:17 PM, Mike Sivill wrote:

Ok so it is translating your lines instead of just putting them in because you have them in the text that is to be translated. This might work better:
In your xml doc:
<boxing>
    <p>
        Para in the box.
    </p>
</boxing>

Then in your document.sem table or whichever one you're using insert this
line:
Boxinglines boxinglines
77777777777777777777777777777777777777,ggggggggggggggggggggggggggggggg gggggg
ggg

That ought to do it.
Mike

-----Original Message-----
From: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx
[mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] On Behalf Of Chris von
See
Sent: Thursday, October 23, 2008 11:17 AM
To: liblouis-liblouisxml@xxxxxxxxxxxxx
Subject: [liblouis-liblouisxml] More fun with boxing lines

Hello John -

I created a DAISY file and added elements to insert starting and
ending boxing lines, but it would appear that liblouisxml and/or
liblouis are flipping the lines around.  The file I translated has
the following sections in it:

<level1 id="sidebarTest">
        <h1>Boxing lines test</h1>
        <span
class="startingBoxingLine">7777777777777777777777777777777777777777</
span>
        <sidebar render="required">
                <hd>This is a sidebar heading</hd>
                <p>This is a paragraph inside the sidebar</p>
                <p>The sidebar should have boxing lines around it.</p>
                <span
class="endingBoxingLine">GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG</ span>
        </sidebar>
</level1>
<level1 id="prodnoteTest">
        <h1>Prodnote test</h1>
        <span
class="startingBoxingLine">7777777777777777777777777777777777777777</
span>
        <prodnote render="required">
                <p>This is a paragraph inside the prodnote</p>
                <p>The prodnote should have boxing lines around it.</p>
                <span
class="endingBoxingLine">GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG</ span>
        </prodnote>
</level1>

It appears correct at this level - the starting boxing line is
comprised of 40 dot 2356 cells and the ending boxing line is
comprised of 40 dot 1245 cells.  However, when I translate this I get
the following:


          ,box+ l9es te/             c#a

#gggggggggggggggggggggggggggggggggggggg-
gg
     ,sideb>3 ,? is a sideb> h1d+
   ,? is a p>agraph 9side ! sideb>
   ,! sideb> %d h box+ l9es >.d x4
,,g7777777777777777777g

              ,prodnote te/

#gggggggggggggggggggggggggggggggggggggg-
gg
   ,prodnote3 ,? is a p>agraph 9side !
prodnote
   ,! prodnote %d h box+ l9es >.d x4
,,g7777777777777777777g

It would appear that liblouisxml and/or liblouis are reversing the
ending and starting boxing lines, changing the dot configuration of
the starting line and adding signs to the start of both.  I can't
find anything in the en-us-g1.ctb or en-us-g2.ctb which could explain
this behaviour - could you help?


Thanks
Chris


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

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

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

Other related posts: