Backing out fix for bug 192088, which caused regressions for Persian and Indic scripts. r=gisburn, sr=roc+moz, a=asa.

This commit is contained in:
smontagu%netscape.com 2003-05-20 18:19:09 +00:00
Родитель b179db4271
Коммит ecf13abb51
2 изменённых файлов: 0 добавлений и 16 удалений

Просмотреть файл

@ -1070,14 +1070,6 @@ nsTextTransformer::GetNextWord(PRBool aInWord,
if (NeedsArabicShaping()) {
DoArabicShaping(result, wordLen, aWasTransformed);
}
else {
// We need to strip zero-width joiners and non-joiners even when not
// doing Arabic shaping, in order to catch cases where these
// characters appear in preshaped text (Bug 192088)
// We can't strip them any earlier, because they affect the results
// of the Arabic shaping algorithm.
StripZeroWidthJoinControls(result, result, wordLen, aWasTransformed);
}
if (NeedsNumericShaping()) {
DoNumericShaping(result, wordLen, aWasTransformed);
}

Просмотреть файл

@ -1070,14 +1070,6 @@ nsTextTransformer::GetNextWord(PRBool aInWord,
if (NeedsArabicShaping()) {
DoArabicShaping(result, wordLen, aWasTransformed);
}
else {
// We need to strip zero-width joiners and non-joiners even when not
// doing Arabic shaping, in order to catch cases where these
// characters appear in preshaped text (Bug 192088)
// We can't strip them any earlier, because they affect the results
// of the Arabic shaping algorithm.
StripZeroWidthJoinControls(result, result, wordLen, aWasTransformed);
}
if (NeedsNumericShaping()) {
DoNumericShaping(result, wordLen, aWasTransformed);
}