Jump to content

A word longer than the text field can't display the whole part


kanetaka
 Share

Recommended Posts

A translation file "longword.public.po" contains as follows:

#: gui/pregame/mainmenu.xml:498msgid "Alpha XVI: Patañjali"msgstr "123456789012345678901234567890Alpha XVI: Patañjali"

And you select this language from main menu, The result is:

post-16163-0-07345200-1399557075_thumb.p

Link to comment
Share on other sites

My point is different. The problem is not narrow UI space. In Japanese, single word can be much longer than European language.

For example, the translation of "Marcus Claudius Marcellus" is "マルクス・クラウディウス・マルケッルス", and this is treated as single word although the original contains 3 words.

We need breaking line in the middle of word if the word is too much long.

Link to comment
Share on other sites

OK. I list up them.

You can break line after characters below:

, ) ] } 、 〕 〉 》 」 』 】 〙 〗 〟 ’ ” ⦆ » ‐ ゠ – 〜 ? ! ‼ ⁇ ⁈ ⁉ ・ : ; 。 .  

Don't foget last one, U+3000 ideographic space.

and you can break line before characters below:

( [ { 〔 〈 《 「 『 【 〘 〖 〝 ‘ “ ⦅ « ヽ ヾ ー ァ ィ ゥ ェ ォ ッ ャ ュ ョ ヮ ヵ ヶ ぁ ぃ ぅ ぇ ぉ っ ゃ ゅ ょ ゎ ゕ ゖ ㇰ ㇱ ㇳ ㇲ ㇳ ㇴ ㇵ ㇶ ㇷ ㇸ ㇹ ㇺ ㇻ ㇼ ㇽ ㇾ ㇿ 々 〻

If you are intersted in formatting Japanese text, the following might be useful.

http://www.w3.org/TR/jlreq/

Link to comment
Share on other sites

We don't support breaking before a char. As normally, brackets are preceded with a space, so we break after that space.

I guess it will look good enough for release if we break after the "after" list you gave, and also after ヽ ヾ ー ァ ィ ゥ ェ ォ ッ ャ ュ ョ ヮ ヵ ヶ ぁ ぃ ぅ ぇ ぉ っ ゃ ゅ ょ ゎ ゕ ゖ ㇰ ㇱ ㇳ ㇲ ㇳ ㇴ ㇵ ㇶ ㇷ ㇸ ㇹ ㇺ ㇻ ㇼ ㇽ ㇾ.

Can't do a lot more now. We will have to switch to a decent text renderer at some point in the future anyway. Instead of just having our own hacked together piece of code.

Link to comment
Share on other sites

Ok, I ended up enlarging the ranges a bit, but I didn't include the brackets and braces you listed. (as that's quite annoyingly split, one by one, and it would only work for the right brackets anyway).

So it will reflow better now, and lets hope it doesn't look too bad when it comes across a bracket thing.

Link to comment
Share on other sites

It looks acceptable, yet I haven't seen on the UI, only the source code.

By the way, I made mistakes in my previous post.

and you can break line before characters below:

( [ { 〔 〈 《 「 『 【 〘 〖 〝 ‘ “ ⦅ « ヽ ヾ ー ァ ィ ゥ ェ ォ ッ ャ ュ ョ ヮ ヵ ヶ ぁ ぃ ぅ ぇ ぉ っ ゃ ゅ ょ ゎ ゕ ゖ ㇰ ㇱ ㇳ ㇲ ㇳ ㇴ ㇵ ㇶ ㇷ ㇸ ㇹ ㇺ ㇻ ㇼ ㇽ ㇾ ㇿ 々 〻

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...