That could be because the web page was produced with a Hindi encoding, which would then require a Hindi font to display correctly. I have seen Japanese websites which use Shift_JIS encoding, for example.

Another approach is to output pages using UTF-8, and use a Unicode font. This should allow a mixture of languages to appear on a web page (not just Hindi, but Hindi, Japanese, Chinese) all displaying correctly.

One approach if you are going to use different fonts or layouts for each language is using Tiles. You can define a tiles-defs.xml for each language eg tiles-defs.xml, tiles-defs_ja.xml, tiles-defs_fr.xml

Each of these can either link to a different layout page or potentially define the stylesheet that should be used for the layout. You might try having 2 stylesheets: the first is the generic styles for all of the elements, the second just selects the font that should be displayed.

Then tiles could select the second stylesheet based on language.

I have used different layouts in Tiles, but have tried the separate stylesheets (so I don't know if it will work). It would be nice to link to a stylesheet that the browser can cache instead of dynamically generating them each time.

Jason Lea

Ashish Kulkarni wrote:
Hi,

I came up with this issue of fonts when i was visiting
some websites in other languages like Hindi, I went to
a website which displays all the text in Hindi, i was
looking in the source of this HTML file and saw the
font used as Webdunia, and the text was in english but
some thing like 'fiUrhgh' which does not make sense,
if u are using some common font like Verdana. For this
text to make sense and appear properly have to use
font webdunia, and then it strike me that it will be
same for all the other languages which have font base
other then latin.
So i think if we have to develop a website for
different langauges font is one of the very crucial
things, for example the properties file in other
language will have letter in english but will be
rendered differently if used different font
Hope this makes sense
Ashish
--- David Graham <[EMAIL PROTECTED]> wrote:

I think he just wants to use a different font for
each language. You shouldn't need to worry about it.


David




From: [EMAIL PROTECTED]
Reply-To: "Struts Users Mailing List"

<[EMAIL PROTECTED]>


To: <[EMAIL PROTECTED]>
Subject: RE: struts Internationalization and fonts

for jsp


Date: Mon, 24 Mar 2003 17:16:01 +0100

I am writing a multi-lingual APP and I did not

think I had to worry about


fonts.
Can someone please explain to me what about fonts I

actually have to worry


about?


_____


Thank You

Mick Knutson

Sr. Designer - Project Trust
aUBS AG, Financial - Z�rich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
 _____



-----Original Message-----
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 5:03 PM
To: [EMAIL PROTECTED]
Subject: Re: struts Internationalization and fonts

for jsp



That looks like a good approach. You can write a

css block at the top of


the page with the font from your properties file.

David




From: Ashish Kulkarni

<[EMAIL PROTECTED]>


Reply-To: "Struts Users Mailing List"

<[EMAIL PROTECTED]>


To: [EMAIL PROTECTED]
Subject: struts Internationalization and fonts

for jsp


Date: Mon, 24 Mar 2003 07:57:00 -0800 (PST)

Hi,

I have to build a website which can  be viewed in
multiple languages, I am using properties to file

to


get the text in different languages , but how do
people select different font for different

languages,


What i was thinking was to have a property called

font


in properties file and have fonts coded for

different


languages,
like my.properties (default english) will have
font=Verdana, Arial, Helvetica, sans-serif

any suggestion on achieveing this

Ashish



__________________________________________________


Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness,

live on your desktop!


http://platinum.yahoo.com


---------------------------------------------------------------------

To unsubscribe, e-mail:

[EMAIL PROTECTED]


For additional commands, e-mail:

[EMAIL PROTECTED]



_________________________________________________________________

Add photos to your messages with MSN 8. Get 2

months FREE*.


http://join.msn.com/?page=features/featuredemail



---------------------------------------------------------------------


To unsubscribe, e-mail:

[EMAIL PROTECTED]


For additional commands, e-mail:

[EMAIL PROTECTED]



Visit our website at http://www.ubswarburg.com


This message contains confidential information and

is intended only


for the individual named. If you are not the named

addressee you


should not disseminate, distribute or copy this

e-mail. Please


notify the sender immediately by e-mail if you have

received this


e-mail by mistake and delete this e-mail from your

system.


E-mail transmission cannot be guaranteed to be

secure or error-free


as information could be intercepted, corrupted,

lost, destroyed,


arrive late or incomplete, or contain viruses. The

sender therefore


does not accept liability for any errors or

omissions in the contents


of this message which arise as a result of e-mail

transmission. If


verification is required please request a hard-copy

version. This


message is provided for informational purposes and

should not be


construed as a solicitation or offer to buy or sell

any securities or


related financial instruments.



---------------------------------------------------------------------


To unsubscribe, e-mail:

[EMAIL PROTECTED]


For additional commands, e-mail:

[EMAIL PROTECTED]




_________________________________________________________________

MSN 8 helps eliminate e-mail viruses. Get 2 months
FREE*. http://join.msn.com/?page=features/virus





---------------------------------------------------------------------


To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]




__________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Jason Lea
Email:     [EMAIL PROTECTED]
Phone/Fax: +64  3 381 2907
Mobile:    +64 21 040 2708
Address:   9a Tabart Street, Christchurch, New Zealand


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to