Closed
Bug 98488
Opened 24 years ago
Closed 24 years ago
Incorrect OL TYPE="I" rendering of roman numerals
Categories
(Core :: Layout, defect)
Tracking
()
People
(Reporter: irivera, Assigned: clayton)
Details
Attachments
(1 file)
230 bytes,
text/html
|
Details |
There are two issues with rendering of roman numerals as indexes of ordered
lists (OL):
1.- The indentation amount for the index is fixed. Therefore, relatively small
index values (such as XXVII=27) overflow by the left in normal circumstances
(default font face and size).
2.- Values bigger than 3999 (=MMMCMIX) appear as M? (for 4000), M?I (for 4001),
etc. The correct display should be (AFAIK, I might be wrong) IV (overlined) for
4000, IV (overlined) I for 4001... The overline indicates multiplication by 1000.
Please see http://www.deadline.demon.co.uk/roman/intro.htm for a primer on roman
numerals, which indicates an alternative display for bigger-than-3999 numbers.
Reporter | ||
Comment 1•24 years ago
|
||
Reporter | ||
Comment 2•24 years ago
|
||
One possible representation for bigger-than-3999 numbers:
<span style="text-decoration:overline">IV</span>I=4000
<span style="text-decoration:overline">MDCLXVII</span>CDXCIX=1667499
As you can see, the algorithm applies for numbers bigger than 3999:
* Divide the number by 1000.
* Transform the quotient to roman numerals, and add a overline to it (CSS).
* Transform the remainder to roman numerals, and append it to the quotient.
If the number is bigger than 3999999 we'll run into problems. Romans used a
double overline, but there is no such decoration in CSS... There is an
alternative parenthetical notation: each number enclosed in parentheses gets
multiplied by 1000. So 4000000 is ((IV)), and 2^24 is ((XVI))(DCCLXXVII)CCXVI.
This is somewhat ugly, but saves the day...
Comment 3•24 years ago
|
||
Reporter: please keep bugs to 1 issue per bug. Since there are two issues here,
I am going with the first issue which happens to be what the summary describes.
The first issue is a dupe of bug 46140, so I'm marking.
The second issue could be a good idea but it should be it's own separate bug if
it's not already filed.
*** This bug has been marked as a duplicate of 46140 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Comment 4•24 years ago
|
||
I just noticed this was in the HTML Element component which is deprecated.
Moving to Layout. See bug 88132 for details.
Component: HTML Element → Layout
You need to log in
before you can comment on or make changes to this bug.
Description
•