Pablo Galindo Salgado <pablog...@gmail.com> added the comment:
We can probably leverage the unicodedata_UCD_east_asian_width_impl function in the unicodedata extension module to get the width of every character as emojis normally take 2 characters in the terminal. We could expose the necessary functions from there and use them in the _PyPegen_byte_offset_to_character_offset function ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43950> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com