| if (word[nbytes+1] == '.') { | if (word[nbytes+1] == '.') { | ||||
| if (word[nbytes+2] == ' ') | if (word[nbytes+2] == ' ') | ||||
| ok = 1; | ok = 1; | ||||
| else if (word[nbytes+2] == '\'') { | |||||
| else if (word[nbytes+2] == '\'' && word[nbytes+3] == 's') { | |||||
| nbytes += 2; // delete the final dot (eg. u.s.a.'s) | nbytes += 2; // delete the final dot (eg. u.s.a.'s) | ||||
| ok = 2; | ok = 2; | ||||
| } | } | ||||
| c = ' '; // remove the dot if it's followed by a space or hyphen, so that it's not pronounced | c = ' '; // remove the dot if it's followed by a space or hyphen, so that it's not pronounced | ||||
| } | } | ||||
| } else if (c == '\'') { | } else if (c == '\'') { | ||||
| if (((prev_in == '.') || iswalnum(prev_in)) && IsAlpha(next_in)) { | |||||
| if (((prev_in == '.' && next_in == 's') || iswalnum(prev_in)) && IsAlpha(next_in)) { | |||||
| // between two letters, or in an abbreviation (eg. u.s.a.'s). Consider the apostrophe as part of the word | // between two letters, or in an abbreviation (eg. u.s.a.'s). Consider the apostrophe as part of the word | ||||
| single_quoted = false; | single_quoted = false; | ||||
| } else if ((tr->langopts.param[LOPT_APOSTROPHE] & 1) && IsAlpha(next_in)) | } else if ((tr->langopts.param[LOPT_APOSTROPHE] & 1) && IsAlpha(next_in)) |