aboutsummaryrefslogtreecommitdiff
path: root/internal/bible/books.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-24 11:29:57 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-24 11:29:57 +0200
commita26fed000ad9f292618f9cecfd2b505dddfd004a (patch)
tree3b6001cc5a20c3451677773159553aa134d4a6c9 /internal/bible/books.go
parente50b003d84b091b60c8028468edc633f04e39731 (diff)
downloadlectio-a26fed000ad9f292618f9cecfd2b505dddfd004a.tar.gz
lectio-a26fed000ad9f292618f9cecfd2b505dddfd004a.zip
books: language-scoped --ref/--list via customizable books.toml + sigla_style config; v0.7.0
Diffstat (limited to 'internal/bible/books.go')
-rw-r--r--internal/bible/books.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/internal/bible/books.go b/internal/bible/books.go
index f3af4af..037a5c3 100644
--- a/internal/bible/books.go
+++ b/internal/bible/books.go
@@ -138,22 +138,3 @@ var canonOrder = []string{
"1 Peter", "2 Peter", "1 John", "2 John", "3 John",
"Jude", "Revelation",
}
-
-// BookInfo is one Biblical book's display data for the --list-pl/--list-en
-// commands (and, in later phases, the reader book pickers).
-type BookInfo struct {
- English string // canonical English name, e.g. "John" (the aliasSeed key)
- Polish string // Polish name, e.g. "Jan" (aliasSeed value [1])
- Abbrev string // Polish citation abbreviation, e.g. "J" (aliasSeed value [0])
-}
-
-// Books returns every Biblical book in scriptural order with its English name,
-// Polish name and citation abbreviation, all derived from aliasSeed.
-func Books() []BookInfo {
- out := make([]BookInfo, 0, len(canonOrder))
- for _, name := range canonOrder {
- a := aliasSeed[name]
- out = append(out, BookInfo{English: name, Polish: a[1], Abbrev: a[0]})
- }
- return out
-}