Add footnote support to allioli with Unicode superscripts
- Add footnote handling functions to allioli.awk: - printintroductionpar() for chapter 0 prologues - printfootnote() for displaying footnotes with proper formatting - Updated processline() to detect and route introductions, footnotes, and verses - Add -F flag to allioli.sh to disable footnotes - Strip superscript numbers (⁰¹²³⁴⁵⁶⁷⁸⁹) from verse text when -F is enabled - TSV format now supports footnotes in column 6 (number) and column 7 (text) - Footnotes use global numbering matching superscript references in verses
This commit is contained in:
@@ -22,6 +22,7 @@ show_help() {
|
||||
echo
|
||||
echo " -l list books"
|
||||
echo " -W no line wrap"
|
||||
echo " -F no footnotes"
|
||||
echo " -h show help"
|
||||
echo
|
||||
echo " Reference types:"
|
||||
@@ -64,6 +65,9 @@ while [ $# -gt 0 ]; do
|
||||
elif [ "$1" = "-W" ]; then
|
||||
export ALLIOLI_NOLINEWRAP=1
|
||||
shift
|
||||
elif [ "$1" = "-F" ]; then
|
||||
export ALLIOLI_NOFOOTNOTES=1
|
||||
shift
|
||||
elif [ "$1" = "-h" ] || [ "$isFlag" -eq 1 ]; then
|
||||
show_help
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user