lang attribute support for family tag
@tagoh
Submitted by Akira TAGOH Assigned to fon..@..op.org
Description
<family>
tag is used for <alias>
though, sometimes wants to add the family conditionally, particularly for certain language. <alias>
is capable to have <test>
elements but may be a good idea to have the lang attribute to <family>
as another syntactic sugar:
<alias>
<family>
serif</family>
<prefer>
...
<family lang="ja">
MS Mincho</family>
AR PL ShanHeiSun Uni</family>
...
</prefer>
</alias>
interpreted like:
<match>
<test name="family">
<string>
serif</string>
</test>
<test name="lang">
<string>
ja</string>
</test>
<edit name="family" mode="prepend">
<string>
MS Mincho</string>
</edit>
</match>
<match>
<test name="family">
<string>
serif</string>
</test>
<test name="lang">
<string>
zh-cn</string>
</test>
<edit name="family" mode="prepend">
<string>
AR PL ShanHeiSun Uni</string>
</edit>
</match>
<match>
<test name="family">
<string>
serif</string>
</test>
<test name="lang">
<string>
zh-tw</string>
</test>
<edit name="family" mode="prepend">
<string>
AR PL ShanHeiSun Uni</string>
</edit>
</match>