Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: Paolo F Cantoni on May 29, 2017, 04:50:08 pm

Title: Word Wrap on non spaced names
Post by: Paolo F Cantoni on May 29, 2017, 04:50:08 pm
I'm sure there was some discussion recently on the forum about word wrapping.  But I can't find it.

Anyway, there should be the ability to word wrap names that don;t have spaces, but do have mixed case naming.  We commonly use a naming scheme we've called Complex Pascal Naming where capital letters separate words, but Acronyms and Initialisms are allowed to retain their Uppercase.  It's not that hard to write an algorithm to split the words up and determine where the word wrap should be.

Please consider.

Reported,
Paolo
Title: Re: Word Wrap on non spaced names
Post by: KP on May 29, 2017, 05:01:58 pm
I think it was this one: http://sparxsystems.com/forums/smf/index.php/topic,37287.msg233871.html (http://sparxsystems.com/forums/smf/index.php/topic,37287.msg233871.html)
Title: Re: Word Wrap on non spaced names
Post by: Paolo F Cantoni on May 29, 2017, 07:24:51 pm
I think it was this one: http://sparxsystems.com/forums/smf/index.php/topic,37287.msg233871.html (http://sparxsystems.com/forums/smf/index.php/topic,37287.msg233871.html)
That's the one!

Searching for any of {"Word wrap" wordwrap} doesn't find it, I guess I should have added: "wrap" on its own...  ::) ::)

Thanks,
Paolo
Title: Re: Word Wrap on non spaced names
Post by: KP on May 30, 2017, 10:51:03 am
Searching for any of {"Word wrap" wordwrap} doesn't find it, I guess I should have added: "wrap" on its own...  ::) ::)
I searched for "camel" :)
Title: Re: Word Wrap on non spaced names
Post by: RoyC on May 30, 2017, 11:40:24 am
What? And not for Donaudampfschiffahrtsgesellschaftskapitän?  You surprise me.
Title: Re: Word Wrap on non spaced names
Post by: skiwi on May 31, 2017, 02:56:04 pm
Anyway, there should be the ability to word wrap names that don;t have spaces, but do have mixed case naming.  We commonly use a naming scheme we've called Complex Pascal Naming where capital letters separate words, but Acronyms and Initialisms are allowed to retain their Uppercase.  It's not that hard to write an algorithm to split the words up and determine where the word wrap should be.

Please consider.

Reported,
Paolo
+1


Algorithm: e.g. Split if needed after lowercase letter whenever lower case precedes uppercase; split if needed prior to any instance of Uppercase letter followed by lower case; split (say) if needed at any non alphanumeric character