Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Generating Furigana in documents
- Date: Sat, 30 Mar 2013 10:01:22 +0100
- From: Christian Horn <chorn@example.com>
- Subject: Re: [tlug] Generating Furigana in documents
- References: <20130329122527.GA30508@fluxcoil.net> <20130330072550.GA6687@skeptic.cynic.net>
- User-agent: Mutt/1.5.20 (2009-06-14)
On Sat, Mar 30, 2013 at 04:25:50PM +0900, Curt Sampson wrote: > On 2013-03-29 13:25 +0100 (Fri), Christian Horn wrote: > > > I am wondering if there is a convenient way on linux > > to take i.e. utf8 documents with Kanji as input and > > get an output document with Furigana. > > Kakasi, which is available in the Ubuntu package system or from > http://kakasi.namazu.org . Thanks for the hint. Hm.. it seems to expect 'JIS x0208' Kanji characters that I am unable to produce. My original is in utf8, everything iconv is offering to convert into seems inappropriate: for i in $(iconv -l | grep -i jis | sed -e 's,//$,,'); do echo "私は馬鹿です。" | iconv -f UTF8 -t $i - | \ ./kakasi -i jis -H; done ..only produces unreadable output in a UTF8 xterm. Maybe I am not getting UTF8 back.. but what is it I get back? Same for for i in $(iconv -l | grep -i euc | sed -e 's,//$,,'); do echo "私は馬鹿です。" | iconv -f UTF8 -t $i - | \ ./kakasi -i euc -H; done Christian
- Follow-Ups:
- Re: [tlug] Generating Furigana in documents
- From: Curt Sampson
- References:
- [tlug] Generating Furigana in documents
- From: Christian Horn
- Re: [tlug] Generating Furigana in documents
- From: Curt Sampson
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Resources for learning Haskell
- Next by Date: Re: [tlug] Generating Furigana in documents
- Previous by thread: Re: [tlug] Generating Furigana in documents
- Next by thread: Re: [tlug] Generating Furigana in documents
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links