<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>10829</bug_id>
          
          <creation_ts>2010-09-29 13:37:00 +0000</creation_ts>
          <short_desc>Remove the whitespace from the &lt;rp&gt; example</short_desc>
          <delta_ts>2012-01-31 22:34:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="i18n CJK group">public-i18n-cjk</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>duerst</cc>
    
    <cc>fantasai.bugs</cc>
    
    <cc>ian</cc>
    
    <cc>ishida</cc>
    
    <cc>kennyluck</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>public-i18n-cjk</cc>
    
    <cc>public-i18n-core</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>39960</commentid>
    <comment_count>0</comment_count>
    <who name="i18n CJK group">public-i18n-cjk</who>
    <bug_when>2010-09-29 13:37:00 +0000</bug_when>
    <thetext>Comment from the i18n review of:
http://dev.w3.org/html5/spec/

Comment 6
At http://www.w3.org/International/reviews/0802-html5/
Editorial/substantive: E
Tracked by: RI

Location in reviewed document:
4.6.18 The ruby element [http://www.w3.org/TR/2010/WD-html5-20100624/text-level-semantics.html#the-ruby-element]

Comment:The code samples in the ruby section are misleading because they show white-space between the components that should not be there. 

eg.

...

&lt;ruby&gt;

 &amp;#28450; &lt;rt&gt; &amp;#12363;&amp;#12435; &lt;/rt&gt;

 &amp;#23383; &lt;rt&gt; &amp;#12376; &lt;/rt&gt;

&lt;/ruby&gt;

...

Please either show the examples as the code should look, eg.

...

&lt;ruby&gt;&amp;#28450;&lt;rt&gt;&amp;#12363;&amp;#12435;&lt;/rt&gt;&amp;#23383;&lt;rt&gt;&amp;#12376;&lt;/rt&gt;&lt;/ruby&gt;

...

or add a note to say that the extra white space is there to show the structure clearly, but should not be copied.

Similar comments apply to the examples in the rp section that follows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40110</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-09-30 09:06:46 +0000</bug_when>
    <thetext>Would the white space actually affect the rendering? i.e. why is the whitespace bad?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40118</commentid>
    <comment_count>2</comment_count>
    <who name="fantasai">fantasai.bugs</who>
    <bug_when>2010-09-30 09:27:24 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Would the white space actually affect the rendering? i.e. why is the whitespace
&gt; bad?

Chinese and Japanese do not use white space to separate words or other linguistic constructs. Therefore in these languages white space should not be introduced between characters.

The white space collapsing rules in CSS2.1 do allow UAs to collapse white space surrounding a line feed to nothing; however this is not normatively required, and only IE has implemented this behavior. Additionally, the css3-ruby spec still does not define its interaction with white space collapsing rules. Even the line break transformation rules were normatively defined (which they will be in css3-text), to correctly collapse away white space between the base characters when using Pinyin ruby, the white space processing rules would have to ignore the ruby text.

Given these complications, it is therefore safer to not include such white space in the source markup, and the HTML5 spec should adopt such a practice in its examples.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40282</commentid>
    <comment_count>3</comment_count>
      <attachid>919</attachid>
    <who name="I18n Core WG">public-i18n-core</who>
    <bug_when>2010-09-30 19:50:05 +0000</bug_when>
    <thetext>Created attachment 919
Ruby in IE showing white-space is kept around.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40283</commentid>
    <comment_count>4</comment_count>
    <who name="I18n Core WG">public-i18n-core</who>
    <bug_when>2010-09-30 19:53:01 +0000</bug_when>
    <thetext>If drop the code in the example into a file and look at it in Chrome, the white-space disappears, but look at it in IE (on which this markup is supposed to be modelled) and you see the spaces in the text (see attachment just above). 

I wasn&apos;t able to tell from the spec why this should be treated differently from other phrasing content elements, such as span, where white-space is not automatically removed.

This also brings into question the intended use of ruby markup. Some people view ruby markup as a mechanism that could be used for things like linguistic glosses (in fact i had a query from a member of the public just today about exactly that). In such cases they may want to annotate a string of words separated by spaces.  If spaces are removed automatically from the outside edges of the base text, they would be forced to use separate &lt;ruby&gt; elements for each word annotated in such a sentence - which seems counter to the change in the HTML5 ruby markup model that allows several ruby base/text pairs within a single &lt;ruby&gt; element vs the more cumbersome Ruby Annotation model, where each simple ruby pairing had to have it&apos;s own &lt;ruby&gt; element. In other words, if white space is removed from around the base of HTML5 ruby, then presumably several pairs of ruby+ruby text should only be used with Japanese and Chinese.

It&apos;s beginning to appear to me that this reveals a substantive rather than a merely editorial issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40801</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-07 19:51:07 +0000</bug_when>
    <thetext>I&apos;ll take comment 2, comment 3, and comment 4 to be a &quot;yes&quot; to comment 1. A simple &quot;yes&quot; would have sufficed. :-)

EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter&apos;s comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40802</commentid>
    <comment_count>6</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-10-07 19:52:35 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r5590.
Check-in comment: Fix the markup to match the example renderings.
http://html5.org/tools/web-apps-tracker?from=5589&amp;to=5590</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51553</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Ishida">ishida</who>
    <bug_when>2011-07-27 13:36:02 +0000</bug_when>
    <thetext>Thanks for the fixes to 4.6.20 The ruby element in the LC version, although I noticed that there&apos;s a trailing space on the last &lt;rt&gt; element in the first two examples.  Is that intentional?

The main purpose of this comment, however, is to mention that 4.6.22 The rp element in the LC version still has the original problem.  

If you really wanted to have the spaces beside the parens, you should add those to the rp element (because otherwise you&apos;d have an anomaly between the last paren and the following text).  But actually, in Japanese text you wouldn&apos;t have such space characters anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51595</commentid>
    <comment_count>8</comment_count>
    <who name="Martin Dürst">duerst</who>
    <bug_when>2011-07-28 00:49:51 +0000</bug_when>
    <thetext>(In reply to comment #7)

&gt; The main purpose of this comment, however, is to mention that 4.6.22 The rp
&gt; element in the LC version still has the original problem.  
&gt; 
&gt; If you really wanted to have the spaces beside the parens, you should add those
&gt; to the rp element (because otherwise you&apos;d have an anomaly between the last
&gt; paren and the following text).

Yes indeed.

&gt; But actually, in Japanese text you wouldn&apos;t
&gt; have such space characters anyway.

Not exactly true. JIS X 4051 defines parentheses as half-width, with a half-width space attached to the outside, to together result in a full-width block. When there is a need for stretching or shrinking the line, the parentheses isn&apos;t affected, but the space is streched or shrunk. See also http://www.w3.org/TR/jlreq/#en-subheading2_1_2. Ideally, this should happen automatically, independent of whether it&apos;s a half-width (ASCII) parenthesis or a full-width parenthesis (which has the half-width space &apos;built-in&apos;). But current Web layout technology isn&apos;t there yet (at least not as far as I know), so it may need to be faked. Using a half-width (ASCII) parenthesis and a half-width (ASCII) space (outside the parenthesis, but inside the &lt;rp&gt;) is one way to do that. Using a full-width parenthesis is another way to do it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54099</commentid>
    <comment_count>9</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:36:03 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54282</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-06 03:31:05 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with comment 7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54284</commentid>
    <comment_count>11</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-08-06 03:33:47 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r6380.
Check-in comment: didn&apos;t fix this properly in r5590
http://html5.org/tools/web-apps-tracker?from=6379&amp;to=6380</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61238</commentid>
    <comment_count>12</comment_count>
    <who name="Kang-Hao (Kenny) Lu">kennyluck</who>
    <bug_when>2011-12-08 12:46:25 +0000</bug_when>
    <thetext>You forgot to fix the example for rp.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63459</commentid>
    <comment_count>13</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-01-31 22:33:02 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter&apos;s comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63460</commentid>
    <comment_count>14</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-01-31 22:34:07 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r6954.
Check-in comment: Make this example more realistic.
http://html5.org/tools/web-apps-tracker?from=6953&amp;to=6954</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>919</attachid>
            <date>2010-09-30 19:50:05 +0000</date>
            <delta_ts>2010-09-30 19:50:05 +0000</delta_ts>
            <desc>Ruby in IE showing white-space is kept around.</desc>
            <filename>rubyspacedout.png</filename>
            <type>image/png</type>
            <size>894</size>
            <attacher name="I18n Core WG">public-i18n-core</attacher>
            
              <data encoding="base64">iVBORw0KGgoAAAANSUhEUgAAAIwAAAA5CAIAAABrpVSvAAAAAXNSR0IArs4c6QAAAARnQU1BAACx
jwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAvxJREFU
eF7tmdty5CAMRJP//+hJUp6iCCDRarBsJz1P+yAh1EcXnP18vV4f+t1cgW9I+t1cgY+b30/X+xl1
UuH+CgjS/Rmpkx7ASJAE6QkKPOCO2kmCZCjw/e2IaAOa9UfRjsit8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