Adjust color emoji config some more
Seems to work now. Either asking for family emoji, or :lang=und-zsye returns the preferred color emoji font available, or just any color emoji font if none of the preferred ones was found.
This commit is contained in:
parent
26fdd3e4c6
commit
cc8442dec8
|
@ -5,27 +5,6 @@
|
||||||
|
|
||||||
<!-- Emoji -->
|
<!-- Emoji -->
|
||||||
|
|
||||||
<!-- Prefer to match color emoji font. -->
|
|
||||||
<match>
|
|
||||||
<test name="lang">
|
|
||||||
<string>und-zsye</string>
|
|
||||||
</test>
|
|
||||||
<test qual="all" name="color" compare="not_eq">
|
|
||||||
<bool>true</bool>
|
|
||||||
</test>
|
|
||||||
<test qual="all" name="color" compare="not_eq">
|
|
||||||
<bool>false</bool>
|
|
||||||
</test>
|
|
||||||
<edit name="color" mode="append">
|
|
||||||
<bool>true</bool>
|
|
||||||
</edit>
|
|
||||||
</match>
|
|
||||||
|
|
||||||
<!-- TODO
|
|
||||||
! Match on "color" and alias B&W ones first if no color is requested.
|
|
||||||
! That's "hard" because <alias> doesn't work in match and needs to be
|
|
||||||
! expanded to its non-sugar form.
|
|
||||||
!-->
|
|
||||||
<alias binding="same">
|
<alias binding="same">
|
||||||
<family>Emoji Two</family>
|
<family>Emoji Two</family>
|
||||||
<default><family>emoji</family></default>
|
<default><family>emoji</family></default>
|
||||||
|
@ -74,6 +53,20 @@
|
||||||
</edit>
|
</edit>
|
||||||
</match>
|
</match>
|
||||||
|
|
||||||
|
<match>
|
||||||
|
<test name="lang">
|
||||||
|
<string>und-zsye</string>
|
||||||
|
</test>
|
||||||
|
<test qual="all" name="family" compare="not_eq">
|
||||||
|
<string>emoji</string>
|
||||||
|
</test>
|
||||||
|
|
||||||
|
<!-- Add generic family. -->
|
||||||
|
<edit name="family" mode="append" binding="strong">
|
||||||
|
<string>emoji</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
|
||||||
<!-- Math -->
|
<!-- Math -->
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,27 @@
|
||||||
|
|
||||||
<!-- Emoji -->
|
<!-- Emoji -->
|
||||||
|
|
||||||
|
<!-- Prefer to match color emoji font. -->
|
||||||
|
<match>
|
||||||
|
<test name="lang">
|
||||||
|
<string>und-zsye</string>
|
||||||
|
</test>
|
||||||
|
<test qual="all" name="color" compare="not_eq">
|
||||||
|
<bool>true</bool>
|
||||||
|
</test>
|
||||||
|
<test qual="all" name="color" compare="not_eq">
|
||||||
|
<bool>false</bool>
|
||||||
|
</test>
|
||||||
|
<edit name="color" mode="append">
|
||||||
|
<bool>true</bool>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
<!-- TODO
|
||||||
|
! Match on "color" and alias B&W ones first if no color is requested.
|
||||||
|
! That's "hard" because <alias> doesn't work in match and needs to be
|
||||||
|
! expanded to its non-sugar form.
|
||||||
|
!-->
|
||||||
<alias binding="same">
|
<alias binding="same">
|
||||||
<family>emoji</family>
|
<family>emoji</family>
|
||||||
<prefer>
|
<prefer>
|
||||||
|
|
Loading…
Reference in New Issue