Re: I need m/ help

2019-01-14 Thread Brad Gilbert
That is only because the special coding rules for Roman numerals weren't added.

It still is a wrong way to think about Nl.

On Mon, Jan 14, 2019 at 12:59 PM JJ Merelo  wrote:
>
>
>
> El lun., 14 ene. 2019 a las 18:41, Brad Gilbert () 
> escribió:
>>
>> Nl is not “non-arabic numbers” and it is not “numbers that have a value by 
>> themselves”.
>> While both seem like correct statements, they are the wrong way to think 
>> about the Nl category.
>> If either were entirely correct then there wouldn't be a need for No (Number 
>> other).
>>
>> Nl (Number letter) is for “Numerals composed of letters or letterlike 
>> symbols (e.g., Roman numerals)”
>> (copied from 
>> https://en.wikipedia.org/wiki/Template:General_Category_(Unicode) )
>>
>> Note that Roman numerals also “have a positional value” and can “be collated 
>> to other numbers to form bigger numbers”.
>
>
> No, they don't, at least not in Perl 6:
>
> say ⅮⅭ
> https://gist.github.com/Whateverable/14d4c361c81bc6e784c42a12ca83a6a0
>
> You can try for any other Nl, it just does not. However:
>
> say Ⅾ+Ⅽ; OUTPUT: «600␤»
>
> (because they have a numeric value by themselves).
>
> Only those with the Nd property can be collated to form any kind of number; 
> these are in number system which are positional and decimal (at least those 
> I've tried):
>
> say ߁߃ # OUTPUT: «13␤»
>
> (these are Nko digits)
>
> Cheers
>
> JJ


Re: I need m/ help

2019-01-14 Thread JJ Merelo
El lun., 14 ene. 2019 a las 18:41, Brad Gilbert ()
escribió:

> Nl is not “*non-arabic numbers*” and it is not “*numbers that have a
> value by themselves*”.
> While both seem like correct statements, they are the wrong way to think
> about the Nl category.
> If either were entirely correct then there wouldn't be a need for No
> (Number other).
>
> *Nl (Number letter)* is for *“Numerals composed of letters or letterlike
> symbols (e.g., Roman numerals)”*
> (copied from
> https://en.wikipedia.org/wiki/Template:General_Category_(Unicode) )
>
> Note that Roman numerals also “*have a positional value*” and can “*be
> collated to other numbers to form bigger numbers*”.
>

No, they don't, at least not in Perl 6:

say ⅮⅭ
https://gist.github.com/Whateverable/14d4c361c81bc6e784c42a12ca83a6a0

You can try for any other Nl, it just does not. However:

say Ⅾ+Ⅽ; OUTPUT: «600␤»

(because they have a numeric value by themselves).

Only those with the Nd property can be collated to form any kind of number;
these are in number system which are positional and decimal (at least those
I've tried):

say ߁߃ # OUTPUT: «13␤»

(these are Nko digits)

Cheers

JJ


Re: I need m/ help

2019-01-14 Thread Brad Gilbert
Nl is not “*non-arabic numbers*” and it is not “*numbers that have a value
by themselves*”.
While both seem like correct statements, they are the wrong way to think
about the Nl category.
If either were entirely correct then there wouldn't be a need for No
(Number other).

*Nl (Number letter)* is for *“Numerals composed of letters or letterlike
symbols (e.g., Roman numerals)”*
(copied from
https://en.wikipedia.org/wiki/Template:General_Category_(Unicode) )

Note that Roman numerals also “*have a positional value*” and can “*be
collated to other numbers to form bigger numbers*”.


On Mon, Jan 14, 2019 at 12:29 AM JJ Merelo  wrote:

> I would say they are numbers that have a value by themselves, but can't be
> collated to other numbers to form bigger numbers, that is, they are not
> digits and they don't have a positional value.
>
> El dom., 13 ene. 2019 a las 20:13, Timo Paulssen ()
> escribió:
>
>> There ought to be some documentation on the unicode website or maybe the
>> wikipedia article has some explanation.
>>
>> Other than that, here's a list of all unicode characters that match <:Nl>:
>>
>> perl6 -e 'for ^0x10 { say "$_: $(chr($_)) $(uniname($_))" if chr($_)
>> ~~ /<:Nl>/ }'
>>
>> 5870: ᛮ RUNIC ARLAUG SYMBOL
>> 5871: ᛯ RUNIC TVIMADUR SYMBOL
>> 5872: ᛰ RUNIC BELGTHOR SYMBOL
>> 8544: Ⅰ ROMAN NUMERAL ONE
>> 8545: Ⅱ ROMAN NUMERAL TWO
>> 8546: Ⅲ ROMAN NUMERAL THREE
>> 8547: Ⅳ ROMAN NUMERAL FOUR
>> 8548: Ⅴ ROMAN NUMERAL FIVE
>> 8549: Ⅵ ROMAN NUMERAL SIX
>> 8550: Ⅶ ROMAN NUMERAL SEVEN
>> 8551: Ⅷ ROMAN NUMERAL EIGHT
>> 8552: Ⅸ ROMAN NUMERAL NINE
>> 8553: Ⅹ ROMAN NUMERAL TEN
>> 8554: Ⅺ ROMAN NUMERAL ELEVEN
>> 8555: Ⅻ ROMAN NUMERAL TWELVE
>> 8556: Ⅼ ROMAN NUMERAL FIFTY
>> 8557: Ⅽ ROMAN NUMERAL ONE HUNDRED
>> 8558: Ⅾ ROMAN NUMERAL FIVE HUNDRED
>> 8559: Ⅿ ROMAN NUMERAL ONE THOUSAND
>> 8560: ⅰ SMALL ROMAN NUMERAL ONE
>> 8561: ⅱ SMALL ROMAN NUMERAL TWO
>> 8562: ⅲ SMALL ROMAN NUMERAL THREE
>> 8563: ⅳ SMALL ROMAN NUMERAL FOUR
>> 8564: ⅴ SMALL ROMAN NUMERAL FIVE
>> 8565: ⅵ SMALL ROMAN NUMERAL SIX
>> 8566: ⅶ SMALL ROMAN NUMERAL SEVEN
>> 8567: ⅷ SMALL ROMAN NUMERAL EIGHT
>> 8568: ⅸ SMALL ROMAN NUMERAL NINE
>> 8569: ⅹ SMALL ROMAN NUMERAL TEN
>> 8570: ⅺ SMALL ROMAN NUMERAL ELEVEN
>> 8571: ⅻ SMALL ROMAN NUMERAL TWELVE
>> 8572: ⅼ SMALL ROMAN NUMERAL FIFTY
>> 8573: ⅽ SMALL ROMAN NUMERAL ONE HUNDRED
>> 8574: ⅾ SMALL ROMAN NUMERAL FIVE HUNDRED
>> 8575: ⅿ SMALL ROMAN NUMERAL ONE THOUSAND
>> 8576: ↀ ROMAN NUMERAL ONE THOUSAND C D
>> 8577: ↁ ROMAN NUMERAL FIVE THOUSAND
>> 8578: ↂ ROMAN NUMERAL TEN THOUSAND
>> 8581: ↅ ROMAN NUMERAL SIX LATE FORM
>> 8582: ↆ ROMAN NUMERAL FIFTY EARLY FORM
>> 8583: ↇ ROMAN NUMERAL FIFTY THOUSAND
>> 8584: ↈ ROMAN NUMERAL ONE HUNDRED THOUSAND
>> 12295: 〇 IDEOGRAPHIC NUMBER ZERO
>> 12321: 〡 HANGZHOU NUMERAL ONE
>> 12322: 〢 HANGZHOU NUMERAL TWO
>> 12323: 〣 HANGZHOU NUMERAL THREE
>> 12324: 〤 HANGZHOU NUMERAL FOUR
>> 12325: 〥 HANGZHOU NUMERAL FIVE
>> 12326: 〦 HANGZHOU NUMERAL SIX
>> 12327: 〧 HANGZHOU NUMERAL SEVEN
>> 12328: 〨 HANGZHOU NUMERAL EIGHT
>> 12329: 〩 HANGZHOU NUMERAL NINE
>> 12344: 〸 HANGZHOU NUMERAL TEN
>> 12345: 〹 HANGZHOU NUMERAL TWENTY
>> 12346: 〺 HANGZHOU NUMERAL THIRTY
>> 42726: ꛦ BAMUM LETTER MO
>> 42727: ꛧ BAMUM LETTER MBAA
>> 42728: ꛨ BAMUM LETTER TET
>> 42729: ꛩ BAMUM LETTER KPA
>> 42730: ꛪ BAMUM LETTER TEN
>> 42731: ꛫ BAMUM LETTER NTUU
>> 42732: ꛬ BAMUM LETTER SAMBA
>> 42733: ꛭ BAMUM LETTER FAAMAE
>> 42734: ꛮ BAMUM LETTER KOVUU
>> 42735: ꛯ BAMUM LETTER KOGHOM
>> 65856: ŀ GREEK ACROPHONIC ATTIC ONE QUARTER
>> 65857: Ł GREEK ACROPHONIC ATTIC ONE HALF
>> 65858: ł GREEK ACROPHONIC ATTIC ONE DRACHMA
>> 65859: Ń GREEK ACROPHONIC ATTIC FIVE
>> 65860: ń GREEK ACROPHONIC ATTIC FIFTY
>> 65861: Ņ GREEK ACROPHONIC ATTIC FIVE HUNDRED
>> 65862: ņ GREEK ACROPHONIC ATTIC FIVE THOUSAND
>> 65863: Ň GREEK ACROPHONIC ATTIC FIFTY THOUSAND
>> 65864: ň GREEK ACROPHONIC ATTIC FIVE TALENTS
>> 65865: ʼn GREEK ACROPHONIC ATTIC TEN TALENTS
>> 65866: Ŋ GREEK ACROPHONIC ATTIC FIFTY TALENTS
>> 65867: ŋ GREEK ACROPHONIC ATTIC ONE HUNDRED TALENTS
>> 65868: Ō GREEK ACROPHONIC ATTIC FIVE HUNDRED TALENTS
>> 65869: ō GREEK ACROPHONIC ATTIC ONE THOUSAND TALENTS
>> 65870: Ŏ GREEK ACROPHONIC ATTIC FIVE THOUSAND TALENTS
>> 65871: ŏ GREEK ACROPHONIC ATTIC FIVE STATERS
>> 65872: Ő GREEK ACROPHONIC ATTIC TEN STATERS
>> 65873: ő GREEK ACROPHONIC ATTIC FIFTY STATERS
>> 65874: ΠGREEK ACROPHONIC ATTIC ONE HUNDRED STATERS
>> 65875: œ GREEK ACROPHONIC ATTIC FIVE HUNDRED STATERS
>> 65876: Ŕ GREEK ACROPHONIC ATTIC ONE THOUSAND STATERS
>> 65877: ŕ GREEK ACROPHONIC ATTIC TEN THOUSAND STATERS
>> 65878: Ŗ GREEK ACROPHONIC ATTIC FIFTY THOUSAND STATERS
>> 65879: ŗ GREEK ACROPHONIC ATTIC TEN MNAS
>> 65880: Ř GREEK ACROPHONIC HERAEUM ONE PLETHRON
>> 65881: ř GREEK ACROPHONIC THESPIAN ONE
>> 65882: Ś GREEK ACROPHONIC HERMIONIAN ONE
>> 65883: ś GREEK ACROPHONIC EPIDAUREAN TWO
>> 65884: Ŝ GREEK ACROPHONIC THESPIAN TWO
>> 65885: ŝ GREEK ACROPHONIC CYRENAIC TWO DRACHMAS
>> 65886: Ş GREEK ACROPHONIC EPIDAUREAN TWO DRACHMAS
>> 65887: ş GREEK