diff --git a/source/org/thdl/tib/text/ttt/ACIPConverter.java b/source/org/thdl/tib/text/ttt/ACIPConverter.java index 143c0cf..ea142de 100644 --- a/source/org/thdl/tib/text/ttt/ACIPConverter.java +++ b/source/org/thdl/tib/text/ttt/ACIPConverter.java @@ -1,4 +1,3 @@ -// DLC NOW WARN ON DBA /* The contents of this file are subject to the THDL Open Community License Version 1.0 (the "License"); you may not use this file except in compliance diff --git a/source/org/thdl/tib/text/ttt/PackageTest.java b/source/org/thdl/tib/text/ttt/PackageTest.java index aa8d5ab..dded2e8 100644 --- a/source/org/thdl/tib/text/ttt/PackageTest.java +++ b/source/org/thdl/tib/text/ttt/PackageTest.java @@ -7387,7 +7387,28 @@ tstHelper("ZUR"); } } - public void testACIPConversion() { + public void testNearlyAmbiguousBecauseOfPrefixRules() { +/* From R0021F.ACE: ambiguous Tibetan/Sanskrit: + +BDA' +B+DA +DBANG +D+BA +DGA' +D+GA +DGRA +D+GRA +DGYES +D+GYA +DMAR +D+MA +GDA' +G+DA +GNAD +G+NA +MNA' +M+NA +*/ uhelp("DBA", "[#WARNING CONVERTING ACIP DOCUMENT: The ACIP DBA has been interpreted as two stacks, not one, but you may wish to confirm that the original text had two stacks as it would be an easy mistake to make to see one stack and forget to input it with '+' characters.]\u0f51\u0f56"); // DLC FIXME uhelp("BDEm:", "[#WARNING CONVERTING ACIP DOCUMENT: The ACIP BDEm: has been interpreted as two stacks, not one, but you may wish to confirm that the original text had two stacks as it would be an easy mistake to make to see one stack and forget to input it with '+' characters.]\u0f56DLC\u0f7a\u0f7e\u0f7f"); uhelp("DMAR", "[#WARNING CONVERTING ACIP DOCUMENT: The ACIP DMAR has been interpreted as two stacks, not one, but you may wish to confirm that the original text had two stacks as it would be an easy mistake to make to see one stack and forget to input it with '+' characters.]\u0f51\u0f58\u0f62"); @@ -7396,6 +7417,9 @@ tstHelper("ZUR"); uhelp("DGRA", "[#WARNING CONVERTING ACIP DOCUMENT: The ACIP DGRA has been interpreted as two stacks, not one, but you may wish to confirm that the original text had two stacks as it would be an easy mistake to make to see one stack and forget to input it with '+' characters.]\u0f51\u0f42\u0fb2"); uhelp("D+GRA", "[#WARNING CONVERTING ACIP DOCUMENT: There is a stack of three or more consonants in D+GRA that uses at least one '+' but does not use a '+' between each consonant.]\u0f51\u0f92\u0fb2"); uhelp("DGYA", "[#WARNING CONVERTING ACIP DOCUMENT: The ACIP DGYA has been interpreted as two stacks, not one, but you may wish to confirm that the original text had two stacks as it would be an easy mistake to make to see one stack and forget to input it with '+' characters.]\u0f51\u0f42\u0fb1"); + } + + public void testACIPConversion() { uhelp("NA+YA", "\u0f53\u0fb1"); // DLC FIXME: warn about the extra A uhelp("NE+YA", "[#ERROR CONVERTING ACIP DOCUMENT: THE TSHEG BAR (\"SYLLABLE\") NE+YA HAS THESE ERRORS: Cannot convert ACIP NE+-YA because + is not an ACIP consonant]"); uhelp("tRAStA", "\u0f4a\u0fb2\u0f66\u0f9a"); @@ -9018,27 +9042,3 @@ tstHelper("shKA"); } } -/* DLC FIXME: add test cases: from R0021F.ACE: ambiguous Tibetan/Sanskrit: - -DLC NOW: warn, in "All" mode, about each occurrence of BD, DB, DG, -DGR, DGY, DM, GD, GN, MN (but not B+D etc.) - -BDA' -B+DA -DBANG -D+BA -DGA' -D+GA -DGRA -D+GRA -DGYES -D+GYA -DMAR -D+MA -GDA' -G+DA -GNAD -G+NA -MNA' -M+NA -*/