PlanetSquires Forums

Support Forums => General Board => Topic started by: Joerg B. on June 30, 2025, 11:15:08 AM

Title: Collision of the language files with the keyboard shortcuts menu items
Post by: Joerg B. on June 30, 2025, 11:15:08 AM
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.

Title: Re: Collision of the language files with the keyboard shortcuts menu items
Post by: Paul Squires on June 30, 2025, 01:30:28 PM
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.   :) 
Title: Re: Collision of the language files with the keyboard shortcuts menu items
Post by: Joerg B. on June 30, 2025, 02:33:35 PM
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

Title: Re: Collision of the language files with the keyboard shortcuts menu items
Post by: Paul Squires on June 30, 2025, 03:20:18 PM
 ;D  ;D  ;D
Title: Re: Collision of the language files with the keyboard shortcuts menu items
Post by: Paul Squires on June 30, 2025, 03:21:17 PM
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.
Title: Re: Collision of the language files with the keyboard shortcuts menu items
Post by: Paul Squires on June 30, 2025, 06:59:47 PM
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.
Title: Re: Collision of the language files with the keyboard shortcuts menu items
Post by: Paul Squires on June 30, 2025, 08:02:54 PM
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.
Title: Re: Collision of the language files with the keyboard shortcuts menu items
Post by: Joerg B. on July 01, 2025, 10:47:39 AM
Hello Paul

That was quick.  :)
Thanks for fixing the "restriction".
Title: Re: Collision of the language files with the keyboard shortcuts menu items
Post by: Paul Squires on July 01, 2025, 11:09:56 AM
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
Title: Re: Collision of the language files with the keyboard shortcuts menu items
Post by: Joerg B. on July 02, 2025, 01:19:03 PM
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
Title: Re: Collision of the language files with the keyboard shortcuts menu items
Post by: Paul Squires on July 02, 2025, 03:37:06 PM
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. :-)
Title: Re: Collision of the language files with the keyboard shortcuts menu items
Post by: Joerg B. on July 03, 2025, 08:15:24 AM
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