結論
日本語入力でターミナルにポケモンが出せます!!!(可愛い!!)
はじめに
本家のpokemon-colorscriptsを日本語対応させたものになります。(一から全て作ったわけではないです)
動機はポケモンの英語名が日本語と違いすぎて使いにくかったからです。
- 本家のgit(英語版)
- github(英語版+日本語入力対応)
使い方
環境設定
$ git clone https://github.com/sergicalsix/pokemon-script-jap.git
$ cd cd pokemon-script-jap
$ sudo ./install.sh
以上で使えるようになります。(こけた場合は、ページ末尾のHelpをご覧ください)
実行方法
$ pokemon-colorscripts -n [好きなポケモンの名前(カタカナ)]
実行例
実行例をいくつか乗せます!可愛いのでぜひ使ってみてください!
ちなみに存在しないポケモン名(入力が間違っているor例外)を入力すると以下のようになります。
$ pokemon-colorscripts -n ほげ
Invalid pokemon ほげ
$
終わりに
日本語入力対応をどのようにして実装したかについては後日記事を出します!
プログラムはpythonで記述されていて、かつ短いのでご自身で改造してみるのも面白いと思います!
以下今後のTODOです。
- テストコード作る
- 全ポケモンに対応させる
- 本家にPR送る
ありがとうございました!
Zennもやっていますのでよかったらご覧ください
Help
-
coreutils
を入れる
% sudo port selfupdate
% sudo port install coreutils # これが必要