liblouis / liblouisutdml

An open-source library providing complete braille transcription services for xml, html and text documents
http://liblouis.io
GNU General Public License v3.0
24 stars 16 forks source link

Location of blank lines relative to topBoxLine #90

Open rbeezer opened 1 year ago

rbeezer commented 1 year ago

BANA 7.2.1 says: Boxes are preceded and followed by blank lines.

https://www.brailleauthority.org/formats/2016manual-web/section07.html

Attached minimal example shows how the linesBefore and linesAfter both come after a topBoxLine and bottomBoxLine respectively. It would be more useful to have the linesBefore come before the topBoxLine.

Use

file2brl -f minimal.cfg source.html

Output is

tttttttttttttttttttttttttttttttttttttttt

,"s 3t5t 9side ! box4
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb

,3t5t foll{+ ! box4

                                      #a

top-line.zip

egli commented 1 year ago

Hi Rob

Unfortunately we do not really have time to fix any liblouisutdml issues. If you can fix it we're happy to incorporate the fix. Bert has apparently fixed this issue or worked around it in odt2braille. You might want to look at that for inspiration/guidance

Hope that helps