-
-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patch text emojis to include utf8 word joiners #1035
Conversation
To prevent them from being affected by line breaks. I made a javascript script to make this patching process easier: https://gist.github.com/Simon-Laux/794ada18754eca1db8301d30c127e2a3
It shouldn't break anything, but keep in mind I did this edit in the web editor so I couldn't test if it still compiles. |
tbh, i am this stuff is processed through so many instances - i can easily imagine a smily is shown in some mua as :▊-▊) then. exchanging linebreak display problems to other display problems. but it is not only display-wise: we support android down to version 4, and there are already lots of problems with unicode, i would not call for more troubles. quote form dc_wrapper.c: on KitKat a simple "SMILING FACE WITH SMILING EYES" (U+1F60A, UTF-8 F0 9F 98 8A) will let the app crash ... and this is only one example. i do not say that we can never do that, but this would need more testing and evaluating. but: unicode.org says to this character: confuse: none |
one thing to add: i assume this is introduced on desktop? maybe we can evaluate if problems arise there and reopen the pr at a later point. |
we don't have text emojis in desktop yet. |
well, old standards are no reason for things not to fail. i think these word-joiners solve a pretty tiny problem with the potential to raise much larger ones. might also be that there is no problem at all, though. as said, maybe we can go for them later on, but then this would need some more exploration. and maybe not start on android with that, where older versions are known to have huge unicode problems. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe closing was a bit hash. i just want to make sure this does not gets merged before further exploration, at least with some larger mua and old android versions.
but i do no see this as a high priority.
I 'll test that on Android 4.4 now |
Hm, it seems not to break anything on an old device, but is also has no visible effect in comparison to the former implementation |
k, i think we close that for now. also talked with @Jikstra about the need and possible side-effects - as mentioned, they may be more on the other machines on other muas etc. i think this is nothing we should target just now. |
They are people that want to have it, another solution could be to adjust the input field, so that you can see that you're text emoji would break before sending it. Also what can we do about muas that don't support Unicode?
@cyBerta how should it break with no spaces in between? We could add zero width spaces in front to solve that I would Imagine... Also the emoji you tested doesn't need the wordjoiners because it's glued together anyway a real example would be see https://support.delta.chat/t/dont-brake-text-based-emoticons/374 for the forum discussion and why some folks want that. CC @adbenitez |
sure, but this is only one perspective. only precaution, of course, however, there are some serious concerns mentioned above wrt maintainability and potential problems with other messengers and clients, based upon known utf-8 problems in the past. we have to do at least some testing before merging this pr. not with delta, but with other mua,. and in delta-android, there are tons of android-utf-8 problems, just now at #1065 as mentioned, we can figure that out these things at some points, but, tbh, i do not want to dive into that just now. |
just did a quick duckduckgo'in: this is a typical issue i am thinking about: SamsungInternet/support#3 - Samsung, Android 6 - here in the browsers, but this may easily cause problems somewhere else. |
To prevent them from being affected by line breaks.
I made a javascript script to make this patching process easier: https://gist.github.com/Simon-Laux/794ada18754eca1db8301d30c127e2a3