[liblouis-liblouisxml] Re: xml commands with xml2brl

  • From: Greg Williams <greg.williams.1978@xxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Tue, 17 Mar 2009 10:42:03 -0500

Hi John,
I must be doing something wrong somewhere else. I have switched it from linesbefore 0 to linesbefore 5, and it has made no difference. The command I am using is
xml2brl -f bible.cfg book.xml book.brf
If I run it with internet no, there are no messages; if I run it with internet yes, it says "validation failed: no DTD found <bible>". I don't think that is important but just in case. Have I got something wrong in my command line, or is there something else I should be checking for? Thanks.
Greg

On Mar 16, 2009, at 5:36 PM, John J. Boyer wrote:

Greg,

In your definition of style1 use
linesBefore 2

John

On Mon, Mar 16, 2009 at 03:43:58PM -0500, Greg Williams wrote:
Hi,
I have text files each containing one book of the Bible. I would like
to translate them for my braille lite such that each verse is on one
line, and there are two ilnes between chapters.
I have structured the files as follows:
<bible>
<name>BookTitle</name>
<chapter>
<p>1:1 text</p>
...
</chapter>
...
</bible>

My cfg file is

# bible.cfg
outputFormat
        lineEnd \r
        printPages no
        braillePages no
        paragraphs no
xml
        internetAccess no
style para
        firstLineIndent 0
style heading1
        linesBefore 0
        format leftjustified
        linesAfter 0
style style1
        linesbefore 1

and the sem file

# bible.sem
italicx em
document bible
para p
heading1 name
style1 chapter


This results in what I want except that there is no extra line between
chapters.  If I use "paragraphs yes", then I still end up with no
extra line, and the verses are broken into 40 character lines. (as
expected)  Can anyone tell me how to get what I want?  Thanks.
Greg

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

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

Other related posts: