diff --git a/source/org/thdl/tib/input/Jskad.java b/source/org/thdl/tib/input/Jskad.java index cd884c4..35ee6b4 100644 --- a/source/org/thdl/tib/input/Jskad.java +++ b/source/org/thdl/tib/input/Jskad.java @@ -10,7 +10,7 @@ License for the specific terms governing rights and limitations under the License. The Initial Developer of this software is the Tibetan and Himalayan Digital -Library (THDL). Portions created by the THDL are Copyright 2001 THDL. +Library (THDL). Portions created by the THDL are Copyright 2001-2003 THDL. All Rights Reserved. Contributor(s): ______________________________________. @@ -39,7 +39,7 @@ import org.thdl.util.ThdlOptions; import org.thdl.util.ThdlVersion; import org.thdl.util.StatusBar; import org.thdl.util.ThdlActionListener; -import org.thdl.util.RTFPane; +import org.thdl.util.HTMLPane; import org.thdl.util.SimpleFrame; import org.thdl.util.ThdlLazyException; @@ -124,6 +124,8 @@ public class Jskad extends JPanel implements DocumentListener { } } + /** pane displaying Jskad's single HTML help file */ + private static HTMLPane helpPane; /** * @param parent the object that embeds this instance of Jskad. @@ -327,23 +329,35 @@ public class Jskad extends JPanel implements DocumentListener { JMenu infoMenu = new JMenu("Info"); - JMenuItem aboutItem = new JMenuItem("About"); - aboutItem.addActionListener(new ThdlActionListener() { - public void theRealActionPerformed(ActionEvent e) { - JOptionPane.showMessageDialog(Jskad.this, - "Copyright 2001-2002 Tibetan and Himalayan Digital Library\n\n"+ - "Jskad is protected by the THDL Open Community License.\n\n"+ /* FIXME HARD-CODED VERSION NUMBER */ - - "For more information, or to download the source code\n"+ - "for Jskad, visit our web site:\n"+ - " http://www.thdl.org/\n" + - "\n" + - "When submitting bug reports, please indicate that the\n" + - "time of compilation is " - + ThdlVersion.getTimeOfCompilation() + "\n", - "About Jskad", JOptionPane.PLAIN_MESSAGE); - } - }); + { + JMenuItem helpItem = new JMenuItem("Help"); + helpItem.addActionListener(new ThdlActionListener() { + public void theRealActionPerformed(ActionEvent e) { + if (helpPane == null) { + try { + helpPane + = new HTMLPane(Jskad.class, + "/org/thdl/tib/input/jskad_doc.html"); + } catch (Exception ex) { + ex.printStackTrace(System.err); + throw new ThdlLazyException(ex); + /* DLC FIXME--handle this better. + show a dialog saying "help can't be + loaded, surf to thdl's web site and + also submit a bug report." */ + } + } + new SimpleFrame("Help for Jskad", helpPane); + /* DLC FIXME -- pressing the "Help" menu item + twice causes the first pane to become dead. + We should check to see if the first pane + exists and raise it rather than creating a + second pane. */ + } + }); + infoMenu.add(helpItem); + infoMenu.addSeparator(); + } for (int i = 0; i < keybdMgr.size(); i++) { final JskadKeyboard kbd = keybdMgr.elementAt(i); @@ -353,6 +367,12 @@ public class Jskad extends JPanel implements DocumentListener { public void theRealActionPerformed(ActionEvent e) { new SimpleFrame(kbd.getIdentifyingString(), kbd.getQuickRefPane()); + /* DLC FIXME -- pressing the "Extended + Wylie" menu item twice causes the first + pane to become dead. We should check + to see if the first pane exists and + raise it rather than creating a second + pane. */ } }); infoMenu.add(keybdItem); @@ -361,7 +381,26 @@ public class Jskad extends JPanel implements DocumentListener { infoMenu.addSeparator(); - infoMenu.add(aboutItem); + { + JMenuItem aboutItem = new JMenuItem("About"); + aboutItem.addActionListener(new ThdlActionListener() { + public void theRealActionPerformed(ActionEvent e) { + JOptionPane.showMessageDialog(Jskad.this, + "Copyright 2001-2003 Tibetan and Himalayan Digital Library\n\n"+ + "Jskad is protected by the THDL Open Community License.\n\n"+ /* FIXME HARD-CODED VERSION NUMBER */ + + "For more information, or to download the source code\n"+ + "for Jskad, visit our web site:\n"+ + " http://www.thdl.org/\n" + + "\n" + + "When submitting bug reports, please indicate that the\n" + + "time of compilation is " + + ThdlVersion.getTimeOfCompilation() + "\n", + "About Jskad", JOptionPane.PLAIN_MESSAGE); + } + }); + infoMenu.add(aboutItem); + } menuBar.add(infoMenu); diff --git a/source/org/thdl/tib/input/jskad_doc.html b/source/org/thdl/tib/input/jskad_doc.html index b25a09d..be77f12 100644 --- a/source/org/thdl/tib/input/jskad_doc.html +++ b/source/org/thdl/tib/input/jskad_doc.html @@ -1,232 +1,16 @@ - - - - - - - - - -Tibetan & Himalayan Tools Collections - - - - - - - - - - - - - +Help on Jskad - - - - - - - - - - - - -
- - - -
-
- - - -
THDL : Tools : -Software : Tibetan Input : -Jskad : Documentation -
-
- - - - - - - - -
- - - - - -
- - - - - - - - - - - -
- - - - - - - -

Jskad Documentation

+ + +
  • Running Jskad
  • Getting Started
  • @@ -380,9 +164,9 @@ Sections (c)-(e) are structured in exactly the same way. A line consists of a va Although the three additional keyboards included in this installation always define only one keystroke per character/vowel, it is possible to define a keyboard in which multiple keystrokes correspond to single characters/vowels, as in the Extended Wylie keyboard. However, punctuation is only ever allowed to correspond to a single keystroke. Below is a sample (partial) keyboard, with key parts explained, and much omitted:

    -Sambhota keyboard //Everything before <?parameters?> is taken to be a comment. +Sambhota keyboard //Everything before <?parameters?> is taken to be a comment.

    -<?parameters?> //describes the logic of the keyboard +<?parameters?> //describes the logic of the keyboard
    has sanskrit stacking=true //is there a stack key for sanskrit stacks?
    has tibetan stacking=true //is there a stack key for tibetan stacks?
    is stacking medial=false //is the stack key medial, ie like '+' in g+y, or not, as in +gy @@ -393,21 +177,21 @@ Sambhota keyboard //Everything before <?parameters?> is taken to be a comment.
    has 'a' vowel=false //is there a dummy 'a' vowel?
    is achung consonant=true //can achung take part in consonantal stacks?

    -<?characters?> //characters include consonants and numerals +<?characters?> //characters include consonants and numerals
    k=k -
    kh=K //left value is Extended Wylie & right is equivalent in Sambhota +
    kh=K //left value is Extended Wylie & right is equivalent in Sambhota
    g=g
    ng=G
    f= //no equivalent of 'f' in Sambhota

    -<?vowels?> +<?vowels?>
    a=a
    i=i
    u=u
    e=e
    o=o

    -<?punctuation?> +<?punctuation?>
    = //read as [Space] = [Space]
    /=,

    @@ -434,15 +218,7 @@ Some common problems:

If all else fails, remove Java and Jskad from your computer, and then reinstall both. -

-

-

Back to top

-
-
-