Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Treat dashes and digits as valid chars in uninames
my %c; for 0..0x1FFFF { %c{$_} = 1 for .uniname.comb }; %c.keys.sort.join.say
OUTPUT:« ()-0123456789<>ABCDEFGHIJKLMNOPQRSTUVWXYZabdeghilnoprstuvwxy»

I am not including <> and () in the list.
Here is the list of stuff that has () or <> in a uniname:

<CJK Ideograph Extension A>
<CJK Ideograph>
<Hangul Syllable>
<Low Surrogate>
<Non Private Use High Surrogate>
<Private Use High Surrogate>
<Private Use>
<Tangut Ideograph>
<illegal>
<reserved>

CARRIAGE RETURN (CR)
FORM FEED (FF)
LINE FEED (LF)
NEXT LINE (NEL)
  • Loading branch information
AlexDaniel committed Dec 12, 2016
1 parent 1ba7473 commit 058810b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Unicodable.p6
Expand Up @@ -74,7 +74,7 @@ method process($message, $query is copy) {

my @all;

if $query ~~ /^ <+[a..z] +[A..Z] +space>+ $/ {
if $query ~~ /^ <+[a..zA..Z] +[0..9] +[\-\ ]>+ $/ {
my @words;
my @props;
for $query.words {
Expand Down

0 comments on commit 058810b

Please sign in to comment.