From 188b9c322e7ed3c6271b13be3c3aae91aae0ff57 Mon Sep 17 00:00:00 2001 From: dchandler Date: Tue, 21 Oct 2003 00:23:55 +0000 Subject: [PATCH] Warn about prefix rules only in Most and All modes. --- source/org/thdl/tib/text/ttt/TParseTree.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/org/thdl/tib/text/ttt/TParseTree.java b/source/org/thdl/tib/text/ttt/TParseTree.java index 6939082..00250e7 100644 --- a/source/org/thdl/tib/text/ttt/TParseTree.java +++ b/source/org/thdl/tib/text/ttt/TParseTree.java @@ -285,7 +285,8 @@ class TParseTree { TStackListList noPrefixTestsUniqueParse = getUniqueParse(true); if (noPrefixTestsUniqueParse.size() == 1 && !noPrefixTestsUniqueParse.get(0).equals(bestParse)) { - return "Warning: We're going with " + bestParse + ", but only because our knowledge of prefix rules says that " + noPrefixTestsUniqueParse.get(0) + " is not a legal Tibetan tsheg bar (\"syllable\")"; + if (warningLevel != "Some") + return "Warning: We're going with " + bestParse + ", but only because our knowledge of prefix rules says that " + noPrefixTestsUniqueParse.get(0) + " is not a legal Tibetan tsheg bar (\"syllable\")"; } }