3 ms·
“In addition it supports Unicode Emoji characters in really native way.” I wish it would go into greater detail here. I’m unclear what “really native” implies,
by travisgriggs 3y ago
“In addition it supports Unicode Emoji characters in really native way.”
I wish it would go into greater detail here. I’m unclear what “really native” implies, as opposed to some sort of “kind of native” way?
- jjice 3y agoJust spit balling here: some sites like Twitter have their own emoji sets and I wonder if they're saying that they don't do that and instead rely on the OS's normal rendering of emojis.
- hombre_fatal 3y agoDunno, asmBB also uses an emoji font set.
- lifthrasiir 3y agoIt seems that AsmBB has absolutely no Emoji processing in its asm code, so it's more or less pass-through. Realtime chat does have emoji highlighting in its JS code (a part of the template) though: function formatEmoji(text) { var emojiRegEx = /(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/g; return text.replace(emojiRegEx, '<span class="emoji"><span>$1</span></span>'); } This probably meant to catch U+00A9, U+00AE, U+2000..3300 and U+1F000..1FBFF, which is by itself too broad, but also the regex itself is not a faithful translation. (If anyone is wondering the correct solution, just use emoji-regex [1] or more recent `/\p{RGI_Emoji}/v` pattern [2].) [1] https://unpkg.com/browse/emoji-regex/index.js https://unpkg.com/browse/emoji-regex/index.js [2] https://caniuse.com/mdn-javascript_builtins_regexp_unicodesets https://caniuse.com/mdn-javascript_builtins_regexp_unicodese...