Permalink
Browse files

jisho.org/kanji: kanji web dictionary lookup

  • Loading branch information...
Web Uploader
Web Uploader committed Jan 15, 2011
1 parent 179ac5c commit 6057c97b96b934f979bd6657cc973ecca659cf7e
Showing with 10 additions and 0 deletions.
  1. +10 −0 jisho.org/kanji
View
@@ -0,0 +1,10 @@
#!/bin/bash
wget -o /dev/null -O - http://jisho.org/kanji/details/$1 |
html2text -nobs |
perl -ne '
if (s/\*+//g) {
$p = /(Readings|English)/?1:0;
};
$p = /(Chinese|Korean)/?0:$p;
$p = /^(Radical|Parts)/?1:$p;
print if ($p && !/^\n/)'

0 comments on commit 6057c97

Please sign in to comment.