[dokuwiki] Re: syntax plugin bug? (unicode range regexp)

  • From: Michiel Kamermans <pomax@xxxxxxxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 21 Oct 2009 12:11:43 -0700

Christopher Smith wrote:
Yes and Yes.

Its a long time since I looked at this. But once, a while back, I did try to add the u flag to the lexer. As I recall it broke. I guess things could have changed.

You can experiment with it yourself - inc/parser/lexer.php, line #213. Add a 'u' into both strings.

-        return ($this->_case ? "msS" : "msSi");
+        return ($this->_case ? "msSu" : "msSiu");

- Chris
if I replace them with u first, it seems to work fine... but not in headers. Andreas (or anyone else who knows), is there a way to parse syntax inside a header without having to abandon the syntax plugin because I'll need to resort to xhtml postprocessing again? (furigana, via ruby markup, is an intrinsic japanese language feature, unlike bold/italic, which are only styling, so it really needs to be processed in headings and the ToC, too)

- Mike
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: