Back

KAKASI how to

#1
Hi, I'm trying to use kakasi to generate a few readings for a few kanjis.

But I'm not beeing able to understand how to use it.

Has anyone ever tryed it?
Edited: 2008-10-01, 3:48 pm
Reply
#2
If you are talking about the kakasi in Anki.

What it did was take kanji/kana information from a certain field and instantly print out possible readings in another section.

Like:

Stardard Japanese deck

F1 (i forget what it's called as i edit them)

あなたの方が好きです。

F2

Whatever

F3

あなたの {ほう|かた} が {す|こう|ゆ|い|この} すで。

You have to set "Reading Destinastion" flag in the model properties menu. Start a new deck and look through and you'll see it.

I think it is very annoying. I turned it off as it actually made entering sentences more time consuming. I'd rather just type the original sentence all over than fish through these.

If you are talking about a different kakasi then I have no idea
Reply
#3
Yes, it is the same. But I want to use it outside anki.
It has a command line interface too.
Reply
May 16 - 30 : Pretty Big Deal: Save 31% on all Premium Subscriptions! - Sign up here
JapanesePod101
#4
Also, I'd like to know if there is a chance for kakasi to work like this website:
http://nihongo.j-talk.com/parser/?demo=1
I'm concerned only with kanji->kana conversion.
Reply
#5
Basic usage:

kakasi -JH < kanji_text_file > kana_text_file

Just be careful about the character encoding.
Kakasi works with Shift JIS.

Full documentation:
http://www.pinkdragon.net/doc_lib/conten...asi.1.html
Reply
#6
Some more examples:

Furigana injection:
kakasi -JH -f

Kanji to spaced hiragana:
kakasi -JH -s

Kanji to hiragana, showing all the possible readings (anki style):
kakasi -JH -p

Swap hiragana and katakana:
kakasi -HK -KH

Everything to romaji: Big Grin
kakasi -Ka -Ha -Ja -Ea -ka -s -C
Reply
#7
Any hint to convert a file from/to unicode/shift_jis?
Reply
#8
recode utf8..sjis file.txt
recode sjis..utf8 file.txt

http://www.gnu.org/software/recode/recode.html

There's a Windows version of recode here:
http://www.weihenstephan.de/~syring/win3...sDist.html
Edited: 2008-10-03, 1:25 am
Reply