DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:bible

This is an old revision of the document!


Early photography marked a significant shift in capturing and preserving visual moments, showcasing both notable progress and inherent limitations. A pivotal development emerged with Louis Daguerre's 1839 invention of the daguerreotype, enabling the creation of intricate and enduring images on a silver-coated copper plate, achieving a precision and clarity previously unprecedented.

Advancements in this era extended to the calotype, a process pioneered by William Henry Fox Talbot. Utilizing a light-sensitive paper negative, the calotype allowed for the production of multiple prints from a single negative, introducing a more pragmatic and versatile approach to photography. This innovation fostered wider reproduction and distribution of images.

However, these early photographic methods posed challenges. The intricate and time-consuming processes presented obstacles for both photographers and subjects. Extended exposure times necessitated subjects to maintain stillness, hindering candid or spontaneous shots. Additionally, the cumbersome equipment impeded mobility, confining photography to studio settings or controlled environments.

The absence of color representation was another significant limitation in early photography. While monochromatic images conveyed a sense of reality, they lacked the vibrancy and nuance of color. This constraint persisted until the later emergence of color photography, a development that greatly expanded the artistic and expressive dimensions of the medium.

Fragility was a notable concern, particularly with daguerreotypes prone to tarnishing and damage. Preservation and storage became challenging, impacting the lifespan of these images. The late 19th century saw a remedy with the introduction of more durable photographic materials, enhancing the longevity of photographic archives.

In summary, early photography ushered in transformative advances, reshaping our perception and documentation of the world. The daguerreotype and calotype processes offered new horizons for visual representation, accompanied by challenges such as prolonged exposure times, restricted mobility, a lack of color, and the fragility of materials. These limitations, however, propelled subsequent innovations in photography, paving the way for the dynamic and diverse medium we appreciate today.

Installation

Search and install the plugin using the Extension Manager.

Alternatively, refer to Plugins on how to install plugins manually:

  1. Unzip the file
  2. drop the contents into your …/lib/plugins/ directory and upload to your server.
  3. Any existing pages will need to be re-built (no change to the page is required, but rebuilding gives DokuWiki a chance to re-parse your text)

PHP 7 and above

In the file syntax.php change the folowing lines:

from

  public function render($mode, &$renderer, $data) {

in:

  public function render($mode, $renderer, $data) {


from

public function handle($match, $state, $pos, &$handler){

in

public function handle($match, $state, $pos, $handler){


Examples/Usage

Simply write valid bible verse addresses in the text body of your page:

====== PlayGround ======
\\
As seen in the bible, Mark 3:1 , He tests his wiki code. Not HTML code.\\
Lets try some more: 1 Machabees 1:1, and maybe Amos 2:2 and how about 2 Peter 1:1; Romans 3:3\\
Good?
\\
Mark 3:3\\
Mark 1:1\\
Mark 2:22-25\\
Amos 1:1-25\\
Mark 3:1-5
\\
Okay, all is good.

Results in a Rendered Page.jpg where hovering over links look like: Hovering Mouse

Syntax

To quote Mark chapter 3, verse one:

Mark 3:1

To quote Mark chapter 3, verse one through 9:

Mark 3:1-9

To quote Second Kings chapter 11 verse 8:

2 Kings 11:8

Configuration and Settings

No custom configurations have been added. But that'd be great. You should add some (bible edition, language?).

Development

syntax.php is the only workhorse file, and is heavily commented for easy modification. It contains all 6 required functions and one custom function of my own at the bottom.

To add new translations of the bible:

  1. create a directory for the bible text files (like “bible_NAB”).
  2. Separate the bible by chapter into separate text files called CHAPTER.txt, using underscores for spaces (like “1_Kings.txt”).
  3. Make sure that each verse of the bible is a separate line that looks like 'CHAPTER#:VERSE#. CONTENT' (like “1:1. In the beginning God created heaven, and earth.”).
  4. Now modify syntax.php to set the variable $validBibleBooksArr to contain the valid books (I use 73 for the Catholic bible, but Protestant bibles have only 66 books).
  5. Modify syntax.php to correct $filename to point to your bible text files instead of “bible_douayRheims/”

Change Log

  • 2012-10-17
    • Initial release

Known Bugs and Issues

Listing a match in the regexp that is an invalid bible verse will cause a warning/error to print out at the top of your page. This is by design, but it might be preferable to just ignore those.

For example:

Genesis 7782:448448

ToDo/Wish List

  • More translations of the bible would be great.
  • Configuration options for choosing the desired translation would be great.

FAQ

Discussion

plugin/bible.1706282961.txt.gz · Last modified: 2024-01-26 16:29 by 2601:407:c580:e9e0:5166:fbb6:443b:7079

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki