From eac73b32e62b232f1a39e1e9efc86b4d7bc97148 Mon Sep 17 00:00:00 2001 From: IIMarckus Date: Wed, 21 Dec 2011 02:50:47 -0700 Subject: Treat apostrophes specially, since they’re combining characters. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- textpre.awk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'textpre.awk') 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 "," -- cgit v1.3.1-sl0p