Talk:Mayan numerals: Difference between revisions

From Rosetta Code
Content added Content deleted
Line 88: Line 88:


: Just the same, alas – once you venture out of Firefox the left-hand numbers and arrows render a char or two wider, and break the vertical alignments of the character boxes to the right [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 23:20, 14 January 2019 (UTC)
: Just the same, alas – once you venture out of Firefox the left-hand numbers and arrows render a char or two wider, and break the vertical alignments of the character boxes to the right [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 23:20, 14 January 2019 (UTC)

:: Well, that's a bummer. &nbsp; &nbsp; I never expected a &nbsp; &nbsp; &nbsp; <big> < pre > </big> &nbsp; &nbsp; &nbsp; HTML tag to do that. &nbsp; &nbsp; -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 23:29, 14 January 2019 (UTC)

Revision as of 23:29, 14 January 2019

Cartouche display is messy for Chrome and Safari

It looks as if the the testing may only have been done with Firefox - the cartouches are ragged for Chrome and Safari. Particularly where their integer value is shown to the left with an arrow, which disrupts the vertical alignment for the rest of the line. Hout (talk) 18:12, 14 January 2019 (UTC)

PS the Perl 6 cartouche-rendering has already achieved a much better signal-to-noise ratio – perhaps worth standardising on something like that ? (Especially if there is a way of tweaking it for continuous (rather than dashed) horizontal 5-bars) Hout (talk) 19:51, 14 January 2019 (UTC)


possible a better rendering for the Mayan numerals

How does this rendering look versus the one on the task page?     -- Gerard Schildberger (talk) 22:50, 14 January 2019 (UTC)


The Mayan numerals   (and some random numbers)   shown in the   vertical   format would be shown as
       ╔════╗                      ╔════╗                            ╔════╦════╗
       ║    ║                      ║    ║                            ║    ║    ║
       ║    ║                      ║ ∙  ║                            ║    ║    ║
  1──► ║    ║                11──► ║────║                      21──► ║    ║    ║
       ║ ∙  ║                      ║────║                            ║ ∙  ║ ∙  ║
       ╚════╝                      ╚════╝                            ╚════╩════╝
       ╔════╗                      ╔════╗                            ╔════╦════╗
       ║    ║                      ║    ║                            ║    ║    ║
       ║    ║                      ║ ∙∙ ║                            ║    ║    ║
  2──► ║    ║                12──► ║────║                      22──► ║    ║    ║
       ║ ∙∙ ║                      ║────║                            ║ ∙  ║ ∙∙ ║
       ╚════╝                      ╚════╝                            ╚════╩════╝
       ╔════╗                      ╔════╗                            ╔════╦════╗
       ║    ║                      ║    ║                            ║    ║    ║
       ║    ║                      ║∙∙∙ ║                            ║    ║    ║
  3──► ║    ║                13──► ║────║                      40──► ║    ║    ║
       ║∙∙∙ ║                      ║────║                            ║ ∙∙ ║ Θ  ║
       ╚════╝                      ╚════╝                            ╚════╩════╝
       ╔════╗                      ╔════╗                            ╔════╦════╗
       ║    ║                      ║    ║                            ║    ║    ║
       ║    ║                      ║∙∙∙∙║                            ║    ║    ║
  4──► ║    ║                14──► ║────║                      80──► ║    ║    ║
       ║∙∙∙∙║                      ║────║                            ║∙∙∙∙║ Θ  ║
       ╚════╝                      ╚════╝                            ╚════╩════╝
       ╔════╗                      ╔════╗                            ╔════╦════╗
       ║    ║                      ║    ║                            ║    ║    ║
       ║    ║                      ║────║                            ║    ║    ║
  5──► ║    ║                15──► ║────║                      90──► ║    ║────║
       ║────║                      ║────║                            ║∙∙∙∙║────║
       ╚════╝                      ╚════╝                            ╚════╩════╝
       ╔════╗                      ╔════╗                            ╔════╦════╗
       ║    ║                      ║ ∙  ║                            ║    ║    ║
       ║    ║                      ║────║                            ║    ║    ║
  6──► ║ ∙  ║                16──► ║────║                     100──► ║    ║    ║
       ║────║                      ║────║                            ║────║ Θ  ║
       ╚════╝                      ╚════╝                            ╚════╩════╝
       ╔════╗                      ╔════╗                            ╔════╦════╗
       ║    ║                      ║ ∙∙ ║                            ║    ║    ║
       ║    ║                      ║────║                            ║    ║    ║
  7──► ║ ∙∙ ║                17──► ║────║                     200──► ║────║    ║
       ║────║                      ║────║                            ║────║ Θ  ║
       ╚════╝                      ╚════╝                            ╚════╩════╝
       ╔════╗                      ╔════╗                            ╔════╦════╗
       ║    ║                      ║∙∙∙ ║                            ║    ║    ║
       ║    ║                      ║────║                     300──► ║────║    ║
  8──► ║∙∙∙ ║                18──► ║────║                            ║────║    ║
       ║────║                      ║────║                            ║────║ Θ  ║
       ╚════╝                      ╚════╝                            ╚════╩════╝
       ╔════╗                      ╔════╗                            ╔════╦════╦════╗
       ║    ║                      ║∙∙∙∙║                            ║    ║    ║    ║
       ║    ║                      ║────║                     400──► ║    ║    ║    ║
  9──► ║∙∙∙∙║                19──► ║────║                            ║    ║    ║    ║
       ║────║                      ║────║                            ║ ∙  ║ Θ  ║ Θ  ║
       ╚════╝                      ╚════╝                            ╚════╩════╩════╝
       ╔════╗                      ╔════╦════╗                       ╔════╦════╦════╦════╗
       ║    ║                      ║    ║    ║                       ║    ║    ║    ║    ║
       ║    ║                      ║    ║    ║                       ║    ║    ║    ║    ║
 10──► ║────║                20──► ║    ║    ║             16,000──► ║    ║    ║    ║    ║
       ║────║                      ║ ∙  ║ Θ  ║                       ║ ∙∙ ║ Θ  ║ Θ  ║ Θ  ║
       ╚════╝                      ╚════╩════╝                       ╚════╩════╩════╩════╝


Note that the Mayan numeral   13   in   horizontal   format would be shown as:


                                   ╔════╗
                                   ║  ││║
                                   ║ ∙││║
                             13──► ║ ∙││║        ◄─── this glyph form won't be used in this Rosetta Code task.
                                   ║ ∙││║
                                   ╚════╝
-----   (end of rendering)   -----
Just the same, alas – once you venture out of Firefox the left-hand numbers and arrows render a char or two wider, and break the vertical alignments of the character boxes to the right Hout (talk) 23:20, 14 January 2019 (UTC)
Well, that's a bummer.     I never expected a       < pre >       HTML tag to do that.     -- Gerard Schildberger (talk) 23:29, 14 January 2019 (UTC)