Skip to content

Commit

Permalink
training: Fix typos in comments (found by codespell)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Sep 3, 2017
1 parent b9365cd commit 61f9698
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions training/validate_grapheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ bool ValidateGrapheme::IsBadlyFormed(char32 prev_ch, char32 ch) {
// for examples in Devanagari). The Unicode standard discourages specifying
// vowels this way, but they are sometimes encountered in text, probably because
// some editors still permit it. Renderers however dislike such pairs, and so
// this function may be used to detect their occurence for removal.
// this function may be used to detect their occurrence for removal.
// TODO(rays) This function only covers a subset of Indic languages and doesn't
// include all rules. Add rules as appropriate to support other languages or
// find a way to generalize these existing rules that makes use of the
Expand Down Expand Up @@ -164,7 +164,7 @@ bool ValidateGrapheme::IsBadlyFormedThai(char32 prev_ch, char32 ch) {
prev_ch == 0xe37)) {
return true;
}
// Dont allow the standalone vowel U+0e24 to be followed by other vowels.
// Don't allow the standalone vowel U+0e24 to be followed by other vowels.
if ((0xe30 <= ch && ch <= 0xe4D) && prev_ch == 0xe24) {
return true;
}
Expand Down

0 comments on commit 61f9698

Please sign in to comment.