Consider using input methods for entering typed text
From recent HN discussion https://news.ycombinator.com/item?id=21384596
macOS where Latin characters are input by a Latin input system
For decades I've been saying that all text input should go through OS-level IMEs (input method editors). For more complex scripts, the need is obvious, but even writing in English, we can get great benefits from a system that expands abbreviations, replaces easy-to-type sequences with proper Unicode chars, runs little scripts and inserts the output, gives you quick dictionary/thesaurus lookups, gives you emmet-style powers, etc., whenever you're writing and in any app.
Using input methods to actually type text in applications that support the protocol corresponds better to the semantic meaning of entering text. Since we'll do that for the on-screen keyboard, we'll have the code paths exercised enough to be able to push input from physical keyboards there too, maybe opening the door for some innovation.