csswg/css3-lists Overview.src.html,1.34,1.35

Update of /sources/public/csswg/css3-lists
In directory hutz:/tmp/cvs-serv26525

Modified Files:
	Overview.src.html 
Log Message:
Adding the possibility of negative numbers to the Chinese numbering schemes.
Some renaming of [CJK]-formal to [CJK]-financial, so it's clearer what they're meant for.


Index: Overview.src.html
===================================================================
RCS file: /sources/public/csswg/css3-lists/Overview.src.html,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- Overview.src.html	18 Mar 2011 22:54:29 -0000	1.34
+++ Overview.src.html	22 Mar 2011 17:24:17 -0000	1.35
@@ -669,15 +669,20 @@
 <h4 id='chinese-counter-styles'>
 The Chinese counter styles</h4>
 
-	<p>The Chinese counter styles are defined for all non-negative numbers less
-	than 10<sup>16</sup>.  There are four Chinese counter styles which are constructed
-	using the same algorithm, but different sets of characters (given below).  
-	The following algorithm converts decimal digits into Chinese numbers:</p>
+	<p>The Chinese counter styles are defined for all numbers between -10<sup>16</sup>
+	and 10<sup>16</sup>, exclusive.  There are four Chinese counter styles which 
+	are constructed	using the same algorithm, but different sets of characters 
+	(given below). The following algorithm converts decimal digits into Chinese 
+	numbers:</p>
 
 	<ol>
-		<li>If the original number is 0, the representation is simply the character
+		<li>If the counter value is 0, the representation is simply the character
 		for 0 from the counter style's table, below.  End this algorithm.</li>
 
+		<li>If the counter value is negative, set the <var>negative flag</var>
+		and run the rest of this algorithm with the absolute value of the counter
+		value.</li>
+
 		<li>Split the decimal number into groups of four digits, starting with 
 		the least significant digit.</li>
 
@@ -690,14 +695,19 @@
 		third digit, and the fourth digit marker to the fourth digit. The first 
 		digit has no marker.</li>
 
-		<li>For each group, drop any leading or trailing 0s.  If a group has "internal"
-		0s (like 2002), collapse them to a single 0.</li>
+		<li>For each group, drop any trailing 0s.  As well, drop any leading 0s
+		for the largest group.</li>
 
 		<li>Concatenate the groups back into a single string, least significant
 		group first (on the right).</li>
 
+		<li>Collapse any runs of consecutive 0s into a single 0.
+		<span class=note>This can cross the previous group boundaries.</span></li>
+
 		<li>Replace each digit with the relevant character from the counter style's
 		table, below.</li>
+
+		<li>If the <var>negative flag</var> is set, prepend 負 U+8D1F to the string.</li>
 	</ol>
 
 	<p>The following tables define the characers used in the four Chinese counter
@@ -765,7 +775,7 @@
 			</table>
 		</dd>
 
-		<dt><dfn>simp-chinese-formal</dfn></dt>
+		<dt><dfn>simp-chinese-financial</dfn></dt>
 		<dd>
 			<table>
 				<thead>
@@ -825,6 +835,12 @@
 				</tbody>
 			</table>
 		</dd>
+
+		<dt><dfn>trad-chinese-informal</dfn></dt>
+		<dd class=issue>Fill this in.</dd>
+
+		<dt><dfn>trad-chinese-financial</dfn></dt>
+		<dd class=issue>Fill this in.</dd>
 	</dl>
 
 
@@ -927,7 +943,7 @@
 			</table>
 		</dd>
 
-		<dt><dfn>japanese-formal</dfn></dt>
+		<dt><dfn>japanese-financial</dfn></dt>
 		<dd>
 			<table>
 				<thead>
@@ -1000,6 +1016,17 @@
 
 	<p class=issue>Fill in Korean here.</p>
 
+	<p>The following tables define the characters used in the two Japanese counter
+	styles:</p>
+
+	<dl>
+		<dt>korean-informal</dt>
+		<dd class=issue>Fill this in.</dd>
+
+		<dt>korean-financial</dt>
+		<dd class=issue>Fill this in.</dd>
+	</dl>
+
 <!-- ====================================================================== -->
 
 <h2 id='list-style-image-property'>

Received on Tuesday, 22 March 2011 17:24:20 UTC