Revert term/reading string normalization due to undesirable changes (#1959)
This commit is contained in:
parent
076170cc38
commit
25fe3ba514
@ -587,10 +587,12 @@ class DictionaryImporter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_normalizeTermOrReading(text) {
|
_normalizeTermOrReading(text) {
|
||||||
try {
|
// Note: this function should not perform String.normalize on the text,
|
||||||
return text.normalize('NFC');
|
// as it will characters in an undesirable way.
|
||||||
} catch (e) {
|
// Thus, this function is currently a no-op.
|
||||||
|
// Example:
|
||||||
|
// - '\u9038'.normalize('NFC') => '\u9038' (逸)
|
||||||
|
// - '\ufa67'.normalize('NFC') => '\u9038' (逸 => 逸)
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user