[Fontconfig-bugs] [Bug 40648] Regular expression support in comparison for <test>
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Jan 17 04:11:12 PST 2013
https://bugs.freedesktop.org/show_bug.cgi?id=40648
--- Comment #10 from Akira TAGOH <akira at tagoh.org> ---
another use case that I'm keen to see is:
<match>
<edit name="family_copy" mode="assign">
<name>family</name>
</edit>
</match>
<match>
<test name="family_copy" mode="regex">
<string>[[:space:]]</string>
</test>
<edit name="family_copy" mode="regex_replace_all">
<string>-</string>
</edit>
</match>
<match>
<test name="psname" mode="eq" qual="all">
<string></string>
</test>
<edit name="psname" mode="assign">
<name>family_copy</name>
</edit>
</match>
I'm expecting with the above rules to replace all of the white spaces to '-'
and set to 'psname' in the pattern if not available.
--
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/20130117/6bf88bf7/attachment.html>
More information about the Fontconfig-bugs
mailing list