Rand Stats

Slang::Quotes

zef:bduggan

Actions Status Actions Status

NAME

Slang::Quotes -- Treat more unicode ❝quotes❞ as quotation marks

SYNOPSIS

say 🙶hello, world🙷;
say ❝hello world❞;
say ❝hello, world❞;
say 〝hello, world〞;
say "hello, world";

say ❛hello, world❜;
say 'hello, world';

DESCRIPTION

There are a number of unicode characters that look like quotes but are not specifically categorized as quotes, such as

🙶these ones🙷

aka

SANS-SERIF HEAVY DOUBLE TURNED COMMA QUOTATION MARK ORNAMENT

and

SANS-SERIF HEAVY DOUBLE COMMA QUOTATION MARK ORNAMENT

The unicode properties of these indicate that they are bracketing characters, but not quotes.

Well, they look like quotes to me! With this slang, they are treated as quotes.

Note that without this slang of course you could use the Q operator, which turns bracketing characters into quotes.

Currently supported quote chars, their unicode category and whether they have the Quotation_Mark property, are:

charordQuotation_Mark?UnipropsName
"U+0022TruePoQUOTATION MARK
❝U+275DFalseSoHEAVY DOUBLE TURNED COMMA QUOTATION MARK ORNAMENT
🙶U+1F676FalseSoSANS-SERIF HEAVY DOUBLE TURNED COMMA QUOTATION MARK ORNAMENT
❛U+275BFalseSoHEAVY SINGLE TURNED COMMA QUOTATION MARK ORNAMENT
〝U+301DTruePsREVERSED DOUBLE PRIME QUOTATION MARK
"U+FF02TruePoFULLWIDTH QUOTATION MARK
'U+FF07TruePoFULLWIDTH APOSTROPHE

AUTHOR

Brian Duggan