Quote:
Originally Posted by lpetrich
Seems like some trouble in generating the HTML for the info bubbles.
Here's a kludge that will work:
Enter the Cyrillic text or special characters as HTML entities when editing an entry, characters in this form: &#<decimal>; or &#x<hexadecimal>; or &<name>;
It should be displayed in the info bubbles correctly. However, it'll get displayed as the translated characters the next time you go edit. Digging in the plugin code for how to take care of this mess will be rather difficult for me, however. However, I've prepared a kludge:
Create a translator page with this HTML code
HTML Code:
<script type="text/javascript" language="javascript">
<!--
function Make_HTML_Entities()
{
var text = document.getElementById("TextInput").value;
var uctext = ""
for (var i=0; i<text.length; i++)
{
ucchr = "&#" + text.charCodeAt(i) + ";";
uctext += ucchr;
}
document.getElementById("TextOutput").innerHTML = uctext;
}
//-->
</script>
<table>
<tr>
<td>Text to be expanded:</td>
<td>
<input id="TextInput" type="text">
<input type="button" value="Go!" onclick="Make_HTML_Entities()">
</td>
</tr><tr>
<td>As HTML entities:</td>
<td>
<div id="TextOutput"></div>
</td>
</tr>
</table>
It'll turn whatever you had typed into HTML entities, which can then be used as input.
|
Thank you. It's a good manual solution, but when you have hundreds of users adding their info it becomes a liability. Unfortunately for right now I am unable to use this awesome mod due to the tooltip encoding issue.