Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Text::Emoticon::MSN 0.04

    Download button

    No screenshots available
    Downloads: 559  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Tatsuhiko Miyagawa | More programs
    Perl Artistic License / FREE
    December 18th, 2006, 23:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Text::Emoticon::MSN description

    A Perl module with emoticon filter of MSN Messenger.

    Text::Emoticon::MSN is a Perl module with emoticon filter of MSN Messenger.

    SYNOPSIS

    use Text::Emoticon::MSN;

    my $emoticon = Text::Emoticon::MSN->new(
    imgbase => "http://example.com/emo",
    );

    my $text = "Yet Another Perl Hacker ;-)";
    print $emoticon->filter($text);

    # it prints
    # Yet Another Perl Hacker


    Text::Emoticon::MSN is a text filter that replaces text emoticons like ":-)", ";-P", etc. to the icons of MSN Messenger, detailed in http://messenger.msn.com/Resource/Emoticons.aspx

    METHODS

    new

    $emoticon = Text::Emoticon::MSN->new(
    imgbase => "http://yourhost.example.com/images/emoticons",
    xhtml => 1,
    class => "emoticon",
    );

    Constructs new Text::Emoticon::MSN object. It accepts two options:

    imgbase

    Base URL where icon gif files are located. It defaults to "http://messenger.msn.com/Resource/emoticons" (the MSN site) but I don't recommend that, as there's a possibility MSN will ban your site.

    xhtml

    Whether it uses XHTML style img tags. It defaults to 1.

    class

    CSS class used in img tags. It defaults to nothing.

    $emoticon = Text::Emoticon::MSN->new(class => "emo");

    will print:

    < img src="blah.gif" class="emo" / >

    strict

    Whether it will disable smileys with space in them. defaults to 0.

    filter

    $filtered_text = $emoticon->filter($text);

    Filters emoticons in text and returns img tagged text (HTML).

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    emoticon filter | MSN Messenger | Perl module | Text | emoticon | filter

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM