https://bugs.documentfoundation.org/show_bug.cgi?id=138591
--- Comment #4 from Justin L <[email protected]> ---
This might be VERY complex to do completely correctly, since there does not
seem to be a single standard way of marking combining combinations of emojis.
The latest version of the "Unicode Emoji" spec can be found at
http://www.unicode.org/reports/tr51/.
Having glanced through the spec, I imagine adding some kind of logic like:
if ( maInput.getLength() == 0 )
bIsEmojiSequence = isEmoji();
if ( isEmoji_modifier_base() )
bHaveEmoji_modifier_base = true;
const nZWJ == fe0f; //Zero Width Joiner character
if ( bIsEmojiSquence )
{
if ( next == nZWJ || (isEmoji(next) && !bHaveEmoji_modifier_base) )
then continue to accept new characters.
}
It looks like this will require some low-level identification of emoji, since
there is no classification yet such as
::com::sun::star::i18n::UnicodeType::EMOJI
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs