Skip to content

Commit

Permalink
Update to use StatResGNT, remove BHPGNT and SRGNT
Browse files Browse the repository at this point in the history
  • Loading branch information
kovzol committed Jul 30, 2023
1 parent 18ac278 commit 55a3691
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ install(
## CODE " execute_process (COMMAND bash -c \"echo yes | installmgr -r CrossWire\") "
## CODE " execute_process (COMMAND bash -c \"installmgr -l | grep \\\"\\\\[LXX\\\\]\\\" || echo yes | installmgr -ri CrossWire LXX\") "
## CODE " execute_process (COMMAND bash -c \"installmgr -l | grep \\\"\\\\[SBLGNT\\\\]\\\" || echo yes | installmgr -ri CrossWire SBLGNT\") "
## CODE " execute_process (COMMAND bash -c \"installmgr -l | grep \\\"\\\\[StatResGNT\\\\]\\\" || echo yes | installmgr -ri CrossWire StatResGNT\") "
# If it was unsuccessful, as fallback, unzip bundled LXX and SBLGNT (this may be required on snap-packaging in a CI sandbox)
CODE " execute_process (COMMAND bash -c \"test -r \\\"$SWORD_PATH/mods.d/lxx.conf\\\" || unzip -d ~ ${CMAKE_SOURCE_DIR}/sword-lxx-sblgnt-fallback.zip\") "
CODE " execute_process (COMMAND bash -c \"test -r \\\"$SWORD_PATH/mods.d/lxx.conf\\\" || unzip -d ~ ${CMAKE_SOURCE_DIR}/sword-lxx-sblgnt-statresgnt-fallback.zip\") "
)

install(TARGETS bibref DESTINATION bin)
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ of considering just separated verses.
The texts are provided by the SWORD project
from the modules [LXX](http://www.crosswire.org/sword/modules/ModInfo.jsp?modName=LXX) and
[SBLGNT](http://www.crosswire.org/sword/modules/ModInfo.jsp?modName=SBLGNT). In the newest versions
the modules [BHPGNT](https://github.com/kovzol/BHP/releases) and [SRGNT](https://github.com/kovzol/SR/releases) are also supported.
the module [StatResGNT](https://github.com/kovzol/SR/releases) is also supported.

This project is a work in progress.

Expand All @@ -74,7 +74,8 @@ There are two online web versions of *bibref* available: [a simple version](http
and [another one based on jquery.terminal](https://matek.hu/zoltan/bibref-2022Jun27/index-jt.html).
It is somewhat slower than the installable version, but works immediately
in a web browser. In the web versions the modules LXX, SBLGNT and KJV are available
(in the second version, in addition, the [BHPGNT](https://github.com/greekcntr/BHP) module as well).
(in the second version, in addition, the [BHPGNT](https://github.com/greekcntr/BHP) module as well,
an earlier prototype version of StatResGNT).

(The figure above shows the version based on [jquery.terminal](https://terminal.jcubic.pl/).)

Expand Down Expand Up @@ -147,11 +148,11 @@ with the classic notation or a modifier can be appended:
For example, `Genesis 1:1`, `Genesis 1:1+0 1:1-0`, `Genesis 1:1+0 1:1`, `Genesis 1:1 1:1-0` define the same first verse
of Genesis. On the other hand, `Genesis 1:1+2 1:1-3` defines the first verse of Genesis without the first two and the last three letters.

In all commands the *Bible* parameter can be either `LXX`, `SBLGNT`, `BHPGNT` or `SRGNT`, except for the command `lookup`.
In all commands the *Bible* parameter can be either `LXX`, `SBLGNT`, `StatResGNT`, except for the command `lookup`.

The available commands are:

* `addbooks`: Load the books of LXX, SBLGNT, BHPGNT and SRGNT (if any of these are available). Most commands require that these books are already loaded. After using this command for the first time (it takes a couple of seconds), a folder named `bibref-addbooks-cache` will be created in the current working directory to speed up the next startup of this command.
* `addbooks`: Load the books of LXX, SBLGNT and StatResGNT (if any of these are available). Most commands require that these books are already loaded. After using this command for the first time (it takes a couple of seconds), a folder named `bibref-addbooks-cache` will be created in the current working directory to speed up the next startup of this command.
* `textN` *text*: Define a Greek *text* and put its Latin transcription in clipboard N.
* `latintextN` *text*: Put the Latin transcription *text* in clipboard N.
* `findN` *Bible*: Search for the text of clipboard N in the given *Bible*.
Expand Down
7 changes: 2 additions & 5 deletions books.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ bool isOTBook(string moduleName) {
}

bool isNTBook(string moduleName) {
if (moduleName == "SBLGNT" || moduleName == "BHPGNT" || moduleName == "SRGNT") return true;
if (moduleName == "SBLGNT" || moduleName == "StatResGNT") return true;
return false;
}

Expand Down Expand Up @@ -641,10 +641,7 @@ int addBooks() {
if (addBook("SBLGNT", "Matthew 1:1", "Revelation of John 22:21", true) != 0) {
success = 1;
}
if (addBook("BHPGNT", "Matthew 1:1", "Revelation of John 22:21", true) != 0) {
success = 1;
}
if (addBook("SRGNT", "Matthew 1:1", "Revelation of John 22:21", true) != 0) {
if (addBook("StatResGNT", "Matthew 1:1", "Revelation of John 22:21", true) != 0) {
success = 1;
}
return success;
Expand Down
2 changes: 1 addition & 1 deletion cli.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define BIBREF_VERSION "2023Apr09"
#define BIBREF_VERSION "2023Jul30"

#include <iostream>
#include <sstream>
Expand Down
2 changes: 1 addition & 1 deletion snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: bibref
base: core20
version: '2023Apr09'
version: '2023Jul30'
summary: A tool that helps discovering internal references in the Bible
icon: logo-Psalm40-192.png
description: |
Expand Down
Binary file not shown.

0 comments on commit 55a3691

Please sign in to comment.