mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-13 19:27:33 +01:00
Bangle.js: add more non-ascii characters which can be converted to ASCII equivalents.
This helps for Chinese where words would normally break on these chars anyway - based on https://forum.espruino.com/conversations/391391
This commit is contained in:
parent
a2a145f8d2
commit
1aadc04fd7
@ -1146,6 +1146,8 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
|
||||
// Special cases where we can just use a built-in character...
|
||||
// Based on https://op.europa.eu/en/web/eu-vocabularies/formex/physical-specifications/character-encoding
|
||||
if (ch=='–' || ch=='‐' || ch=='—') ch='-';
|
||||
else if (ch =='‚' || ch==',') ch=',';
|
||||
else if (ch =='。') ch='.';
|
||||
else if (ch=='‘' || ch=='’' || ch =='‚' || ch=='‛' || ch=='′' || ch=='ʹ') ch='\'';
|
||||
else if (ch=='“' || ch=='”' || ch =='„' || ch=='‟' || ch=='″') ch='"';
|
||||
// chars which break words up
|
||||
|
Loading…
x
Reference in New Issue
Block a user