Open mileswwatkins opened 2 years ago
Also to-do is to deal with zero-width joinder emojis and characters that consume more than one character in UCS-2-encoded messages. For example, 👩👩👦👦 is multiple emoji characters merged together into a single pictogram.
Some progress and inline documentation already exists in https://github.com/mileswwatkins/Mouse/blob/main/functions/utils.private.js
If a message is longer than the length of an SMS, modern smartphones just handle it like a single MMS. But Garmin InReach will break it up on its servers and send the message as multiple SMSs. Unfortunately, Garmin will break these up at the character level, and they may not be received in the correct order, eg:
So, paginating the message (at the word-break level) into several separate SMSs and labeling their order before sending to Garmin is highly desirable, so that even if they're received out of order they are still legible; something like: