https://github.com/tomill/acme-lou
https://github.com/tomill/acme-lou
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/tomill/acme-lou
- Owner: tomill
- License: other
- Created: 2016-09-06T12:25:25.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-11T09:18:29.000Z (almost 10 years ago)
- Last Synced: 2023-08-20T23:01:24.179Z (almost 3 years ago)
- Language: Perl
- Homepage: https://lou5.jp/
- Size: 5.29 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
# NAME
Acme::Lou - Let's together with Lou Ohshiba
# SYNOPSIS
use utf8;
use Acme::Lou qw/lou/;
print lou("人生には、大切な三つの袋があります。");
# => ライフには、インポータントな三つのバッグがあります。
# DESCRIPTION
Translate Japanese text into Lou Ohshiba (Japanese comedian) style.
# METHODS
## $lou = Acme::Lou->new()
Creates an Acme::Lou object.
## $lou->translate($text \[, \\%options \])
$lou = Acme->Lou->new();
$out = $lou->translate($text, { lou_rate => 50 });
Return translated unicode string.
_%options_:
- lou\_rate
Percentage of translating. 100(default) means full, 0 means do nothing.
# EXPORTS
No exports by default.
## lou
use Acme::Lou qw/lou/;
my $text = <<'...';
祇園精舎の鐘の声、諸行無常の響きあり。
沙羅双樹の花の色、盛者必衰の理を現す。
奢れる人も久しからず、唯春の夜の夢のごとし。
- 「平家物語」より
...
print lou($text);
# 祇園テンプルのベルのボイス、諸行無常のエコーあり。
# 沙羅双樹のフラワーのカラー、盛者必衰のリーズンをショーする。
# プラウドすれるヒューマンも久しからず、オンリースプリングのイーブニングのドリームのごとし。
# - 「平家ストーリー」より
Shortcut to `Acme::Lou->new->translate()`.
# OBSOLETED FUNCTION
To keep this module working, following functions are obsoleted. sorry.
- html input/output
# AUTHOR
Naoki Tomita
# SEE ALSO
[https://lou5.jp/](https://lou5.jp/)
[http://taku910.github.io/mecab/](http://taku910.github.io/mecab/)
Special thanks to Taku Kudo
# LICENSE
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.