Contributor(s):
Note: Morphon Technologies (www.morphon.com) is no longer distributing their XML editor. This was one of the first editors we used and was good for what it was, but it has been surpassed by other more recent and more powerful editors.
Morphon is free, WYSIWYG XML editor that allows one to create and edit XML documents in an almost word-processor like style. It is Java based and has a plugin-API for future developments, as well as being available for different platforms. It supports both DTDs and XML Schemes, as well as namespaces. It uses CSS styles for creating its WYSIWYG view.
The program is installed by double-clicking the .exe file (Morphon-XMLEditor-Windows-novm-3_1_2.exe). It will be installed in the Program Files directory. We will distribute a separate .zip file that contains the DTD, CSS style sheets, templates, and other data that THDL editors will need. (If you need this file contact, David Germano or Nathaniel Grove.) This file will contain a single folder (“xml”) that should be place at the root level of the C: drive of your computer, i.e., C:xml.
This will allow the Editor to open, parse, and validate against the DTD all compliant THDL xml document. To be compliant, a document must use the “xtib2.dtd” or the “xtibbibl2.dtd”. (Other dtds may be added at a later date.) The document must have an XML declaration and a doctype definition at the beginning, as below:
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="file://localhost/C:/xml/css/essay.css" type="text/css"?> <!DOCTYPE TEI.2 PUBLIC "-//THDL//DTD TibetanText//EN" "xtib2.dtd" > <TEI.2> … </TEI.2>
The root element for all THDL marked up texts is TEI.2, both the metadata and the text itself reside within this root level element.
If the preferences for Morphon have been set as described in the previous section, the initial view of a document will be of the nested tags: <TEI.2><body>. One will not that the metadata sections, <teiHeader>, which is before the <body> element is missing. This is because the basic stylesheet for editing texts makes this metadata section invisible, though if one were to look at the document in a plain text editor, one would see it is all there. Because of the setting in the preferences, the initial view of a document is with "Inline Tags", which includes the text of the document within arrow-like images of the mark-up elements. There are however several different views within Morphon. These are accessible from the View menu. In all the views, the styles from the CSS style sheet associated with the document are visible. These different views can be described as follows:
Another aspect of the view is the layout of the Morphon window in general. At the initial start of the program after installation, the screen shows only the XML document and its tags. This is the main window pane of the program in which most of the editing will occur. There are three other panes that provide useful functionality. If one chooses the bottom option from the Layout menu, all these panels will appear:
Morphon uses CSS stylesheets to give a WYSIWYG display of an XML document. It also provides a means to modify the stylesheets in order to create a customized view. Stylesheets are assigned to each XML document through an embedded processing instruction that is ignored by XSLT transformers and other XML-processing software. If one is conversant with the CSS language, one can modify the stylesheet by going to the "Tools" menu and choosing "Edit CSS…". (5) The use of the resultant window will not be described here. (To learn more about CSS see the W3Schools CSS Tutorial.) The C:xmlcss provided with the setup .zip for Morhpon contains two CSS style sheets that allow different views of the document. These are:
The xml declaration associates the first stylesheet automatically with the text but to view the metadata, one must do the following:
The same principle applies for reverting to the regular styles but instead choosing the “essay.css”. If an editor finds an error or a deficiency in one of these stylesheets, please contact us as thdltools@virginia.edu.
For the most part, editing an XML document in Morphon is intuitive and follows the de facto standards for most text editors. For example, Ctrl ← or Ctrl → move the cursor one word back and one word forward respectively. On the other hand, commands such as Ctrl B for bold or Ctrl I for italics do not work in Morphon because such rendering is effected through markup. The most useful hidden feature of Morphon's editing capacity is the "right-click" drop down menu. By clicking the right mouse button at the point of insertion, a menu appears that has the following options: (6)
Morphon is by far the best free XML editor in terms of ease of use. It does, however, have some problems. As with most freely available software, the documentation is not comprehensive. In such cases, it is often best to learn through experience. In the case of the THDL, such experiences can be shared among the users to create a knowledge base that can serve in lieu of good documentation. The following list contains some tips and pitfalls we have discovered in our brief experience with Morphon's XML editor. It will continue to be expanded as we gain more experience with the product through its use:
Morphon is presently the XML editor preferred by THDL and for which the most has been done to provide support in terms of creating and editing XML documents for our various projects. It receives this high recommendation because (1) it is freeware and (2) it is the easiest to use. It does have some drawbacks, however. Most notably, the entering of necessary diacritic characters is difficult and, being a Java-based application, the Windows 2000 keyboard created by THDL for entering diacritics does not work. Morphon does have a robust scripting and plug-in API that should make it possible to mimic the functionality of that keyboard within Morphon. However, the necessary time and skill to make this happen has not yet coalesced.