[Fontconfig-bugs] [Bug 40648] Regular expression support in comparison for <test>
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Jan 13 20:44:36 PST 2013
https://bugs.freedesktop.org/show_bug.cgi?id=40648
--- Comment #7 from Behdad Esfahbod <freedesktop at behdad.org> ---
(In reply to comment #6)
> 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.
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.
--
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/20130114/a2d50f2d/attachment.html>
More information about the Fontconfig-bugs
mailing list