OpenGNT/Script/unicode2transliteration_SBL.sh

36 lines
1.2 KiB
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/sed -E -i .bak -f
s/ΰ/ΰ/g
s/ΐ/ΐ/g
s/[Ῥῥ]/rh/g
s/[ρΡ]/r/g
s/ ([^ ][ἁἉἅἍᾅἃἋἑἙἕἝἓἛἱἹἵἽἳἷὁὉὅὍὃὋὑὙὕὝὓὗὟἡἩἥἭἣἧᾗᾑὡὩὥὭὣὧὯᾧ]|[ἁἉἅἍᾅἃἋἑἙἕἝἓἛἱἹἵἽἳἷὁὉὅὍὃὋὑὙὕὝὓὗὟἡἩἥἭἣἧᾗᾑὡὩὥὭὣὧὯᾧ])/ h\1/g
s/[ϋΰῢ]/Y/g
s/[υΥὐὔὒὖύύὺῦὑὙὕὝὓὗὟ]/y/g
s/[αΑἀἈἄἌᾄἂἆἎᾆᾀάάᾴὰᾶᾷᾳἁἉἅἍᾅἃἋ]/a/g
s/[εΕἐἘἔἜέέὲἑἙἕἝἓἛ]/e/g
s/[ηΗἠἨἤἬᾔἢἪἦἮᾖᾐήήῄὴῆῇῃἡἩἥἭἣἧᾗᾑ]/ē/g
s/[ιΙἰἸἴἼἶίίὶῖϊΐῒἱἹἵἽἳἷ]/i/g
s/[οΟὀὈὄὌὂόόὸὁὉὅὍὃὋ]/o/g
s/[ωΩὠὨὤὬᾤὢὦὮᾠώώῴὼῶῷῳὡὩὥὭὣὧὯᾧ]/ō/g
s/([aeēo])y/\1u/g
s/yi/ui/g
s/Y/y/g
s/[γΓ]([γΓκΚξΞχΧ])/ν\1/g
s/[βΒ]/b/g
s/[γΓ]/g/g
s/[δΔ]/d/g
s/[ζΖ]/z/g
s/[θΘ]/th/g
s/[κΚ]/k/g
s/[λΛ]/l/g
s/[μΜ]/m/g
s/[νΝ]/n/g
s/[ξΞ]/x/g
s/[πΠ]/p/g
s/[σςϛΣ]/s/g
s/[τΤ]/t/g
s/[φΦ]/ph/g
s/[χΧ]/ch/g
s/[ψΨ]/ps/g
s///g