Mordechai Peller wrote:
I need to mark-up a document (XHTML) written in English, but which includes some Hebrew words. I'm trying to decide the following:

1. How should the words be marked-up: <span>, <dfn>, or just leave them in the flow?

Depends on the structure of your text and its purpose to soem extent. But considering you need to markup a change in language, I'd be inclined to use a span tag to apply the lang and xml:lang attributes.

2. Is the <bdo> element needed, or just the "dir" attribute?

Do NOT use BDO, this is a bidi override, and is used to change the default directionality of characters.

If it is a single work in hebrew amidst LTR text the you don't really need the "dir" attribute, since each Hebrew character is right to left anyway. If you were going to use a group of words or a phrase, then i'd wrap it in an appropriate element and indicate the "dir", e.g.

<span lang="he" xml:lang="he" dir="rtl"></span>

3. How should the transliteration and translation be included: title attribute or following in the flow?

Posisbly the best approach is to have the transliteration and translation in teh etxt rather than in an attribute value.

One of the nice things? or is it problematic things about HTML and XHTML is that a lang declaration applies not only to the content of the element, but also to the value of the attributes of the element.

A span with a 'lang="he"' implies that the valuses of any "alt" or "title" attributes in this element are also written in Hebrew.

4. How's the browser support for bidi?

for most browsers, its more an OS issue.

5. What should be included in the <head> element?

not sure what you mean by this. All you should need to do is declare the encoding.

Have a look at

http://www.w3.org/International/resource-index.html#bidi

Andrew


Thanks
******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



--
Andrew Cunningham
e-Diversity and Content Infrastructure Solutions
Public Libraries Unit, Vicnet
State Library of Victoria
328 Swanston Street
Melbourne  VIC  3000
Australia

andrewc+AEA-vicnet.net.au

Ph. 3-8664-7430
Fax: 3-9639-2175

http://www.openroad.net.au/
http://www.libraries.vic.gov.au/
http://www.vicnet.net.au/
******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to