Contributors: Than Grove, Steven Weinberger
Quick links: oXygen | Free Text Editors
We recommend using oXygen to edit XML, XSL, and PHP files.
To configure oXygen, pull down the Options menu and select Preferences. Keep all the default settings but CHANGE the following values:
If when you open an XML file the Tibetan font appears as square boxes, do the following;
In oXygen, you do a search on the glossary and make sure that "Regular Expression" is checked. Then you search for:
<term lang="chi" rend="([^"]+)">([^<]+)</term>
and replace that with:
<term lang="chi">$2 <foreign lang="chi" rend="chi parens">$1</foreign></term>
The parentheses are areas where you want to store the value so the first set is equal to $1 and the second $2. Phrases like [^"]+ means one or more characters (+) that are part of the set ([]) that are NOT (^) the " character.
In the XPath 2.0 search box in the toolbar at the top left of the oXygen window enter:
It will return all occurrences of <persName> element that does NOT have @lang and that has as part of its value thar
This will return all <placeName lang="tib"> that contain mon dur in the value AND that do NOT have corresp=""
To search on an arabic number like 5 and search for instances that are not values of an element:
In the find dialog box:
To run an XSLT to repopulate the pinyin in an article or essay XML file with the value in a file of modified glossary entries:
Procedure for running the XSL transformation:
to the name of the XML file with the revised entries in it
For free text editors to run in Windows, we suggest
Komodo Edit. You could also try TextPad.
Note: these are provisional recommendations; we have not tested these extensively.