diff --git a/README.md b/README.md index aeea23a..e741b5f 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Code largely based off of [https://github.com/bontibon/kjv.git](https://github.c -l list books -W no line wrap -h show help + -F no footnotes Reference types: diff --git a/bibel.awk b/bibel.awk index 54c0d71..b2e9b6f 100644 --- a/bibel.awk +++ b/bibel.awk @@ -197,6 +197,10 @@ function printintroductionpar(verse, word_count, characters_printed) { } function printannotation(annotation, word_count, characters_printed) { + if ( ENVIRON["BIBEL_NOFOOTNOTES"] != "" && ENVIRON["BIBEL_NOFOOTNOTES"] != "0"){ + return + } + else{ if (ENVIRON["BIBEL_NOLINEWRAP"] != "" && ENVIRON["BIBEL_NOLINEWRAP"] != "0") { printf("\t\t%s\n", annotation) return @@ -227,6 +231,7 @@ function printannotation(annotation, word_count, characters_printed) { printf("\n") } printf("\n") + } } function processline() { diff --git a/bibel.sh b/bibel.sh index 69c0830..6667f2d 100755 --- a/bibel.sh +++ b/bibel.sh @@ -23,6 +23,7 @@ show_help() { echo " -l list books" echo " -W no line wrap" echo " -h show help" + echo " -F no footnotes" echo echo " Reference types:" echo " " @@ -64,6 +65,9 @@ while [ $# -gt 0 ]; do elif [ "$1" = "-W" ]; then export BIBEL_NOLINEWRAP=1 shift + elif [ "$1" = "-F" ]; then + export BIBEL_NOFOOTNOTES=1 + shift elif [ "$1" = "-h" ] || [ "$isFlag" -eq 1 ]; then show_help else