From a26fed000ad9f292618f9cecfd2b505dddfd004a Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Fri, 24 Jul 2026 11:29:57 +0200 Subject: books: language-scoped --ref/--list via customizable books.toml + sigla_style config; v0.7.0 --- internal/bible/books.go | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'internal/bible/books.go') 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 -} -- cgit v1.3