[Fontconfig-bugs] [Bug 40648] Regular expression support in comparison for <test>
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Jan 11 00:20:57 PST 2013
https://bugs.freedesktop.org/show_bug.cgi?id=40648
--- Comment #6 from Akira TAGOH <akira at tagoh.org> ---
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.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20130111/ad7fb55a/attachment.html>
More information about the Fontconfig-bugs
mailing list