Skip to content

Commit

Permalink
Make line-breaking rules that should be language-dependent language-d…
Browse files Browse the repository at this point in the history
…ependent; make spacing percentages wrt width of affected character (use 'ch' unit for constant spacing); revert to editor's draft now that we're published
  • Loading branch information
fantasai committed Oct 6, 2010
1 parent 9e32b65 commit 8d2b106
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 74 deletions.
83 changes: 45 additions & 38 deletions css3-text/Output.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,28 +73,25 @@
.char { border: 1px dotted gray; }
tt[lang="ja"] { font-family: "MS Gothic", "Osaka", monospace }
</style>
<link href="http://www.w3.org/StyleSheets/TR/W3C-WD.css" rel=stylesheet
<link href="http://www.w3.org/StyleSheets/TR/W3C-ED.css" rel=stylesheet
type="text/css">

<body>
<div class=head>
<div class=head> <!--begin-logo-->
<p><a href="http://www.w3.org/"><img alt=W3C height=48
src="http://www.w3.org/Icons/w3c_home" width=72></a></p>
src="http://www.w3.org/Icons/w3c_home" width=72></a> <!--end-logo-->

<h1>CSS Text Level 3</h1>
<!--
<h2 class="no-num no-toc">Editor's Draft $Date$</h2>
-->

<h2 class="no-num no-toc" id=w3c-working-draft-5-october-2010>W3C Working
Draft 5 October 2010</h2>

<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 6 October 2010</h2>

<dl>
<dt>This version:</dt>
<!-- <dd><a href="http://dev.w3.org/csswg/css3-text/Overview.html">$Date$ (CVS $Revision$)</a> -->
<dt>This version:

<dd><a
href="http://www.w3.org/TR/2010/WD-css3-text-20101005/">http://www.w3.org/TR/2010/WD-css3-text-20101005/</a>
<dd><a href="http://dev.w3.org/csswg/css3-text/Overview.html">$Date:
2010/10/05 14:48:43 $ (CVS $Revision$)</a> --> <!--<dd><a
href="http://www.w3.org/TR/2010/WD-css3-text-20101005/">http://www.w3.org/TR/2010/WD-css3-text-20101005/</a></dd> -->


<dt>Latest version:

Expand All @@ -104,7 +101,7 @@ <h2 class="no-num no-toc" id=w3c-working-draft-5-october-2010>W3C Working
<dt>Previous version:

<dd><a
href="http://www.w3.org/TR/2007/WD-css3-text-20070306/">http://www.w3.org/TR/2007/WD-css3-text-20070306/</a>
href="http://www.w3.org/TR/2010/WD-css3-text-20101005/">http://www.w3.org/TR/2010/WD-css3-text-20101005/</a>

<dt>Editors:

Expand All @@ -117,13 +114,14 @@ <h2 class="no-num no-toc" id=w3c-working-draft-5-october-2010>W3C Working
<dd><a href="mailto:murakami@antenna.co.jp">Shinyu Murakami</a> (Antenna
House)
</dl>

<!--begin-copyright-->
<p class=copyright><a
href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">
Copyright</a> &copy; 2007 <a href="http://www.w3.org/"><abbr title="World
Wide Web Consortium">W3C</abbr></a><sup>&reg;</sup> (<a
href="http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of
Technology">MIT</abbr></a>, <a href="http://www.ercim.org/"><acronym
href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright"
rel=license>Copyright</a> &copy; 2010 <a
href="http://www.w3.org/"><acronym title="World Wide Web
Consortium">W3C</acronym></a><sup>&reg;</sup> (<a
href="http://www.csail.mit.edu/"><acronym title="Massachusetts Institute
of Technology">MIT</acronym></a>, <a href="http://www.ercim.eu/"><acronym
title="European Research Consortium for Informatics and
Mathematics">ERCIM</acronym></a>, <a
href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. W3C <a
Expand All @@ -133,7 +131,7 @@ <h2 class="no-num no-toc" id=w3c-working-draft-5-october-2010>W3C Working
and <a
href="http://www.w3.org/Consortium/Legal/copyright-documents">document
use</a> rules apply.</p>

<!--end-copyright-->
<hr title="Separator for header">
</div>

Expand Down Expand Up @@ -210,7 +208,11 @@ <h2 class="no-num no-toc" id=status>Status of This Document</h2>
its CR period: the &lsquo;<a href="#text-outline0"><code
class=property>text-outline</code></a>&rsquo; property, the &lsquo;<code
class=css>unrestricted</code>&rsquo; value of &lsquo;<a
href="#text-wrap0"><code class=property>text-wrap</code></a>&rsquo;
href="#text-wrap0"><code class=property>text-wrap</code></a>&rsquo;, the
&lsquo;<a href="#hanging-punctuation0"><code
class=property>hanging-punctuation</code></a>&rsquo; and &lsquo;<a
href="#punctuation-trim0"><code
class=property>punctuation-trim</code></a>&rsquo; properties

