Made some changes to the OnlineTranslationTool. Now when text is redisplayed as links, is shows up with the declension marks.
This commit is contained in:
parent
ff130e6fb1
commit
d4dc004c2a
3 changed files with 70 additions and 75 deletions
|
@ -76,28 +76,31 @@ public class SwingWord extends Word
|
|||
return getLink(false);
|
||||
}
|
||||
|
||||
/** Returns the word marked up as a link.
|
||||
*
|
||||
*/
|
||||
public String getLink(boolean tibetan)
|
||||
{
|
||||
String localWord, result=null;
|
||||
// String result;
|
||||
if (wordSinDec==null) localWord = super.token;
|
||||
else localWord = wordSinDec;
|
||||
if (tibetan)
|
||||
{
|
||||
try
|
||||
{
|
||||
result = TibetanHTML.getHTML(localWord + " ");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
result = localWord;
|
||||
}
|
||||
}
|
||||
else result = localWord;
|
||||
/* result = "<a href=\"#" + word + "\">" + localWord;
|
||||
if (tibetan) result+= "</a>";
|
||||
else result+= "</a> ";
|
||||
return result;*/
|
||||
return "<a href=\"#" + super.token + "\">" + result + "</a> ";
|
||||
|
||||
if (wordSinDec==null) localWord = super.token;
|
||||
else localWord = wordSinDec;
|
||||
if (tibetan)
|
||||
{
|
||||
try
|
||||
{
|
||||
result = TibetanHTML.getHTML(localWord + " ");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
result = localWord;
|
||||
}
|
||||
}
|
||||
else result = localWord;
|
||||
/* result = "<a href=\"#" + word + "\">" + localWord;
|
||||
if (tibetan) result+= "</a>";
|
||||
else result+= "</a> ";
|
||||
return result;*/
|
||||
return "<a href=\"#" + super.token + "\">" + result + "</a> ";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue