Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect text-wrapping behavior in UFOPaedia #1330

Open
starslab opened this issue Apr 30, 2021 · 2 comments
Open

Incorrect text-wrapping behavior in UFOPaedia #1330

starslab opened this issue Apr 30, 2021 · 2 comments
Assignees
Labels
Confirmed Reproduced but not fixed yet

Comments

@starslab
Copy link

starslab commented Apr 30, 2021

I've just stumbled upon what I believe to be incorrect text-wrapping behavior in OpenXCom Extended 7.0.3

This is running on Win10-64.

ufopaedia:
  - id: STR_GAUSS_TECH
    type_id: 10
    section: STR_UFO_COMPONENTS
    listOrder: 12501
    requires:
      - STR_GAUSS_TECH
    text: STR_GAUSS_TECH_UFOPEDIA
en-US:
  STR_GAUSS_TECH_UFOPEDIA: "The theory behind Gauss weaponry is not new, and there have been several attempts to develop it in recent years. We have hit the same roadblock as these previous effortsss - to miniaturize a Gauss weapon to the point of portability, several small components of the mechanism must be able to withstand stresses and temperatures that are outside the realm of our materials science."

Produces this screenshot:

effortsss

Whereas:

en-US:
  STR_GAUSS_TECH_UFOPEDIA: "The theory behind Gauss weaponry is not new, and there have been several attempts to develop it in recent years. We have hit the same roadblock as these previous efforts - to miniaturize a Gauss weapon to the point of portability, several small components of the mechanism must be able to withstand stresses and temperatures that are outside the realm of our materials science."

Produces this - Note the missing hyphen after 'efforts'

efforts

@starslab
Copy link
Author

And I can reproduce it with the stock OpenXCom font as well

  STR_GAUSS_TECH_UFOPEDIA: "The theory behind Gauss weaponry is not new, and there have been several attempts to develop it in recent years. We have hit the same roadblock as theseeeee previousssss bllehhh effortssssss - to miniaturize a Gauss weapon to the point of portability, several small components of the mechanism must be able to withstand stresses and temperatures that are outside the realm of our materials science."

stock

@SupSuper SupSuper self-assigned this Apr 30, 2021
@MeridianOXC MeridianOXC added the Confirmed Reproduced but not fixed yet label Aug 9, 2022
@MeridianOXC
Copy link
Member

Can be reproduced on any OXC/OXCE version, on any GUI with Text component.
Hyphen (word separator) probably counts as zero length or something (just guessing).

I tested with a briefing text:

STR_UFO_GROUND_ASSAULT_BRIEFING: "Explore the touchdown site and, if possible, gain entryyyyyyy - to the Alien Sub. The mission will be successful when all enemy units have been eliminated or neutralized. Recovery of the Alien Sub, artifacts and Alien corpses can then be initiated. To abort the mission return X-Com aquanauts to the submarine and click on the 'Abort Mission' icon."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Confirmed Reproduced but not fixed yet
Projects
None yet
Development

No branches or pull requests

3 participants