Re: RFE: Support for hyphen and soft hyphen

Leif H Silli <[email protected]> Sat, 10 Jun 2023 01:00:59 +0200
Newsgroups gmane.editors.xxe.general
Organization Lenk.no/Silli
Message-ID <[email protected]>
Thanks for the recomendation to try the "Wrap words wider than available 
space" option in the Preferences. Even if the preference is framed as 
useful for users of specific languages, such as Japanese, enabling it 
might have removed the frustration that caused me to write this RFE ...

However, I should have described the use case better. The use case is 
not a «very long word problem»:

XXE permits the user to make the document view narrower. Even if the 
Window is made as wide as possible, the document view can be become so 
narrow that word wrapping becomes an issue.

For instance, if file browser pane on the left side of the document view 
is visible, and/or when the various panes on the right side of the 
document view are visible. Also, the user may sometimes need to make 
those panes extra wide. Or the screen of the computer might be quite 
small (mine is 13 inches), or the words that needs to be hyphenated can 
be in a very large font - such as for the h1 element of HTML. If you 
combine some or all of the of the above situations, the word in need of 
wrapping, does not need to be long.

As for background to answer this RFE, I would like to point to Unicode® 
Standard Annex #14, which defines the «Unicode line breaking algorithm» 
- it was last updated 2022-08-16.

https://unicode.org/reports/tr14/

Leif Halvard Silli


2023-05-31 11:24 Hussein Shafie:
> On 5/26/23 14:45, Leif H Silli wrote:
>> 
>> Example - the longest Welsh name - 58 characters:
>> 
>> Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch
>> 
>> If the View of XXE is just 48 chars wide, then if I split the word in 
>> two (without a hyphen) with a space character, then XXE will split the 
>> word(s) over two lines:
>> 
>> Llanfairpwllgwyngyllgogerych
>> wyrndrobwllllantysiliogogogoch
>> 
>> However, since this is actually single world, the space character 
>> should actually be a soft hyphen. And I would expect this result on 
>> screen:
>> 
>> Llanfairpwllgwyngyllgogerych<shy>
>> wyrndrobwllllantysiliogogogoch
>> 
>> But actually what happens in XXE, is that I get a long line:
>> 
>> Llanfairpwllgwyngyllgogerych<shy>wyrndrobwllllantysiliogogogoch
>> 
>> Even if I replace the soft hyphen with a regular hypen-minus 
>> character, I get the same result - a single line:
>> 
>> Llanfairpwllgwyngyllgogerych-wyrndrobwllllantysiliogogogoch
>> 
>> (I hope the email does not broke my examples.)
>> 
> 
> Sorry but we are currently lacking background to answer this RFE.
> 
> Please give option "Options|Preferences", "View" section, "Wrap words
> wider than available space"
> (http://www.xmlmind.com/xmleditor/_distrib/doc/help/viewOptions.html)
> a try to see if this solves your very long word problem.

--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support