Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"C++" is wrapped in Opera 9.5

4 views
Skip to first unread message

Boris

unread,
Sep 3, 2008, 10:28:45 AM9/3/08
to
After upgrading to Opera 9.5 I noticed that the word "C++" is wrapped, eg:

C+
+

If I'm not mistaken this didn't happen in Opera 9.2. Is this a bug or an
intentional change?

Boris

Tim Altman

unread,
Sep 5, 2008, 12:51:05 PM9/5/08
to

Probably an intentional change, but it's hard to say without seeing a
test case. Opera 9.5 includes support for UAX #14 Line Breaking
Properties (http://unicode.org/reports/tr14/) and UAX #29 Text
Boundaries (http://unicode.org/reports/tr29/), which changed the line
wrapping rules compared to 9.27.

--
Tim Altman
Desktop QA
Opera Software
Remove NO SPAM from e-mail address to reply

Boris

unread,
Sep 5, 2008, 6:24:49 PM9/5/08
to
On Fri, 05 Sep 2008 18:51:05 +0200, Tim Altman <do....@spam.me.invalid>
wrote:

> [...]


>> If I'm not mistaken this didn't happen in Opera 9.2. Is this a bug or an
>> intentional change?
>
> Probably an intentional change, but it's hard to say without seeing a
> test case. Opera 9.5 includes support for UAX #14 Line Breaking

Here's a simple test case: http://www.highscore.de/browsertest/cpp.html
If you resize Opera and try different window sizes you'll see how "C++" is
wrapped.

> Properties (http://unicode.org/reports/tr14/) and UAX #29 Text
> Boundaries (http://unicode.org/reports/tr29/), which changed the line
> wrapping rules compared to 9.27.

I don't know how other browsers handle this case (quickly checked IE7
which doesn't wrap "C++"; however this doesn't mean much of course). If
"C++" is wrapped now though in Opera a lot of documentation would need to
be updated as the plus signs in different lines look strange?

Boris

Pete Forman

unread,
Sep 9, 2008, 7:17:16 AM9/9/08
to
Boris <bor...@web.de> writes:

> Here's a simple test case:
> http://www.highscore.de/browsertest/cpp.html If you resize Opera
> and try different window sizes you'll see how "C++" is wrapped.

Confirmed with O9.52. "C#" has no such problem, I suspect a Microsoft
conspiracy. ;-)
--
Pete Forman -./\.- Disclaimer: This post is originated
WesternGeco -./\.- by myself and does not represent
pete....@westerngeco.com -./\.- the opinion of Schlumberger or
http://petef.22web.net -./\.- WesternGeco.

Alan Wood

unread,
Sep 9, 2008, 8:37:47 AM9/9/08
to
"Tim Altman" <do....@spam.me.invalid> wrote in message
news:0po2c4pijk604p15n...@4ax.com...

> Opera 9.5 includes support for UAX #14 Line Breaking
> Properties (http://unicode.org/reports/tr14/) and UAX #29 Text
> Boundaries (http://unicode.org/reports/tr29/), which changed the line
> wrapping rules compared to 9.27.

I have found an undesirable effect of this change, in that InChIs (used by
chemists) that wrapped reasonably well in 9.2x now do not break at hyphens
in 9.5x.

I have a test file here:
http://www.alanwood.net/demos/bug-95067-inchi.html

The latest Firefox alpha has finally started wrapping InChIs nicely, with an
appropriate style. Does anyone know if Opera 9.5 is supposed to support
style="text-wrap:normal; word-wrap:break-word;" ?

--
Alan Wood
http://www.alanwood.net (Unicode, special characters, pesticide names)

Tim Altman

unread,
Sep 10, 2008, 12:24:12 PM9/10/08
to
On Tue, 9 Sep 2008 13:37:47 +0100, "Alan Wood" <alan...@justis.com>
wrote:

>"Tim Altman" <do....@spam.me.invalid> wrote in message
>news:0po2c4pijk604p15n...@4ax.com...
>> Opera 9.5 includes support for UAX #14 Line Breaking
>> Properties (http://unicode.org/reports/tr14/) and UAX #29 Text
>> Boundaries (http://unicode.org/reports/tr29/), which changed the line
>> wrapping rules compared to 9.27.
>
>I have found an undesirable effect of this change, in that InChIs (used by
>chemists) that wrapped reasonably well in 9.2x now do not break at hyphens
>in 9.5x.
>
>I have a test file here:
>http://www.alanwood.net/demos/bug-95067-inchi.html

Your test doesn't demonstrate how a browser should wrap the text.

>The latest Firefox alpha has finally started wrapping InChIs nicely, with an
>appropriate style. Does anyone know if Opera 9.5 is supposed to support
>style="text-wrap:normal; word-wrap:break-word;" ?

No, Opera does not support those properties.

Tim Altman

unread,
Sep 10, 2008, 1:04:22 PM9/10/08
to
On Sat, 06 Sep 2008 00:24:49 +0200, Boris <bor...@web.de> wrote:

>On Fri, 05 Sep 2008 18:51:05 +0200, Tim Altman <do....@spam.me.invalid>
>wrote:
>
>> [...]
>>> If I'm not mistaken this didn't happen in Opera 9.2. Is this a bug or an
>>> intentional change?
>>
>> Probably an intentional change, but it's hard to say without seeing a
>> test case. Opera 9.5 includes support for UAX #14 Line Breaking
>
>Here's a simple test case: http://www.highscore.de/browsertest/cpp.html
>If you resize Opera and try different window sizes you'll see how "C++" is
>wrapped.

Confirmed. Looking at
http://www.unicode.org/reports/tr14/#DescriptionOfProperties, plus
symbols are PR characters, which have special wrapping rules described
in http://www.unicode.org/reports/tr14/#TailorableBreakingRules LB24.
I can't fully wrap my head around the rules to figure out if Opera is
behaving correctly or not, though.

Assuming Opera is correct, I can understand how this change may be
frustrating, but it is according to the Unicode rules. Your best bet
is to add &#x2060; characters, i.e. "C&#x2060;+&#x2060;+". &#x2060;
is a word joining character described in
http://www.unicode.org/reports/tr14/#DescriptionOfProperties with the
WJ characters.

Alan Wood

unread,
Sep 11, 2008, 9:02:47 AM9/11/08
to
Tim Altman wrote:

>>I have a test file here:
>>http://www.alanwood.net/demos/bug-95067-inchi.html
>
> Your test doesn't demonstrate how a browser should wrap the text.

To see how I think the text should be wrapped, view the file in Internet
Explorer 5.5+ or Safari 2+.

Allowing a break immediately after a hyphen-minus enables the InChIs to be
viewed without needing to scroll horizontally.

0 new messages