Port fonts-persian.conf to new alias syntax with binding="same"

Signed-off-by: Keith Packard <keithp@koto.keithp.com>
This commit is contained in:
Behdad Esfahbod 2007-10-26 02:02:19 -04:00 committed by Keith Packard
parent 681bb379de
commit d0e2a0f3a3
1 changed files with 121 additions and 256 deletions

View File

@ -37,285 +37,150 @@
<fontconfig> <fontconfig>
<!--
We don't want weak bindings. So got to use the syntactical expansion
of alias tag to do binding=same :(. Please support that in alias.
-->
<!-- Deprecated fonts are discouraged --> <!-- Deprecated fonts are discouraged -->
<!-- Nesf[2] is officially deprecated and has problematic tables --> <!-- Nesf[2] is officially deprecated and has problematic tables -->
<match> <alias binding="same">
<test name="family"> <family>Nesf</family>
<string>Nesf</string> <accept><family>Nesf2</family></accept>
</test> </alias>
<edit name="family" mode="assign" binding="same"> <alias binding="same">
<string>Nesf2</string> <family>Nesf2</family>
</edit> <accept><family>Persian_sansserif_default</family></accept>
</match> </alias>
<match>
<test name="family">
<string>Nesf2</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Persian_sansserif_default</string>
</edit>
</match>
<!-- Tahoma looks awful (TURNED-OFF) -->
<!--match>
<test name="family">
<string>Tahoma</string>
</test>
<edit name="family" mode="prepend" binding="same">
<string>Persian_sansserif_default</string>
</edit>
</match-->
<!-- Name changes and spelling variant aliases --> <!-- Name changes and spelling variant aliases -->
<!-- Changed due to trademark problems --> <alias binding="same">
<match> <family>Nazanin</family>
<test name="family"> <accept><family>Nazli</family></accept>
<string>Nazanin</string> </alias>
</test> <alias binding="same">
<edit name="family" mode="assign" binding="same"> <family>Lotus</family>
<string>Nazli</string> <accept><family>Lotoos</family></accept>
</edit> </alias>
</match> <alias binding="same">
<match> <family>Yaqut</family>
<test name="family"> <accept><family>Yaghoot</family></accept>
<string>Lotus</string> </alias>
</test> <alias binding="same">
<edit name="family" mode="assign" binding="same"> <family>Yaghut</family>
<string>Lotoos</string> <accept><family>Yaghoot</family></accept>
</edit> </alias>
</match> <alias binding="same">
<family>Traffic</family>
<!-- Changed due to transcription orthography --> <accept><family>Terafik</family></accept>
<match> </alias>
<test name="family"> <alias binding="same">
<string>Yaqut</string> <family>Ferdowsi</family>
</test> <accept><family>Ferdosi</family></accept>
<edit name="family" mode="assign" binding="same"> </alias>
<string>Yaghoot</string> <alias binding="same">
</edit> <family>Fantezy</family>
</match> <accept><family>Fantezi</family></accept>
<match> </alias>
<test name="family">
<string>Yagut</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Yaghoot</string>
</edit>
</match>
<match>
<test name="family">
<string>Yaghut</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Yaghoot</string>
</edit>
</match>
<match>
<test name="family">
<string>Traffic</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Terafik</string>
</edit>
</match>
<match>
<test name="family">
<string>Ferdowsi</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Ferdosi</string>
</edit>
</match>
<match>
<test name="family">
<string>Fantezy</string>
</test>
<edit name="family" mode="assign" binding="same">
<string>Fantezi</string>
</edit>
</match>
<!-- Classify fonts. --> <!-- Classify fonts. -->
<!-- Persian_title class --> <!-- Persian_title class -->
<match> <alias binding="same">
<test name="family"> <family>Jadid</family>
<string>Jadid</string> <accept><family>Persian_title</family></accept>
</test> </alias>
<edit name="family" mode="append" binding="same"> <alias binding="same">
<string>Persian_title</string> <family>Titr</family>
</edit> <accept><family>Persian_title</family></accept>
</match> </alias>
<match>
<test name="family">
<string>Titr</string>
</test>
<edit name="family" mode="append" binding="same">
<string>Persian_title</string>
</edit>
</match>
<!-- Persian_fantasy class --> <!-- Persian_fantasy class -->
<match> <alias binding="same">
<test name="family"> <family>Kamran</family>
<string>Kamran</string> <accept>
</test> <family>Persian_fantasy</family>
<edit name="family" mode="append" binding="same"> <family>Homa</family>
<string>Homa</string> </accept>
</edit> </alias>
<edit name="family" mode="append" binding="same"> <alias binding="same">
<string>Persian_fantasy</string> <family>Homa</family>
</edit> <accept>
</match> <family>Persian_fantasy</family>
<match> <family>Kamran</family>
<test name="family"> </accept>
<string>Homa</string> </alias>
</test> <alias binding="same">
<edit name="family" mode="append" binding="same"> <family>Fantezi</family>
<string>Kamran</string> <accept><family>Persian_fantasy</family></accept>
</edit> </alias>
<edit name="family" mode="append" binding="same"> <alias binding="same">
<string>Persian_fantasy</string> <family>Tabassom</family>
</edit> <accept><family>Persian_fantasy</family></accept>
</match> </alias>
<match>
<test name="family">
<string>Fantezi</string>
</test>
<edit name="family" mode="append" binding="same">
<string>Persian_fantasy</string>
</edit>
</match>
<match>
<test name="family">
<string>Tabassom</string>
</test>
<edit name="family" mode="append" binding="same">
<string>Persian_fantasy</string>
</edit>
</match>
<!-- Persian_square class --> <!-- Persian_square class -->
<match> <alias binding="same">
<test name="family"> <family>Arshia</family>
<string>Arshia</string> <accept><family>Persian_square</family></accept>
</test> </alias>
<edit name="family" mode="append" binding="same"> <alias binding="same">
<string>Persian_square</string> <family>Nasim</family>
</edit> <accept><family>Persian_square</family></accept>
</match> </alias>
<match> <alias binding="same">
<test name="family"> <family>Elham</family>
<string>Nasim</string> <accept>
</test> <family>Persian_square</family>
<edit name="family" mode="append" binding="same"> <family>Farnaz</family>
<string>Persian_square</string> </accept>
</edit> </alias>
</match> <alias binding="same">
<match> <family>Farnaz</family>
<test name="family"> <accept>
<string>Elham</string> <family>Persian_square</family>
</test> <family>Elham</family>
<edit name="family" mode="append" binding="same"> </accept>
<string>Farnaz</string> </alias>
</edit> <alias binding="same">
<edit name="family" mode="append" binding="same"> <family>Sina</family>
<string>Persian_square</string> <accept><family>Persian_square</family></accept>
</edit> </alias>
</match>
<match>
<test name="family">
<string>Farnaz</string>
</test>
<edit name="family" mode="append" binding="same">
<string>Elham</string>
</edit>
<edit name="family" mode="append" binding="same">
<string>Persian_square</string>
</edit>
</match>
<match>
<test name="family">
<string>Sina</string>
</test>
<edit name="family" mode="append" binding="same">
<string>Persian_square</string>
</edit>
</match>
<!-- Font ordering per class --> <!-- Font ordering per class -->
<!-- Persian_title class --> <!-- Persian_title class -->
<match> <alias binding="same">
<test name="family"> <family>Persian_title</family>
<string>Persian_title</string> <accept>
</test> <family>Titr</family>
<edit name="family" mode="append" binding="same"> <family>Jadid</family>
<string>Persian_serif</string> <family>Persian_serif</family>
</edit> </accept>
<edit name="family" mode="append" binding="same"> </alias>
<string>Jadid</string>
</edit>
<edit name="family" mode="append" binding="same">
<string>Titr</string>
</edit>
</match>
<!-- Persian_fantasy class --> <!-- Persian_fantasy class -->
<match> <alias binding="same">
<test name="family"> <family>Persian_fantasy</family>
<string>Persian_fantasy</string> <accept>
</test> <family>Homa</family>
<edit name="family" mode="append" binding="same"> <family>Kamran</family>
<string>Persian_square</string> <family>Fantezi</family>
</edit> <family>Tabassom</family>
<edit name="family" mode="append" binding="same"> <family>Persian_square</family>
<string>Tabassom</string> </accept>
</edit> </alias>
<edit name="family" mode="append" binding="same">
<string>Fantezi</string>
</edit>
<edit name="family" mode="append" binding="same">
<string>Kamran</string>
</edit>
<edit name="family" mode="append" binding="same">
<string>Homa</string>
</edit>
</match>
<!-- Persian_square class --> <!-- Persian_square class -->
<match> <alias binding="same">
<test name="family"> <family>Persian_square</family>
<string>Persian_square</string> <accept>
</test> <family>Arshia</family>
<edit name="family" mode="append" binding="same"> <family>Elham</family>
<string>Persian_serif</string> <family>Farnaz</family>
</edit> <family>Nasim</family>
<edit name="family" mode="append" binding="same"> <family>Sina</family>
<string>Sina</string> <family>Persian_serif</family>
</edit> </accept>
<edit name="family" mode="append" binding="same"> </alias>
<string>Nasim</string>
</edit>
<edit name="family" mode="append" binding="same">
<string>Farnaz</string>
</edit>
<edit name="family" mode="append" binding="same">
<string>Elham</string>
</edit>
<edit name="family" mode="append" binding="same">
<string>Arshia</string>
</edit>
</match>
<!-- Register the fonts that we actually do have --> <!-- Register the fonts that we actually do have -->