Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Transform ASCII into UniCode

by Perlian (Initiate)
on Mar 23, 2021 at 03:20 UTC ( [id://11130172]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $CharSet = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ012
    +3456789'; # ASCII
    my $BoldSet = '𝐚𝐛𝐜𝐝𝐞𝐟&
    +#119840;𝐡𝐢𝐣𝐤𝐥𝐦&#11984
    +7;𝐨𝐩𝐪𝐫𝐬𝐭𝐮&#11
    +9855;𝐰𝐱𝐲𝐳𝐀𝐁𝐂&
    +#119811;𝐄𝐅𝐆𝐇𝐈𝐉&#11981
    +8;𝐋𝐌𝐍𝐎𝐏𝐐𝐑&#11
    +9826;𝐓𝐔𝐕𝐖𝐗𝐘𝐙&
    +#120782;𝟏𝟐𝟑𝟒𝟓𝟔&#12078
    +9;𝟖𝟗'; # UniCode bold
    ...
    $Target =~ tr/$CharSet/$BoldSet/;
    
    print "$Source\n$Target\n";
    
  2. or download this
    The quick brown fox jumps over the lazy dog 1234567890 times.
    Toe quick bdown fox jumps oved toe llzy dog 1234567890 times.
    
  3. or download this
    This is perl 5, version 26, subversion 3 (v5.26.3) built for x86_64-li
    +nux-thread-multi
    (with 51 registered patches, see perl -V for more detail)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11130172]
Approved by GrandFather
Front-paged by kcott
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-20 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found