Page 1 of 1

[Fixed]Wordwrap for Japanese

Posted: Sun Nov 06, 2016 6:42 am
by ruthfahlt
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)

Re: Wordwrap for Japanese

Posted: Fri Nov 11, 2016 2:19 am
by Zodd
This latest release should include word wrapping per character for Japanese (and Chinese).
Give it a try and let know if there is any issue.

Re: Wordwrap for Japanese

Posted: Fri Nov 11, 2016 9:43 am
by ruthfahlt
Zodd wrote:This latest release should include word wrapping per character for Japanese (and Chinese).
Give it a try and let know if there is any issue.
Thank you for your quick response. I'll try it out.

Re: Wordwrap for Japanese

Posted: Sat Nov 12, 2016 4:38 am
by ruthfahlt
OK, now.
This is how it showed with manually inputted "/n" codes,
Image
and, with new word wrap rule.
Image
It seems the new rule also works great for 1-byte 2-byte mixed lines.
Thank you very much for your fix!

Re: [Partly Fixed]Wordwrap for Japanese

Posted: Sat Nov 19, 2016 6:19 pm
by ruthfahlt
I still got a problem in wordwrap system.
Most of lines splitted right, but some have character repeated on the most left column.

This is an example.(description of hacker skill)
Image
2nd, 3rd and 4th line show the duplicated characters

and this is main.po witch contains the Japanese translation.
https://drive.google.com/open?id=0B2RJn ... DlCUlhNWXM

I can't see any rule for the bug.

Sorry for bothering you again. It may be trivial, and most languages don't have this kind of problem, but if you could fix the bug, the problem would be solved completely.

Re: [Partly Fixed]Wordwrap for Japanese

Posted: Mon Nov 21, 2016 1:41 pm
by Zodd
I've managed to fix it.
Thanks for the info.

The fix should be on the next release.
Let me know if it still happens after the update.

Re: [Fixed]Wordwrap for Japanese

Posted: Sun Nov 27, 2016 11:45 am
by ruthfahlt
It seems the fix works fine, as long as I checked.
Thanks for your great work!