1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-08-19 22:00:53 +02: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:
Gordon Williams 2023-11-06 14:42:24 +00:00
parent a2a145f8d2
commit 1aadc04fd7

View File

@ -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