<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>There is a targeted local customisation which I think will work.
In local/config.php the site could over-ride the default treatment
of [[!Category]] markup. Try the following code:</p>
<p>$LongVowels = array (<br>
'A' => 'Ā',<br>
'a' => 'ā',<br>
'E' => 'Ē',<br>
'e' => 'ē',<br>
'I' => 'Ī',<br>
'i' => 'ī',<br>
'O' => 'Ō',<br>
'o' => 'ō',<br>
'U' => 'Ū',<br>
'u' => 'ū');<br>
function MacronHelper($match) {<br>
global $LongVowels;<br>
return $LongVowels[$match[1]];<br>
}<br>
Markup('[[!','<[[','/\\[\\[!(.*?)\\]\\]/',<br>
function ($m) use(&$pagename) {<br>
$text = preg_replace_callback('/\{([AEIOUaeiou])\}/',
"MacronHelper", $m[1]); <br>
return Keep(MakeLink($pagename,
$GLOBALS['CategoryGroup'].'/'.$m[1], $text, '',
$GLOBALS['LinkCategoryFmt']), 'L')<br>
} );<br>
<br>
With this code, writing [[!T{u}roa]] should create a link to page
Category.Turoa with the link text Tūroa. Links to
categories without long vowels, such as [[!Akaroa]] should
continue to work.</p>
<p>The {a} {e} {i} {o} {u} markup will only work inside category
markup. A more general solution which would work anywhere in the
text would need a further markup rule.</p>
<p>Hope this helps.<br>
</p>
<p>JR<br>
</p>
<div class="moz-cite-prefix">On 23/07/19 11:33 AM, John Rankin
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:d5c3da95-9b2f-6a10-940d-16ff2e967933@affinity.co.nz">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Interesting; I did not know that.</p>
<p>A markup rule that translates [[!Turoa|+]] into
[[Category.Turoa|+]] might work, although category markup uses a
special categorylink class in the <a> link generated. Or
you could introduce a local category markup rule just for this
purpose, for example so that [[!T`uroa]] is turned into
[[Category.Turoa|T#363;roa]] (ie look for "`[aeiouAEIOU]" inside
category link markup, then process as a category link). The rule
would have to fully process the link markup, as it needs to use
the category link format, with the correct class attribute.<br>
</p>
<p>A bit more investigation is needed, I think.</p>
<p>JR<br>
</p>
<div class="moz-cite-prefix">On 21/07/19 10:31 PM, Simon wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAFUSNWMgFczcFLq3e1d+a_S88sEn2dUJSQ+62zyp3PBxm2W_7w@mail.gmail.com">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<div dir="ltr">Thanks, it actually came about because I was
trying to use [[!Tūroa]] for which there is no markup
[[!Turoa|+]]<br clear="all">
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>____<br>
<a href="http://kiwiwiki.nz" target="_blank"
moz-do-not-send="true"><font size="1">http://kiwiwiki.nz</font></a></div>
</div>
</div>
</div>
<br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sat, 20 Jul 2019 at
14:55, John Rankin <<a
href="mailto:john.rankin@affinity.co.nz"
moz-do-not-send="true">john.rankin@affinity.co.nz</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p>One (least work) option would be to name the page
Turoa, and add (:title T#363;roa:) to the page text. You
would want to use [[Turoa |+]] when linking to the page.</p>
<p>JR<br>
</p>
<div class="gmail-m_5625697213227750488moz-cite-prefix">On
20/07/19 2:14 PM, Simon wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Any suggestions on how I can create page
names such as T#363;roa.
<div><br>
</div>
<div>I have an older wiki - not UTF8.</div>
<div><br>
</div>
<div>Would it work to add characters such as āēīōū to
the valid page name character set</div>
<div>(BTW please point me to the page where this is
documented, I couldn't easily find it - closest I
could get to was <a
href="https://www.pmwiki.org/wiki/PmWiki/BasicVariables#NamePattern"
target="_blank" moz-do-not-send="true">https://www.pmwiki.org/wiki/PmWiki/BasicVariables#NamePattern</a> but
has no detail)</div>
<div><br>
</div>
<div>thanks</div>
<div><br>
</div>
<div>Simon</div>
<div><br>
</div>
</div>
<br>
<fieldset
class="gmail-m_5625697213227750488mimeAttachmentHeader"></fieldset>
<pre class="gmail-m_5625697213227750488moz-quote-pre">_______________________________________________
pmwiki-devel mailing list
<a class="gmail-m_5625697213227750488moz-txt-link-abbreviated" href="mailto:pmwiki-devel@pmichaud.com" target="_blank" moz-do-not-send="true">pmwiki-devel@pmichaud.com</a>
<a class="gmail-m_5625697213227750488moz-txt-link-freetext" href="http://www.pmichaud.com/mailman/listinfo/pmwiki-devel" target="_blank" moz-do-not-send="true">http://www.pmichaud.com/mailman/listinfo/pmwiki-devel</a>
</pre>
</blockquote>
</div>
_______________________________________________<br>
pmwiki-devel mailing list<br>
<a href="mailto:pmwiki-devel@pmichaud.com" target="_blank"
moz-do-not-send="true">pmwiki-devel@pmichaud.com</a><br>
<a
href="http://www.pmichaud.com/mailman/listinfo/pmwiki-devel"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.pmichaud.com/mailman/listinfo/pmwiki-devel</a><br>
</blockquote>
</div>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
pmwiki-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pmwiki-devel@pmichaud.com">pmwiki-devel@pmichaud.com</a>
<a class="moz-txt-link-freetext" href="http://www.pmichaud.com/mailman/listinfo/pmwiki-devel">http://www.pmichaud.com/mailman/listinfo/pmwiki-devel</a>
</pre>
</blockquote>
</body>
</html>