Comments (5)
Hi @NaitLee!
This is a known bug. (not for the text in the windows, but sometime it happens for buttons, ect.)
I'm going to correct it.
Thanks for reporting the bug!
from unvanquished.
One rather easy solution might be to insert a zero width space after each character, see https://en.wikipedia.org/wiki/Zero-width_space. We could do this automatically. Any automatic method would be preferred over inserting the line breaks manually.
from unvanquished.
insert a zero width space after each character
This does not seem to work. I tried this:
#: ui/help_gameplay.rml:57
msgid ""
"Building a structure requires build points. Your team will start with a "
"small pool of build points but if you want to place a greater number of "
"buildables in an area, you can build a [leech] mining structure to increase "
"the available power and provide more build points. Be wary that you will "
"loose the build points if the mining structures are destroyed."
msgstr "建造设施需要建筑点。你的阵营开局有一些建筑点,不过若你需要新建很多设施,可以先建造 [leech] 采掘设施,增加供能、获得更多建筑点。请留意,在采掘设备被摧毁后,建筑点会丢失。"
from unvanquished.
This is certainly doable without any ugly insertions of break characters:
I did this, directly in help_gameplay.rml
:
<p style="white-space: pre-line; word-break: break-all">建造设施需要建筑点。你的阵营开局有一些建筑点,不过若你需要新建很多设施,可以先建造 [leech] 采掘设施,增加供能、获得更多建筑点。请留意,在采掘设备被摧毁后,建筑点会丢失。</p>
(Ignore the [leech]
, this is just me being lazy)
from unvanquished.
I wonder if this is a libharfbuzz thing. Supposedly that's what you need for RTL text and multi-code point emojis
A way to hack it might be adding extra logic in the translate
element
from unvanquished.
Related Issues (20)
- Bot behaviors do not work with some combinations of cvars HOT 2
- Adopting USS Tremor as a stock map? HOT 3
- Cvars g_bot_builder / g_bot_builder_upg don't work
- UI reacts to mouse movements while console is open
- Allow UI modding for HUD only with Lua disabled
- `CG_CustomSound` is broken HOT 4
- Doing `malloc(0)` or not doing `malloc(0)`? HOT 9
- The `Shift+Escape` shortcut to open console doesn't work on `for-0.55.0/sync` branch HOT 2
- Warnings breaking Linux GCC CI for `for-0.55.0/sync` branch HOT 3
- Understanding `Sys::Milliseconds` HOT 5
- Add `USE_CPU_INTRINSICS` build option? HOT 2
- Bots: missing check for "upward" navcons? HOT 1
- Compiler-unsafe usage of GLM vectors HOT 19
- Trace builder API proposal HOT 2
- Merging GLM migration work from freem HOT 2
- C++ objects are not destructed if a Lua error occurs HOT 1
- Some warnings in current `master` branch HOT 2
- Unvanquished crash with bots HOT 4
- Could we benefit from the Roblox Lua fork's sandboxing? HOT 2
- lower default difficulty of bots HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unvanquished.