bbl

Read, search and index the Bible on the command line -- Greek, Latin, KJV, Knox, RSV, and more
git clone git://git.wilsonrgheen.com/bbl
Log | Files | Refs | README | LICENSE

commit fb5c1e215396e40bd227cbfc409ee5ae74734016
parent b8b0166ee5a82d5e75ed60886186fc2ba1f7aa5d
Author: Wilson Gheen <wilson@wilsonrgheen.com>
Date:   Thu, 24 Mar 2022 17:18:15 -0500

Fixed up heb.tsv and corrected comments in hebget.sh

Diffstat:
Mheb.tsv | 14+++++++-------
Msample_scripts/hebget.sh | 10+++++++---
2 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/heb.tsv b/heb.tsv @@ -20763,13 +20763,13 @@ קוהלת קו לד ב כה כִּ֣י מִ֥י יֹאכַ֛ל וּמִ֥י יָח֖וּשׁ ח֥וּץ מִמֶּֽנִּי׃ קוהלת קו לד ב כו כִּ֤י לְאָדָם֙ שֶׁטּ֣וֹב לְפָנָ֔יו נָתַ֛ן חָכְמָ֥ה וְדַ֖עַת וְשִׂמְחָ֑ה וְלַֽחוֹטֶא֩ נָתַ֨ן עִנְיָ֜ן לֶֽאֱסֹ֣ף וְלִכְנ֗וֹס לָתֵת֙ לְטוֹב֙ לִפְנֵ֣י הָֽאֱלֹהִ֔ים גַּם־זֶ֥ה הֶ֖בֶל וּרְע֥וּת רֽוּחַ׃ קוהלת קו לד ג א לַכֹּ֖ל זְמָ֑ן וְעֵ֥ת לְכָל־חֵ֖פֶץ תַּ֥חַת הַשָּׁמָֽיִם׃ {פ} -קוהלת קו לד ג ב        עֵ֥ת לָלֶ֖דֶת        וְעֵ֣ת לָמ֑וּת           עֵ֣ת לָטַ֔עַת        וְעֵ֖ת לַֽעֲק֥וֹר נָטֽוּעַ׃ -קוהלת קו לד ג ג        עֵ֤ת לַֽהֲרוֹג֙        וְעֵ֣ת לִרְפּ֔וֹא           עֵ֥ת לִפְר֖וֹץ        וְעֵ֥ת לִבְנֽוֹת׃ -קוהלת קו לד ג ד        עֵ֤ת לִבְכּוֹת֙          וְעֵ֣ת לִשְׂח֔וֹק           עֵ֥ת סְפ֖וֹד         וְעֵ֥ת רְקֽוֹד׃ -קוהלת קו לד ג ה        עֵ֚ת לְהַשְׁלִ֣יךְ אֲבָנִ֔ים        וְעֵ֖ת כְּנ֣וֹס אֲבָנִ֑ים           עֵ֣ת לַֽחֲב֔וֹק         וְעֵ֖ת לִרְחֹ֥ק מֵֽחַבֵּֽק׃ -קוהלת קו לד ג ו        עֵ֤ת לְבַקֵּשׁ֙         וְעֵ֣ת לְאַבֵּ֔ד           עֵ֥ת לִשְׁמ֖וֹר        וְעֵ֥ת לְהַשְׁלִֽיךְ׃ -קוהלת קו לד ג ז        עֵ֤ת לִקְר֨וֹעַ֙        וְעֵ֣ת לִתְפּ֔וֹר           עֵ֥ת לַֽחֲשׁ֖וֹת        וְעֵ֥ת לְדַבֵּֽר׃ -קוהלת קו לד ג ח        עֵ֤ת לֶֽאֱהֹב֙         וְעֵ֣ת לִשְׂנֹ֔א           עֵ֥ת מִלְחָמָ֖ה        וְעֵ֥ת שָׁלֽוֹם׃ {פ} +קוהלת קו לד ג ב        עֵ֥ת לָלֶ֖דֶת        וְעֵ֣ת לָמ֑וּת           עֵ֣ת לָטַ֔עַת        וְעֵ֖ת לַֽעֲק֥וֹר נָטֽוּעַ ׃ +קוהלת קו לד ג ג        עֵ֤ת לַֽהֲרוֹג֙        וְעֵ֣ת לִרְפּ֔וֹא           עֵ֥ת לִפְר֖וֹץ        וְעֵ֥ת לִבְנֽוֹת ׃ +קוהלת קו לד ג ד        עֵ֤ת לִבְכּוֹת֙          וְעֵ֣ת לִשְׂח֔וֹק           עֵ֥ת סְפ֖וֹד         וְעֵ֥ת רְקֽוֹד ׃ +קוהלת קו לד ג ה        עֵ֚ת לְהַשְׁלִ֣יךְ אֲבָנִ֔ים        וְעֵ֖ת כְּנ֣וֹס אֲבָנִ֑ים           עֵ֣ת לַֽחֲב֔וֹק         וְעֵ֖ת לִרְחֹ֥ק מֵֽחַבֵּֽק ׃ +קוהלת קו לד ג ו        עֵ֤ת לְבַקֵּשׁ֙         וְעֵ֣ת לְאַבֵּ֔ד           עֵ֥ת לִשְׁמ֖וֹר        וְעֵ֥ת לְהַשְׁלִֽיךְ ׃ +קוהלת קו לד ג ז        עֵ֤ת לִקְר֨וֹעַ֙        וְעֵ֣ת לִתְפּ֔וֹר           עֵ֥ת לַֽחֲשׁ֖וֹת        וְעֵ֥ת לְדַבֵּֽר ׃ +קוהלת קו לד ג ח        עֵ֤ת לֶֽאֱהֹב֙         וְעֵ֣ת לִשְׂנֹ֔א           עֵ֥ת מִלְחָמָ֖ה        וְעֵ֥ת שָׁלֽוֹם׃ {פ } קוהלת קו לד ג ט         מַה־יִּתְרוֹן֙ הָֽעוֹשֶׂ֔ה בַּֽאֲשֶׁ֖ר ה֥וּא עָמֵֽל׃ קוהלת קו לד ג י רָאִ֣יתִי אֶת־הָֽעִנְיָ֗ן אֲשֶׁ֨ר נָתַ֧ן אֱלֹהִ֛ים לִבְנֵ֥י הָֽאָדָ֖ם לַֽעֲנ֥וֹת בּֽוֹ׃ קוהלת קו לד ג יא אֶת־הַכֹּ֥ל עָשָׂ֖ה יָפֶ֣ה בְעִתּ֑וֹ גַּ֤ם אֶת־הָֽעֹלָם֙ נָתַ֣ן בְּלִבָּ֔ם מִבְּלִ֞י אֲשֶׁ֧ר לֹֽא־יִמְצָ֣א הָֽאָדָ֗ם אֶת־הַֽמַּעֲשֶׂ֛ה אֲשֶׁר־עָשָׂ֥ה הָֽאֱלֹהִ֖ים מֵרֹ֥אשׁ וְעַד־סֽוֹף׃ diff --git a/sample_scripts/hebget.sh b/sample_scripts/hebget.sh @@ -1,12 +1,16 @@ #!/bin/sh # https://github.com/thenewmantis/bbl.git # This script is intended to pull all verses of the Hebrew Bible from the web into plain text, with one verse per line, in the following format: (e.g.) -# TODO +# בראשית בר א א א בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם וְאֵ֥ת הָאָֽרֶץ׃ +# Which, in the command line application that these verses are used for, would produce the following output: +# תישארב +# ׃ץֶרָֽאָה תֵ֥אְו םִיַ֖מָּׁשַה תֵ֥א םיִ֑הֹלֱא אָ֣רָּב תיִׁ֖שאֵרְּב א:א +# (Rendered right-to-left, as is proper.) # The operation of this script is, of course, dependent on the website that hosts the content keeping its URLS and HTML the same, or at least still compatible with the regex used. # Please feel free to modify and reuse this script or another one like it in order to versify any text you find online # Every line in the resulting file should match the following regex (typed exactly as it would be in a Vimscript command (but ignore the surrounding whitespace)): -# ^[א-\t\%([1-4]\)\?\a\+\t\d\{1,2}\t\d\{1,3}\t\d\{1,3}\t\D\+$ -# To run this script successfully, open an empty Vim buffer in the directory that this script is placed, give the buffer a filename and run the following ex command (from the empty buffer): +# ^[א-ת]\+\t\%([א-ת]\+ \)\?[א-ת]\+\t[א-ת]\{1,2}\%(\tק\?[א-ת]\{0,2}\&.\+\)\{2}\t\D\+$ +# To run, simply run: `./hebget.sh`. This will silently overwrite any file named "h.tsv" in the current directory. printf="/usr/bin/env printf" b='01'