#Introduction
Introduction
Try to convert words to two different unicode fonts.
#Challenge
Challenge
Your task is to transform your input string into the ๐ฌ๐บ๐๐ ๐ฒ๐บ๐๐ and ๐ ๐ฎ๐๐ต ๐ฆ๐ฎ๐ป๐ ๐๐ผ๐น๐ฑ unicode characters.
All uppercase words should become lowercase ๐ ๐ฎ๐๐ต ๐ฆ๐ฎ๐ป๐ ๐๐ผ๐น๐ฑ words.
- For Example:
WORD
->๐๐ผ๐ฟ๐ฑ
All lowercase words should become ๐ฌ๐บ๐๐ ๐ฒ๐บ๐๐ words
- For example:
other words
->๐๐๐๐พ๐ ๐๐๐๐ฝ๐
All mixed case words should remain unchanged
- For example:
Mixed Case Words
->Mixed Case Words
Periods and spaces should remain unchanged.
Words are separated by spaces or periods
- For example (highlighted things are words):
Hello
.This
is
a
word
.S
.O
.are
these
- Inputs: A string containing letters, spaces, and periods (
[A-Za-z .]+
) - Output: The formatted string
As this is a golfing challenge, the lowest number of bytes wins
#Example Input and Output
Example Input and Output
Input:
This is an example STRING that c.o.U.L.d. be INPUTTED. It can CONTAIN multiple sentences.
Output:
This ๐๐ ๐บ๐ ๐พ๐๐บ๐๐๐ ๐พ ๐๐๐ฟ๐ถ๐ป๐ด ๐๐๐บ๐ ๐ผ.๐.๐.๐น.๐ฝ. ๐ป๐พ ๐ถ๐ป๐ฝ๐๐๐๐ฒ๐ฑ. It ๐ผ๐บ๐ ๐ฐ๐ผ๐ป๐๐ฎ๐ถ๐ป ๐๐๐ ๐๐๐๐ ๐พ ๐๐พ๐๐๐พ๐๐ผ๐พ๐.
Reference
Math Sans Bold: ๐ฎ๐ฏ๐ฐ๐ฑ๐ฒ๐ณ๐ด๐ต๐ถ๐ท๐ธ๐น๐บ๐ป๐ผ๐ฝ๐พ๐ฟ๐๐๐๐๐๐ ๐๐ (characters 120302 through 120327)
Math Sans: ๐บ๐ป๐ผ๐ฝ๐พ๐ฟ๐๐๐๐๐๐ ๐๐๐๐๐๐๐๐๐๐๐๐๐๐ (characters 120250 through 120275)