How to create certain two-character items with the Unicode Hex keyboard

input-sourcekeyboardunicode

With Unicode Hex Input, I can put glyphs with Unicode values of more than two bytes into my documents by entering four bytes with leading zeroes.

Flag emoji (and other things) are defined as the proper rendering of two adjacent five-nibble codes. When I type them into TextEdit, they do not combine. Other two-character items will render the first item when it is complete, but change it when the second is complete.

These particular items just show two unknown boxes when their codes are typed. But if I copy/paste the same flag from elsewhere, it is rendered correctly. When the source was a web page, "show source" gives an actual flag and not a numeric entity.

Best Answer

In my TextEdit in 10.13, I can get the French flag, which is 1f1eb 1f1f7, by typing the utf-16 for each of these separately with the option key held down, and they do combine:

D83CDDEB D83CDDF7 ??

(To find out character components of glyphs that display as a unit you can use the app UnicodeChecker)