Skip to content

Commit

Permalink
fix utf-8 chars and better books name organization
Browse files Browse the repository at this point in the history
  • Loading branch information
jaanonim committed Aug 3, 2023
1 parent b60878c commit 492a7ac
Show file tree
Hide file tree
Showing 7 changed files with 692 additions and 421 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

You need to just type for example: `John 1:1-6`.

I'm from poland so plugin supports polish books names (eq. `J 1:1-6`, `Mt 24:1`). If you would like it to support your language books names feel free to make PR (you need to add it in `src/Books.ts`).
I'm from Poland so plugin supports polish books names (eq. `J 1:1-6`, `Mt 24,1`). If you would like it to support your language books names feel free to make PR (you need to create json in `data/books` and add it in `src/Books.ts`).

The plugins is heavily inspired by [obsidian-bible-reference](https://github.com/tim-hub/obsidian-bible-reference) (also i have "borrowed" some code from there) so check it out.
68 changes: 68 additions & 0 deletions data/books/books.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"EXO": [],
"GEN": [],
"LEV": [],
"NUM": [],
"DEU": [],
"JOS": [],
"JDG": [],
"RUT": [],
"1SA": [],
"2SA": [],
"1KI": [],
"2KI": [],
"1CH": [],
"2CH": [],
"EZR": [],
"NEH": [],
"EST": [],
"JOB": [],
"PSA": [],
"PRO": [],
"ECC": [],
"SNG": [],
"ISA": [],
"JER": [],
"LAM": [],
"EZK": [],
"DAN": [],
"HOS": [],
"JOL": [],
"AMO": [],
"OBA": [],
"JON": [],
"MIC": [],
"NAM": [],
"HAB": [],
"ZEP": [],
"HAG": [],
"ZEC": [],
"MAL": [],
"MAT": [],
"MRK": [],
"LUK": [],
"JHN": [],
"ACT": [],
"ROM": [],
"1CO": [],
"2CO": [],
"GAL": [],
"EPH": [],
"PHP": [],
"COL": [],
"1TH": [],
"2TH": [],
"1TI": [],
"2TI": [],
"TIT": [],
"PHM": [],
"HEB": [],
"JAS": [],
"1PE": [],
"2PE": [],
"1JN": [],
"2JN": [],
"3JN": [],
"JUD": [],
"REV": []
}
265 changes: 265 additions & 0 deletions data/books/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,265 @@
{
"GEN": [
"genesis",
"gen"
],
"EXO": [
"exodus",
"exo"
],
"LEV": [
"leviticus",
"lev"
],
"NUM": [
"numbers",
"num"
],
"DEU": [
"deuteronomy",
"deu"
],
"JOS": [
"joshua",
"jos"
],
"JDG": [
"judges",
"jdg"
],
"RUT": [
"ruth",
"rut"
],
"1SA": [
"1samuel",
"1sa"
],
"2SA": [
"2samuel",
"2sa"
],
"1KI": [
"1kings",
"1ki"
],
"2KI": [
"2kings",
"2ki"
],
"1CH": [
"1chronicles",
"1ch"
],
"2CH": [
"2chronicles",
"2ch"
],
"EZR": [
"ezra",
"ezr"
],
"NEH": [
"nehemiah",
"neh"
],
"EST": [
"esther",
"est"
],
"JOB": [
"job"
],
"PSA": [
"psalm",
"psa"
],
"PRO": [
"proverbs",
"pro"
],
"ECC": [
"ecclesiastes",
"ecc"
],
"SNG": [
"songofsolomon",
"sng"
],
"ISA": [
"isaiah",
"isa"
],
"JER": [
"jeremiah",
"jer"
],
"LAM": [
"lamentations",
"lam"
],
"EZK": [
"ezekiel",
"ezk"
],
"DAN": [
"daniel",
"dan"
],
"HOS": [
"hosea",
"hos"
],
"JOL": [
"joel",
"jol"
],
"AMO": [
"amos",
"amo"
],
"OBA": [
"obadiah",
"oba"
],
"JON": [
"jonah",
"jon"
],
"MIC": [
"micah",
"mic"
],
"NAM": [
"nahum",
"nam"
],
"HAB": [
"habakkuk",
"hab"
],
"ZEP": [
"zephaniah",
"zep"
],
"HAG": [
"haggai",
"hag"
],
"ZEC": [
"zechariah",
"zec"
],
"MAL": [
"malachi",
"mal"
],
"MAT": [
"matthew",
"mat"
],
"MRK": [
"mark",
"mrk"
],
"LUK": [
"luke",
"luk"
],
"JHN": [
"john",
"jhn"
],
"ACT": [
"acts",
"act"
],
"ROM": [
"romans",
"rom"
],
"1CO": [
"1corinthians",
"1co"
],
"2CO": [
"2corinthians",
"2co"
],
"GAL": [
"galatians",
"gal"
],
"EPH": [
"ephesians",
"eph"
],
"PHP": [
"philippians",
"php"
],
"COL": [
"colossians",
"col"
],
"1TH": [
"1thessalonians",
"1th"
],
"2TH": [
"2thessalonians",
"2th"
],
"1TI": [
"1timothy",
"1ti"
],
"2TI": [
"2timothy",
"2ti"
],
"TIT": [
"titus",
"tit"
],
"PHM": [
"philemon",
"phm"
],
"HEB": [
"hebrews",
"heb"
],
"JAS": [
"james",
"jas"
],
"1PE": [
"1peter",
"1pe"
],
"2PE": [
"2peter",
"2pe"
],
"1JN": [
"1john",
"1jn"
],
"2JN": [
"2john",
"2jn"
],
"3JN": [
"3john",
"3jn"
],
"JUD": [
"jude",
"jud"
],
"REV": [
"revelation",
"rev"
]
}
Loading

0 comments on commit 492a7ac

Please sign in to comment.