Unicode Text Transformer
January 31, 2020 6:59 AM   Subscribe

Unicode Text Transformer
This little web toy converts latin text into unicode variants. It translates spaces and some punctuation into full-width variants when the glyphs in the variant are generally square-ish, otherwise it leaves them alone. π”œπ”¬π”² π” π”žπ”« 𝔲𝔰𝔒 𝔦𝔱 𝔱𝔬 π”ͺπ”žπ”¨π”’ 𝔱𝔒𝔡𝔱 𝔩𝔦𝔨𝔒 𝔱π”₯𝔦𝔰. 𝓐𝓷𝓭 𝓽𝓱𝓲𝓼.
Role: programmer
posted by Sokka shot first (11 comments total) 4 users marked this as a favorite

The "script" variant seems to have problems if the first letter is a lower case g. It's fine if g appears elsewhere, and no other initial letters seem to give it trouble.
posted by jedicus at 8:52 AM on January 31


The "script" g looks weird for reasons that to my knowledge are outside of my control. Unicode is a very, very strange place.
posted by Sokka shot first at 9:37 AM on January 31 [1 favorite]


The input "george" uses the weird g twice, but "king george" looks fine. Very strange!

Anyway, a neat toy!
posted by jedicus at 10:01 AM on January 31


Hmm, I see the odd G in all of those examples. What browser/OS combination are you using, out of curiosity?
posted by Sokka shot first at 10:24 AM on January 31


Chrome on Mac OS 10.13. Screenshot of "king george" displaying properly.

None of the g's display properly on Safari. On Firefox, curiously, it's king george. In conclusion, Unicode is a land of contrast.
posted by jedicus at 7:23 PM on January 31 [1 favorite]


Neat!

I didn't realize that Unicode had bold and italic glyphs. I thought this might be a sneaky way to add formatting to Facebook posts – but, unfortunately, it seems that Facebook is clever enough to convert these glyphs to the normal equivalents when I paste them in.

(Most of the other glyphs I tried can be pasted into Facebook. It even works with Zalgo text, surprisingly.)
posted by escape from the potato planet at 10:06 AM on February 2


I take it back – pasting bold and italics into Facebook does work. I'm not sure why I thought it wasn't working before. (I'm seeing them in a serif font on my machine, though, which doesn't really work with Facebook's default font.)
posted by escape from the potato planet at 10:08 AM on February 2 [1 favorite]


This is nice, I made a similar tool years ago for π”Ÿπ”©π”žπ” π”¨π”©π”’π”±π”±π”’π”―. For a long time a lot of sites either filtered or mangled unicode codepoints but the rise of smilies has forced sites to accept them. β˜ƒ
posted by AndrewStephens at 10:19 AM on February 3


Completely mangles screen reader and other accessibility tools, though. Thanks for the warning header, but best not to encourage this sort of thing at all.
posted by scruss at 2:16 PM on February 4


ℂ𝕠𝕠𝕝!
posted by metasunday at 7:59 AM on February 6




« Older Generative Texts...   |   Life Modeling Facebook Group... Newer »


You are not currently logged in. Log in or create a new account to post comments.