KAKASI how to

Index » Learning resources

  • 1
 
mentat_kgs Member
From: Brasil Registered: 2008-04-18 Posts: 1671 Website

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?

Last edited by mentat_kgs (2008 October 01, 3:48 pm)

kazelee Rater Mode
From: ohlrite Registered: 2008-06-18 Posts: 2132 Website

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

mentat_kgs Member
From: Brasil Registered: 2008-04-18 Posts: 1671 Website

Yes, it is the same. But I want to use it outside anki.
It has a command line interface too.

Advertising (register and sign in to hide this)
JapanesePod101 Sponsor
 
mentat_kgs Member
From: Brasil Registered: 2008-04-18 Posts: 1671 Website

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.

iSoron Member
From: Canada Registered: 2008-03-24 Posts: 490

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/conte … asi.1.html

iSoron Member
From: Canada Registered: 2008-03-24 Posts: 490

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_smile
    kakasi -Ka -Ha -Ja -Ea -ka -s -C

mentat_kgs Member
From: Brasil Registered: 2008-04-18 Posts: 1671 Website

Any hint to convert a file from/to unicode/shift_jis?

iSoron Member
From: Canada Registered: 2008-03-24 Posts: 490

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/win … sDist.html

Last edited by iSoron (2008 October 03, 1:25 am)

  • 1