Abstract: Internet Bible is an application for sofisticated searching and interlinear displaying Bible verses. Using the power of MySQL database, transparent compression of result and compiled templates Smarty (with cache on) you can get very fast downloading of web pages much more than traditional server-side scripts using Perl or PHP. Every search query connect to the database only once. Web pages are also compressed by gzip and are decompressed with your browser in transparent way. It means, that your browser can download the content 3 to 50 times faster! 1. Basic features Functional: - Multiligual interface
Polish Russian English German
- Available translations of the Bible:
7 Polish 2 Russian 1 Ukrainian 21 English 7 German 8 Greek 1 Hebrew
- Paralell searching through several translations
- Interlinear displaying several groups of Bible verses
- Case insensitive searching.
- Three methods of searching:
- simply searching (syntax similar to internet spider robots like Google)
- logic searching with operators AND, OR, NOT i parentheses
- advanced search with regular expressions
Technical: - Embedded transparent compression of all generated web pages.
- Logic layer is separated from presentation layer by compiled Smarty templates.
- Cache feature of Smarty templates.
- Search engine of MySQL database.
- Abstrakcja bazy danych za pomocą biblioteki ADOdb.
- Generated output: XHTML. All characters are UTF-8 encoded.
- Server-side language of scripts: PHP 5.1
- Used tools for preparing XML SQL (for database): Python, Perl and XSLT
2. How to search words and phrases? Methods of searching All verses can be searched with one of three methods: simply, logic and regex (regular expression). You can find indywidual word or its parts, words and phrases (part of sentence). Phrases have to be inside quotation marks (") a) Searching with simply method The rules are realy simple. Just write group of words separated with space character. Searcher will find only verses which contain all your words. It is similar to Google. I you want to exclude some words from searching write minus sign (-) just before them. The same rules work for phrases. The only difference is phrases are words enclosed with quotation marks. (") Examples: b) Searching with logic operators This method is similar to mentioned above but is more powerfull. All words and phrases mustbi joined with one of operators: AND, OR NOT (the last operator must be joined with AND or OR). You can use parantheses for different output. Examples: c) Searching with regular expressions (short: regex) This is the most advanced (and also difficult) method. Syntax of regex is a very powerfull tool for searching text.It is very popular under UNIX/Linux system (grep, fgrep) or even under Windows (findstr.exe). There are many resourced and books describing regular expresions syntax. Shortly: - . = any one, single character
- ? = any single character, or none
- * = any characters or none
- + = any characters (at leat one)
- [a-z] = aby one character from range a-z
- c{3,5} = any 3, 4 or 5 occurence of c
- c{3,} = any 3 or more occurence of c
Examples: | patter | corresponds |
|---|
| a(b*) | a, ab, abb,... | | a(b+) | ab, abb, abbb,... | | a(b?) | a, ab | | a(b{3}) | abbb | | a(b{2,} | abb, abbb, abbbb,... | | a(b{2,4}) | abb, abbb oraz abbbb | | | | a.c | aac, abc, acc,... | | ^a.* | any string started with a | | [a-c]*x$ | any string with consistet with a, b or c character with x character at the end | | l[ao]k | lak, lok | | [^Zz]{5} | Any five characters without letters: z,Z | | [sS][z]?abat | sabat, Sabat, szabat, Szabat. |
Range of search You can choose several translations for paraller searching through them. For narrow output you can choose any book of Bible you want. If you do not choose them, default settings is: all books and three English translation. Global characters You can use global signs in words or phrases" ? (question mark) or * (asterisk). ? character exchange any one, single character. * exchange any string of characters. Eg. phrase "Jesus*Christ" will find all verses with word Jesus separated with any characters from word Christ. Global characters cannot be used in regular expressions because there have special meaning there.
Problem of Polish characters Person who do not have Polish fonts but they want to search Polish words can switch off displaying of Polish characters. If they cannot write POlish characters with their kreyboard they should use substitute of Polish characters followed by tilde (~) sign. Eg. phrase Boża miłość can be input as Bo~za mi~lo~s~c. Output is in Unicode format (UTF-8).
3. How to write verses to interlinear display? Syntax and examples All verses must be separated with semicolon character (;) wersety należy oddzielać znakiem. Syntax for any single verse: <abbrev of book> <space|dot> <number of chapter> <:> <number of verse> Syntax for longer verses: like above plus hyphen sign and number of last verse. You can use nn instead of number of last verse if you want to find all verses to the end of chapter. <abbrev of book> <space|dot> <number of chapter> <:> <number of verse> <-> <number of verse> <abbrev of book> <space|dot> <number of chapter> <:> <number of verse> <nn> Examples: Allowed abbreviations of Bible books With color red I checked default abbreviations for every book. They are case insensitive. If you want to see more allowed abbreviations change to Polish interface. |
|---|
Old Testament Genesis (Gen) Exodus (Exd) Leviticus (Lev) Numbers (Num) Deuteronomy (Deu) Joshua (Jos) Judges (Jdg) Ruth (Rth) 1 Samuel (1Sa) 2 Samuel (2Sa) 1 Kings (1Ki) 2 Kings (2Ki) 1 Chronicles (1Ch) 2 Chronicles (2Ch) Ezra (Ezr) Nehemiach (Neh) Esther (Est) Job (Job) Psalms (Psa) Proverbs (Pro) Ecclesiastes (Ecc) Song of Salomon (Sgs) Isaiach (Isa) Jeremiah (Jer) Lamentations (Lam) Ezekiel (Eze) Daniel (Dan) Hosea (Hsa) Joel (Joe) Amos (Amo) Obadiah (Oba) Jonah (Jon) Micah (Mic) Nahum (Nah) Habakkuk (Hab) Zephaniah (Zep) Haggai (Hag) Zechariah (Zec) Malachi (Mal)
| | New Testament Matthew (Mat) Mark (Mar) Luke (Luk) John (Jhn) Acts (Acts) Romans (Rom) 1 Corinthians (1Cor) 2 Corinthians (2Cor) Galatians (Gal) Ephesians (Ef) Philippians (Phl) Colossians (Col) 1 Thessalonians (1Th) 2 Thessalonians (2Th) 1 Timothy (1Ti) 2 Timothy (2Ti) Titus (Tts) Philemon (Phm) Hebrews (Hbr) James (Jam) 1 Peter (1Pe) 2 Peter (1Pe) 1 John (1Jo) 2 John (2Jo) 3 John (3Jo) Jude (Jud) Revelation (Rev)
|
4. Use the power of Internet Bible on your web page The best way to adding a link to Internet Bible is copying URL text from your browser. Detailed description of all parameters is in Polish here. 5. Extending features of Internet Bible with your cooperation. Internet Bible was constructed for easy extension with more Bibles and interfaces and many more languages Another interface. If you want to prepare the interface for another language, download the following example files, translate it and give me a feedback. Remember to encode text in UTF-8 format. No other formats are allowed. - Download example of Polish interface texts
![[pobierz plik]](images/dyskietka.gif) - Download example of English interface texts
![[pobierz plik]](images/dyskietka.gif)
Adding more Bibles If you want me to add another Bible I have to get the file with its contents. The file must perform the conditions: - Text should be encoded in UTF-8 format. If you want, you can prepare text with another format from ISO-8859-1 to ISO-8859-15 which can be transformed to UF-8 by Python programming language. There is no way for every untypical formats based on specific fonts, eg. Greek text based on Symbol font is not allowed.
- Text should be in XML or text format like the following:
<nr_of_book><nr_of_chapter><nr_of_verse><text_of_verse> I need to know also list of names and abbreviations for ever Bible book for this language.
Look at the following XML example below. If you are able to prepare such Bible translation drop me a message, and I will add it to the application. Small example of the Bible with XML format:
Biblia Gdańska
Bg
pl
utf-8
1
Księga Rodzaju
Genesis
1 Księga Mojżeszowa
Rdz
rdz
gen
1m
1moj
1
1
Na początku stworzył Bóg niebo i ziemię
There are example of names for every Bible book below. I need sth similar for another language. Pay your attention for numbers of books. They must be the same for every translation of Bible. For Polish Bibles::| no | abbrev | name |
|---|
| 1 | Rdz | Rodzaju | | 2 | Wj | Wyjścia | | 3 | Kpł | Kapłańska | | 4 | Lb | Liczb | | 5 | Pwt | Powtórzonego Prawa | | 6 | Joz | Jozuego | | 7 | Sdz | Sędziów | | 8 | Rt | Rut | | 9 | 1Sm | 1 Samuela | | 10 | 2Sm | 2 Samuela | | 11 | 1Krl | 1 Królewska | | 12 | 2Krl | 2 Królewska | | 13 | 1Krn | 1 Kronik | | 14 | 2Krn | 2 Kronik | | 15 | Ezd | Ezdrasz | | 16 | Ne | Nehemiasz | | 17 | Est | Estery | | 18 | Hi | Hioba | | 19 | Ps | Psalmy | | 20 | Prz | Przysłów | | 21 | Koh | Koheleta | | 22 | Pnp | Pieśń nad Pieśniami | | 23 | Iz | Izajasza | | 24 | Jr | Jeremiasza | | 25 | Lm | Lamentacje | | 26 | Ez | Ezechiela | | 27 | Dn | Daniela | | 28 | Oz | Ozeasza | | 29 | Jl | Joela | | 30 | Am | Amosa | | 31 | Ab | Abdiasza | | 32 | Jon | Jonasza | | 33 | Mi | Micheasza | | 34 | Na | Nahuma | | 35 | Ha | Habakuka | | 36 | So | Sofoniasza | | 37 | Ag | Aggeusza | | 38 | Za | Zachariasza | | 39 | Ml | Malachiasza | | 40 | Mt | Ewangelia Mateusza | | 41 | Mk | Ewangelia Marka | | 42 | Łk | Ewangelia Łukasza | | 43 | J | Ewangelia Jana | | 44 | Dz | Dzieje Apostolskie | | 45 | Rz | List do Rzymian | | 46 | 1Kor | 1 List do Koryntian | | 47 | 2Kor | 2 List do Koryntian | | 48 | Ga | List do Galatów | | 49 | Ef | List do Efezjan | | 50 | Flp | List do Filipian | | 51 | Kol | List do Kolosan | | 52 | 1Tes | 1 List do Tesaloniczan | | 53 | 2Tes | 2 List do Tesaloniczan | | 54 | 1Tm | 1 List do Tymoteusza | | 55 | 2Tm | 2 List do Tymoteusza | | 56 | Tt | List do Tytusa | | 57 | Flm | List do Filemona | | 58 | Hbr | List do Hebrajczyków | | 59 | Jk | List Jakuba | | 60 | 1P | 1 List Piotra | | 61 | 2P | 2 List Piotra | | 62 | 1J | 1 List Jana | | 63 | 2J | 2 List Jana | | 64 | 3J | 3 List Jana | | 65 | Jud | List Judy | | 66 | Ap | Apokalipsa Jana | | 67 | Tb | Tobiasza | | 68 | Jdt | Judyty | | 69 | 1Mch | 1 Machabejska | | 70 | 2Mch | 2 Machabejska | | 71 | Mdr | Mądrości | | 72 | Syr | Syracha | | 73 | Ba | Barucha | | | For English translations:| no | abbrev | name | | 1 | Gen | Genesis | | 2 | Exd | Exodus | | 3 | Lev | Leviticus | | 4 | Num | Numbers | | 5 | Deu | Deuteronomy | | 6 | Jos | Joshua | | 7 | Jdg | Judges | | 8 | Rth | Ruth | | 9 | 1Sa | 1 Samuel | | 10 | 2Sa | 2 Samuel | | 11 | 1Ki | 1 Kings | | 12 | 2Ki | 2 Kings | | 13 | 1Ch | 1 Chronicles | | 14 | 2Ch | 2 Chronicles | | 15 | Ezr | Ezra | | 16 | Neh | Nehemiach | | 17 | Est | Esther | | 18 | Job | Job | | 19 | Psa | Psalms | | 20 | Pro | Proverbs | | 21 | Ecc | Ecclesiastes | | 22 | Sgs | Song of Salomon | | 23 | Isa | Isaiach | | 24 | Jer | Jeremiah | | 25 | Lam | Lamentations | | 26 | Eze | Ezekiel | | 27 | Dan | Daniel | | 28 | Hsa | Hosea | | 29 | Joe | Joel | | 30 | Amo | Amos | | 31 | Oba | Obadiah | | 32 | Jon | Jonah | | 33 | Mic | Micah | | 34 | Nah | Nahum | | 35 | Hab | Habakkuk | | 36 | Zep | Zephaniah | | 37 | Hag | Haggai | | 38 | Zec | Zechariah | | 39 | Mal | Malachi | | 40 | Mat | Matthew | | 41 | Mar | Mark | | 42 | Luk | Luke | | 43 | Jhn | John | | 44 | Acts | Acts | | 45 | Rom | Romans | | 46 | 1Cor | 1 Corinthians | | 47 | 2Cor | 2 Corinthians | | 48 | Gal | Galatians | | 49 | Ef | Ephesians | | 50 | Phl | Philippians | | 51 | Col | Colossians | | 52 | 1Th | 1 Thessalonians | | 53 | 2Th | 2 Thessalonians | | 54 | 1Ti | 1 Timothy | | 55 | 2Ti | 2 Timothy | | 56 | Tts | Titus | | 57 | Phm | Philemon | | 58 | Hbr | Hebrews | | 59 | Jam | James | | 60 | 1Pe | 1 Peter | | 61 | 1Pe | 2 Peter | | 62 | 1Jo | 1 John | | 63 | 2Jo | 2 John | | 64 | 3Jo | 3 John | | 65 | Jud | Jude | | 66 | Rev | Revelation | | | For language X:| Number | Abbreviation | Name | | ... | ... | ... | |
6. Other tools used for studying the Bible |