[Pmwiki-users] Entities in [[reference text]]

John Rankin john.rankin
Mon Jul 14 16:50:46 CDT 2003


Patrick, that's great, thank you. I do macron substitutions before & is changed to &, but I can change from &[AEIOUaeiou]macr; to &[AEIOUaeiou]macr; if needed -- I merge an array of vowel to unicode mappings into the start of $InlineReplacements. If we make the &entity; a $DoubleBrackets, I would need to change this...

>From a WikiPurist point of view, I can see that entities should work in [[link text]] as a core part of PmWiki; in practice, it's probably a low priority.

Macrons cause all sorts of problems for web sites here. Some sites use a non-standard font, requiring users to download and install a special font on their computers; others use UTF-8, which doesn't work with older browsers and operating systems and requires authors to remember arcane codes.

The ability to customise PmWiki made it really easy for us to solve this problem. It's a great SuccessStory.
-- 
John Rankin

On Monday, 14 July 2003 12:10 PM, Patrick R. Michaud <pmichaud at pobox.com> wrote:
On Mon, Jul 14, 2003 at 11:35:34AM +1200, John Rankin wrote:
> Got it!
> 
> I'll have to do a bit more to get long vowels, as lower and upper case vowels with macrons aren't part of the HTML or XHTML DTD. So I need to translate &Amacr; into &#256;  &amacr; into &#257; and so on.
> 
> A more general solution might be to apply all (most?) 
> $InlineReplacements to $btext...

I thought about this, but have decided to not go down that avenue just
yet because there could be all sorts of unforeseen and unwanted interactions.

Another solution might be to apply character entity formatting
immediately after doing the html_entities formatting; i.e., before
the LinkPatterns are applied.  I don't recall--is there a particular
reason why we chose to do entity formatting via $InlineReplacements and not
$DoubleBrackets...?

Pm


_______________________________________________
Pmwiki-users mailing list
Pmwiki-users at pmichaud.com
http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com






More information about the pmwiki-users mailing list