2
When I saw this title in the Hot Network Questions I thought it was going to be a PPCG challenge. I was a little disappointed when it was on Mathematica.
So now it is on PPCG:
Challenge
Given an input string, output the ROT13, flipped value. The input will contain characters from the following alphabet: [abcdefghijklmnopqrstuvwxyz <flipped alphabet>]
1
The flipped alphabet can be anything visually similar to the flipped lowercase Latin alphabet so long as it can be accepted as input.
The space character should remain unchanged.
As an example, your flipped alphabet might be zʎxʍʌnʇsɹbdouɯlʞɾᴉɥƃɟǝpɔqɐ
Example
Input: caesar woz ere Rot13: pnrfne jbm rer Output: ɹǝɹ ɯqɾ ǝuɟɹud Input: ɹǝɹ ɯqɾ ǝuɟɹud Rot13: pnrfne jbm rer Output: caesar woz ere
Scoring
Simple code-golf, the lowest number of bytes wins.
I think this is different enough to the proposed duplicate for a few reasons:
- The answerer has the choice of which characters to use as output (within limits)
- The process should be reversible. i.e. flipped text should be acceptable as input and return "normal" text.
- There is the opportunity for graphical solutions in this question.
3Please include a list of the flipped alphabet. – Leaky Nun – 2017-06-08T09:38:49.550
related – Leaky Nun – 2017-06-08T09:40:12.340
@EriktheOutgolfer, I think it's probably different enough for a few reasons. I've added my reasons to the question. – James Webster – 2017-06-08T10:24:06.663
@JamesWebster Then, first of all, what are the limits? Second, what do you mean by "graphical solutions"? If the output is an image, are the solutions below supposed to take that image as input and print the original text or something? – Erik the Outgolfer – 2017-06-08T10:28:53.313
The limit is mentioned in the question:
The flipped alphabet can be anything visually similar to the flipped lowercase Latin alphabet so long as it can be accepted as input
. I've clarified theoutput as input
section, however. By graphical solution, I understand that Mathemetica would be to rotate text rather than replace characters. – James Webster – 2017-06-08T10:34:28.423There is the opportunity for graphical solutions in this question.
: I don't see how unless you are performing some OCR. – TheLethalCoder – 2017-06-08T10:37:09.8676Your flipped alphabet contains letters from the roman alphabet, so it's impossible to know whether
d
is a flippedp
and should therefore rot13 toɔ
before flipping toc
, rather than rot13 toq
and flipping tob
. – Neil – 2017-06-08T10:44:53.530Your upside-down
q
is ab
. – Magic Octopus Urn – 2017-06-08T14:44:20.300