[widgets] Span example

[This is a continuation of one part of the http://lists.w3.org/Archives/Public/public-i18n-core/2010JanMar/0043.html thread.]

It addresses the comment:

[[ 7.16. The span Element  http://dev.w3.org/2006/waf/widgets/#the-span-element-and-its-attributes
[2] I think the example could be improved by having something inside the span with punctuation (eg. exclamation mark) or such, and maybe the description should be in English - otherwise you'd probably want to put the dir on the widget tag and have English in the span. Should I try to find another example ?
]] at http://www.w3.org/International/reviews/0907-widgets-pc/


Here's my proposed example (thanks to Aharon Lanin for helping with the Hebrew).  I made up something that might appear in a Hebrew widget, rather than an English one, since it's a little more realistic.

<widget
  xmlns="http://www.w3.org/ns/widgets"
  xml:lang="he" dir="rtl">
 <name xml:lang="en">GPS Weather!</name>
 <description
   יישומון ה-<span dir="rtl" xml:lang="en">GPS Weather!</span> מאפשר לך לבדוק את מזג האוויר בכל נקודת GPS ברחבי העולם.
  </description>
</widget>

Here's a version ready to drop into HTML (I suggest you copy it as a unit, to avoid problems with the bidirectional text.)

&lt;widget
  xmlns=&quot;http://www.w3.org/ns/widgets&quot;
  xml:lang=&quot;he&quot; dir=&quot;rtl&quot;&gt;
 &lt;name xml:lang=&quot;en&quot;&gt;GPS Weather!&lt;/name&gt;
 &lt;description
   יישומון ה-&lt;span dir=&quot;rtl&quot; xml:lang=&quot;en&quot;&gt;GPS Weather!&lt;/span&gt; מאפשר לך לבדוק את מזג האוויר בכל נקודת GPS ברחבי העולם.
  &lt;/description&gt;
&lt;/widget&gt;

Cheers,
RI


PS: This email has been sent as UTF-8.




============
Richard Ishida
Internationalization Lead
W3C (World Wide Web Consortium)

http://www.w3.org/International/
http://rishida.net/

Received on Tuesday, 16 March 2010 18:59:15 UTC