Re: proposal for new character 'soft/preferred line break'

From: Jukka K. Korpela <jkorpela_at_cs.tut.fi>
Date: Thu, 06 Feb 2014 00:27:10 +0200

2014-02-05 23:44, Rhavin Grobert wrote:

> Wbr gives the opportunity to break at long|awesome. But what i mean is:
> - non existing "sbr" in parralell to shy assumed -

Just giving a hypothetical character or tag an identifier does not
specify its intended meaning.

> "Do you think me gentle,<sbr/>do you think me cold?
> do you wanna risk a<sbr/>look into my thoughts?"
>
> if line is long enough:
>
> "Do you think me gentle, do you think me cold?
> do you wanna risk a look into my thoughts?"
>
> if line is not long enough:
>
> "Do you think me gentle,
> do you think me cold?
> do you wanna risk a
> look into my thoughts?"

This seems to be what Richard Wordingham guessed what you mean, more or
less.

> Poems need some whitespace-element that is *above* usual whaitespaces
> when it comes to linebreaks, <wbr/> and &shy are *below* all whitespaces.

Anything “above” the character level is generally up to higher-level
protocols rather than what the Unicode Standard deals with.

It seems to me that you actually want is to make some line break points
the only allowed break points. So you would rather want to prohibit
breaks elsewhere than introduce a “soft/preferred line break”.

At the character level, you could use no-break spaces for the purpose.
Using the entity reference &nbsp; (for U+00A9) for clarity here, you
could write

Do&nbsp;you&nbsp;think&nbsp;me&nbsp;gentle,
do&nbsp;you&nbsp;think&nbsp;me&nbsp;cold?
do&nbsp;you&nbsp;wanna&nbsp;risk&nbsp;a
look&nbsp;into&nbsp;my&nbsp;thoughts?

If the text contains hyphens or other characters that might allow a line
break by default, you made need something extra.

If this is actually about HTML authoring, you can successfully use

<nobr>Do you think me gentle,</nobr>
<nobr>do you think me cold?</nobr>
<nobr>do you wanna risk a</nobr>
<nobr>look into my thoughts?</nobr>

If you need/want to “conform to HTML standards”, you can, with some
marginal loss in functionality, use <span style="white-space:
nowrap">...</span> instead of nobr elements.

Anyway, there appears to be existing solutions to the problem. They
might be a bit clumsy, but adding an “exclusive line break opportunity”
into Unicode would introduce quite some complexity and burden on
implementations.

Yucca

_______________________________________________
Unicode mailing list
Unicode_at_unicode.org
http://unicode.org/mailman/listinfo/unicode
Received on Wed Feb 05 2014 - 16:28:12 CST

This archive was generated by hypermail 2.2.0 : Wed Feb 05 2014 - 16:28:12 CST