The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

Problems rendering soft hyphens

Forums » Opera for Windows/Mac/Linux » Opera browser

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

22. October 2011, 17:02:57

Grinsekatze

Posts: 4

Problems rendering soft hyphens

Since the bug wizard wasen't working I'll post it here:

3 steps
1. Create a text, in HTML, with shy/soft hyphens in it using ­ code(­)
2. set style="text-align:justify" and specify a width e.g. style="text-align:justify;width:200px", I'd advise to also give it a background colour or a border to see the effect better
3. now open the page in Opera and you'll see the error

I made a good example here:
-> http://www.middleton.de/kai/statics/softHyphenDemo.html



Expected to happen
That the justified text should end correctly at the end of its parent element(e.g. a <div>), with the hyphens being inside the parent element.



Actually happens
The hyphens are out side the parent element of the text and sometimes the are rendering problems, also the text sometimes gets rendered incorrectly, meaning the text dose not end at the end of the line but before, although it is justified.

22. October 2011, 18:17:51

Pesala

Reclining Buddha

Posts: 27343

Confirmed, on both counts. The bug wizard is broken and the soft hyphens are outside the border.

Without the border It looks better that way — its called "Optical Margin Alignment" — but I guess its a bug. It would not look good with a border even if there was some padding inside the border.
Skins Tips Buttons Backup Security User Scripts Language Forums
Browser JS Changelogs Opera Next Dragonfly Bugs FTP
My Website Opera Review My Fonts IrfanView Search Downloads
Opera 11.64 on Windows 7 64-bit • AMD A10-6800K, 8 Gbyte RAM specs idea
Rules of Conduct and Posting RulesPlease Don't ShoutEditing PostsOpera Config Links

23. October 2011, 14:33:12

Grinsekatze

Posts: 4

@Pesala: Thanks for first bit!
But what do you mean about the border, you are talking about the border in the 4th example on my demo page aren't you?
That border is just there to emphasize that the hyphens are outside of there parent element.
Or what did you mean.

Originally posted by Pesala:

Without the border It looks better that way — its called "Optical Margin Alignment" — but I guess its a bug. It would not look good with a border even if there was some padding inside the border.

Forums » Opera for Windows/Mac/Linux » Opera browser