Extension talk:SacredText

From MediaWiki.org
Jump to navigation Jump to search

Glitches[edit]

I'm running into a lot of problems with this extension on MW 1.19, e.g. "Parameter 3 to SacredTextLookup::hookBible() expected to be a reference, value given". Also, it's providing content such as "?UNIQ7c06aa7f465043c5-bible-00000007-QINU?" rather than Bible verses. Leucosticte (talk) 17:58, 15 October 2012 (UTC)

Thanks for the fixes! Do you want to be a developer on https://code.google.com/p/sacredtext/? I will plan on implementing your changes in there sometime this weekend. --JonathanWilliford (talk) 18:29, 8 February 2013 (UTC)
Do you want to use that as the repository, or GitHub? I lean toward the latter. Leucosticte (talk) 12:55, 6 January 2014 (UTC)

TODO[edit]

There should be a feature to let you add cross-references to a serialized field. When you view the special page, it should put those cross-references either in a separate footnotes section from the regular footnotes or in the margin. Leucosticte (talk) 12:54, 6 January 2014 (UTC)

Hacks[edit]

Fixed: This hack was added to Extension:SacredText#Files

I added this to SacredTextLookup::parseInput(), right before the return true;

		// Hack to fix problem with regex putting, e.g. "Revelation 2 0:15" instead
		// of "Revelation 20:15"
		while ( is_numeric ( $book[ strlen ( $book ) - 1] ) ) {
			// Add a number to the beginning of $chapternum
			$chapternum = substr ( $book , strlen ( $book ) - 1 ) . $chapternum;
			// Chop one character off the end of $book
			$book = substr ( $book, 0, strlen ( $book ) - 1 );
		}
		$book = trim ( $book );

Leucosticte (talk) 02:57, 16 October 2012 (UTC)

Koran[edit]

How would go about adding the Koran to this extension? --Inops (talk) 15:01, 11 November 2012 (UTC)

You need to create (or find, if it's available) a file like bible_kjv_entire.sql, except with sura and ayat from the Quran instead of chapters and verses from the Bible. If it's going to be an English translation/interpretation, I guess you'll need to pick one of these that is in the public domain. I'm not an expert on the Quran; is one of those translations sufficiently influential as to be to the Quran what the King James Version is to the Bible? If you succeed in getting or creating such an SQL file, please let us know; maybe we can post the file to the Internet and put a link to it here for the benefit of other wiki owners. Thanks, Leucosticte (talk) 21:19, 11 November 2012 (UTC)

XML Database of Bible[edit]

Hello there, I wanted to know if there is a way to add a bible in my language. However, what I have is the XML data not the sql. Would you guys be able to work with that or is there something I can do?

Thank You Wikimanz (talk) 17:48, 10 August 2014 (UTC)

ESV?[edit]

Any plans for adding the ESV?

I don't think anyone's planning on doing much of anything with this extension. Leucosticte (talk) 18:30, 24 November 2014 (UTC)

How 'bout adding Shakespeare?[edit]

Hi thanks for the extension. I have a suggested add-on: Shakespeare.

Here's a link:https://github.com/edent/Open-Source-Shakespeare. Christharp (talk) 18:37, 2 December 2014 (UTC)

Patch review request[edit]

@JonathanWilliford: Hi, are you still maintaining this extension? If yes, could you review https://gerrit.wikimedia.org/r/#/c/239173/ ? Thanks in advance! --AKlapper (WMF) (talk) 16:18, 21 November 2016 (UTC)

I am having issues with this using version 1.3 of MediaWiki getting an Internal Error "Fatal exception of type "TypeError"" on the entire site when the Extension is added. Has anyone worked with this version, because searching seems to indicate this is related to the version of MediaWiki installed not being compatible with the extension. Secondly, the extension documentation states .2 but the code says .3. Any additional information here to get this working?