Discussion:
Conversion to half-width katakana
(too old to reply)
w
2007-12-11 04:25:13 UTC
Permalink
Hi

This topic might have appeared before. However I could not find the
correct key word to find those so pardon me for posting it again here.

Currently I need to convert Japanese text to half-width katakana in
Shift-JIS so the bank feed will accept the file.

I managed to convert the unicode character into Shift-JIS characters.
However I still need to

1. convert kanji, hiragana into katakana
2. convert full-width katakana to half width

It seems that VB.NET has support to convert from hiragana to Katakana,
and from full-width to half-width. However I haven't seen kanji to
katakana conversion. To my limited knowledge in Japanese I think this
might not be possible since it is not a 1-1 relationship. However I
just want to confirm it.

Thanks a lot

Mark
Jim Breen
2007-12-11 04:39:54 UTC
Permalink
Post by w
Currently I need to convert Japanese text to half-width katakana in
Shift-JIS so the bank feed will accept the file.
Sigh. Information-processing leaps back to the 1970s.
Post by w
I managed to convert the unicode character into Shift-JIS characters.
However I still need to
1. convert kanji, hiragana into katakana
2. convert full-width katakana to half width
It seems that VB.NET has support to convert from hiragana to Katakana,
and from full-width to half-width. However I haven't seen kanji to
katakana conversion. To my limited knowledge in Japanese I think this
might not be possible since it is not a 1-1 relationship. However I
just want to confirm it.
Google for "kakasi", which is a system for turning kanji to kana,
romaji, etc. It may have a half-width katakana option. It's not 1-1,
and the results should be checked carefully.

Basis Technology's "uniconv" utility does half-width output.
You can get a copy from the Monash ftp site.
--
Jim Breen http://www.csse.monash.edu.au/~jwb/
Clayton School of Information Technology,
Monash University, VIC 3800, Australia
$B%8%`!&%V%j!<%s(B@$B%b%J%7%eBg3X(B
w
2007-12-13 03:04:21 UTC
Permalink
Post by Jim Breen
Post by w
It seems that VB.NET has support to convert from hiragana to Katakana,
and from full-width to half-width. However I haven't seen kanji to
katakana conversion. To my limited knowledge in Japanese I think this
might not be possible since it is not a 1-1 relationship. However I
just want to confirm it.
Google for "kakasi", which is a system for turning kanji to kana,
romaji, etc. It may have a half-width katakana option. It's not 1-1,
and the results should be checked carefully.
Thanks a lot, after lots of effort I finally integrated into the
VB.NET environment.
Now I am trying to understand what arguments I need to do the
transformations.
It's a pity that there is no English API available.
Post by Jim Breen
--
Jim Breen http://www.csse.monash.edu.au/~jwb/
Clayton School of Information Technology,
Monash University, VIC 3800, Australia
Loading...