lib/ting/data/rules.yaml in ting-0.3.0 vs lib/ting/data/rules.yaml in ting-0.9.0

- old
+ new

@@ -1,27 +1,38 @@ -hanyu: - - match: (j|q|x)ü - subst: \1u -wadegiles: - - match: pie\Z - subst: pieh - - match: (ts|ch)`eh - subst: \1`e - - match: ts`ih - subst: tz`u - - match: (k|k`|h)e\Z - subst: \1o - - match: (k|k`)ui\Z - subst: \1uei - - match: (sh|ch)o\Z - subst: \1e - - match: (ch|ch`|ts`|t|t`|l|n|j|s)uo - subst: \1o - - match: tsih - subst: tzu - - match: sih - subst: ssu -tongyong: - - match: feng - subst: fong - - +hanyu: + - match: (j|q|x)ü + subst: \1u +wadegiles: + - match: pie\Z + subst: pieh + - match: (ts|ch)`eh + subst: \1`e + - match: ts`ih + subst: tz`u + - match: (k|k`|h)e\Z + subst: \1o + - match: (k|k`)ui\Z + subst: \1uei + - match: (sh|ch)o\Z + subst: \1e + - match: (ch|ch`|ts`|t|t`|l|n|j|s)uo + subst: \1o + - match: tsih + subst: tzu + - match: sih + subst: ssu +tongyong: + - match: feng + subst: fong +palladin: + - match: (ц|цз|с)ы([^и].{0,2}) + subst: \1\2 + - match: (ц|цз|с)ыи + subst: \1ы + - match: (ц|цз|с)и(.{1,3}) + subst: \1\2 + - match: (ц|г|х|к|л|н|ж|чж|цз)уо + subst: \1о + - match: хуй + subst: хой + - match: цзюэ + subst: цзюе