[liblouis-liblouisxml] Solution to the Bible transcription problem

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Mon, 20 Feb 2012 07:47:43 -0600

Not all the details have been implemented yet, and when they are bugs 
are to be expected. However, the solution may be of inerest. 

First we have two style definitions.

style firstColumn
        translationTable nonumsign.ctb 
        newlineAfter no
style secondColumn
        leftMargin 5
        firstLineIndent 2
        
In the firstColumn style translationTable replaces the old translate 
setting, which was pretty useless. nonuumsign.ctb is a liblouis table 
that contains only litdigit opcodes. Since there is no number sign, none 
is inserted. newlineAfter is set to yes by default. Setting it to no 
here meansk that a line from secondColumn will follow it on the same 
physical line.

In secondColumn leftMargin 5 leaves space for the verse number.

The semantic file will have three additional lines:

firstColumn verse
attrtotext verse,number
secondColumn para

attrtotext is a new semantic action. It finds the value of an attribute 
and places it in the input text buffer.

Thanks,
John
                
-- 
John J. Boyer; President, Chief Software Developer
Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities

For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: