W3C home > Mailing lists > Public > public-css-commits@w3.org > January 2012

csswg/css3-text Overview.html,1.200,1.201 Overview.src.html,1.298,1.299

From: Elika Etemad via cvs-syncmail <cvsmail@w3.org>
Date: Sat, 07 Jan 2012 01:20:44 +0000
To: public-css-commits@w3.org
Message-Id: <E1RjKxg-0000l0-2Y@lionel-hutz.w3.org>
Update of /sources/public/csswg/css3-text
In directory hutz:/tmp/cvs-serv2894

Modified Files:
	Overview.html Overview.src.html 
Log Message:
Multi-script examples for 'word-break' and 'hyphens'; fix glitch in 'word-break: break-all' definition.

Index: Overview.html
===================================================================
RCS file: /sources/public/csswg/css3-text/Overview.html,v
retrieving revision 1.200
retrieving revision 1.201
diff -u -d -r1.200 -r1.201
--- Overview.html	6 Jan 2012 22:59:32 -0000	1.200
+++ Overview.html	7 Jan 2012 01:20:41 -0000	1.201
@@ -29,14 +29,14 @@
 
    <h1>CSS Text Level 3</h1>
 
-   <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 6 January 2012</h2>
+   <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 7 January 2012</h2>
 
    <dl>
     <dt>This version:
 
     <dd><a href="http://dev.w3.org/csswg/css3-text/">$Date: 2012/01/06
-     22:56:54 $ (CVS $Revision$)</a> <!--
-      <dd><a href="http://www.w3.org/TR/2012/WD-css3-text-20120106/">http://www.w3.org/TR/2012/WD-css3-text-20120106/</a></dd>
+     22:59:32 $ (CVS $Revision$)</a> <!--
+      <dd><a href="http://www.w3.org/TR/2012/WD-css3-text-20120107/">http://www.w3.org/TR/2012/WD-css3-text-20120107/</a></dd>
     -->
      
 
@@ -1414,10 +1414,11 @@
    <dt><dfn id=break-all title="word-break:break-all">&lsquo;<code
     class=css>break-all</code>&rsquo;</dfn>
 
-   <dd>Lines may break between any two characters within words. Hyphenation
-    is not applied. This option is used mostly in a context where the text is
-    predominantly using CJK characters with few non-CJK excerpts and it is
-    desired that the text be better distributed on each line.
+   <dd>In addition to normal opportunities, lines may break between any two
+    letters within words. Hyphenation is not applied. This option is used
+    mostly in a context where the text is predominantly using CJK characters
+    with few non-CJK excerpts and it is desired that the text be better
+    distributed on each line.
 
    <dt><dfn id=keep-all title="word-break:keep-all">&lsquo;<code
     class=css>keep-all</code>&rsquo;</dfn>
@@ -1429,6 +1430,40 @@
     line-breaking opportunities, as in Korean.
   </dl>
 
