<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Regular expression support in comparison for <test>"
href="https://bugs.freedesktop.org/show_bug.cgi?id=40648#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Regular expression support in comparison for <test>"
href="https://bugs.freedesktop.org/show_bug.cgi?id=40648">bug 40648</a>
from <span class="vcard"><a class="email" href="mailto:freedesktop@behdad.org" title="Behdad Esfahbod <freedesktop@behdad.org>"> <span class="fn">Behdad Esfahbod</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=40648#c6">comment #6</a>)
<span class="quote">> another idea for regexp use case is:
>
> <match>
> <test name="psname" mode="regex">
> <string>(.*)\-(UniJIS\-UTF8\-H)$</string>
> </test>
> <edit name="family" mode="regex_replace">
> <string>\1</string>
> </edit>
> <edit name="pscmap" mode="regex_replace">
> <string>\2</string>
> </edit>
> <edit name="lang" mode="assign">
> <langset><string>ja</string></langset>
> </edit>
> </match>
>
> We could have the bunch of rules against CMaps to determine the family name
> and the lang according to the psname in the pattern.</span >
This is much harder to implement in the current codebase.
One thing I don't like is matching for things like "pa.*" as that would also
match things like "par". But I guess that can be fixed by a more involved
regexp.
I'm not opposing this per se, just pointing out details that need to be taken
into consideration.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>