5
So I was playing around with my compose key, and found some cool things, one of them being that by pressing compose + ( + alphanumeric + )
, you get that character inside a bubble, like so: ⓐ
.
Your task in this challenge is simple, to convert ordinary text to bubble letter text.
Here are the ascii chars, the bubble characters and their Unicode code points:
0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
⓪①②③④⑤⑥⑦⑧⑨ⓐⓑⓒⓓⓔⓕⓖⓗⓘⓙⓚⓛⓜⓝⓞⓟⓠⓡⓢⓣⓤⓥⓦⓧⓨⓩⒶⒷⒸⒹⒺⒻⒼⒽⒾⒿⓀⓁⓂⓃⓄⓅⓆⓇⓈⓉⓊⓋⓌⓍⓎⓏ
9450 9312 9313 9314 9315 9316 9317 9318 9319 9320 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423
Your input will contain only printable ascii characters, and if a character cannot be bubbleified, leave it as is.
This is code-golf, so shortest code in bytes wins!
Note: This is not isomorphic to my earlier challenge about small-caps conversion since unlike small-caps, bubble letters are in a mostly contiguous segment of code-points, allowing for more interesting approaches.
OK, exactly two of the letters in your title are visible on my desktop. Oddly enough, they look fine on my phone. – Dennis – 2016-09-07T03:29:22.430
Also, the last 26 characters in your table don't render at all on my desktop. You should mention which ASCII characters they map to. – Dennis – 2016-09-07T03:30:42.503
2
ASCII ends at 127. Do you mean, perhaps, Unicode code points (which are generally expressed in hexadecimal, "⓪" being U+24EA and so on)?
– Jordan – 2016-09-07T03:33:52.250@Jordan no, I said that the input will be ascii-only – Maltysen – 2016-09-07T03:44:11.237
I'm pretty sure that this is a duplicate, but I can't find it... – acrolith – 2016-09-07T03:44:31.193
@Dennis added ascii to table. – Maltysen – 2016-09-07T03:46:31.410
6I think @Jordan refers to the bubble characters and their ascii codes, which should say the bubble characters and their Unicode code points. – Dennis – 2016-09-07T03:47:18.813
Note: The numeric version of this challenge (i.e. converting numbers instead of letters to bubble) was in the sandbox somewhere, but never made it to main due to small caps. – Sp3000 – 2016-09-07T04:50:27.657
Possible duplicate of Sᴍᴀʟʟ Cᴀᴘꜱ Cᴏɴᴠᴇʀᴛᴇʀ
– Mego – 2016-09-07T06:53:40.420