@@ -640,13 +640,20 @@ Accumulating Numerals: the ''additive'' system</h4>
640
640
|S| initially be the empty string,
641
641
and |symbol list| initially be the list of <a>additive tuples</a> .
642
642
643
- 2. If |value| is 0, and there is an <a>additive tuple</a> with a weight of 0, append that tuple's <a>counter symbol</a> to |S| and return |S|.
643
+ 2. If |value| is zero:
644
+
645
+ 1. If |symbol list| contains a tuple with a weight of zero,
646
+ append that tuple's <a>counter symbol</a> to |S| and return |S|.
647
+
648
+ 2. Otherwise, the given counter value cannot be represented by this counter style,
649
+ and must instead be represented by the fallback counter style.
644
650
645
651
3. For each |tuple| in |symbol list|:
646
652
647
653
1. Let |symbol| and |weight| be |tuple|'s [=counter symbol=] and weight, respectively.
648
654
649
- 2. If |weight| is zero, [=iteration/continue=] .
655
+ 2. If |weight| is zero, or |weight| is greater than |value|,
656
+ [=iteration/continue=] .
650
657
651
658
3. Let |reps| be <code> floor( |value| / |weight| )</code> .
652
659
@@ -658,7 +665,8 @@ Accumulating Numerals: the ''additive'' system</h4>
658
665
659
666
4. Assertion: |value| is still non-zero.
660
667
661
- The given counter value cannot be represented by this counter style, and must instead be represented by the fallback counter style.
668
+ The given counter value cannot be represented by this counter style,
669
+ and must instead be represented by the fallback counter style.
662
670
</div>
663
671
664
672
Note: All of the predefined additive ''@counter-style'' rules in this specification
0 commit comments