Ludeon Forums

Ludeon Forums

  • July 02, 2020, 05:52:54 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Feature request: New word separation possibilities  (Read 285 times)

Ragnar-F

  • Drifter
  • **
  • Posts: 35
  • Refugee
    • View Profile
Feature request: New word separation possibilities
« on: February 28, 2020, 08:34:44 AM »

Currently, as far as I know, there are only two ways to separate a long label consisting of several words: space and \n.

In English, a label consisting of several words is separated by spaces, whereas in German (or possibly other languages) the words are usually directly concatenated. For example "tool cabinet" vs. "Werkzeugschrank". While the English label fits nicely in a Misc tab's box, the German label is erroneously separated between "Werkzeugschr" and "ank". The correct separation would be "Werkzeug" and "schrank". Currently, our translators are trying to separate such words with spaces where reasonable. This may be sufficient for such boxes, but in other places, such as headlines in item descriptions, these labels simply look crappy and wrong.

\n is out anyway, since it would make headlines mentioned above multiline.

It would be nice if there could be other ways to separate labels. For example there are the following:
  • Soft hyphen (­). In general, it would make sense to allow all HTML entities if possible; some seem to work already, like <, others produce an XML error. See Wikipedia page.
  • Zero-width space. See Wikipedia page.
  • <wbr>. See Wikipedia page.
« Last Edit: March 02, 2020, 04:03:53 PM by Ragnar-F »
Logged

Haplo

  • Global Moderator
  • Planetologist
  • ****
  • Posts: 2126
  • Shadow
    • View Profile
Re: word separation possibilities
« Reply #1 on: February 28, 2020, 02:12:05 PM »

One additional way could be an optional alternate for menu texts:
English uses .label for everything
German (and some others) use additionally an optional alternate .labelMenu to define how the displaying in the menu should be split. The menu only uses .labelMenu when it's not empty and uses .label as the default.

.label -> Werkzeugschrank
.labelMenu -> Werkzeug schrank

Just my 2 cents 8)
Logged

Ragnar-F

  • Drifter
  • **
  • Posts: 35
  • Refugee
    • View Profile
Re: word separation possibilities
« Reply #2 on: March 02, 2020, 03:55:01 PM »

This would also be a good alternative, although I believe that the other methods, especially the first one, are more flexible and cause less work.
Logged