Closed Bug 165881 Opened 22 years ago Closed 16 years ago

Combining diacritics don't work

Categories

(Core :: Graphics, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: hsivonen, Unassigned)

References

Details

(Keywords: intl)

Attachments

(5 files, 1 obsolete file)

Build ID: 2002083017 (on OS X 10.2)

Reproducible: Always

Steps to reproduce:
1) Load the test case attachment (upcoming)

Actual results:
Mozilla displays an 'R' followed by an ogonek.

Expected results:
Expected Mozilla to display the 'R' and ogonek combined the way OmniWeb and
TextEdit do.

Additional info:
Since there is no precomposed character LATIN CAPITAL LETTER R WITH OGONEK, it
is appropriate to send this particular combination as non-precomposed. See the
CharMod draft: http://www.w3.org/TR/charmod/
Attached file test case
Supporting combining diacritics requires the base character and the combining
marks to be passed to ATSUI together, so the one-char-at-a-time ATSUI fallback
won't do.
Depends on: atsui
It seems to work if you explicitly specify a font such as TITUS Cyberbit Basic
or Arial Unicode MS, but it's strange that it doesn't work if I don't, since
those fonts are defined as my default Unicode fonts.
>Supporting combining diacritics requires the base character and the combining
>marks to be passed to ATSUI together
I better assign to nhotta. cc ftang 
Assignee: yokoyama → nhotta
Keywords: intl
QA Contact: ruixu → ylong
Reassign to ftang.
Assignee: nhotta → ftang
assign
Status: NEW → ASSIGNED
This bug is quite old, but it seems the problem still persists.
Frank, did you have any luck in investigating ?

