Unix Technical Forum

How to solve my problem viewing unicode text in browser

This is a discussion on How to solve my problem viewing unicode text in browser within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I visited a website in Urdu language using Mozilla 7.1.5 and Slackware 10.0. However, the webpage which is done ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 03:30 PM
anonymous
 
Posts: n/a
Default How to solve my problem viewing unicode text in browser

I visited a website in Urdu language using Mozilla 7.1.5 and Slackware
10.0. However, the webpage which is done in unicode did not display
properly. ( http://www.bbc.co.uk/urdu ) and I think bbc.co.uk provides
downloads of Urdu fonts for windows machines only.

I thought that unicode text is standard and it should be displayed as
standard by any browser. As this is not the case, I figured out that
font for the language need to be installed. I think this should be
available on the Slackware CDs. But how to find them out and how to
install is difficult for me to guess. Somebody please help me out of
this problem.

Thanks in advance.

A.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 03:30 PM
olive
 
Posts: n/a
Default Re: How to solve my problem viewing unicode text in browser

anonymous wrote:
> I visited a website in Urdu language using Mozilla 7.1.5 and Slackware
> 10.0. However, the webpage which is done in unicode did not display
> properly. ( http://www.bbc.co.uk/urdu ) and I think bbc.co.uk provides
> downloads of Urdu fonts for windows machines only.
>
> I thought that unicode text is standard and it should be displayed as
> standard by any browser. As this is not the case, I figured out that
> font for the language need to be installed. I think this should be
> available on the Slackware CDs. But how to find them out and how to
> install is difficult for me to guess. Somebody please help me out of
> this problem.
>
> Thanks in advance.
>
> A.
>


Put the following in /etc/fonts/fonts.conf

<!-- Font directory list configured on Sun Sep 11 23:03:16 PDT 2005 -->

<dir>/usr/share/fonts</dir>
<dir>/usr/X11R6/lib/X11/fonts/TTF</dir>
<dir>/usr/X11R6/lib/X11/fonts/Type1</dir>
<dir>/usr/X11R6/lib/X11/fonts/windows</dir>
<dir>/usr/X11R6/lib/X11/fonts/misc/</dir>
<dir>/usr/X11R6/lib/X11/fonts/75dpi/</dir>
<dir>/usr/X11R6/lib/X11/fonts/100dpi/</dir>
<dir>/usr/X11R6/lib/X11/fonts/cyrillic/</dir>
<dir>/opt/kde/share/fonts</dir>
<dir>~/.fonts</dir>

<!--

This is in order that the free type library take all the fonts into
account (even the non antialiased ones). There is a classic fontg which
support unicode (at least enough to display your site properly).

Alternatively you can install a unicode TTF font (if you have one; TTF
is the usual Windows fonts) in the following way:

Put your-font.ttf in /usr/X11R6/lib/X11/fonts/myfonts (and create the
directory)

Run mkfontdir -e ../encodings/ in /usr/X11R6/lib/X11/fonts/myfonts

Run mkfontscale in /usr/X11R6/lib/X11/fonts/myfonts

Put the directory /usr/X11R6/lib/X11/fonts/myfonts in /etc/fonts/fonts.conf:
<dir>/usr/X11R6/lib/X11/fonts/myfonts</dir>

Put
FontPath "/usr/X11R6/lib/X11/fonts/myfonts" in /etc/X11/xorg.conf (you
way want not do this last step if you want that your TTF fonts are only
visible to applications using the freetype library since TTF are usually
of bad quality if the application use standard fonts as rendred by the
server)

Run fc-cache and restart the X server

Olive




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 03:30 PM
Carl Inglis
 
Posts: n/a
Default Re: How to solve my problem viewing unicode text in browser

On 2006-03-30, anonymous <call_ret@yahoo.com> wrote:
[snip]
> I thought that unicode text is standard and it should be displayed as
> standard by any browser. As this is not the case, I figured out that
> font for the language need to be installed. I think this should be
> available on the Slackware CDs. But how to find them out and how to
> install is difficult for me to guess. Somebody please help me out of
> this problem.


This page might contain links that help:
http://eyegene.ophthy.med.umich.edu/unicode/

It's not Slackware specific, but it might point you in the
right direction.

Carl
--
"D'you know, I don't think I've got it in me to shoot my flatmate,
my Mum, and my girlfriend all in the same evening." - Shaun of the Dead
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 03:30 PM
Grant
 
Posts: n/a
Default Re: How to solve my problem viewing unicode text in browser

On 30 Mar 2006 05:06:03 -0800, "anonymous" <call_ret@yahoo.com> wrote:

>I visited a website in Urdu language using Mozilla 7.1.5 and Slackware
>10.0. However, the webpage which is done in unicode did not display
>properly. ( http://www.bbc.co.uk/urdu ) and I think bbc.co.uk provides
>downloads of Urdu fonts for windows machines only.


You can use windows fonts with freetype2?

There's more to it than that, visiting the site with Opera and Firefox
under Windows: Firefox 1.5 renders properly while Opera is placing
blank 'box' (missing character glyph) frequently inside text strings,
indicating some sort of coding disagreement.

Not counting the phrases done as a graphic, are you seeing a partial
decoding with correct glyphs, or no correct text glyphs at all? (You
can tell by highlighting with mouse if a phrase is text or a graphic).

This establishes if you have the font installed, or have a decode issue.

>I thought that unicode text is standard


Firefox tells me the page is using UTF-8, yet setting Opera to UTF-8
does not improve rendering.

Grant.
--
Memory fault -- brain fried
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 03:31 PM
jessbody@gmail.com
 
Posts: n/a
Default Re: How to solve my problem viewing unicode text in browser

Slackware 10 does contain some Urdu fonts, like clearlyU. So FF should
have no problem in displaying the site in question. However, you would
do well to install a few extra fonts: "Nafees Web Naskh" from
www.crulp.org and "Urdu Naskh Unicode" from
http://www.geocities.com/gsmultipublications/naskh.html. You can
install these fonts easily from KDE/Control Center. Also a good idea to
check Urdu sites (www.jang.net/urdu) in Konqueror. And see if you can
write Urdu/Arabic in Kword etc. Some help is available here:
http://geocities.com/urdutext/

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:56 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com