Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] The wrong kanji



Back in December '10 Travis wrote:

> I confirmed that all `fontconfig-voodoo -s ja_JP` does is make a single symlink:
> /etc/fonts/conf.avail/69-langauge-selector-ja-jp.conf ->
> /etc/fonts/conf.d/69-langauge-selector-ja-jp.conf
> 
> This file creates strong associations to Japanese fonts for generic
> font families, making them take priority over the Chinese fonts.  The
> associations, however, have a test that makes sure that your locale is
> a Japanese one.  If you remove these conditions (see the diff at the
> bottom of this message), then it makes the Japanese fonts take
> priority regardless of the locale.

I did this (made a file called
/etc/fonts/conf.avail/69-language-selector-ja-jp.all_locale.conf and
linked it into conf.d), and it seems to have done the trick. E.g.
viewing this in firefox (*):
  http://ja.wikipedia.org/wiki/%E4%BC%9A%E7%A4%BE
it now shows the correct kanji in both title and body.

Thanks!

Darren

*: I closed and opened firefox again, but no need to log off or reboot.



> $ git --no-pager diff
> --- a/etc/fonts/conf.avail/69-language-selector-ja-jp.conf
> +++ b/etc/fonts/conf.avail/69-language-selector-ja-jp.conf
> @@ -3,9 +3,6 @@
>  <fontconfig>
>      <!-- Japanese (ja) -->
>      <match target="pattern">
> -        <test name="lang" compare="contains">
> -            <string>ja</string>
> -        </test>
>          <test qual="any" name="family">
>              <string>serif</string>
>          </test>
> @@ -21,9 +18,6 @@
>      </match>
> 
>      <match target="pattern">
> -        <test name="lang" compare="contains">
> -            <string>ja</string>
> -        </test>
>          <test qual="any" name="family">
>              <string>sans-serif</string>
>          </test>
> @@ -41,9 +35,6 @@
>      </match>
> 
>      <match target="pattern">
> -        <test name="lang" compare="contains">
> -            <string>ja</string>
> -        </test>
>          <test qual="any" name="family">
>              <string>monospace</string>
>          </test>
> 



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links