diff options
| author | Tyge Løvset <[email protected]> | 2023-01-12 15:51:29 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-01-12 15:51:29 +0100 |
| commit | 891aebc0a971df8e57618c16ed214d982072cbd3 (patch) | |
| tree | efa3905ff9f75bd8773a6235b2280ef738921f58 /src | |
| parent | 4495643b8377d8edf642f68ca5f39792dbf57494 (diff) | |
| download | STC-modified-891aebc0a971df8e57618c16ed214d982072cbd3.tar.gz STC-modified-891aebc0a971df8e57618c16ed214d982072cbd3.zip | |
Fixed Devanaga => Devanagari Hindi text name.
Diffstat (limited to 'src')
| -rw-r--r-- | src/cregex.c | 6 | ||||
| -rw-r--r-- | src/utf8code.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/cregex.c b/src/cregex.c index 57ba2f1e..d2b54ef1 100644 --- a/src/cregex.c +++ b/src/cregex.c @@ -153,7 +153,7 @@ enum { UTF_zs = UTF_GRP+2*U8G_Zs, UTF_ZS, /* utf8 separator space */ UTF_arabic = UTF_GRP+2*U8G_Arabic, UTF_ARABIC, UTF_cyrillic = UTF_GRP+2*U8G_Cyrillic, UTF_CYRILLIC, - UTF_devanaga = UTF_GRP+2*U8G_Devanaga, UTF_DEVANAGA, + UTF_devanagari = UTF_GRP+2*U8G_Devanagari, UTF_DEVANAGARI, UTF_greek = UTF_GRP+2*U8G_Greek, UTF_GREEK, UTF_han = UTF_GRP+2*U8G_Han, UTF_HAN, UTF_latin = UTF_GRP+2*U8G_Latin, UTF_LATIN, @@ -658,7 +658,7 @@ _lexutfclass(_Parser *par, _Rune *rp) {"{Zl}", 4, UTF_zl}, {"{Zp}", 4, UTF_zp}, {"{Zs}", 4, UTF_zs}, {"{Sc}", 4, UTF_sc}, {"{Arabic}", 8, UTF_arabic}, {"{Cyrillic}", 10, UTF_cyrillic}, - {"{Devanaga}", 10, UTF_devanaga}, {"{Greek}", 7, UTF_greek}, + {"{Devanagari}", 10, UTF_devanagari}, {"{Greek}", 7, UTF_greek}, {"{Han}", 5, UTF_han}, {"{Latin}", 7, UTF_latin}, }; int inv = (*rp == 'P'); @@ -947,7 +947,7 @@ _runematch(_Rune s, _Rune r) case UTF_zs: case UTF_ZS: case UTF_arabic: case UTF_ARABIC: case UTF_cyrillic: case UTF_CYRILLIC: - case UTF_devanaga: case UTF_DEVANAGA: + case UTF_devanagari: case UTF_DEVANAGARI: case UTF_greek: case UTF_GREEK: case UTF_han: case UTF_HAN: case UTF_latin: case UTF_LATIN: diff --git a/src/utf8code.c b/src/utf8code.c index 5cc5d467..a8e4c9ab 100644 --- a/src/utf8code.c +++ b/src/utf8code.c @@ -136,7 +136,7 @@ bool utf8_isgroup(int group, uint32_t c) { bool utf8_isalpha(uint32_t c) { static int16_t groups[] = {U8G_Latin, U8G_Nl, U8G_Greek, U8G_Cyrillic, - U8G_Han, U8G_Arabic, U8G_Devanaga}; + U8G_Han, U8G_Arabic, U8G_Devanagari}; for (unsigned j=0; j < c_ARRAYLEN(groups); ++j) if (utf8_isgroup(groups[j], c)) return true; @@ -463,7 +463,7 @@ static const UGroup unicode_groups[U8G_SIZE] = { [U8G_Zs] = UNI_ENTRY(Zs), [U8G_Arabic] = UNI_ENTRY(Arabic), [U8G_Cyrillic] = UNI_ENTRY(Cyrillic), - [U8G_Devanaga] = UNI_ENTRY(Devanagari), + [U8G_Devanagari] = UNI_ENTRY(Devanagari), [U8G_Greek] = UNI_ENTRY(Greek), [U8G_Han] = UNI_ENTRY(Han), [U8G_Latin] = UNI_ENTRY(Latin), |
