Talk:Mayan numerals

From Rosetta Code

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)
I wonder if pinning down the font used for the numbers and arrows would help ? Defaults may differ Hout (talk) 23:47, 14 January 2019 (UTC)

The 'default' keyword

In the change log I notice that you have written 'added underlining to the unique keyword, most people are missing that point'. I wonder if there is another way of expressing what you are after ? Readers might be forgiven for thinking that all numbers are equally 'unique'. Or are some a little less unique than others ? Hout (talk) 23:47, 14 January 2019 (UTC)