[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unicode range and enumeration support.
From: |
L A Walsh |
Subject: |
Re: Unicode range and enumeration support. |
Date: |
Mon, 23 Dec 2019 12:52:00 -0800 |
User-agent: |
Thunderbird |
On 2019/12/21 22:38, Eli Schwartz wrote:
On 12/20/19 7:35 PM, L A Walsh wrote:
⁰⁴⁵⁶⁷⁸⁹₀₁₂₃₄₅₆₇₈₉
Q.E.D.
Is that sufficient proof?
It's sufficient proof that you're wrong, yes.
If you only knew how to use the tools you have on your machine.
Given the discussion was about collation,
---
But it wasn't. It was about generating characters between two
characters that were given. In unicode, that would be two code points.
Nothing about enumeration.
not simply enumerating
codepoints in order of their codepoint values, it would be helpful to
actually, you know, collate them.
Given your sample text range:
$ printf %s\\n ⁰ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ ₀ ₁ ₂ ₃ ₄ ₅ ₆ ₇ ₈ ₉ | sort -u
⁰
⁴
⁵
⁶
⁷
⁸
⁹
₀
₁
₂
₃
₄
₅
₆
₇
₈
₉
This is plainly not in byte order.
----
It is in unicode code point order. Which is what you would use
for unicode. If you want to sort via unicode, use the -u switch.
Now you need to ask yourself the question: which locale do you want to
sort according to? I used en_US.UTF-8. Please don't say "C.UTF-8",
because that's not actually a thing. And the plain C locale won't work
for obvious reasons...
----
I don't need to ask myself what locale if I suggested using unicode
code point order.
- Re: unquoted expansion not working (was Re: Not missing, but very hard to see), (continued)
- Re: unquoted expansion not working (was Re: Not missing, but very hard to see), L A Walsh, 2019/12/14
- Re: unquoted expansion not working (was Re: Not missing, but very hard to see), Eli Schwartz, 2019/12/15
- Re: unquoted expansion not working (was Re: Not missing, but very hard to see), Greg Wooledge, 2019/12/16
- Unicode range and enumeration support., L A Walsh, 2019/12/18
- Re: Unicode range and enumeration support., Greg Wooledge, 2019/12/18
- Re: Unicode range and enumeration support., Eli Schwartz, 2019/12/18
- Re: Unicode range and enumeration support., Greg Wooledge, 2019/12/18
- Re: Unicode range and enumeration support., Eli Schwartz, 2019/12/18
- Re: Unicode range and enumeration support., L A Walsh, 2019/12/20
- Re: Unicode range and enumeration support., Eli Schwartz, 2019/12/22
- Re: Unicode range and enumeration support.,
L A Walsh <=
- Re: Unicode range and enumeration support., Greg Wooledge, 2019/12/23
- Re: Unicode range and enumeration support., L A Walsh, 2019/12/24
- Re: Unicode range and enumeration support., Eli Schwartz, 2019/12/24
- Re: Unicode range and enumeration support., Robert Elz, 2019/12/24
- Re: Unicode range and enumeration support., Eli Schwartz, 2019/12/24
- Re: Unicode range and enumeration support., Stephane Chazelas, 2019/12/25
- Re: Unicode range and enumeration support., Robert Elz, 2019/12/24
- Re: Unicode range and enumeration support., Greg Wooledge, 2019/12/23
- Re: Unicode range and enumeration support., L A Walsh, 2019/12/23
- Re: unquoted expansion not working (was Re: Not missing, but very hard to see), Robert Elz, 2019/12/14