Handling Hebrew & Arabic

G

Guest

Hi;

I understand that HTMLDirectionality sets the direction for the <html> tag.
But what about text within the page, especially text that is mixed (rtl and
ltr)? Doesn't it need the <span dir='LTR'>...</span> for the ltr parts?

And if so, how is this best done?
 
H

HongQuan Wu[MSFT]

Hi Dave,

Thank you for contacting Microsoft.

Based on my investigation, I found the HtmlDirectionality is only a
resource key defined in the local resource file. We can use it to set the
dir property of a specific element to instruct the browse to display the
text in the correct direction. It is useful for the web page that only
contains one language. If you have a multilingual page, (in other words,
you need to display some text in a fixed language no matter what culture
info is set in the web browse), the <span dir¡­> is an option for you. But
please note the direction of the text can not be dynamically changed
according to different culture info from IE.

If there is anything unclear about this issue, please feel free to let me
know. Thanks a lot!

Thanks & Regards,

Frederick Wu
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=====================================================
Business-Critical Phone Support (BCPS) provides you with technical phone
support at no charge during critical LAN outages or "business down"
situations. This benefit is available 24 hours a day, 7 days a week to all
Microsoft technology partners in the United States and Canada.

This and other support options are available here:

BCPS:
https://partner.microsoft.com/US/technicalsupport/supportoverview/40010469

Others: https://partner.microsoft.com/US/technicalsupport/supportoverview/

If you are outside the United States, please visit our International
Support page:
http://support.microsoft.com/default.aspx?scid=/international.aspx.
=====================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
H

HongQuan Wu[MSFT]

Hi,

Do you have any other concerns on this issue? Thank you!

Thanks & Regards,

Frederick Wu
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=====================================================
Business-Critical Phone Support (BCPS) provides you with technical phone
support at no charge during critical LAN outages or "business down"
situations. This benefit is available 24 hours a day, 7 days a week to all
Microsoft technology partners in the United States and Canada.

This and other support options are available here:

BCPS:
https://partner.microsoft.com/US/technicalsupport/supportoverview/40010469

Others: https://partner.microsoft.com/US/technicalsupport/supportoverview/

If you are outside the United States, please visit our International
Support page:
http://support.microsoft.com/default.aspx?scid=/international.aspx.
=====================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

Hi;

Even if I am not multi-lingual, a page in pure Hebrew will have some latin
text and numbers in it. And the latin text and numbers are ltr inside the rtl
for the Hebrew.

The way this is supposed to be set in browsers is using <span
div='LTR'>123.45</span> - but this gets complicated with resources that can
have text dynamically substituted in and that text could be Hebrew or English
(for example, a person's name).

How best to handle that? (It is probably best to ask someone at MS that is
familiar with bi-di, it's rules are very weird and they have probably hit
this before.)
 
S

Steven Cheng[MSFT]

Hi Dave,

As far as I knew, currently ASP.NET dosn't provide particular setting or
interface for bidi text rendering. The ASP.NET webcontrols just render html
content and rely on the standard html element(browser)'s support of bidi
text rendering. So I think we have to wrapper different order text in
different html element which have different bidi setting( dir attribute).

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,139
Latest member
JamaalCald
Top