Word wrap button labels on soft hypens
If the UTF-8 sequence for the Unicode Soft Hyphen ("Non-printable U+00AD")
occurs in the text to be used as the label of a button, and the label
is still too wide after any wrapping done based on either space and/or a
visible hyphen ("-", U+002D), a visible hyphen will be introduced and
the label will be wrapped.
e.g. Norwegian Nynorsk "Regnbogesyklus"
Regnboge-
syklus
(rather than all crammed on one line and impossible to read)
h/t Karl for the idea.
Closes https://sourceforge.net/p/tuxpaint/bugs/288/
This commit is contained in:
parent
217e653d3a
commit
c1ff0efad1
3 changed files with 86 additions and 17 deletions
|
|
@ -81,8 +81,8 @@ https://tuxpaint.org/
|
|||
Closes https://sourceforge.net/p/tuxpaint/feature-requests/229/
|
||||
Bill Kendrick <bill@newbreedsoftware.com>
|
||||
|
||||
* Button labels word-wrap on hyphens/dashes ("-") now too.
|
||||
TODO And on soft-hyphens.
|
||||
* Button labels word-wrap on hyphens/dashes ("-"), and
|
||||
can word-wrap (and add a hyphen) when soft-hyphens are used.
|
||||
Closes https://sourceforge.net/p/tuxpaint/bugs/288/
|
||||
(h/t Karl Ove Hufthammer for suggesting)
|
||||
Bill Kendrick <bill@newbreedsoftware.com>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue