Mailing List Archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Generating Furigana in documents

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
> .

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; 

..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; 


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links