28
5
Introduction
Try to convert words to two different unicode fonts.
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
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)
3Welcome to PPCG! – Laikoni – 2018-01-25T23:26:10.507
6
♫ Philosophy's just rigor, sense, and practicality... ♫
– Esolanging Fruit – 2018-01-26T05:12:11.15313Whoa! You got a title in bold in the sidebar? What? I... don't understand.... is the internet breaking? Have you broken the internet? – Zizouz212 – 2018-01-26T06:38:00.423
26https://i.stack.imgur.com/R4V3C.png I came here thinking this challenge was about stacking boxes, bar charts or something... – Matteo Italia – 2018-01-26T07:29:55.700
8
This shouldn't have been close hammered. This problem is significantly more difficult than a simple character transliteration. The leading answer in the cited challenge can not easily nor competitively be transferred using that same method (afaict, my retina isn't great)
– Conor O'Brien – 2018-01-26T15:20:08.887