Opened 2 years ago

Closed 2 years ago

#17593 closed bug (fixed)

WebPositive soft hyphen draws a little box character

Reported by: thebuck Owned by: madmax
Priority: low Milestone: R1/beta4
Component: Applications/WebPositive Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

The control character U+00AD SOFT HYPHEN, written in HTML as ­, ­ or ­ does work as expected (breaks word when neccessary showing a dash), but always renders a little empty box additionally (without taking up extra space for it).

ThisLongLineIsATestcaseAndContainsSoftHyphensHe­reAndLaterOnAsWellThatIsHe­reAndLaterOnAsWellThatIsHe­reAndLaterOnAsWellThatIsHe­reAndLaterOnAsWellThatIsHe­reAndLaterOnAsWellThatIsHe­re

Attachments (2)

stylededit.png (3.7 KB ) - added by thebuck 2 years ago.
StyledEdit treats it like ASCII-minus on hrev55788, x86_64, QEMU
webpositive.png (2.3 KB ) - added by thebuck 2 years ago.
WebPositive draws an extra box on hrev55788, x86_64, QEMU

Download all attachments as: .zip

Change History (6)

comment:1 by nephele, 2 years ago

Can you provide a screenshot? and also does this differ from rendering of other native applications?

by thebuck, 2 years ago

Attachment: stylededit.png added

StyledEdit treats it like ASCII-minus on hrev55788, x86_64, QEMU

by thebuck, 2 years ago

Attachment: webpositive.png added

WebPositive draws an extra box on hrev55788, x86_64, QEMU

comment:2 by madmax, 2 years ago

Owner: changed from pulkomandy to madmax
Status: newassigned

comment:3 by madmax, 2 years ago

Webkit "deletes" the soft hyphen and other characters that become invisible by substituting them with the deleted glyph (0xffff), which is right when processing text at the font glyph level. That is later sent to the app server as a Unicode string, though. I'm not sure 0xffff should be there, but at least it's conformant. That code point is defined in Unicode as a noncharacter, fonts don't have a glyph for that and we use the fallback character to represent it.

https://review.haiku-os.org/c/haiku/+/4984 adds noncharacters to the set of code points that get ignored if a font does not have glyphs for them.

comment:4 by pulkomandy, 2 years ago

Milestone: UnscheduledR1/beta4
Resolution: fixed
Status: assignedclosed

Patch merged in hrev55896.

Note: See TracTickets for help on using tickets.