The ACIP "BNA" was converting to B-NA instead of B+NA, even though NA cannot take a BA prefix. This was because BNA was interpreted as root-suffix. In ACIP, BN is surely B+N unless N takes a B prefix, so root-suffix is out of the question.

This commit is contained in:
dchandler 2003-10-26 00:21:54 +00:00
parent 306cf2817c
commit 1415fc43e3
3 changed files with 28 additions and 12 deletions

View file

@ -434,19 +434,27 @@ public class Jskad extends JPanel implements DocumentListener {
JMenuItem wylieTMWItem = new JMenuItem("Convert Wylie to Tibetan");
wylieTMWItem.addActionListener(new ThdlActionListener() {
public void theRealActionPerformed(ActionEvent e) {
toTibetan(false);
toTibetan(false, true);
}
});
convertSelectionMenu.add(wylieTMWItem);
JMenuItem ACIPTMWItem = new JMenuItem("Convert ACIP to Tibetan");
JMenuItem ACIPTMWItem = new JMenuItem("Convert ACIP to Tibetan (no warnings)");
ACIPTMWItem.addActionListener(new ThdlActionListener() {
public void theRealActionPerformed(ActionEvent e) {
toTibetan(true);
toTibetan(true, false);
}
});
convertSelectionMenu.add(ACIPTMWItem);
JMenuItem ACIPTMWWarnItem = new JMenuItem("Convert ACIP to Tibetan (with warnings)");
ACIPTMWWarnItem.addActionListener(new ThdlActionListener() {
public void theRealActionPerformed(ActionEvent e) {
toTibetan(true, true);
}
});
convertSelectionMenu.add(ACIPTMWWarnItem);
JMenu convertAllMenu = new JMenu("Convert All");
JMenuItem toTMItem = new JMenuItem("Convert Tibetan to TM"); // DLC FIXME: do it just in the selection?
@ -1130,9 +1138,9 @@ public class Jskad extends JPanel implements DocumentListener {
dp.paste(dp.getCaret().getDot());
}
private void toTibetan(boolean fromACIP) {
private void toTibetan(boolean fromACIP, boolean withWarnings) {
Jskad.this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
dp.toTibetanMachineWeb(fromACIP);
dp.toTibetanMachineWeb(fromACIP, withWarnings);
Jskad.this.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
}