$wgUseTeX = false;
$wgTexvc = "./math/texvc"; # Location of the texvc binary
+# Support for inline hieroglyphs, see http://aoineko.free.fr/ The
+# WikiHiero php files must be present in the same directory as the
+# rest of the mediawiki code, and WikiHiero must have been configured
+# with the correct image locations.
+$wgUseWikiHiero = false;
+
# Profiling / debugging
$wgProfiling = false; # Enable for more detailed by-function times in debug log
$wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this
include_once('Tokenizer.php');
+if( $GLOBALS['wgUseWikiHiero'] ){
+ include_once('wikihiero.php');
+}
+
# PHP Parser
#
# Processes wiki markup
}
}
+ if( $GLOBALS['wgUseWikiHiero'] ){
+ $text = Parser::extractTags("hiero", $text, $hiero_content, $uniq_prefix);
+ foreach( $hiero_content as $marker => $content ){
+ if( $render ){
+ $hiero_content[$marker] = WikiHiero( $content, WH_MODE_HTML);
+ } else {
+ $hiero_content[$marker] = "<hiero>$content</hiero>";
+ }
+ }
+ }
if( $this->mOptions->getUseTeX() ){
$text = Parser::extractTags("math", $text, $math_content, $uniq_prefix);
}
}
- $state = array( $nowiki_content, $math_content, $pre_content );
+ $state = array( $nowiki_content, $hiero_content, $math_content, $pre_content );
return $text;
}
{
global $wgVariableIDs;
$this->mVariables = array();
-
foreach ( $wgVariableIDs as $id ) {
$mw =& MagicWord::get( $id );
$mw->addToArray( $this->mVariables, $this->getVariableValue( $id ) );