00:24
arkiuat left
00:53
arkiuat joined
00:58
arkiuat left
01:28
arkiuat joined
01:32
arkiuat left
01:55
arkiuat joined
03:03
stanrifkin_ joined
03:06
stanrifkin left
03:27
arkiuat left
|
|||
disbot | <simon_sibl> its probably not the best way to demonstrate this but what would be the equivalent in Raku regex ? termbin.com/zoro | 03:48 | |
<rcmlz> I really like to use Grammars (easy re-use and documentation). Hence I would first check if there is already something very close to what I need raku.land/?q=Grammar and the use/tune that to my needs. | 05:17 | ||
07:02
disbot7 joined,
disbot left
07:03
disbot7 is now known as disbot
08:06
lizmat_ left,
lizmat joined
|
|||
disbot | <rcmlz> Is there way to sort characters such that special chars like ä etc. come right after a? glot.io/snippets/hadb6sburl m: say <a ä b>.sort eq <a ä b> | 10:55 | |
<rcmlz> m: say <a ä b>.sort eq <a ä b> | 10:56 | ||
<Raku eval> False | |||
<rcmlz> m: say <a ä b>.sort | 10:57 | ||
<Raku eval> (a b ä) | |||
<nahita3882> what about @input.sort(*.NFKD)? | 11:16 | ||
<nahita3882> www.unicode.org/reports/tr15/#Comp...ite_Figure demonstrates how the normalizations NF* differ | 11:18 | ||
lizmat | docs.raku.org/type/Any#method_collate | 11:29 | |
11:33
camelia joined
|
|||
lizmat | m: say <a ä b>.collate | 12:09 | |
camelia | (a ä b) | ||
lizmat | rcmlz ^^ | 12:10 | |
disbot | <jubilatious1_98524> Maybe some ideas here (please leave an upvote): unix.stackexchange.com/search?q=us...27738+NFKD | 12:11 | |
<nahita3882> .collate doesn't respect case, maybe there is a way via $*COLLATION but I'm not sure | 14:17 | ||
15:02
topnep joined
|
|||
lizmat | nahita3882 wouldn't that be a case of calling .lc on the string? | 15:19 | |
disbot | <nahita3882> i don't follow. given <a ä b c A Ä Ö S T>;, they expect <A Ä Ö S T a ä b c>; | 15:27 | |
<nahita3882> m: say <a ä b c A Ä Ö S T>.collate | |||
<Raku eval> (a A ä Ä b c Ö S T) | |||
lizmat | I guess .collate isn't the solution then | 15:46 | |
use String::Utils <nomark>; dd <a ä b c A Ä Ö S T>.sort(&nomark) | 15:50 | ||
("A", "Ä", "Ö", "S", "T", "a", "ä", "b", "c").Seq | |||
raku.land/zef:lizmat/String::Utils | |||
nahita3882 ^^ | 15:51 | ||
disbot | <nahita3882> yes thanks i suggested something similar with @input.sort(*.NFKD) although i'm not sure if there exist examples where the outputs would differ, but yours seems to address the problem more directly | 15:54 | |
18:15
librasteve_ joined
|
|||
disbot | <rcmlz> Thank you very much. Booth @input.sort(*.NFKD) as well as String::Utils worked in my case. | 18:35 | |
<librasteve> feels the need for an adverb on collate | 18:37 | ||
18:48
topnep left
18:49
topnep joined
23:30
stanrifkin_ left
23:31
librasteve_ left
|