Hi all, I'm looking for a way to catch any emoji that's used amongst regular text. This is so that I can create an XML file to import into InDesign. Then I simply find/replace any emoji found and convert the character to an emoji font so it can be printed.
I've made a canonize file with over 1,000 emoji, separated by a tab, then the decimal equivalent.
This works great.
For example:
This emoji is found in the text somewhere:
👦
and is changed to:
👦
It also works for skintone emoji where the decimal code can be repeated.
This emoji is found in the text somewhere:
👦🏻
and is changed to:
👦🏻
However, as soon as I wrap the code (so it's easier to find/change in InDesign), the duplicate codes cause a problem.
For example:
Is changed to this:
(ef)&\#128102;(\ef)
BUT...
This:
👦🏻
Is changed to this:
(ef)👦(\ef)(ef)🏻(\ef)
Note the extra (\ef)(ef) in the middle.
Now I could use a find/replace to remove that bit. But what if there are two different emoji next to each other? I'm replacing one problem with another.
Is there a way round this?
Many thanks if anyone can help.