Added a mechanism for end users to customize ACIP/EWTS=>Tibetan conversions by giving a list of substitutions to be performed. E.g., when I invoke Jskad via 'java -Dorg.thdl.tib.text.ttt.VerboseReplacementMap=false -Dorg.thdl.tib.text.ttt.ReplacementMap="KAsh=>K+sh" -jar Jskad.jar', then the ACIP KAsh becomes K+sh automatically.
This mechanism is for Andres (who noticed KAsh=>K+sh in practice) and power users only, and not power users until I document the thing outside of the source code.
This commit is contained in:
parent
6bda550157
commit
ef24c608bf
3 changed files with 229 additions and 3 deletions
|
@ -111,14 +111,16 @@ public class TString {
|
|||
text = t;
|
||||
}
|
||||
|
||||
/** Don't instantiate me. */
|
||||
/** Don't instantiate using this constructor. */
|
||||
private TString() { }
|
||||
|
||||
/** Creates a new TString with source text <i>text</i> and type
|
||||
* <i>type</i> being a characterization like {@link #DD}. */
|
||||
public TString(String text, int type) {
|
||||
setType(type);
|
||||
setText(text);
|
||||
setText((TIBETAN_NON_PUNCTUATION == type)
|
||||
? MidLexSubstitution.getFinalValueForTibetanNonPunctuationToken(text)
|
||||
: text);
|
||||
}
|
||||
public String toString() {
|
||||
String typeString = "HUH?????";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue