11
The objective
Given a Russian text, encrypt it with Caesar cipher with key 16.
The basic Cyrillic alphabets
The basic Cyrillic alphabets are: (U+0410 – U+042F)
АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ
By the Caesar cipher, they are mapped to:
РСТУФХЦЧШЩЪЫЬЭЮЯАБВГДЕЖЗИЙКЛМНОП
The small letters (U+0430 – U+044F) are also mapped likewise.
Note the absence of Ё
.
Rules
Ё (U+0401) and ё (U+0451) are not considered basic, and are mapped to Х̈ (U+0425 U+0308) and х̈ (U+0445 U+0308), respectively.
Any other characters are preserved.
Example
The following sentence:
В чащах юга жил бы цитрус? Да, но фальшивый экземпляр!
Is encrypted to:
Т зрйре оур цшы сл жшвагб? Фр, эю дрымиштлщ нъчхьяыпа!
We only have to map
Ё
andё
toХ̈
andх̈
, right? And not also the reverse from X/x to E/e? – Kevin Cruijssen – 2019-10-10T07:41:09.170@Kevin Cruijseen Since Х̈ doesn't exist in Russian, it falls in don't care situation. – Dannyu NDos – 2019-10-10T08:03:21.037
Are all non-Cyrillic characters in the input guaranteed to be standard ASCII? (32-126) – Arnauld – 2019-10-10T08:51:33.880
@Arnauld You can assume so. – Dannyu NDos – 2019-10-10T09:19:15.210
8Your answer to @KevinCruijssen should probably be included as a short comment in the challenge to make this perfectly clear. (My initial version was converting
x/X
+ diaeresis toE/e
+ diaeresis.) – Arnauld – 2019-10-10T15:25:49.3935That's far too soon to be accepting a solution. – Shaggy – 2019-10-10T20:46:34.257
test case for Ё/ё: 'Ёжик живёт под ёлочкой' -> 'Х̈цшъ цштх̈в яюф х̈ыюзъющ' – mazzy – 2019-10-11T09:42:31.553