Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Portable Small Caps Challenge Spec
*Inspired by @CᴏɴᴏʀO'Bʀɪᴇɴ's username.*
*Also thanks to @Doorknob for showing me the existence of `ǫ` and `x`.*
Small Caps are pretty cool. They are unicode characters that replace small letters. They look just like the capital ones, but smaller, and look really official. Your task is to write a program that converts regular text into small caps.
Here is a list of the unicode characters for small caps:
ᴀ ʙ ᴄ ᴅ ᴇ ꜰ ɢ ʜ ɪ ᴊ ᴋ ʟ ᴍ ɴ ᴏ ᴘ ǫ ʀ ꜱ ᴛ ᴜ ᴠ ᴡ x ʏ ᴢ
- Regular caps remain regular caps and so do punctuations, spaces, etc.
- Input can be multiple lines.
- This is [tag:code-golf], so shortest code in **bytes** wins!
##Test Cases
Hello World -> Hᴇʟʟᴏ Wᴏʀʟᴅ
abcdefghijklmnopqrstuvwxyz -> ᴀʙᴄᴅᴇꜰɢʜɪᴊᴋʟᴍɴᴏᴘǫʀꜱᴛᴜᴠᴡxʏᴢ
Welcome to Programming Puzzles and Code Golf Stackexchange!
It is a website ->
Wᴇʟᴄᴏᴍᴇ ᴛᴏ Pʀᴏɢʀᴀᴍᴍɪɴɢ Pᴜᴢᴢʟᴇꜱ ᴀɴᴅ Cᴏᴅᴇ Gᴏʟꜰ Sᴛᴀᴄᴋᴇxᴄʜᴀɴɢᴇ!
Iᴛ ɪꜱ ᴀ ᴡᴇʙꜱɪᴛᴇ.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.