The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::Basis::ConvertText2::UtfTransform

SYNOPSIS

    use 5.10.0 ;
    use strict ;
    use warnings ;
    use App::Basis::ConvertText2::UtfTransform

    my $string = "<b>bold text</b> 
    <i>italic text</i>
    <m>mirrored and reversed text</m>
    <f>flipped upside down text</f>
    <t>tiny text</t>
    <l>Some Leet speak</l>
    " ;

    say utf_transform( $string) ;

DESCRIPTION

A number of popular websites (eg twitter) do not allow the use of HTML to create bold/italic font effects.

However we can simulate this with some clever transformations of plain ascii text into UTF8 codes which are a different font and so effectively create the same effect.

We have transformations for mirror (reverses the string too, flip (upside down), tiny, bold, italic and leet.

We can transform A-Z a-z 0-9 and ? ! ,

See Also http://txtn.us/

Notes

I currently do not have correct UTF codes for mirror, tiny or flip