TM->TMW and TMW->TM conversion in RTF is now supported. I've
noticed that formatting is mostly OK but sometimes gets bungled slightly. I tried everything I could think of, and now I'm passing the buck to Java's RTF support. TMW_RTF_TO_THDL_WYLIE (now misnamed) support TMW->TM conversion (but not TM->TMW). There is an automated test case for a TMW->TM conversion. I have full confidence in this conversion. Even the smallest glitch in the core functionality (not formatting) would surprise me.
This commit is contained in:
parent
3216db25c9
commit
414ab0ded8
2 changed files with 25 additions and 13 deletions
|
@ -218,8 +218,8 @@ The first section of text is the short "introduction" about the Theme and the va
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
a <a href="TMW_RTF_TO_THDL_WYLIE.html"> document</a> describing
|
a <a href="TMW_RTF_TO_THDL_WYLIE.html"> document</a> describing
|
||||||
a Tibetan Machine Web to THDL Extended Wylie converter that
|
a Tibetan Machine Web to {THDL Extended Wylie, Tibetan Machine}
|
||||||
works for Rich Text Format files and solves the
|
converter that works for Rich Text Format files and solves the
|
||||||
"curly-brace problem".
|
"curly-brace problem".
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|
|
@ -24,7 +24,7 @@ INSERT PAGE TITLE HERE
|
||||||
Always incorporate Tibetan and Himalayan
|
Always incorporate Tibetan and Himalayan
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<title>TMW to THDL Extended Wylie Converter</title>
|
<title>Tibetan Machine Web Converter</title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-utf-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-utf-8">
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
@ -116,7 +116,7 @@ INSERT THE BREADCRUMBS
|
||||||
A HREF tags should not be applied to current page, e.g. THDL and Collections get link, Literature and Home do not. If you were on a subpage of Literature, then Literature would link to the Literature home page.
|
A HREF tags should not be applied to current page, e.g. THDL and Collections get link, Literature and Home do not. If you were on a subpage of Literature, then Literature would link to the Literature home page.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<div align="right"><font color="#000000"><A HREF="http://iris.lib.virginia.edu/tibet/index.html">THDL</A> : <A HREF="http://iris.lib.virginia.edu/tibet/tools/index.html">Tools</A> : <a href="http://iris.lib.virginia.edu/tibet/tools/software.html">Software</a> : TMW_RTF_TO_THDL_WYLIE</a></font>
|
<div align="right"><font color="#000000"><A HREF="http://iris.lib.virginia.edu/tibet/index.html">THDL</A> : <A HREF="http://iris.lib.virginia.edu/tibet/tools/index.html">Tools</A> : <a href="http://iris.lib.virginia.edu/tibet/tools/software.html">Software</a> : Tibetan Machine Web Converter</a></font>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -188,14 +188,18 @@ The first section of text is the short "introduction" about the Theme and the va
|
||||||
Design principle: Bold the first few words of this text section.
|
Design principle: Bold the first few words of this text section.
|
||||||
==============
|
==============
|
||||||
-->
|
-->
|
||||||
<h2>TMW to THDL Extended Wylie Converter</h2>
|
<h2>Tibetan Machine Web Converter</h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
In the same JAR file as Jskad, power users will find a command-line
|
In the same JAR file as Jskad, power users will find a command-line
|
||||||
utility that converts Tibetan Machine Web-encoded (TMW-encoded) Rich
|
utility that converts a Tibetan Machine Web-encoded (TMW-encoded) Rich
|
||||||
Text Format (RTF) files to RTF files with the appropriate THDL
|
Text Format (RTF) file to either of these two output formats:
|
||||||
Extended Wylie (Wylie) used instead of TMW.
|
|
||||||
</p>
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>RTF files with the appropriate THDL Extended Wylie (Wylie) used
|
||||||
|
instead of TMW</li>
|
||||||
|
<li>RTF files in Tibetan Machine (used in legacy systems)</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
This converter is smart enough to solve the "curly-brace
|
This converter is smart enough to solve the "curly-brace
|
||||||
|
@ -233,10 +237,10 @@ non-TMW character newline in the font Times New Roman appears first at location
|
||||||
Given the above output, you can be sure that a flawless conversion
|
Given the above output, you can be sure that a flawless conversion
|
||||||
(barring the appearance of <a href="#knownbugs">known bugs</a>) will
|
(barring the appearance of <a href="#knownbugs">known bugs</a>) will
|
||||||
result when you run <tt>java -cp Jskad.jar
|
result when you run <tt>java -cp Jskad.jar
|
||||||
org.thdl.tib.input.TMW_RTF_TO_THDL_WYLIE "Dalai Lama Fifth History
|
org.thdl.tib.input.TMW_RTF_TO_THDL_WYLIE --to-wylie "Dalai Lama
|
||||||
01.rtf" > "Dalai Lama Fifth History 01 in THDL Extended
|
Fifth History 01.rtf" > "Dalai Lama Fifth History 01 in THDL
|
||||||
Wylie.rtf"</tt>. This is because the only text in the input
|
Extended Wylie.rtf"</tt>. This is because the only text in the
|
||||||
file besides Tibetan is whitespace and the Tahoma characters
|
input file besides Tibetan is whitespace and the Tahoma characters
|
||||||
<tt>'{'</tt>, <tt>'}'</tt>, and <tt>'\'</tt>. These Tahoma
|
<tt>'{'</tt>, <tt>'}'</tt>, and <tt>'\'</tt>. These Tahoma
|
||||||
characters are understood by the tool; they are symptoms of the
|
characters are understood by the tool; they are symptoms of the
|
||||||
"curly-brace problem".
|
"curly-brace problem".
|
||||||
|
@ -266,12 +270,20 @@ non-TMW character newline in the font Times New Roman appears first at location
|
||||||
Wylie by the tool, please report this as a bug.
|
Wylie by the tool, please report this as a bug.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Note also that there is one TMW glyph (TibetanMachineWeb7, glyph 91)
|
||||||
|
that has no Tibetan Machine equivalent. A 72-point copy of the
|
||||||
|
alphabet and the Tibetan numbers will be inserted (in TMW) in place
|
||||||
|
of this glyph.
|
||||||
|
</p>
|
||||||
|
|
||||||
<h3>Invoking the Converter</h3>
|
<h3>Invoking the Converter</h3>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
First add Jskad.jar to your CLASSPATH. Now run the command
|
First add Jskad.jar to your CLASSPATH. Now run the command
|
||||||
<tt>java org.thdl.tib.input.TMW_RTF_TO_THDL_WYLIE</tt> from a
|
<tt>java org.thdl.tib.input.TMW_RTF_TO_THDL_WYLIE</tt> from a
|
||||||
command prompt. You will see usage information appear.
|
command prompt. You will see usage information appear.
|
||||||
|
Forgive the name; this converter's scope widened after its creation.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h3><a name="knownbugs"></a>Known Bugs</h3>
|
<h3><a name="knownbugs"></a>Known Bugs</h3>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue