Show
Ignore:
Timestamp:
01/22/08 10:01:31 (10 months ago)
Author:
tokuhirom
Message:

2コマ系絵文字の相互変換に対応。2コマ分の bytes を ucm に定義。以前は、最初の1コマをひろっていた。
see. http://gyazo.com/db2cc92d58aff62fb3e1783bd32b9b5e.png

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Encode-JP-Mobile/trunk/tools/make-utf8-ucm.pl

    r5118 r5243  
    9090sub unihex2utf8hex { 
    9191    my $uni = shift; 
    92     $uni = 'H*'->unpack($uni->hex->chr->encode('utf-8')); 
    93     $uni =~ s/(..)/\\x$1/g; 
     92    $uni =~ s{(....)}{ 
     93        my $x = 'H*'->unpack($1->hex->chr->encode('utf-8')); 
     94        $x =~ s/(..)/\\x$1/g; 
     95        $x; 
     96    }ge; 
    9497    $uni; 
    9598}