| return 1; | return 1; | ||||
| } | } | ||||
| // handle .replace rule in xx_rules file | |||||
| static int SubstituteChar(Translator *tr, unsigned int c, unsigned int next_in, int *insert, int *wordflags) | static int SubstituteChar(Translator *tr, unsigned int c, unsigned int next_in, int *insert, int *wordflags) | ||||
| { | { | ||||
| int ix; | int ix; | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| // handle .replace rule in xx_rules file | |||||
| return SubstituteChar(tr, c, next_in, insert, wordflags); | return SubstituteChar(tr, c, next_in, insert, wordflags); | ||||
| } | } | ||||
| c = ' '; | c = ' '; | ||||
| word_flags |= FLAG_COMMA_AFTER; | word_flags |= FLAG_COMMA_AFTER; | ||||
| } | } | ||||
| c = TranslateChar(tr, &source[source_index], prev_in, c, next_in, &char_inserted, &word_flags); // optional language specific function | |||||
| // language specific character translations | |||||
| c = TranslateChar(tr, &source[source_index], prev_in, c, next_in, &char_inserted, &word_flags); | |||||
| if (c == 8) | if (c == 8) | ||||
| continue; // ignore this character | continue; // ignore this character | ||||