I will attach a file that shows a greek nu with a diacritic line above (should
be the sign for an anti-neutrino). On Mozilla 1.7 on Fedora Core 2 (Xorg) the
line is right of the nu. Same mozilla, but on windows it shows the line above
the nu.
-> to default owner (rather than ftang's WONTFIX)
Assignee: ftang → smontagu
Status: ASSIGNED → NEW
Attached file Another test case.
I ran into this bug myself just now. Here is a small html file that exemplifies the problem. Firefox 2.0 (rv:1.8.1), Mac OS 10.4.8.
Comment on attachment 265593 [details]
Displays all of the combining diacritical mark codes for testing

0300: a&#768;<br />
0301: a&#769;<br />
0302: a&#770;<br />
0303: a&#771;<br />
0304: a&#772;<br />
0305: a&#773;<br />
0306: a&#774;<br />
0307: a&#775;<br />
0308: a&#776;<br />
0309: a&#777;<br />
030A: a&#778;<br />
030B: a&#779;<br />
030C: a&#780;<br />
030D: a&#781;<br />
030E: a&#782;<br />
030F: a&#783;<br />
0310: a&#784;<br />
0311: a&#785;<br />
0312: a&#786;<br />
0313: a&#787;<br />
0314: a&#788;<br />
0315: a&#789;<br />
0316: a&#790;<br />
0317: a&#791;<br />
0318: a&#792;<br />
0319: a&#793;<br />
031A: a&#794;<br />
031B: a&#795;<br />
031C: a&#796;<br />
031D: a&#797;<br />
031E: a&#798;<br />
031F: a&#799;<br />
0320: a&#800;<br />
0321: a&#801;<br />
0322: a&#802;<br />
0323: a&#803;<br />
0324: a&#804;<br />
0325: a&#805;<br />
0326: a&#806;<br />
0327: a&#807;<br />
0328: a&#808;<br />
0329: a&#809;<br />
032A: a&#810;<br />
032B: a&#811;<br />
032C: a&#812;<br />
032D: a&#813;<br />
032E: a&#814;<br />
032F: a&#815;<br />
0330: a&#816;<br />
0331: a&#817;<br />
0332: a&#818;<br />
0333: a&#819;<br />
0334: a&#820;<br />
0335: a&#821;<br />
0336: a&#822;<br />
0337: a&#823;<br />
0338: a&#824;<br />
0339: a&#825;<br />
033A: a&#826;<br />
033B: a&#827;<br />
033C: a&#828;<br />
033D: a&#829;<br />
033E: a&#830;<br />
033F: a&#831;<br />
0340: a&#832;<br />
0341: a&#833;<br />
0342: a&#834;<br />
0343: a&#835;<br />
0344: a&#836;<br />
0345: a&#837;<br />
0346: a&#838;<br />
0347: a&#839;<br />
0348: a&#840;<br />
0349: a&#841;<br />
034A: a&#842;<br />
034B: a&#843;<br />
034C: a&#844;<br />
034D: a&#845;<br />
034E: a&#846;<br />
034F (non-visible): a&#847;<br />
0350: a&#848;<br />
0351: a&#849;<br />
0352: a&#850;<br />
0353: a&#851;<br />
0354: a&#852;<br />
0355: a&#853;<br />
Comment on attachment 265593 [details]
Displays all of the combining diacritical mark codes for testing

0300: a&#768;<br />
0301: a&#769;<br />
0302: a&#770;<br />
0303: a&#771;<br />
0304: a&#772;<br />
0305: a&#773;<br />
0306: a&#774;<br />
0307: a&#775;<br />
0308: a&#776;<br />
0309: a&#777;<br />
030A: a&#778;<br />
030B: a&#779;<br />
030C: a&#780;<br />
030D: a&#781;<br />
030E: a&#782;<br />
030F: a&#783;<br />
0310: a&#784;<br />
0311: a&#785;<br />
0312: a&#786;<br />
0313: a&#787;<br />
0314: a&#788;<br />
0315: a&#789;<br />
0316: a&#790;<br />
0317: a&#791;<br />
0318: a&#792;<br />
0319: a&#793;<br />
031A: a&#794;<br />
031B: a&#795;<br />
031C: a&#796;<br />
031D: a&#797;<br />
031E: a&#798;<br />
031F: a&#799;<br />
0320: a&#800;<br />
0321: a&#801;<br />
0322: a&#802;<br />
0323: a&#803;<br />
0324: a&#804;<br />
0325: a&#805;<br />
0326: a&#806;<br />
0327: a&#807;<br />
0328: a&#808;<br />
0329: a&#809;<br />
032A: a&#810;<br />
032B: a&#811;<br />
032C: a&#812;<br />
032D: a&#813;<br />
032E: a&#814;<br />
032F: a&#815;<br />
0330: a&#816;<br />
0331: a&#817;<br />
0332: a&#818;<br />
0333: a&#819;<br />
0334: a&#820;<br />
0335: a&#821;<br />
0336: a&#822;<br />
0337: a&#823;<br />
0338: a&#824;<br />
0339: a&#825;<br />
033A: a&#826;<br />
033B: a&#827;<br />
033C: a&#828;<br />
033D: a&#829;<br />
033E: a&#830;<br />
033F: a&#831;<br />
0340: a&#832;<br />
0341: a&#833;<br />
0342: a&#834;<br />
0343: a&#835;<br />
0344: a&#836;<br />
0345: a&#837;<br />
0346: a&#838;<br />
0347: a&#839;<br />
0348: a&#840;<br />
0349: a&#841;<br />
034A: a&#842;<br />
034B: a&#843;<br />
034C: a&#844;<br />
034D: a&#845;<br />
034E: a&#846;<br />
034F (non-visible): a&#847;<br />
0350: a&#848;<br />
0351: a&#849;<br />
0352: a&#850;<br />
0353: a&#851;<br />
0354: a&#852;<br />
0355: a&#853;<br />
Attachment #265593 - Attachment is obsolete: true
This is the official Unicode listing of the combining diacritical marks (posting is permitted by http://www.unicode.org/copyright.html ).

As comparison with the updated test file should show, the diacritical marks are:
1) frequently a bit off kilter (e.g., placed to the side when they should be centered)
2) some of the marks are missing entirely: 332, 333
3) 350-355 show up as question marks (though I'm not sure whether that is due to requiring combination with the Uralic alphabet or not)
4) others appear to have a wrong mark (31D, 31F, 325, 33B)
5) others seem they may be too small (326 and 329)
6) and this one seems just slightly off (32C).
This seems much better on the trunk, but there are still a number of problems and a few that are rendering as boxes-after where they at least rendered as characters-after on the 1.8 branch.
Blocks: 386573
The only issue that I see in attachment 265595 [details] is that many marks are shifted to the right of the base character. Repeating my comment from bug 386573: I think the broken cases are whenever there is no precomposed character equivalent to the base+diacritic pair. For example, in 
data:text/html,<p>a&#x30b; e&#x30b; i&#x30b; o&#x30b; u&#x30b;</p>
the double acute is correctly placed only on the o and the u, which match U+0151 LATIN SMALL LETTER O WITH DOUBLE ACUTE and U+0171 LATIN SMALL LETTER U WITH DOUBLE ACUTE.
Assignee: smontagu → nobody
Component: Internationalization → GFX: Thebes
Flags: blocking1.9?
QA Contact: amyy → thebes
Minusing.  Not a regression.  It's a feature that's never worked on the mac.  Per discussion with Vlad and Stuart.  Marking wanted-1.9.
Flags: blocking1.9? → blocking1.9-
Whiteboard: [wanted-1.9]
Sorry for the very delayed reply, but in response to Simon...

x332 and x333 (the first of which I happen to need) don't show their marks at all, and everything from x350 to x36F are showing up as question marks. Compare with the chart at http://www.unicode.org/charts/PDF/U0300.pdf
Oh, and the problem, at least in my case, at least, is in Windows... (sorry I hadn't clarified)
Argh... sorry again, I do see it is working in Firefox 3, albeit with the characters being shifted (finally got around to figuring out how to run two profiles at once)... Nice work...
Flags: wanted1.9+
Whiteboard: [wanted-1.9]
The remaining problem here, which smontagu identified in comment 18, now has bug 425650 to cover it specifically.

Closing this bug WFM on trunk thanks to all the rewrites.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: