WordPress Blogging NT Greek
New version
Ignore the rest of this page. Go here.
(memo: remember to turn off auto-correct XHTML)
Introduction
This plugin takes an XML feed from http://www.zhubert.com (go,
visit the site, it's amazing).
It allows you to insert verses from the New Testament, in Greek, into your blog. The feed
contains lots of additional grammatical information that can also be displayed.
Matthew 1:1, by default, looks like this:
Installation
Installation is slightly more involved than a typical WordPress plugin. Steps 1-3 are
standard, steps 4 and 5 are not.
- Download the plugin from here (right click and 'save as') and save it in your plugins directory.
- Active the plugin from your administration panel.
- Install and activate "The Execution of All Things" plugin.
- To enable the tooltip (hover), copy the javascript from
here (right click and 'save as') and save it on your server.
Right at the end of your template (in footer, if you have one, immediately before the </body>
tag) include the script with
<script language="JavaScript" src="http:[path-to-script]/wz_tooltip.js" ></script>
- Finally, edit your default-filters.php file (in wp-includes) to remove the following line:
add_filter('the_content', 'wptexturize');
Simple Usage
You should now be ready to go. To insert a verse from the NT into your blog, just use this tag:
<exec type="function" name="cg_greek" params="Matthew,1,2" />
That's Matthew, Chapter 1, Verse 2. Or
<exec type="function" name="cg_greeks" params="Mark,1,1-5" />
That's Mark, Chapter 1, Verses 1-5. Note the way that 'greeks' is plural in that second example.
More advanced usage
There are five strings used by the plugin that you can configure. In each case the format is:
<exec type="function" name="cg_setXXX" params="YYY" />
XXX is one of 'hover' (for the text in the tooltip), 'linked' (for the text displayed in the
hyperlink - by default the greek word), 'url' (for the URl linked to by the hyperlink), 'pre' (for
anything to be displayed before each word) and 'post' (for anything to be displayed after - default
is a space).
YYY is the string to be displayed. In this string (which can include any amount of html)
you can use the following special tags:
- %form -> the greek word found in the text
- %lemma -> the root form
- %pos -> the part of speech
- %def -> the definition (translation) of the root
- %person -> the person of the word
- %tense -> the tense of the word
- %voice -> the voice of the word
- %mood -> the mood of the word
- %case -> the case of the word
- %number -> the number of the word
- %gender -> the gender of the word
- %degree -> the degree of the word
- %gref -> the reference number of the word (used in the default url)
So, for instance, to make the tooltip just show the English meaning of the root:
<exec type="function" name="cg_sethover" params="%def" />
Anything you change like this stays changed for the rest of the page. Most likely you'll
want to put any such calls up at the top of the page. Alternatively, you can edit the plugin;
the changes ought to be fairly obvious.
Credits