Two things:
One, TMW->EWTS gives dbas and dngas instead of dabs and dangs because Chris Fynn's e-mail from today has dbas and dngas. Second, Down with ACIPRules. Long live ACIPTraits. EWTS->Tibetan conversion is closer still.
This commit is contained in:
parent
82c6047cc2
commit
c16f633ecf
18 changed files with 950 additions and 818 deletions
|
@ -27,7 +27,7 @@ import org.thdl.util.*;
|
|||
import org.thdl.tib.text.*;
|
||||
|
||||
import org.thdl.tib.text.ttt.TConverter;
|
||||
import org.thdl.tib.text.ttt.ACIPTshegBarScanner;
|
||||
import org.thdl.tib.text.ttt.ACIPTraits;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/** TibetanConverter is a command-line utility for converting to and
|
||||
|
@ -297,17 +297,18 @@ public class TibetanConverter implements FontConverterConstants {
|
|||
if (ACIP_TO_UNI_TEXT == ct || ACIP_TO_TMW == ct) {
|
||||
try {
|
||||
ArrayList al
|
||||
= ACIPTshegBarScanner.instance().scanStream(in, null,
|
||||
ThdlOptions.getIntegerOption("thdl.most.errors.a.tibetan.acip.document.can.have",
|
||||
1000 - 1),
|
||||
shortMessages,
|
||||
warningLevel);
|
||||
= ACIPTraits.instance().scanner().scanStream(in, null,
|
||||
ThdlOptions.getIntegerOption("thdl.most.errors.a.tibetan.acip.document.can.have",
|
||||
1000 - 1),
|
||||
shortMessages,
|
||||
warningLevel);
|
||||
if (null == al)
|
||||
return 47;
|
||||
boolean embeddedWarnings = (warningLevel != "None");
|
||||
boolean hasWarnings[] = new boolean[] { false };
|
||||
if (ACIP_TO_UNI_TEXT == ct) {
|
||||
if (!TConverter.convertToUnicodeText(al, out, null,
|
||||
if (!TConverter.convertToUnicodeText(ACIPTraits.instance(),
|
||||
al, out, null,
|
||||
null, hasWarnings,
|
||||
embeddedWarnings,
|
||||
warningLevel,
|
||||
|
@ -315,7 +316,8 @@ public class TibetanConverter implements FontConverterConstants {
|
|||
return 46;
|
||||
} else {
|
||||
if (ct != ACIP_TO_TMW) throw new Error("badness");
|
||||
if (!TConverter.convertToTMW(al, out, null, null,
|
||||
if (!TConverter.convertToTMW(ACIPTraits.instance(),
|
||||
al, out, null, null,
|
||||
hasWarnings,
|
||||
embeddedWarnings,
|
||||
warningLevel, shortMessages,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue