From 8e673bbc2c3b2bf04e49a9c07060396ed31b4f59 Mon Sep 17 00:00:00 2001 From: dchandler Date: Wed, 10 Dec 2003 06:50:14 +0000 Subject: [PATCH] {NGA,} becomes {NGA\u0f0c,} now instead of {NGA\u0f0b,}. Note: ACIP->Unicode for {NGA,} was not giving the Unicode that {NGA\u0f0b,} gives before. --- source/org/thdl/tib/text/ttt/ACIPConverter.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/source/org/thdl/tib/text/ttt/ACIPConverter.java b/source/org/thdl/tib/text/ttt/ACIPConverter.java index ac27ba0..3ec9c96 100644 --- a/source/org/thdl/tib/text/ttt/ACIPConverter.java +++ b/source/org/thdl/tib/text/ttt/ACIPConverter.java @@ -569,10 +569,15 @@ public class ACIPConverter { && null != lastGuy && (lpl = lastGuy.get(lastGuy.size() - 1)).size() == 1 && lpl.get(0).getLeft().equals("NG")) { - if (null != writer) unicode = ACIPRules.getUnicodeFor(" ", false); + // {NGO,} is not acceptable; + // typesetting requires we treat this + // like {NGO\u0F0C,}. + if (null != writer) { + writer.write("\u0F0C"); + } if (null != tdoc) { - DuffCode tshegDuff = TibetanMachineWeb.getGlyph(" "); - if (null == tshegDuff) throw new Error("tsheg duff"); + DuffCode tshegDuff = TibetanMachineWeb.getGlyph("*"); + if (null == tshegDuff) throw new Error("non-breaking tsheg duff"); tdoc.appendDuffCode(tdocLocation[0]++, tshegDuff, lastColor); }