<h2 class="no-num no-toc" id=contents>Table of Contents</h2>
<!--begin-toc-->
Expand Down Expand Up @@ -1152,31 +1154,35 @@ <h3 id=line-break><span class=secno>5.1. </span> Line Breaking Restrictions

<li>breaks before the KATAKANA-HIRAGANA PROLONGED SOUND MARK (U+30FC)

<li>breaks before the hyphens (U+2010, U+2013, U+301C, U+30A0)
<li>
</ul>
Additionally, if the language is known to be Chinese or Japanese, breaks
before hyphens (U+2010, U+2013, U+301C, U+30A0) may be allowed in
&lsquo;<code class=css>normal</code>&rsquo;.

<li>Following breaks be forbidden in normal and strict line breaking and
allowed in newspaper:
<ul>
<li>breaks before Japanese iteration marks (U+3005, U+303B, U+309D,
U+309E, U+30FD, U+30FE)

<li>breaks before the middle dots (U+003A, U+003B, U+30FB, U+FF1A,
U+FF1B, U+FF65)

<li>breaks before the dividing punctuation marks (U+0021, U+003F,
U+203C, U+2047, U+2048, U+2049, U+FF01, U+FF1F)
<li>breaks before iteration marks (U+3005, U+303B, U+309D, U+309E,
U+30FD, U+30FE)

