diff options
author | IIMarckus <iimarckus@gmail.com> | 2011-12-21 02:50:47 -0700 |
---|---|---|
committer | IIMarckus <iimarckus@gmail.com> | 2011-12-21 02:50:47 -0700 |
commit | eac73b32e62b232f1a39e1e9efc86b4d7bc97148 (patch) | |
tree | 814443b55caa5ee278eb6b1476e11eb0e0d1fdde /textpre.awk | |
parent | 0238a81e39db24fbeff5684d1f1b954fb2c16282 (diff) |
Treat apostrophes specially, since they’re combining characters.
This will need to be changed a bit if there are ever cases in‐game
where ’m, et cetera do NOT get combined into one character.
Maybe doubling it up to be treated as a single character (’’).
hg-commit-id: c90b7888ad5a
Diffstat (limited to 'textpre.awk')
-rw-r--r-- | textpre.awk | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/textpre.awk b/textpre.awk index d1f28224..52e5d012 100644 --- a/textpre.awk +++ b/textpre.awk @@ -206,6 +206,8 @@ char["x"] = "$B7" char["y"] = "$B8" char["z"] = "$B9" char["é"] = "$BA" +char["'s"] = "$BD" +char["'t"] = "$BE" char["'"] = "$E0" char["-"] = "$E3" char["?"] = "$E6" @@ -254,6 +256,19 @@ else { c = c substr(f,1,1) f = substr(f,2,length(f) - 1) } + + if (c == "'") { + if (substr(f,1,1) == "m" || + substr(f,1,1) == "r" || + substr(f,1,1) == "t" || + substr(f,1,1) == "s" || + substr(f,1,1) == "v" || + substr(f,1,1) == "l") { + c = c substr(f,1,1) + f = substr(f,2,length(f) - 1) + } + } + print char[c] if (length(f)) print "," |