>>> tr and Unicode don't mix well
>> In what way? Seems to work fine for me.
> By not supporting Unicode-aware character classes,
> and listing all Unicode characters in a certain category
> is a usually a moot endeavor.

> The OP is the best example: it doesn't list all accented
> characters that could be ASCIIfied.

The original statement — that tr/// and Unicode don’t mix well — is FUD-raking nonsense. It’s baseless fear, uncertainty, and doubt, and we don’t need it.

As for character classes, since tr/// never worked on character classes before back in caveman-ASCII, it is a strawman to complain that it doesn’t work on them now.

Finally, the idea that there exists a such thing as an “accented character”, or that these can be meaningfully “ASCII-fied”, does not hold up.

  • How do you convert a £10-pound note or a 5¢-coin to ASCII?
  • How do you convert Ævar Arnfjörð Bjarmason to ASCII?
  • How do you convert φ ≠ π to ASCII?
  • How do you convert /ɪntɚˈnæʃənəl/ to ASCII?
  • How do you convert ♲ ♳ ♴ ♵ ♶ ♷ ♸ ♹ ♺ ♻ ♼ ♽ to ASCII?
  • How do you convert 👪 💗 🐪 to ASCII?
  • How do you convert my $ʇndʇno = uʍopəpᴉsdn($input) to ASCII?
  • How do you convert Allerød or ψ-ionone or 「文字化け」 to ASCII?
  • How do you convert ♀♂🜫⚩⚥ 🜭⚧🜥🜠⚨⚣🜤🜧🜦🜟⚤🜜⚦🜡⚢🜪 to ASCII?

More importantly, why in the world do you want to? You can’t put the djinn back in the bottle and go back to a Beaver Cleaver world of a 52-character Latin alphabet that never existed in the first place. Even Gutenberg has 230 sorts, and he was the very first printer for heaven’s sake! If we cannot do at least as well as the very first printer from half a millennium ago, what does that say about us?

I can only repeat the Bringhurst quote: The fact that such a character set was long considered adequate tells us something about the cultural narrowness of American civilization, or American technocracy, in the midst of twentieth century.

Guess what? Unlike Beaver Cleaver himself, we are no longer in the midst of the twentieth century, so why should strive to recreate that Neverland that never was?

I say that we’re better than that, and I’m proud of that fact. To see such obvious Ludditism amongst soi-disant technologists is very troubling. What sort of example are we setting for the future? /small


In reply to Re^4: tr{}{} doesn't wanna work.. what am I doing wrong? by tchrist
in thread tr{}{} doesn't wanna work.. what am I doing wrong? by ultranerds

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.