Ximalaya is not nearly as nice as Tibetan Machine Uni, so use the latter.
This commit is contained in:
parent
88ebeaed3b
commit
0b0af67ed9
4 changed files with 7 additions and 7 deletions
|
@ -96,7 +96,7 @@ thdl.Jskad.do.not.confirm.quit = false
|
||||||
thdl.Jskad.do.not.fix.curly.braces.in.rtf = false
|
thdl.Jskad.do.not.fix.curly.braces.in.rtf = false
|
||||||
|
|
||||||
# What font should be used for the result of TMW->Unicode conversions?
|
# What font should be used for the result of TMW->Unicode conversions?
|
||||||
thdl.tmw.to.unicode.font = Ximalaya
|
thdl.tmw.to.unicode.font = Tibetan Machine Uni
|
||||||
|
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
|
@ -418,7 +418,7 @@ need be.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
At present, the TMW->Unicode conversion converts to the Ximalaya
|
At present, the TMW->Unicode conversion converts to the Tibetan Machine Uni
|
||||||
font. If users ask for it, the converter can easily be
|
font. If users ask for it, the converter can easily be
|
||||||
extended to convert to the font of the user's choice.<!-- FIXME:
|
extended to convert to the font of the user's choice.<!-- FIXME:
|
||||||
what about 0020, 2003, 54xx, etc.? Allow for specifying the fonts
|
what about 0020, 2003, 54xx, etc.? Allow for specifying the fonts
|
||||||
|
|
|
@ -680,7 +680,7 @@ public class TibetanDocument extends DefaultStyledDocument {
|
||||||
@param errors if non-null, then notes about all exceptional
|
@param errors if non-null, then notes about all exceptional
|
||||||
cases will be appended to this StringBuffer
|
cases will be appended to this StringBuffer
|
||||||
@param unicodeFont the name of the Unicode font to use;
|
@param unicodeFont the name of the Unicode font to use;
|
||||||
defaults to Ximalaya if null
|
defaults to Tibetan Machine Uni if null
|
||||||
@param numAttemptedReplacements an array that contains one
|
@param numAttemptedReplacements an array that contains one
|
||||||
element; this first element will be, upon exit, incremented by
|
element; this first element will be, upon exit, incremented by
|
||||||
the number of TMW glyphs that we encountered and attempted to
|
the number of TMW glyphs that we encountered and attempted to
|
||||||
|
@ -1269,7 +1269,7 @@ public class TibetanDocument extends DefaultStyledDocument {
|
||||||
/** Returns all the paragraph elements in this document that
|
/** Returns all the paragraph elements in this document that
|
||||||
* contain glyphs with offsets in the range [start, end) where
|
* contain glyphs with offsets in the range [start, end) where
|
||||||
* end < 0 is treated as the document's length. Note that roman,
|
* end < 0 is treated as the document's length. Note that roman,
|
||||||
* TM, Ximalaya, and TMW text can all be intermingled
|
* TM, Tibetan Machine Uni, and TMW text can all be intermingled
|
||||||
* within a paragraph. It's the correct level of abstraction to
|
* within a paragraph. It's the correct level of abstraction to
|
||||||
* use, however, because the next finer grain is roughly one
|
* use, however, because the next finer grain is roughly one
|
||||||
* Element per glyph. */
|
* Element per glyph. */
|
||||||
|
|
|
@ -333,7 +333,7 @@ public class TibetanMachineWeb implements THDLWylieConstants {
|
||||||
|
|
||||||
defaultUnicodeFontAttributeSet = new SimpleAttributeSet();
|
defaultUnicodeFontAttributeSet = new SimpleAttributeSet();
|
||||||
StyleConstants.setFontFamily(defaultUnicodeFontAttributeSet,
|
StyleConstants.setFontFamily(defaultUnicodeFontAttributeSet,
|
||||||
"Ximalaya");
|
"Tibetan Machine Uni");
|
||||||
|
|
||||||
webFontAttributeSet[0] = null;
|
webFontAttributeSet[0] = null;
|
||||||
for (int i=1; i<webFontAttributeSet.length; i++) {
|
for (int i=1; i<webFontAttributeSet.length; i++) {
|
||||||
|
@ -873,12 +873,12 @@ public static SimpleAttributeSet getAttributeSet(int font) {
|
||||||
* order to be able to put styled text into {@link TibetanDocument
|
* order to be able to put styled text into {@link TibetanDocument
|
||||||
* TibetanDocument}.
|
* TibetanDocument}.
|
||||||
* @param unicodeFont the interned name of the Unicode font to use;
|
* @param unicodeFont the interned name of the Unicode font to use;
|
||||||
* defaults to Ximalaya if null
|
* defaults to Tibetan Machine Uni if null
|
||||||
* @return a SimpleAttributeSet for the Unicode font - that is, a way
|
* @return a SimpleAttributeSet for the Unicode font - that is, a way
|
||||||
* of encoding the font itself */
|
* of encoding the font itself */
|
||||||
public static SimpleAttributeSet getUnicodeAttributeSet(String unicodeFont) {
|
public static SimpleAttributeSet getUnicodeAttributeSet(String unicodeFont) {
|
||||||
if (null == unicodeFont
|
if (null == unicodeFont
|
||||||
|| "Ximalaya" == unicodeFont)
|
|| "Tibetan Machine Uni" == unicodeFont)
|
||||||
return defaultUnicodeFontAttributeSet;
|
return defaultUnicodeFontAttributeSet;
|
||||||
else {
|
else {
|
||||||
SimpleAttributeSet cached
|
SimpleAttributeSet cached
|
||||||
|
|
Loading…
Reference in a new issue