diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-06-08 18:13:18 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-06-08 18:13:18 +0300 |
commit | 0153e4dc294edcb52ef6579e38fdc5f6ae713b2d (patch) | |
tree | 2b79b4fc47f23eef7029d481a4ccd3833705ed7a /src/gmdocument.c | |
parent | a30a7d287b25c15c8f4413bcfb4979d42c215218 (diff) |
Normalize (NFC) document/input field content
The text renderer has problems with composites so normalizing the text (using Unicode normalization form C) yields better results for now.
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r-- | src/gmdocument.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c index ad8616a3..b95f85e7 100644 --- a/src/gmdocument.c +++ b/src/gmdocument.c | |||
@@ -1488,6 +1488,7 @@ static void normalize_GmDocument(iGmDocument *d) { | |||
1488 | appendCStr_String(normalized, "\n"); | 1488 | appendCStr_String(normalized, "\n"); |
1489 | } | 1489 | } |
1490 | set_String(&d->source, collect_String(normalized)); | 1490 | set_String(&d->source, collect_String(normalized)); |
1491 | normalize_String(&d->source); /* NFC */ | ||
1491 | } | 1492 | } |
1492 | 1493 | ||
1493 | void setUrl_GmDocument(iGmDocument *d, const iString *url) { | 1494 | void setUrl_GmDocument(iGmDocument *d, const iString *url) { |