Skip to content

Instantly share code, notes, and snippets.

@Maltysen
Created October 12, 2015 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Maltysen/70f56bdbaa82f308cb03 to your computer and use it in GitHub Desktop.
Save Maltysen/70f56bdbaa82f308cb03 to your computer and use it in GitHub Desktop.
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 ʏ ᴢ
##Clarifications
- 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