I haven't used html2lrf in a while. I'm trying to help my friends at almudi.org to convert the breviary in Latin to BBeB format since they graciously loaned me the source files. I have a folder of html files (all linked together) to convert and I'm getting the following error back from the latest version as of this post:
Code:
[INFO] convert_from.py:187: Processing completorium.html
Parsing HTML...
[INFO] convert_from.py:205: Converting to BBeB...
Traceback (most recent call last):
File "/usr/bin/html2lrf", line 8, in <module>
load_entry_point('libprs500==0.3.103', 'console_scripts', 'html2lrf')()
File "build/bdist.linux-i686/egg/libprs500/ebooks/lrf/html/convert_from.py", line 1576, in main
File "build/bdist.linux-i686/egg/libprs500/ebooks/lrf/html/convert_from.py", line 1493, in process_file
File "build/bdist.linux-i686/egg/libprs500/ebooks/lrf/html/convert_from.py", line 177, in __init__
File "build/bdist.linux-i686/egg/libprs500/ebooks/lrf/html/convert_from.py", line 219, in start_on_file
File "build/bdist.linux-i686/egg/libprs500/ebooks/lrf/html/convert_from.py", line 322, in parse_file
File "build/bdist.linux-i686/egg/libprs500/ebooks/lrf/html/convert_from.py", line 528, in process_children
File "build/bdist.linux-i686/egg/libprs500/ebooks/lrf/html/convert_from.py", line 1376, in parse_tag
File "build/bdist.linux-i686/egg/libprs500/ebooks/lrf/html/convert_from.py", line 528, in process_children
File "build/bdist.linux-i686/egg/libprs500/ebooks/lrf/html/convert_from.py", line 1376, in parse_tag
File "build/bdist.linux-i686/egg/libprs500/ebooks/lrf/html/convert_from.py", line 528, in process_children
File "build/bdist.linux-i686/egg/libprs500/ebooks/lrf/html/convert_from.py", line 1209, in parse_tag
UnboundLocalError: local variable 'pcss' referenced before assignment
This is from the command (where completorium.html is the index file):
Code:
html2lrf -t "Liturgia Horarum: ad Completorium" -a "Ecclesia Catholica" --publisher="almudi.org" --header --headerformat=%t --link-levels=1 --disable-chapter-detection --verbose ./completorium.html