Add bilingual Latin-German side-by-side display support

- Update TSV format to 8 columns: BookName, BookAbbr, BookNum, Chapter, Verse, Latin, German, FootnoteText
- Add printverse_bilingual() function for side-by-side Latin/German display
- Add language filter flags -g (German only) and -L (Latin only)
- Add to_superscript_num() function to convert footnote numbers to Unicode superscripts
- Update processline() to detect and route bilingual verses, German-only, Latin-only, introductions, and footnotes
- Footnotes now display with superscript numbers (¹²³⁴⁵⁶⁷⁸⁹⁰)
- Default mode shows Latin and German in two columns with | separator
- Introductions and footnotes display full-width

New flags:
  -g  show only German (no Latin)
  -L  show only Latin (no German)
This commit is contained in:
2025-12-16 17:47:12 +01:00
parent 314db1710f
commit 69a85dacdc
2 changed files with 139 additions and 13 deletions

View File

@@ -23,6 +23,8 @@ show_help() {
echo " -l list books"
echo " -W no line wrap"
echo " -F no footnotes"
echo " -g show only German (no Latin)"
echo " -L show only Latin (no German)"
echo " -h show help"
echo
echo " Reference types:"
@@ -68,6 +70,12 @@ while [ $# -gt 0 ]; do
elif [ "$1" = "-F" ]; then
export ALLIOLI_NOFOOTNOTES=1
shift
elif [ "$1" = "-g" ]; then
export ALLIOLI_ONLY_GERMAN=1
shift
elif [ "$1" = "-L" ]; then
export ALLIOLI_ONLY_LATIN=1
shift
elif [ "$1" = "-h" ] || [ "$isFlag" -eq 1 ]; then
show_help
else