[dokuwiki] Re: Abbreviations or Explain plug-in?
- From: "Metz, Bobby" <Bobby.Metz@xxxxxxxxxxxxxxxxxx>
- To: "dokuwiki@xxxxxxxxxxxxx" <dokuwiki@xxxxxxxxxxxxx>
- Date: Tue, 26 May 2009 18:33:55 -0400
Andi,
Thanks for your quick reply. Sorry for my late reply...this "best
effort" project was delayed by the boss.
> > I checked the abbreviations page and several postings about it to no
> avail, so hoping someone knows.
>
> You could simply have tried it.
I did and it didn't work for me, thus my posted questions. I just
assumed I was running into a syntax limitation. Based on your input, I've done
some more tests since. I didn't test without $ before since all of my user's
pages are configuration templates which use a $value1_value2$ placeholder
syntax. I tested today using {value1_value2} instead and it worked, so it does
appear that $ is not an allowed character in abbreviations and what was causing
my earlier test failures.
> > 1. Can abbreviations include non-alpha characters, e.g. can I use
>
> Yes. Any UTF-8 character can be used.
Due to { test success, I tested an additional subset of UTF-8
characters from x21-x2f. All of them work in abbreviations except for #, $, (
& ).
I thought at first that $ might not work because the abbreviations are
passed through the Doku_Lexer_Escape function so the $ characters would be
escaped. But many of the working characters in my test range are escaped as
well and the three other non-working characters are not, yet they don't work.
That said, I find that if I alter the $escaped array in Doku_Lexer_Escape from
'\$' to '\\\$' then my $value$ acronyms will work.
I'd really appreciate any further thoughts you have on this, especially
on whether my change could potentially have nasty impacts to other parts of my
install, should I apply it permanently.
Thanks,
Bobby
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
Other related posts: