Normalize romanized identifiers to Hepburn
This commit is contained in:
parent
7935e5e7ea
commit
787febbd07
72 changed files with 871 additions and 871 deletions
18
getkanji.c
18
getkanji.c
|
|
@ -89,7 +89,7 @@ getkan_kata(unsigned char* s, unsigned char* d, unsigned char* ym, int yl, int f
|
|||
unsigned char*
|
||||
getkan_knj(unsigned char* s, unsigned char* d, unsigned char* ym, int yl, int flg) {
|
||||
|
||||
return code2kanji(askknj[*s & KnjAssyukuMask], d, ym, yl, flg);
|
||||
return code2kanji(askknj[*s & KnjAsshukuMask], d, ym, yl, flg);
|
||||
}
|
||||
|
||||
unsigned char*
|
||||
|
|
@ -135,15 +135,15 @@ code2kanji(unsigned char* s, unsigned char* d, unsigned char* ym, int yl, int fl
|
|||
csize = codesize(*s);
|
||||
if(s[csize] == KanjiStrEnd) {
|
||||
switch(*s & KanjiModeMask) {
|
||||
case ZenHiraAssyuku:
|
||||
case ZenHiraAsshuku:
|
||||
d = getkan_hira(s, d, ym, yl, flg);
|
||||
break;
|
||||
|
||||
case ZenKataAssyuku:
|
||||
case ZenKataAsshuku:
|
||||
d = getkan_kata(s, d, ym, yl, flg);
|
||||
break;
|
||||
|
||||
case OffsetAssyuku:
|
||||
case OffsetAsshuku:
|
||||
d = getkan_ofs(s, d, ym, yl, flg);
|
||||
break;
|
||||
|
||||
|
|
@ -155,7 +155,7 @@ code2kanji(unsigned char* s, unsigned char* d, unsigned char* ym, int yl, int fl
|
|||
d = getkan_ascii(s, d, ym, yl, flg);
|
||||
break;
|
||||
|
||||
case KanjiAssyuku:
|
||||
case KanjiAsshuku:
|
||||
d = getkan_knj(s, d, ym, yl, flg);
|
||||
break;
|
||||
|
||||
|
|
@ -165,15 +165,15 @@ code2kanji(unsigned char* s, unsigned char* d, unsigned char* ym, int yl, int fl
|
|||
break;
|
||||
} else
|
||||
switch(*s & KanjiModeMask) {
|
||||
case ZenHiraAssyuku:
|
||||
case ZenHiraAsshuku:
|
||||
d = getkan_hira(s, d, ym, yl, FALSE);
|
||||
break;
|
||||
|
||||
case ZenKataAssyuku:
|
||||
case ZenKataAsshuku:
|
||||
d = getkan_kata(s, d, ym, yl, FALSE);
|
||||
break;
|
||||
|
||||
case OffsetAssyuku:
|
||||
case OffsetAsshuku:
|
||||
d = getkan_ofs(s, d, ym, yl, FALSE);
|
||||
break;
|
||||
|
||||
|
|
@ -185,7 +185,7 @@ code2kanji(unsigned char* s, unsigned char* d, unsigned char* ym, int yl, int fl
|
|||
d = getkan_ascii(s, d, ym, yl, FALSE);
|
||||
break;
|
||||
|
||||
case KanjiAssyuku:
|
||||
case KanjiAsshuku:
|
||||
d = getkan_knj(s, d, ym, yl, FALSE);
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue