more rules

This commit is contained in:
Nishi 2026-05-23 11:08:10 +09:00
commit 034f9fb200

View file

@ -182,6 +182,10 @@ DEF(p_vowel_2) {
ph[i * MAX_PPL + 0] = P_AO;
ph[i * MAX_PPL + 1] = P_R;
return 1;
} else if(M("zz")) {
ph[i * MAX_PPL + 0] = P_Z;
return 1;
}
@ -228,6 +232,10 @@ DEF(p_special_1) {
} else if(M("k") && last) {
ph[i * MAX_PPL + 0] = P_K;
return 0;
} else if(M("x") && first) {
ph[i * MAX_PPL + 0] = P_Z;
return 0;
}
@ -270,6 +278,23 @@ DEF(p_gen_1) {
} else if(M("h")) {
ph[i * MAX_PPL + 0] = P_HH;
return 0;
} else if(M("v")) {
ph[i * MAX_PPL + 0] = P_V;
return 0;
} else if(M("w")) {
ph[i * MAX_PPL + 0] = P_W;
return 0;
} else if(M("x")) {
ph[i * MAX_PPL + 0] = P_K;
ph[i * MAX_PPL + 1] = P_S;
return 0;
} else if(M("z")) {
ph[i * MAX_PPL + 0] = P_Z;
return 0;
}
@ -315,7 +340,7 @@ void ft_phon_main(FT_HANDLE handle, const char* buffer, long length) {
int first = 0;
int last = 0;
char b_c = (i > 0) ? buffer[i - 1] : 0;
int n = -1;
int n = -1;
b_c = tolower(b_c);