Hi,
I know this is an old extension, however I find it very useful for digital humanities projects (and my wiki is one of these). I installed this extension on:
MediaWiki 1.27.1
PHP 7.0.13-0ubuntu0.16.04.1 (apache2handler)
MySQL 5.7.17-0ubuntu0.16.04.1
ICU 55.1
Lua 5.1.5
The issue occurs when I use a tei tag inside another one, like <head>test <add>text</add></head>. The result is something like
test '"`UNIQ--add-00000004-QINU`"'
I found this and I guess it is certainly related to my issue. My problem is that I am not a devoleper, so I am not sure where to edit the extension code.
In TEITags.body.php I see this:
public function ParserFirstCallInit ( Parser $parser ){
global $wgOut;
$parser->setHook( 'tei' , array( $this , 'RenderTei' ) );
$parser->setHook( 'lb' , array( $this , 'RenderLb' ));
$parser->setHook( 'pb' , array( $this , 'RenderPb' ));
$parser->setHook( 'del' , array( $this , 'RenderDel' ));
$parser->setHook( 'add' , array( $this , 'RenderAdd' ));
$parser->setHook( 'gap' , array( $this , 'RenderGap' ));
$parser->setHook( 'unclear', array( $this , 'RenderUnclear' ));
$parser->setHook( 'note' , array( $this , 'RenderNote' ));
$parser->setHook( 'hi' , array( $this , 'RenderHi' ));
$parser->setHook( 'head' , array( $this , 'RenderHead' ));
$parser->setHook( 'sic' , array( $this , 'RenderSic' ));
$parser->setHook( 'foreign', array( $this , 'RenderForeign' ));
$wgOut->addModules( 'ext.TEITags' );
I guess I have to edit somehow the bold text, but I have no idea how :(
Can anyone help me, please?
Thanks!
Lorenzo