ref: 5e95c9c795e3ebeaa4df7a60f706328613cb63d5
parent: d2dccb58de5678b20da7957debf0355fc165391d
author: Ali Gholami Rudi <ali@rudi.ir>
date: Fri Jan 30 04:29:43 EST 2015
trfn: check for agl_exceptions[] later in trfn_name()
--- a/trfn.c
+++ b/trfn.c
@@ -194,12 +194,6 @@
*s++ = *src++;
*s = '\0';
if (!agl_map(d, ch)) {
- for (i = 0; i < LEN(agl_exceptions); i++) {
- if (!strcmp(agl_exceptions[i][0], d)) {
- strcpy(d, agl_exceptions[i][1]);
- break;
- }
- }
d = strchr(d, '\0');
} else if (ch[0] == 'u' && ch[1] == 'n' &&
ch[2] == 'i' && hexval(ch + 3, 4) > 0) {
@@ -211,6 +205,12 @@
utf8put(&d, achar_map(ch));
} else {
return 1;
+ }
+ }
+ for (i = 0; i < LEN(agl_exceptions); i++) {
+ if (!strcmp(agl_exceptions[i][0], dst)) {
+ strcpy(dst, agl_exceptions[i][1]);
+ break;
}
}
ashape(dst, src);