nicolas-raoul / jakaroma

Java library and command-line tool to transliterate Japanese kanji to romaji (Latin alphabet)
Apache License 2.0
62 stars 8 forks source link

transliterate katakana with uppercase letters #5

Open eadmaster opened 8 years ago

eadmaster commented 8 years ago

This usually gives a better visual hint of English-tranliterated words.

Example:

./jakaroma.sh "私はカナダへ行きます"
watashi wa kanada e iki masu

Should be:

  watashi wa KANADA e iki masu

EDIT: i've implemented this way in jakaroma.java:

            if (token.getSurface().equals(token.getPronunciation()))
                romaji = romaji.toUpperCase();

(I've also disabled word capitalizing to avoid confusion)

nicolas-raoul commented 8 years ago

We could do this indeed. People who don't like it can always lowercase the whole. Waiting for a pull request ;-) On Jun 25, 2016 4:55 PM, "Andrea" notifications@github.com wrote:

This usually gives a better visual hint of English-tranliterated words.

Example:

./jakaroma.sh "私はカナダへ行きます"

watashi wa kanada e iki masu Should be: watashi wa KANADA e iki masu

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nicolas-raoul/jakaroma/issues/5, or mute the thread https://github.com/notifications/unsubscribe/AAGFBmURxPaXgjRfvdAHLlhfQx_24gRDks5qPN8CgaJpZM4I-SxW .