Bug 406420 - icon name has unexpected line break
Summary: icon name has unexpected line break
Status: RESOLVED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop icons & Folder View widget (other bugs)
Version First Reported In: master
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-10 21:51 UTC by Patrick Silva
Modified: 2019-04-12 17:53 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
screenshot (3.01 MB, image/png)
2019-04-10 21:51 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2019-04-10 21:51:25 UTC
Created attachment 119345 [details]
screenshot

SUMMARY
Observe the selected icon in my screenshot. There is an unexpected line break
before "s":
Configuraçõe
s do sistema"

STEPS TO REPRODUCE
1. set system language to pt-br
2. add system settings to desktop
3. restart plasma


EXPECTED RESULT
correct line breaks:
"Configurações
do sistema"


SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.15.80
KDE Frameworks Version: 5.57.0
Qt Version: 5.12.0
Comment 1 Eike Hein 2019-04-11 05:11:44 UTC
Actually not unexpected - there's nothing else for the wrapping algorithm in Qt to do. The word is longer than the space is, so it has to be split up. And it doesn't have hyphenation.
Comment 2 Christoph Feck 2019-04-11 05:24:50 UTC
I think Nate is planning to add configurable grid size for the Plasma folder view. Then the grid could be made a few pixels larger to accomodate the long word.

Also it could be checked if SHY (soft hyphen) characters could be inserted into long translations. Then Qt could actually hyphenate these words. For this grid size, it would then actually need three lines, though.
Comment 3 Nate Graham 2019-04-12 17:53:18 UTC
The problem is that the word "Configurações" is slightly too wide to fit in the medium label width at that icon and font size. You might try using the Wide size or increasing the icon size. I added that label width control specifically for cases like this. :) But I'm afraid there is no generic solution for this problem because files on the desktop can have arbitrary names and lines need to be broken *somewhere.*