added option to disable footnotes
This commit is contained in:
		@@ -15,6 +15,7 @@ Code largely based off of [https://github.com/bontibon/kjv.git](https://github.c
 | 
				
			|||||||
      -l      list books
 | 
					      -l      list books
 | 
				
			||||||
      -W      no line wrap
 | 
					      -W      no line wrap
 | 
				
			||||||
      -h      show help
 | 
					      -h      show help
 | 
				
			||||||
 | 
					      -F      no footnotes
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      Reference types:
 | 
					      Reference types:
 | 
				
			||||||
          <Book>
 | 
					          <Book>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -197,6 +197,10 @@ function printintroductionpar(verse,    word_count, characters_printed) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function printannotation(annotation,    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") {
 | 
						if (ENVIRON["BIBEL_NOLINEWRAP"] != "" && ENVIRON["BIBEL_NOLINEWRAP"] != "0") {
 | 
				
			||||||
		printf("\t\t%s\n", annotation)
 | 
							printf("\t\t%s\n", annotation)
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
@@ -228,6 +232,7 @@ function printannotation(annotation,    word_count, characters_printed) {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
	printf("\n")
 | 
						printf("\n")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function processline() {
 | 
					function processline() {
 | 
				
			||||||
	if (printed_intrudction && $4 != 0){
 | 
						if (printed_intrudction && $4 != 0){
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								bibel.sh
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								bibel.sh
									
									
									
									
									
								
							@@ -23,6 +23,7 @@ show_help() {
 | 
				
			|||||||
	echo "  -l      list books"
 | 
						echo "  -l      list books"
 | 
				
			||||||
	echo "  -W      no line wrap"
 | 
						echo "  -W      no line wrap"
 | 
				
			||||||
	echo "  -h      show help"
 | 
						echo "  -h      show help"
 | 
				
			||||||
 | 
						echo "  -F      no footnotes"
 | 
				
			||||||
	echo
 | 
						echo
 | 
				
			||||||
	echo "  Reference types:"
 | 
						echo "  Reference types:"
 | 
				
			||||||
	echo "      <Book>"
 | 
						echo "      <Book>"
 | 
				
			||||||
@@ -64,6 +65,9 @@ while [ $# -gt 0 ]; do
 | 
				
			|||||||
	elif [ "$1" = "-W" ]; then
 | 
						elif [ "$1" = "-W" ]; then
 | 
				
			||||||
		export BIBEL_NOLINEWRAP=1
 | 
							export BIBEL_NOLINEWRAP=1
 | 
				
			||||||
		shift
 | 
							shift
 | 
				
			||||||
 | 
						elif [ "$1" = "-F" ]; then
 | 
				
			||||||
 | 
							export BIBEL_NOFOOTNOTES=1
 | 
				
			||||||
 | 
							shift
 | 
				
			||||||
	elif [ "$1" = "-h" ] || [ "$isFlag" -eq 1 ]; then
 | 
						elif [ "$1" = "-h" ] || [ "$isFlag" -eq 1 ]; then
 | 
				
			||||||
		show_help
 | 
							show_help
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user