Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Espanso superscript suffixes of ordinal numbers with some checking for validity
- - regex: (?P<number>\s[1]|[0,2-9]1)st
- replace: "{{number}}ˢᵗ"
- - regex: (?P<number>\s[2]|[0,2-9]2)nd
- replace: "{{number}}ⁿᵈ"
- - regex: (?P<number>\s[3]|[0,2-9]3)rd
- replace: "{{number}}ʳᵈ"
- - regex: (?P<number>\s[0,4-9]|[1][\d]|[0,2-9][0,4-9])th
- replace: "{{number}}ᵗʰ"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement