velthuis: encode long uppercase letters properly
This commit is contained in:
parent
e269e3509b
commit
4b8b2a633e
2 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,8 @@ START_TEST(test_encode_punctation)
|
||||||
test_encoding("yoga.h", "yogaḥ");
|
test_encoding("yoga.h", "yogaḥ");
|
||||||
|
|
||||||
test_encoding("tantra\"saastram", "tantraśāstram");
|
test_encoding("tantra\"saastram", "tantraśāstram");
|
||||||
|
|
||||||
|
test_encoding("Aa AA - II Ii - .RR .Rr", "Ā Ā - Ī Ī - Ṝ Ṝ");
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,10 @@ struct encoder_tuple {
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct encoder_tuple table[] = {
|
static const struct encoder_tuple table[] = {
|
||||||
|
{"Aa", "\u0100"}, {"Ii", "\u012a"},
|
||||||
|
{"Uu", "\u016a"}, {".Rr", "\u1e5c"},
|
||||||
|
{".Ll", "\u1e38"},
|
||||||
|
|
||||||
{"aa", "\u0101"}, {"AA", "\u0100"},
|
{"aa", "\u0101"}, {"AA", "\u0100"},
|
||||||
{"ii", "\u012b"}, {"II", "\u012a"},
|
{"ii", "\u012b"}, {"II", "\u012a"},
|
||||||
{"uu", "\u016b"}, {"UU", "\u016a"},
|
{"uu", "\u016b"}, {"UU", "\u016a"},
|
||||||
|
|
Loading…
Reference in a new issue