Transformation of German "ß" to "SS" and Editing
Hi all, Editing code in general is unaware of German "ß" and it hits assertions or exhibit incorrect behavior whenever there's ß and case transformation. I'd like to fix this but I need your wisdom because I don't fully understand how we're transforming small ß to SS in rendering engine. Is this happening in line layout code? If so, where and when? And how can we detect this in editing code? It appears as if whenever we see "SS" in RenderText, we'd have to go check if they were generated by "ß" or not by looking at the corresponding Text node. Even if the above solution worked, it seems like we'd have to add the same hack in at least TextIterator, Position, VisiblePosition, and visible_units, which seems quite invasive. Maybe we should refactor these classes and functions to share code first? I request for your comments and suggestions. Best, Ryosuke Niwa Software Engineer Google Inc.
On Jul 8, 2011, at 1:53 PM, Ryosuke Niwa wrote:
I don't fully understand how we're transforming small ß to SS in rendering engine.
The function that does it is RenderText::transformText. It is called in RenderText::setTextInternal but also in RenderText::textWithoutTranscoding. -- Darin
participants (2)
-
Darin Adler
-
Ryosuke Niwa