velthuis: encode long uppercase letters properly

This commit is contained in:
Vlasta Vesely 2020-10-29 10:01:48 +01:00
parent e269e3509b
commit 4b8b2a633e
2 changed files with 6 additions and 0 deletions

View file

@ -16,6 +16,8 @@ START_TEST(test_encode_punctation)
test_encoding("yoga.h", "yogaḥ");
test_encoding("tantra\"saastram", "tantraśāstram");
test_encoding("Aa AA - II Ii - .RR .Rr", "Ā Ā - Ī Ī - Ṝ Ṝ");
}
END_TEST

View file

@ -16,6 +16,10 @@ struct encoder_tuple {
};
static const struct encoder_tuple table[] = {
{"Aa", "\u0100"}, {"Ii", "\u012a"},
{"Uu", "\u016a"}, {".Rr", "\u1e5c"},
{".Ll", "\u1e38"},
{"aa", "\u0101"}, {"AA", "\u0100"},
{"ii", "\u012b"}, {"II", "\u012a"},
{"uu", "\u016b"}, {"UU", "\u016a"},