<li>breaks before the inseparatable characters (U+2014, U+2025, U+2026,
<li>breaks before inseparatable characters (U+2014, U+2025, U+2026,
U+3033, U+3034, U+3035)
</ul>
If the language is known to be Chinese or Japanese, then additionally the
following breaks may be allowed in &lsquo;<code
class=css>newspaper</code>&rsquo;:
<ul>
<li>breaks before middle dots (U+003A, U+003B, U+30FB, U+FF1A, U+FF1B,
U+FF65)

<li>breaks before the iteration marks (U+3005, U+303B, U+309D, U+309E,
U+30FD, U+30FE)
<li>breaks before dividing punctuation marks (U+0021, U+003F, U+203C,
U+2047, U+2048, U+2049, U+FF01, U+FF1F)

<li>breaks before the postfixes (U+0025, U+00A2, U+00B0, U+2030, U+2032,
<li>breaks before postfixes (U+0025, U+00A2, U+00B0, U+2030, U+2032,
U+2033, U+2103, U+FF05, U+FFE0)

<li>breaks after the prefixes (U+0024, U+00A3, U+00A5, U+20AC, U+2116,
<li>breaks after prefixes (U+0024, U+00A3, U+00A5, U+20AC, U+2116,
U+FF04, U+FFE1, U+FFE5)
</ul>
</ul>
Expand Down Expand Up @@ -2407,8 +2413,9 @@ <h2 id=spacing><span class=secno>8. </span> Spacing</h2>
class=value-inst-percentage>&lt;percentage&gt;</span></a></code></dfn>

<dd>Specifies extra spacing <em>in addition to</em> the normal spacing.
Percentages are with respect to the width of a space (U+0020). Values may
be negative, but there may be implementation-dependent limits.
Percentages are with respect to the width of the affected character.
Values may be negative, but there may be implementation-dependent limits.

</dl>

<h3 id=word-spacing><span class=secno>8.1. </span> Word Spacing: the
Expand Down
64 changes: 28 additions & 36 deletions css3-text/Overview.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,54 +73,39 @@
tt[lang="ja"] { font-family: "MS Gothic", "Osaka", monospace }
</style>

<link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-WD.css">
<link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-ED.css">
</head>

<body>

<div class="head">

<p><a href="http://www.w3.org/"><img height="48" width="72" alt="W3C" src="http://www.w3.org/Icons/w3c_home"></a></p>
<!--logo-->

<h1>CSS Text Level 3</h1>

<!--
<h2 class="no-num no-toc">Editor's Draft $Date$</h2>
-->
<h2 class="no-num no-toc">W3C Working Draft 5 October 2010</h2>
<h2 class="no-num no-toc">[LONGSTATUS] [DATE]</h2>

<dl>
<dt>This version:</dt>
<!-- <dd><a href="http://dev.w3.org/csswg/css3-text/Overview.html">$Date$ (CVS $Revision$)</a> -->
<dd><a
href="http://www.w3.org/TR/2010/WD-css3-text-20101005/">http://www.w3.org/TR/2010/WD-css3-text-20101005/</a></dd>
<dd><a href="http://dev.w3.org/csswg/css3-text/Overview.html">$Date$ (CVS $Revision$)</a> -->
<!--<dd><a
href="http://www.w3.org/TR/2010/WD-css3-text-20101005/">http://www.w3.org/TR/2010/WD-css3-text-20101005/</a></dd> -->
<dt>Latest version:</dt>
<dd><a
href="http://www.w3.org/TR/css3-text/">http://www.w3.org/TR/css3-text/</a></dd>
<dt>Previous version:</dt>
<dd><a
href="http://www.w3.org/TR/2007/WD-css3-text-20070306/">http://www.w3.org/TR/2007/WD-css3-text-20070306/</a></dd>
href="http://www.w3.org/TR/2010/WD-css3-text-20101005/">http://www.w3.org/TR/2010/WD-css3-text-20101005/</a></dd>
<dt>Editors:</dt>
<dd><a href="http://fantasai.inkedblade.net/contact">Elika J. Etemad</a> (Invited Expert)</dd>
<dd><a href="mailto:kojiishi@gluesoft.co.jp">Koji Ishii</a> (Antenna House)</dd>
<dd><a href="mailto:murakami@antenna.co.jp">Shinyu Murakami</a> (Antenna House)</dd>
</dl>

<p class="copyright"><a
href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">
Copyright</a> &copy; 2007 <a href="http://www.w3.org/"><abbr title="World
Wide Web Consortium">W3C</abbr></a><sup>&reg;</sup> (<a
href="http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of
Technology">MIT</abbr></a>, <a href="http://www.ercim.org/"><acronym
title="European Research Consortium for Informatics and
Mathematics">ERCIM</acronym></a>, <a
href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. W3C <a
href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>,
<a
href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a>
and <a
href="http://www.w3.org/Consortium/Legal/copyright-documents">document
use</a> rules apply.</p>
<!--begin-copyright-->
<p>[Here will be included the file "../copyright.inc"]</p>
<!--end-copyright-->

<hr title="Separator for header">
</div>
Expand Down Expand Up @@ -193,7 +178,7 @@ <h2 class="no-num no-toc" id="status">Status of This Document</h2>

<p>The following features are at risk and may be cut from the spec during
its CR period: the 'text-outline' property, the ''unrestricted'' value
of 'text-wrap'</p>
of 'text-wrap', the 'hanging-punctuation' and 'punctuation-trim' properties</p>

<h2 class="no-num no-toc" id="contents">Table of Contents</h2>

Expand Down Expand Up @@ -791,17 +776,23 @@ <h3 id="line-break">
<ul>
<li>breaks before Japanese small kana
<li>breaks before the KATAKANA-HIRAGANA PROLONGED SOUND MARK (U+30FC)
<li>breaks before the hyphens (U+2010, U+2013, U+301C, U+30A0)
<li>
</ul>
Additionally, if the language is known to be Chinese or Japanese,
breaks before hyphens (U+2010, U+2013, U+301C, U+30A0) may be allowed
in ''normal''.
<li>Following breaks be forbidden in normal and strict line breaking and allowed in newspaper:
<ul>
<li>breaks before Japanese iteration marks (U+3005, U+303B, U+309D, U+309E, U+30FD, U+30FE)
<li>breaks before the middle dots (U+003A, U+003B, U+30FB, U+FF1A, U+FF1B, U+FF65)</li>
<li>breaks before the dividing punctuation marks (U+0021, U+003F, U+203C, U+2047, U+2048, U+2049, U+FF01, U+FF1F)</li>
<li>breaks before the inseparatable characters (U+2014, U+2025, U+2026, U+3033, U+3034, U+3035)</li>
<li>breaks before the iteration marks (U+3005, U+303B, U+309D, U+309E, U+30FD, U+30FE)</li>
<li>breaks before the postfixes (U+0025, U+00A2, U+00B0, U+2030, U+2032, U+2033, U+2103, U+FF05, U+FFE0)</li>
<li>breaks after the prefixes (U+0024, U+00A3, U+00A5, U+20AC, U+2116, U+FF04, U+FFE1, U+FFE5)</li>
<li>breaks before iteration marks (U+3005, U+303B, U+309D, U+309E, U+30FD, U+30FE)</li>
<li>breaks before inseparatable characters (U+2014, U+2025, U+2026, U+3033, U+3034, U+3035)</li>
</ul>
If the language is known to be Chinese or Japanese, then additionally
the following breaks may be allowed in ''newspaper'':
<ul>
<li>breaks before middle dots (U+003A, U+003B, U+30FB, U+FF1A, U+FF1B, U+FF65)</li>
<li>breaks before dividing punctuation marks (U+0021, U+003F, U+203C, U+2047, U+2048, U+2049, U+FF01, U+FF1F)</li>
<li>breaks before postfixes (U+0025, U+00A2, U+00B0, U+2030, U+2032, U+2033, U+2103, U+FF05, U+FFE0)</li>
<li>breaks after prefixes (U+0024, U+00A3, U+00A5, U+20AC, U+2116, U+FF04, U+FFE1, U+FFE5)</li>
</ul>
</ul>

Expand Down Expand Up @@ -1751,8 +1742,9 @@ <h2 id="spacing">
<a class="noxref" href="http://www.w3.org/TR/CSS21/syndata.html#value-def-percentage"><span
class="value-inst-percentage">&lt;percentage&gt;</span></a></code></dfn></dt>
<dd>Specifies extra spacing <em>in addition to</em> the normal spacing.
Percentages are with respect to the width of a space (U+0020). Values
may be negative, but there may be implementation-dependent limits.
Percentages are with respect to the width of the affected character.
Values may be negative, but there may be implementation-dependent
limits.
</dd>
</dl>

Expand Down

0 comments on commit 8d2b106

Please sign in to comment.