Closed
Bug 117041
Opened 23 years ago
Closed 22 years ago
zwsp show up as [zwsp] on linux
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.1alpha
People
(Reporter: ftang, Assigned: smontagu)
References
()
Details
Attachments
(3 files, 2 obsolete files)
(deleted),
image/png
|
Details | |
(deleted),
image/jpeg
|
Details | |
(deleted),
patch
|
smontagu
:
review+
smontagu
:
superreview+
|
Details | Diff | Splinter Review |
On my linux, it use the 10646 font from the fot server to display arabic page.
we display the zwsp as [zwsp] in the text.
We may have more problem with the following code points:
cp1256 windows arabic
0x9d zwnj
0x9e zwj
0xfd lrzwmk
oxfe rlzwmk
cp1255 windows hebrew
0xfd lrzwmk
oxfe rlzwmk
Reporter | ||
Comment 1•23 years ago
|
||
not quite sure where are these zwsp (U+200B) come from . Could be generated from
ICU's arabic shapper.
Reporter | ||
Comment 2•23 years ago
|
||
Reporter | ||
Comment 3•23 years ago
|
||
Reporter | ||
Comment 4•23 years ago
|
||
to reproduce this, you need to first take the ISO10646 font fix in bug 116136
Reporter | ||
Comment 5•23 years ago
|
||
the reason it depend on 116136 is we need ISO10646 support to use with Arabic font.
Depends on: 116136
Reporter | ||
Comment 6•23 years ago
|
||
Reporter | ||
Comment 7•23 years ago
|
||
bstell, can you r= this one ?
Assignee | ||
Comment 8•23 years ago
|
||
*** Bug 115229 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 9•23 years ago
|
||
Since this already has a patch, I have duped bug 115229 to here and not vice
versa, and will repeat my comment from there:
>See http://bugzilla.mozilla.org/show_bug.cgi?id=75026#c34 and
>http://lxr.mozilla.org/mozilla/source/intl/unicharutil/src/nsBidiUtilsImp.cpp#410
>The zero-width space character is added in Arabic shaping to prevent problems
>that were caused when the shaped buffer was smaller than the original. If it
>appears as a renderable glyph in some fonts, we need to find a way to remove it
>without regressing bug 75026.
I think we should hold off on this patch for the time being, because a correct
solution for the bugs listed in bug 115705 should remove this problem anyway.
Reporter | ||
Comment 11•23 years ago
|
||
I don't see specific details in bug 115705 . ok, I will hold this patch.
Status: NEW → ASSIGNED
Comment 12•23 years ago
|
||
This bug is marked as depending on bug 116136.
Can/have we verified this by turning off AASB?
To verify this would someone disable AASB by changing this line in the unix.js
file by to false:
pref("font.scale.aa_bitmap.enable", true);
Comment 13•23 years ago
|
||
I modified unix.js as suggested, but the problem did not go away. Using Linux
trunk build 2002-01-27-06.
Comment 14•23 years ago
|
||
Since the conversion happens before the drawing is done it looks to me like
the code in attachment 62822 [details] [diff] [review] removes the chars from the data before they
can be used for shaping.
Is this right?
Assignee | ||
Comment 15•23 years ago
|
||
No, I don't think so. The shaping should have already been performed before any
calls to GetWidth or DrawString, and control characters taken into account.
Currently it isn't always, which is what the dependencies of bug 115705 are about.
Reporter | ||
Comment 16•23 years ago
|
||
push this to m1.1 and give to shanjian
Assignee: ftang → shanjian
Status: ASSIGNED → NEW
Target Milestone: --- → mozilla1.1
Assignee | ||
Comment 18•23 years ago
|
||
*** Bug 141496 has been marked as a duplicate of this bug. ***
Comment 19•23 years ago
|
||
reassign to simon, he is more familiar with the problem.
Assignee: shanjian → smontagu
Status: ASSIGNED → NEW
Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 20•23 years ago
|
||
In fact, the fix for this is trivial, as long as it isn't checked in until after
bug 138097.
Assignee | ||
Comment 21•23 years ago
|
||
Attachment #62822 -
Attachment is obsolete: true
Reporter | ||
Comment 22•22 years ago
|
||
Comment on attachment 82564 [details] [diff] [review]
Fix
r=ftang. It is right. This is exactly the way I wrote it several years ago in
the nsFontMetricsWin.cpp
Attachment #82564 -
Flags: review+
Comment 23•22 years ago
|
||
Comment on attachment 82564 [details] [diff] [review]
Fix
>Index: content/shared/src/nsBidiUtils.cpp
>===================================================================
>RCS file: /cvsroot/mozilla/content/shared/src/nsBidiUtils.cpp,v
>retrieving revision 3.1
>diff -u -r3.1 nsBidiUtils.cpp
>--- content/shared/src/nsBidiUtils.cpp 19 Feb 2002 20:41:02 -0000 3.1
>+++ content/shared/src/nsBidiUtils.cpp 18 Apr 2002 20:02:06 -0000
>@@ -289,7 +289,6 @@
> for(i=0;i<8;i++) {
> if(key == gArabicLigatureMap[i]) {
> done = PR_TRUE;
>- *lDest++ = 0x200B;//ZERO WIDTH SPACE
> *lDest++ = 0xFEF5 + i;
> lSrc+=2;
Do you still want to increment lSrc by two? If so, please explain why.
Assignee | ||
Comment 24•22 years ago
|
||
We are mapping two characters in the source, lam and alef, to one lam-alef
ligature in the output, so |lSrc+=2| is correct.
(Being wise after the event is always easier: in my first version I thought
exactly the same as you and changed it to increment by 1, with the result that
an extra alef character appeared after each lam-alef)
Comment 25•22 years ago
|
||
Comment on attachment 82564 [details] [diff] [review]
Fix
sr=waterson. a comment to that effect would be nice. :-)
Attachment #82564 -
Flags: superreview+
Assignee | ||
Comment 26•22 years ago
|
||
Attachment #82564 -
Attachment is obsolete: true
Assignee | ||
Updated•22 years ago
|
Attachment #86901 -
Flags: superreview+
Attachment #86901 -
Flags: review+
Assignee | ||
Updated•22 years ago
|
Attachment #82564 -
Flags: superreview+
Attachment #82564 -
Flags: review+
Assignee | ||
Comment 27•22 years ago
|
||
Checked in to trunk.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Component: Layout: BiDi Hebrew & Arabic → Layout: Text
QA Contact: zach → layout.fonts-and-text
You need to log in
before you can comment on or make changes to this bug.
Description
•