csswg/css-counter-styles Overview.html,1.4,1.5 Overview.src.html,1.4,1.5

Update of /sources/public/csswg/css-counter-styles
In directory hutz:/tmp/cvs-serv16141

Modified Files:
	Overview.html Overview.src.html 
Log Message:
Added an issue about representing the complex counter styles with fallback hackery.

Index: Overview.html
===================================================================
RCS file: /sources/public/csswg/css-counter-styles/Overview.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Overview.html	2 Dec 2011 22:26:06 -0000	1.4
+++ Overview.html	2 Dec 2011 22:40:14 -0000	1.5
@@ -1754,6 +1754,51 @@
  39   三十九    79   七十九   119 一百一十九
  40    四十    80    八十   120  一百二十</pre>
   </div>
+
+  <div class=issue>
+   <p>It's possible, with some fallback hackery, to represent these styles
+    with a @counter-style rule. For example, the following 11 styles would
+    serve to represent &lsquo;<a href="#simp-chinese-informal0"><code
+    class=css>simp-chinese-informal</code></a>&rsquo; between 0 and 999:</p>
+
+   <pre>
+@counter-style simp-chinese-informal {
+	type: non-repeating 101;
+	fallback: simp-chinese-informal-200;
+	symbols: 一百零一 一百零二 一百零三 一百零四 一百零五 一百零六 一百零七 一百零八 一百零九;
+}
+@counter-style simp-chinese-informal-200 {
+	type: non-repeating 201;
+	fallback: simp-chinese-informal-300;
+	symbols: 二百零一 二百零二 二百零三 二百零四 二百零五 二百零六 二百零七 二百零八 二百零九;
+}
+/* etc for 300 through 900*/
+@counter-style simp-chinese-informal-10 {
+	type: non-repeating 10;
+	fallback: simp-chinese-informal-rest;
+	symbols: 十 十一 十二 十三 十四 十五 十六 十七 十八 十九;
+}
+@counter-style simp-chinese-informal-rest {
+	type: additive;
+	range: 0 999;
+	fallback: cjk-decimal;
+	additive-symbols: 900 九百, 800 八百, 700 七百, 600 六百, 500 五百, 400 四百,
+	300 三百, 200 二百, 100 一百, 90 九十, 80 八十, 70 七十, 60 六十, 50 五十, 40 四十, 30
+	三十, 20 二十, 10 一十, 9 九, 8 八, 7 七, 6 六, 5 五, 4 四, 3 三, 2 二, 1 一, 0 零;
+}</pre>
+
+   <p>If Lists allowed multiple ranges, the -100 through -900 styles could be
+    collapsed into a single additive style, for a total of only 3
+    @counter-style rules, and up to 9999 could be done with (I believe) 2
+    additional rules. If Lists was altered to let non-numeric styles
+    represent negative values, the negative half of the range could be
+    represented without any extra rules.</p>
+
+   <p>All of the Chinese longhand styles are nearly identical, and
+    ethiopian-numeric can be represented in a similar fashion. Is this too
+    hacky for me to represent them officially using this strategy, or is it
+    okay?</p>
+  </div>
   <!-- ====================================================================== -->
 
   <h2 id=optional-extensions><span class=secno>3. </span> Optional Extended

Index: Overview.src.html
===================================================================
RCS file: /sources/public/csswg/css-counter-styles/Overview.src.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Overview.src.html	2 Dec 2011 22:26:06 -0000	1.4
+++ Overview.src.html	2 Dec 2011 22:40:14 -0000	1.5
@@ -1353,6 +1353,41 @@
  40    四十    80    八十   120  一百二十</pre>
 	</div>
 
+	<div class='issue'>
+		<p>It's possible, with some fallback hackery, to represent these styles with a @counter-style rule.  For example, the following 11 styles would serve to represent ''simp-chinese-informal'' between 0 and 999:</p>
+
+		<pre>
+@counter-style simp-chinese-informal {
+	type: non-repeating 101;
+	fallback: simp-chinese-informal-200;
+	symbols: 一百零一 一百零二 一百零三 一百零四 一百零五 一百零六 一百零七 一百零八 一百零九;
+}
+@counter-style simp-chinese-informal-200 {
+	type: non-repeating 201;
+	fallback: simp-chinese-informal-300;
+	symbols: 二百零一 二百零二 二百零三 二百零四 二百零五 二百零六 二百零七 二百零八 二百零九;
+}
+/* etc for 300 through 900*/
+@counter-style simp-chinese-informal-10 {
+	type: non-repeating 10;
+	fallback: simp-chinese-informal-rest;
+	symbols: 十 十一 十二 十三 十四 十五 十六 十七 十八 十九;
+}
+@counter-style simp-chinese-informal-rest {
+	type: additive;
+	range: 0 999;
+	fallback: cjk-decimal;
+	additive-symbols: 900 九百, 800 八百, 700 七百, 600 六百, 500 五百, 400 四百,
+	300 三百, 200 二百, 100 一百, 90 九十, 80 八十, 70 七十, 60 六十, 50 五十, 40 四十, 30
+	三十, 20 二十, 10 一十, 9 九, 8 八, 7 七, 6 六, 5 五, 4 四, 3 三, 2 二, 1 一, 0 零;
+}</pre>
+
+		<p>If Lists allowed multiple ranges, the -100 through -900 styles could be collapsed into a single additive style, for a total of only 3 @counter-style rules, and up to 9999 could be done with (I believe) 2 additional rules.  If Lists was altered to let non-numeric styles represent negative values, the negative half of the range could be represented without any extra rules.</p>
+
+		<p>All of the Chinese longhand styles are nearly identical, and ethiopian-numeric can be represented in a similar fashion.  Is this too hacky for me to represent them officially using this strategy, or is it okay?</p>
+	</div>
+		
+
 <!-- ====================================================================== -->
 
 <h2 id='optional-extensions'>

Received on Friday, 2 December 2011 22:40:18 UTC