Mozilla Firefox - Kannada myth


Out-of-box flawless rendering of Kannada on Firefox is still a myth for normal Kannada user on Linux.

The Silly variable

The variable
MOZ_PANGO_ENABLE
does not affect the pango rendering on Firefox anymore... or so it seems. While doing a fresh installation from [:http://www.ubuntu.com/download|Ubuntu Dapper Live CD], I observed that the /usr/bin/firefox now comes with this little piece of code:


if [ "x${MOZ_DISABLE_PANGO}" = x ]; then
if egrep '^(bn|gu|hi|kn|ml|mr|ne|pa|ta|te)_' \
/var/lib/locales/supported.d/*[^~] >/dev/null 2>&1; then
MOZ_DISABLE_PANGO=0
else
MOZ_DISABLE_PANGO=1
fi
export MOZ_DISABLE_PANGO
fi


which means someone has eased your part of job. Yay.

But not-so-geeky Kannada users who have En-US locale set as default might still be caught wondering "what the heck has happened to Firefox, Kannada is appearing garbled" during the first time installation.

Someone even mailed me the other week saying:

Is there *any* way I can get firefox showing kannada properly.
I've tried the MOZ_ENABLE_PANGO with every single version of ubuntu so far, but to no avail. *sigh*

;)

The little secret there is evident from the above little piece of code:

1) Switch to an Indic locale.

OR

2) Just remove the above mentioned part from the shell script (correct me if I'm wrong).

[edit]
Note: Remember to remove Mallige set of fonts from:
/usr/share/fonts/truetype/ttf-kannada-fonts/.

Do a $fc-cache once that is done.

[/edit]

To think that we had been doing builds of Pango-enabled Firefox just couple of months back :P
Or even worse - remember that "Taming the Dragon" page we had on Indlinux wiki and all those tough days to get Indic rendered properly on Mozilla! We surely are heading towards good days there. ;)

Untamed bug

Although Mozilla is very much tamed for [w:Indic|Indic] now (apart from one or two little modifications needed like the above - that still counts as a barrier for newbies; and something which the geeky crowd would hardly mind), we have some of the not-so-serious but irritating bugs like [:https://bugzilla.mozilla.org/show_bug.cgi?id=240914|this one]. Its a pity that they have been marked for 3.0 release - which could be *years* from now.

The solution, it seems, is in using the Uniscribe APIs and doing a complete rewrite as [:https://bugzilla.mozilla.org/show_bug.cgi?id=240914#c1|Jungshik Shin points out]. The bug regarding that has been there for a [:https://bugzilla.mozilla.org/show_bug.cgi?id=218887|significant amount of time now].

Some of these days, I hope to get a team of enthusiasts working on this re-write (maybe through [:http://sampada.net|Sampada]?).

#

Even though I'm a wannabe geek, i'm *not* a i18n geek.
So, please illuminate ;) us with *steps* to get this working
with option 1 or option 2.

I tried removing the above mentioned lines from /usr/bin/firefox. but then a lot of letters, which were visible earlier, vanished :(

i do not know how to do option 2.
I installed the "quick locale switcher" extn for firefox and choose kn-in locale... still no luck.

I'm so frustrated with this "firefox-kannada" experience that I use konqueror on ubuntu desktop just to read kannada sites.

I strongly urge "Monkey see - monkey do"tutorial. Please post a series of screenshots which will illustrate this.

#

well, you could have tried setting locale on terminal and launching firefox from there.

I'm glad that you got the rendering fixed finally, though. Share the steps with others. ;)

A "Monkey see - monkey do" tutorial would soon be in place replacing the current [:http://kn.wikipedia.org/wiki/Wikipedia:Kannada_Support|Kannada Support page] on Wiki (which is presently a little outdated) if I get little help from other contributors. As of now, swamped with too much work - I'd rather not venture into any documentation on wiki or Sampada alone.

#

I've started to see dotted circles separating kannada characters starting with the last Firefox update (I'm on Windows). This problem was not there before! Any solution for this?

Right now I'm forced to use IE for viewing Kannada webpages.

#

Ashwin,

Is there a screenshot available?

On Windows, Opera would be my second option after Firefox ;)

#

Ashwin,

Dotted Circles are actually space for the associated main letter glyph.
Eg: ಕೊ . here ಕ is the main letter and ಒ kompu is a joined glyph to make it ko letter. When a font renderer (such as browser) tries to display each glyph separately, all these subglyphs like ottu, kombu, deergha etc are shown with a dotted circle indicating the space for main character of that letter.

Now, when you see dotted circle in your firefox browser, it means, firefox has mistakenely redistributed the glyphs separately instead of combining them. It happens, in present versions of firefox, when there is a style applied such as letter-spacing, text-align:justify etc. Try removing that style. Dotted circles will be then removed.
For some of the practical examples on this, see this blog:
[:http://manadamaatu.blogspot.com/2006/07/firefox.html]

For firefox bug details on this issue, see this blog:
[:http://kannada.sampada.net/node/2]

- ಮನ|Mana

#

Yeah, this is exactly the problem I'm facing. Note that it doesn't happen with all text. Only things like headings or specially formatted parts of a webpage.

So, what's the solution to this on current Firefox version? The same webpages display fine on IE7 for me.

#

There's no solution for this on the current Firefox version (unfortunately). In fact, the "untamed bug" that I've mentioned on my post deals with the same.

The solution, er, as of now, is not to use the CSS properties - text-align:justify, word-spacing and letter-spacing on CSS of websites which make use of Indic content.