-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrot3.yml
73 lines (70 loc) · 1.18 KB
/
rot3.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Caesar Cypher: shift a letter by 3 places to the right.
# This configuration is only used to test features.
#
# Ironically, the "script" side is actually Latin (Roman) in the
# original context, as this was a cryptography method
# used by Julius Caesar.
general:
name: ROT3 (Caesar Cypher)
roman_to_script:
map:
"A": "D"
"B": "E"
"C": "F"
"D": "G"
"E": "H"
"F": "I"
"G": "J"
"H": "K"
"I": "L"
"J": "M"
"K": "N"
"L": "O"
"M": "P"
"N": "Q"
"O": "R"
"P": "S"
"Q": "T"
"R": "U"
"S": "V"
"T": "W"
"U": "X"
"V": "Y"
"W": "Z"
"X": "A"
"Y": "B"
"Z": "C"
"a": "d"
"b": "e"
"c": "f"
"d": "g"
"e": "h"
"f": "i"
"g": "j"
"h": "k"
"i": "l"
"j": "m"
"k": "n"
"l": "o"
"m": "p"
"n": "q"
"o": "r"
"p": "s"
"q": "t"
"r": "u"
"s": "v"
"t": "w"
"u": "x"
"v": "y"
"w": "z"
"x": "a"
"y": "b"
"z": "c"
script_to_roman:
# This does the opposite of roman to script, but by using hook functions.
# Note the absence of a "map" section.
hooks:
begin_input_token:
-
- test.rotate
- n: -3