Collision of the language files with the keyboard shortcuts menu items

Started by Joerg B., June 30, 2025, 11:15:08 AM

Previous topic - Next topic

Joerg B.

Hello Paul

I am currently in the process of revising the german language file.
My aim is to change or shorten the entries as much as possible without losing the content of the translations.
Now I have noticed that in all languages the texts in the menus/submenus are partially cut off and then overlap with the keyboard shortcuts.
Would it be possible for you to generate the width of the menus/submenus based on the maximum read text length?
This would have the advantage that in future all language files can be read in without being cut off and colliding with the keyboard shortcuts.

Greeting from Germany

Joerg

Paul Squires

Quote from: Joerg B. on June 30, 2025, 11:15:08 AMWould it be possible for you to generate the width of the menus/submenus based on the maximum read text length?
I added code a long time ago that was supposed to look at all items in the menu + their keyboard accelerators and then calculate the width to encompass the maximum width.

Looks like that may not be working.   :) 
Paul Squires
PlanetSquires Software

Joerg B.

Hello Paul

Then the code is actually not working as desired.

Perhaps the effort required to maintain the functionality is then manageable.

But you could also throw up your hands in disbelief and think with your growing skills: "What was I thinking back then...."  ;D

Greeting from Germany

Joerg

Paul Squires

Paul Squires
PlanetSquires Software

Paul Squires

I'll get to the root of the problem. You're right though, I'll probably smack myself in the head for being stupid when I the cause of the problem.
Paul Squires
PlanetSquires Software

Paul Squires

If I drop my display size scaling down to 100% (from the 175% that I use) then I do indeed see that menu squishing together problem. At least now I know where to start.
Paul Squires
PlanetSquires Software

Paul Squires

All fixed now. Looks like I was incorrectly mixing a scaled and unscaled text width calculations with an insufficient width enough left and right margin area to accommodate things like the checkmark icon.

Fix will be in a v1.1.1 update in a few days once I get feedback if there are any other significant issues reported.
Paul Squires
PlanetSquires Software

Joerg B.

Hello Paul

That was quick.  :)
Thanks for fixing the "restriction".
Greeting from Germany

Joerg

Paul Squires

No problem at all.  :)

If you are feeling especially adventurous then you can try out the new fixes via the 'development' branch of the github repository. I will push all development branches to the main branch before I publish the next official release but in the meantime you can always try out the latest Tiko code via the development branch.

https://github.com/PaulSquires/tiko/tree/development
Paul Squires
PlanetSquires Software

Joerg B.

Hi Paul

I'm currently traveling with my motorhome and don't have a notebook with Windows with me.
But out of curiosity I installed UTM on my overpriced M3 hardware from Cupertino and virtualized Windows with it (Arm64bit). The Tiko editor works great in virtualization.  ;D
It looks very good.
I looked at the menus with all the language files and found no more "complaints" in this regard.  ;D
Greeting from Germany

Joerg

Paul Squires

Awesome Joerg! Enjoy your travelling. Hopefully it's not too hot where you are. José said it's like mid-40 degrees in the Spain area and I've seen our news that most of Europe is under a heat wave.
I have toyed with picking up an M4 Air but the Mac operating system just bothers me. I used it on a hackintosh and I vastly prefer Linux with KDE Plasma desktop... but that M series hardware from Apple is very hard to resist. :-)
Paul Squires
PlanetSquires Software

Joerg B.

Hello Paul

Oh yes.
It's really unusually hot at the moment. It's around 35°-37° Celsius here.

At these high temperatures, concentration wanes quickly and it's much easier for everyone to make mistakes.  ::)
We're on a pitch by the lake, so you can cool down more quickly.

José isn't that far from the sea either, but probably far enough that you can't just go into the water.

When I'm at home, it's enough for me to go into the cooler rooms. We have three lakes in our municipality.
Two of them are swimming lakes and I'm still too lazy to use them when it's hot..... because they're too crowded for me.  ;D
Greeting from Germany

Joerg