+  <div class=example>
+   <p>Here's a mixed-script sample text:
+
+   <pre>这是一些汉字, and some Latin text,<!--
+        --> &#x0648; &#x06A9;&#x0645;&#x06CC; &#x0646;&#x0648;&#x0634;&#x062A;&#x0646;&#x0646; &#x0639;&#x0631;&#x0628;&#x06CC;, <!--
+        -->and some complex LTR.</pre>
+
+   <p>The break-points are determined as follows (indicated by
+    &lsquo;&middot;&rsquo;):
+
+   <dl>
+    <dt>&lsquo;<code class=css>word-break: normal</code>&rsquo;
+
+    <dd>
+     <pre>这·是·一·些·汉·字,·and·some·Latin·text,<!--
+        -->·&#x0648;·&#x06A9;&#x0645;&#x06CC;·&#x0646;&#x0648;&#x0634;&#x062A;&#x0646;&#x0646;·&#x0639;&#x0631;&#x0628;&#x06CC;·<!--
+        -->and·some·complex·LTR.</pre>
+
+    <dt>&lsquo;<code class=css>word-break: break-all</code>&rsquo;
+
+    <dd>
+     <pre>这·是·一·些·汉·字·a·n·d·s·o·m·e·L·a·t·i·n·t·e·x·t,<!--
+        -->·&#x0648;·&#xFB90;·&#xFEE4;·&#xFEF0;·&#xFEE7;·&#xFEEE;·&#xFEB7;·&#xFE98;·&#xFEE6;·&#xFECB;·&#xFEAE;·&#xFE91;·&#xFEF0;,·<!--
+        -->a·n·d·s·o·m·e·c·o·m·p·l·e·x·L·T·R.</pre>
+
+    <dt>&lsquo;<code class=css>word-break: keep-all</code>&rsquo;
+
+    <dd>
+     <pre>这是一些汉字,·and·some·Latin·text,<!--
+        -->·&#x0648;·&#x06A9;&#x0645;&#x06CC;·&#x0646;&#x0648;&#x0634;&#x062A;&#x0646;&#x0646;·&#x0639;&#x0631;&#x0628;&#x06CC;,·<!--
+        -->and·some·complex·LTR.</pre>
+   </dl>
+  </div>
+
   <p>When shaping scripts such as Arabic are allowed to break within words
    due to &lsquo;<code class=css>break-all</code>&rsquo;, the characters must
    still be shaped as if the word were not broken.
@@ -1516,12 +1551,9 @@
       explicit hyphen. Unicode Standard Annex #14 describes the <a
       href="http://unicode.org/reports/tr14/#SoftHyphen">role of soft hyphens
       in</a> Unicode line breaking. <a href="#UAX14"
-      rel=biblioentry>[UAX14]<!--{{!UAX14}}--></a>
-    </div>
-
-    <div class=example>
-     <p>In HTML, &amp;shy; represents the soft hyphen character which
-      suggests a line break opportunity.
+      rel=biblioentry>[UAX14]<!--{{!UAX14}}--></a> In HTML, &amp;shy;
+      represents the soft hyphen character which suggests a hyphenation
+      opportunity.
 
      <pre>ex&amp;shy;ample</pre>
     </div>
@@ -1547,6 +1579,14 @@
    due to hyphenation, the characters must still be shaped as if the word
    were not broken.
 
+  <div class=example>
+   <p>For example, if the word
+    &ldquo;&#x0646;&#x0648;&#x0634;&#x062A;&#x0646;&#x0646;&rdquo; were
+    hyphenated, it would appear as
+    &ldquo;&#xFEE7;&#xFEEE;&#xFEB7;-&#xFE98;&#xFEE6;&rdquo; not as
+    &ldquo;&#xFEE7;&#xFEEE;&#xFEB5;-&#xFE97;&#xFEE6;&rdquo;.
+  </div>
+
   <h2 id=wrapping><span class=secno>6. </span> Text Wrapping</h2>
 
   <p>Text wrapping is controlled by the &lsquo;<a href="#text-wrap0"><code

Index: Overview.src.html
===================================================================
RCS file: /sources/public/csswg/css3-text/Overview.src.html,v
retrieving revision 1.298
retrieving revision 1.299
diff -u -d -r1.298 -r1.299
--- Overview.src.html	6 Jan 2012 22:59:32 -0000	1.298
+++ Overview.src.html	7 Jan 2012 01:20:41 -0000	1.299
@@ -952,7 +952,8 @@
       <dt><dfn title="word-break:normal">''normal''</dfn></dt>
       <dd>Break lines according to their usual rules.</dd>
       <dt><dfn title="word-break:break-all">''break-all''</dfn></dt>
-      <dd>Lines may break between any two characters within words.
+      <dd>In addition to normal opportunities, lines may break between any two
+        letters within words.
         Hyphenation is not applied. This option is used mostly in a context where
         the text is predominantly using CJK characters with few non-CJK excerpts
         and it is desired that the text be better distributed on each line.</dd>
