1
Challenge
Your program needs to take an input of a string, where the string has only letters, no special characters, no numbers, and no accents (they look all weird).
Then, your program should output a superscript version.
Example
Input: hello world
Output: ʰᵉᶫᶫᵒ ʷᵒʳᶫᵈ
Test Cases
hello - ʰᵉᶫᶫᵒ
code - ᶜᵒᵈᵉ
golf - ᵍᵒᶫᶠ
asdf - ᵃˢᵈᶠ
qwerty - ᑫʷᵉʳᵗʸ
abcdefghijklmnopqrstuvwxyz - ᵃᵇᶜᵈᵉᶠᵍʰᶦʲᵏᶫᵐᶰᵒᵖᑫʳˢᵗᵘᵛʷˣʸᶻ
Help
If you need help understanding check out this website, it's a translator: http://txtn.us/tiny-text
Code Golf
This is a code golf, so the shortest code wins!
Good luck!
Edits
Edit #1: There will be no caps, since I just realized they look weird.
2Will they be all lowercase? – ASCII-only – 2017-05-29T10:47:16.193
Related – Beta Decay – 2017-05-29T10:48:11.360
@BetaDecay They're related but this is superscript – Noah Cristino – 2017-05-29T10:49:37.733
@BetaDecay Oops, sorry. – Noah Cristino – 2017-05-29T10:51:42.287
@ASCII-only I changed my mind, see edit, all lowercase. – Noah Cristino – 2017-05-29T10:53:27.333
tr
istr
, and changing the second argument from small caps to superscript doesn't make a fundamentally different question. – Peter Taylor – 2017-05-29T11:33:02.127"output superscript version" - output where? If I am not mistaken, there is no even such a thing as unicode latin superscript letters. If so this does not make sense for text output, and should be tagged
graphical-output
orbrowser
. – Mikhail V – 2017-05-29T13:52:59.587Also in your examples I see letters I, L, N, as caps and q as normal size, so it does not work in Firefox. – Mikhail V – 2017-05-29T13:59:28.867
@MikhailV it's unicode: https://en.wikipedia.org/wiki/Unicode_subscripts_and_superscripts
– Noah Cristino – 2017-05-29T15:08:17.103yes that's what I am saying " the Unicode standard contains superscript and subscript versions of a subset of Latin ... these characters come from different ranges, they may not be of the same size and position, depending on the typeface" So there is no standard latin superscript in unicode. – Mikhail V – 2017-05-29T15:18:52.947
@MikhailV but it's still in unicode – Noah Cristino – 2017-05-29T15:19:45.480