added EinlAT and introduction to first few books
This commit is contained in:
parent
516b75d00d
commit
1acb7219b4
@ -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
|
||||
}
|
||||
|
4
bibel.sh
4
bibel.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user