@@ -964,6 +965,31 @@
         characters still creates line-breaking opportunities, as in Korean.</dd>
     </dl>
 
+     <div class="example">
+      <p>Here's a mixed-script sample text:
+      <pre>这是一些汉字, and some Latin text,<!--
+        --> &#x0648; &#x06A9;&#x0645;&#x06CC; &#x0646;&#x0648;&#x0634;&#x062A;&#x0646;&#x0646; &#x0639;&#x0631;&#x0628;&#x06CC;, <!--
+        -->and some complex LTR.</pre>
+      <p>The break-points are determined as follows (indicated by &lsquo;&middot;&rsquo;):
+      <dl>
+        <dt>''word-break: normal''</dt>
+        <dd>
+      <pre>这·是·一·些·汉·字,·and·some·Latin·text,<!--
+        -->·&#x0648;·&#x06A9;&#x0645;&#x06CC;·&#x0646;&#x0648;&#x0634;&#x062A;&#x0646;&#x0646;·&#x0639;&#x0631;&#x0628;&#x06CC;·<!--
+        -->and·some·complex·LTR.</pre>
+        <dt>''word-break: break-all''</dt>
+        <dd>
+      <pre>这·是·一·些·汉·字·a·n·d·s·o·m·e·L·a·t·i·n·t·e·x·t,<!--
+        -->·&#x0648;·&#xFB90;·&#xFEE4;·&#xFEF0;·&#xFEE7;·&#xFEEE;·&#xFEB7;·&#xFE98;·&#xFEE6;·&#xFECB;·&#xFEAE;·&#xFE91;·&#xFEF0;,·<!--
+        -->a·n·d·s·o·m·e·c·o·m·p·l·e·x·L·T·R.</pre>
+        <dt>''word-break: keep-all''</dt>
+        <dd>
+      <pre>这是一些汉字,·and·some·Latin·text,<!--
+        -->·&#x0648;·&#x06A9;&#x0645;&#x06CC;·&#x0646;&#x0648;&#x0634;&#x062A;&#x0646;&#x0646;·&#x0639;&#x0631;&#x0628;&#x06CC;,·<!--
+        -->and·some·complex·LTR.</pre>
+      </dl>
+    </div>
+
     <p>When shaping scripts such as Arabic are allowed to break within words
       due to ''break-all'', the characters must still be shaped as if the
       word were not broken.</p>
@@ -1027,11 +1053,8 @@
           explicit hyphen. Unicode Standard Annex #14 describes the
           <a href="http://unicode.org/reports/tr14/#SoftHyphen">role of soft hyphens in</a>
           Unicode line breaking. [[!UAX14]]
-        </div>
-
-        <div class="example">
-          <p>In HTML, &amp;shy; represents the soft hyphen character which
-            suggests a line break opportunity.
+          In HTML, &amp;shy; represents the soft hyphen character which
+          suggests a hyphenation opportunity.
           <pre>ex&amp;shy;ample</pre>
         </div>
       <dt><dfn title="hyphens:auto">''auto''</dfn>
@@ -1055,6 +1078,12 @@
       due to hyphenation, the characters must still be shaped as if the word
       were not broken.</p>
 
+    <div class="example">
+      <p>For example, if the word &ldquo;&#x0646;&#x0648;&#x0634;&#x062A;&#x0646;&#x0646;&rdquo;
+      were hyphenated, it would appear as &ldquo;&#xFEE7;&#xFEEE;&#xFEB7;-&#xFE98;&#xFEE6;&rdquo;
+      not as &ldquo;&#xFEE7;&#xFEEE;&#xFEB5;-&#xFE97;&#xFEE6;&rdquo;.
+    </div>
+
 <h2 id="wrapping">
   Text Wrapping</h2>
 
Received on Saturday, 7 January 2012 01:20:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:26:09 UTC