Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Displaying oriental characters
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
shentino
n00b
n00b


Joined: 21 Nov 2009
Posts: 63

PostPosted: Wed Dec 14, 2011 1:22 pm    Post subject: Displaying oriental characters Reply with quote

How do I properly display oriental characters in Google Chrome as well as other browsers?

A sample page I would like to render is: http://www.wikipedia.org

I'm thinking I have to install a font package of some sort but I'm not sure.
Back to top
View user's profile Send private message
tclover
Guru
Guru


Joined: 10 Apr 2011
Posts: 516

PostPosted: Wed Dec 14, 2011 1:34 pm    Post subject: Reply with quote

I guess having a unicode (UTF-8) locales with a few fonts will do the trick. It's work on my machines without any extra efforts. Although, I can guess having to generate the right locales in case of non unicode compatible system.
_________________
home/:mkinitramfs-ll/:supervision/:e-gtk-theme/:overlay/
Back to top
View user's profile Send private message
shentino
n00b
n00b


Joined: 21 Nov 2009
Posts: 63

PostPosted: Fri Dec 16, 2011 4:32 pm    Post subject: Reply with quote

I'm not having any trouble in the line of locales

But I'm not having much good luck choosing fonts. I already installed every font I could find and I still get those thin hollow boxes.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Sat Dec 17, 2011 1:45 am    Post subject: Reply with quote

* Here is the list of fonts I have installed from Portage which allows every language on the Wikipedia front page except "Gutisk" (old Gothic) to render correctly, as well as all scripts in the English articles on Buddhism:

Code:
media-fonts/baekmuk-fonts
media-fonts/font-misc-meltho
media-fonts/ja-ipafonts
media-fonts/khmer
media-fonts/lklug
media-fonts/lohit-fonts
media-fonts/pothana2k
media-fonts/sil-abyssinica
media-fonts/sil-arabicfonts
media-fonts/sil-nuosu
media-fonts/sil-padauk
media-fonts/thaifonts-scalable
media-fonts/tibetan-machine-font

"sil-nuosu" is not yet in Portage, but is available on bugzilla.

This should cover your purpose. Note that you have to enable the fonts with "eselect fontconfig", and restart any applications to use the newly installed fonts.

* For general East Asian language support on your system, enable the "cjk" USE flag. To also have support for fonts rendered right-to-left (e.g., Arabic and derivatives), enable the "bidi" USE flag.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
tclover
Guru
Guru


Joined: 10 Apr 2011
Posts: 516

PostPosted: Sat Dec 17, 2011 2:26 am    Post subject: Reply with quote

Right, Hypnos. I do not have all that fonts stuff (aside from media-fonts/intlfonts which you don't) but I do have bidi and cjk USE flag and I get every font rendered rightly on Wikipedia main page.

EDIT: That package has bitmaps fonts for several languages and I use Verdana in firefox which has a nice set of glyph. I'd like to get nice fonts with such an extensive glyphs set. Anyone? Hopefully, media-fonts/terminus has a nice “western” set for bitmap console compatible set of fonts.
_________________
home/:mkinitramfs-ll/:supervision/:e-gtk-theme/:overlay/
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Sat Dec 17, 2011 2:32 am    Post subject: Reply with quote

FYI,

I opened a bug for a Gothic font: https://bugs.gentoo.org/show_bug.cgi?id=395023

The Damase also covers Gothic, albeit without ligatures: https://bugs.gentoo.org/show_bug.cgi?id=216528
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
tclover
Guru
Guru


Joined: 10 Apr 2011
Posts: 516

PostPosted: Sat Dec 17, 2011 1:10 pm    Post subject: Reply with quote

Thanks Hypnos. I've just added your set of fonts to a new set and used the ebuilds from the bgo links to merge theme. At least, I won't be bothered for un-rendered fonts, though many were rendered just fine untill now.
_________________
home/:mkinitramfs-ll/:supervision/:e-gtk-theme/:overlay/
Back to top
View user's profile Send private message
shentino
n00b
n00b


Joined: 21 Nov 2009
Posts: 63

PostPosted: Sat Dec 17, 2011 5:51 pm    Post subject: Reply with quote

Are there any "meta packages" that depend on all the fonts I need?

Manual installation will clutter my world list.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Sun Dec 18, 2011 7:06 am    Post subject: Reply with quote

shentino,

There is no such meta-package in Portage. You can create one yourself in a local overlay, or use the package set feature in Portage (like tclover).
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2152
Location: Berlin, Germany

PostPosted: Sun Dec 18, 2011 4:29 pm    Post subject: Reply with quote

Thanks to virtual/ttf-fonts, dejavu or liberation-fonts should be installed on most systems already. You will get coverage for latin, greek, cyrillic, arabic and hebrew from these already.
A font with wide unicode coverage (e.g. bitstream-cyberbit or droid) will give you most east asian languages, and lohit-fonts contains most indic scripts.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Sun Dec 18, 2011 5:21 pm    Post subject: Reply with quote

Thanks chithanh!

I installed droid and it successfully obviates:

Code:
media-fonts/baekmuk-fonts
media-fonts/ja-ipafonts
media-fonts/sil-abyssinica
media-fonts/sil-arabicfonts
media-fonts/thaifonts-scalable


Also, it is a suitable substitute for dejavu.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2152
Location: Berlin, Germany

PostPosted: Sun Dec 18, 2011 5:53 pm    Post subject: Reply with quote

I think droid does not cover media-fonts/sil-abyssinica (Ethiopic)
Also in addition to droid you need at least
media-fonts/lohit-fonts (Indic scripts except Tibetan and Sinhalese)
media-fonts/sil-padauk (Myanmar)
media-fonts/tibetan-machine-font (Tibetan)
media-fonts/lklug (Sinhalese)
media-fonts/khmer (Khmer)

http://en.wikipedia.org/wiki/Help:Multilingual_support lists some more fonts, not all of which are available through portage however.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Sun Dec 18, 2011 6:40 pm    Post subject: Reply with quote

chithanh wrote:
I think droid does not cover media-fonts/sil-abyssinica (Ethiopic)

You're right, the Ge'ez script had fallen back to bitmaps without my noticing.

Also, after working with the droid CJK fonts a bit, I find them rather inappropriate for laptops and professional documents -- the fonts in opendesktop-fonts are far superior.

Finally, even without droid installed, I'm getting coverage in Arabic and Thai -- how does one find out which installed fonts cover which codepages?
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum