added EinlAT and introduction to first few books

This commit is contained in:
Alexander Bocken 2020-04-25 21:09:24 +02:00
parent 516b75d00d
commit 1acb7219b4
3 changed files with 1246 additions and 1218 deletions

View File

@ -8,9 +8,9 @@ BEGIN {
FS = "\t"
MAX_WIDTH = 80
if (ENVIRON["KJV_MAX_WIDTH"] ~ /^[0-9]+$/) {
if (int(ENVIRON["KJV_MAX_WIDTH"]) < MAX_WIDTH) {
MAX_WIDTH = int(ENVIRON["KJV_MAX_WIDTH"])
if (ENVIRON["BIBEL_MAX_WIDTH"] ~ /^[0-9]+$/) {
if (int(ENVIRON["BIBEL_MAX_WIDTH"]) < MAX_WIDTH) {
MAX_WIDTH = int(ENVIRON["BIBEL_MAX_WIDTH"])
}
}
@ -151,7 +151,7 @@ function bookmatches(book, bookabbr, query) {
}
function printverse(verse, word_count, characters_printed) {
if (ENVIRON["KJV_NOLINEWRAP"] != "" && ENVIRON["KJV_NOLINEWRAP"] != "0") {
if (ENVIRON["BIBEL_NOLINEWRAP"] != "" && ENVIRON["BIBEL_NOLINEWRAP"] != "0") {
printf("%s\n", verse)
return
}

View File

@ -62,7 +62,7 @@ while [ $# -gt 0 ]; do
get_data bibel.tsv | awk -v cmd=list "$(get_data bibel.awk)"
exit
elif [ "$1" = "-W" ]; then
export KJV_NOLINEWRAP=1
export BIBEL_NOLINEWRAP=1
shift
elif [ "$1" = "-h" ] || [ "$isFlag" -eq 1 ]; then
show_help
@ -73,7 +73,7 @@ done
cols=$(tput cols 2>/dev/null)
if [ $? -eq 0 ]; then
export KJV_MAX_WIDTH="$cols"
export BIBEL_MAX_WIDTH="$cols"
fi
if [ $# -eq 0 ]; then

2452
bibel.tsv

File diff suppressed because it is too large Load Diff