HTML::MobileJp::Filter::PictogramFallback - PC の場合の絵文字の代替表現
- module: PictogramFallback config: template: <img src="/img/pictogram/%s.gif" /> params: - unicode_hex
template => '', # sprintf format params => [], # Encode::JP::Mobile::Charnames method names
params で Encode::JP::Mobile::Charnames のメソッドとは別に特別に 使えるものは以下のとおりです。
- module: PictogramFallback config: template: %s params: - fallback_name
fallback_name('I') か fallback_name('E') か fallback_name('V') を 返します。(>3<) のように出ます。
fallback_name('I')
fallback_name('E')
fallback_name('V')
(>3<)
- module: PictogramFallback config: template: <img src="/img/pictogram/%s.gif" alt="%s" /> params: - unicode_hex - fallback_name_htmlescape
<img src="/img/pictogram/ECA2.gif" alt="(&gt;3&lt;)" /> のように出ます。
<img src="/img/pictogram/ECA2.gif" alt="(&gt;3&lt;)" />
Encode::JP::Mobile, Encode::JP::Mobile::Charnames
Naoki Tomita <tomita@cpan.org>
To install HTML::MobileJp::Filter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::MobileJp::Filter
CPAN shell
perl -MCPAN -e shell install HTML::MobileJp::Filter
For more information on module installation, please visit the detailed CPAN module installation guide.