[pmwiki-users] Custom markup and htmlspecialchars

Mani Varadarajan manimani at gmail.com
Tue Jan 20 19:19:54 CST 2009


I'm trying to create a markup recipe which takes some transliterated text
and transforms
it into Unicode characters according to a set of regular expression rules.
(This is useful
for languages that are easy to enter as transliterated text, such as Indic
or Indian languages).

For example, I have the rule:

   Markup("tamil",'<split','/\\(:t\s(.*?):\\)/se', "Tamilize(PSS('$1'))");

and Tamilize() uses preg_replace() to transform the text.

The problem is that I'd like to mix this new markup with conventional PmWiki
markup to
make it easy to enter this text. For example:

   (:t first line
   -> second line)

where the "second line" would be indented.

Unfortunately, PmWiki transforms '>' into the html entity '&gt;' before my
markup takes effect
and the characters 'g' and 't' are also transformed, and the markup doesn't
have the intended
effect.

I've tried moving the location to other places in the markup hierarchy,
including '_begin', to no
avail.

Can anyone help here?

Thanks,
Mani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090120/555c4f6e/attachment.html 


More information about the pmwiki-users mailing list