[Fixed]Wordwrap for Japanese
Posted: Sun Nov 06, 2016 6:42 am
From the addition of translation MOD function, I translated the game into Japanese, and thought the game had NO word-wrap. Because, my translated lines never wrapped right. However, I got a line with some original item names remained, and several part got wrapped.
I guess the difference is the spaces those lines got. Normal Japanese sentences have NO SPACES AT ALL. If you need to know the border between words, you need to do fancy Morphological Analysis thing, so in Japanese translation, the word-wrap feature of this game wont work right.
Therefore, I suggest to make it work like
1.PO file language=Japanese(or Chinese?)
2.switch off the normal word-wrap
3.don't mind about words get split, just split lines with SIZE(most Japanese characters are 2-byte, and have double width for 1-byte characters, I guess)
I guess the difference is the spaces those lines got. Normal Japanese sentences have NO SPACES AT ALL. If you need to know the border between words, you need to do fancy Morphological Analysis thing, so in Japanese translation, the word-wrap feature of this game wont work right.
Therefore, I suggest to make it work like
1.PO file language=Japanese(or Chinese?)
2.switch off the normal word-wrap
3.don't mind about words get split, just split lines with SIZE(most Japanese characters are 2-byte, and have double width for 1-byte characters, I guess)


