DIST=/project/web/extra/m17n-lib/mim-js/
-FILES=index.html index2.html test.html imlist.xml xex.js mim.js xex2.js mim2.js loadxml.html /usr/local/work/m17n-db-xml/MIM/*.mimx
+FILES=index.html index-old.html test.html imlist.xml xex.js mim.js xex-old.js mim-old.js loadxml.html /usr/local/work/m17n-db-xml/MIM/*.mimx
upload:
@updated=""; \
-->
</style>
<title>M17N Input Method by JavaScript</title>
- <script src="xex2.js"></script>
- <script src="mim2.js"></script>
+ <script src="xex.js"></script>
+ <script src="mim.js"></script>
<script type="text/javascript">
MIM.debug_print = function (event, ic)
{
<tr><th>down</th><td id="status0"></td><td id="keydown">0</td><td id="keymap0"></td><td id="preedit0"></td><td id="range0"></td></tr>
<tr><th>press</th><td id="status1"></td><td id="keypress">0</td><td id="keymap1"></td><td id="preedit1"></td><td id="range1"></td></tr>
</table>
-<!--
<br>
Please add this link
-<a href="javascript:(function(){var%20s=document.createElement(%22script%22);s.src=%22http://www.m17n.org/common/mim-js/xex2.js%22;document.body.appendChild(s);s=document.createElement(%22script%22);s.src=%22http://www.m17n.org/common/mim-js/mim2.js%22;document.body.appendChild(s);setTimeout(function(){MIM.init();},2000);})();">MIM-JS</a>
+<a href="javascript:(function(){var%20s=document.createElement(%22script%22);s.src=%22http://www.m17n.org/common/mim-js/xex.js%22;document.body.appendChild(s);s=document.createElement(%22script%22);s.src=%22http://www.m17n.org/common/mim-js/mim.js%22;document.body.appendChild(s);setTimeout(function(){MIM.init();},1000);})();">MIM-JS</a>
to the bookmark. Then, you can activate the MIM input method on any page
when you access the bookmarked link.<br>
--->
<input type="button" value="Click here to toggle logging!"
onmousedown="toggle_debug ()">
</body>
// Please note that the code is not yet matured.
+// Known bugs:
+// * MIM.get_preedit_pos () returns incorrect position sometimes.
+
var MIM = {
// URL of the input method server.
server: "http://www.m17n.org/common/mim-js",
// Style properties of the logging node.
var styles = { border: '1px solid black',
font: 'normal normal normal small monospace',
- width: '100%',
+ width: '600px',
minHeight: '300px',
maxHeight: '300px',
overflow: 'auto' };
Xex.One = new Xex.IntTerm (1);
Xex.nil = new Xex.SymTerm ('nil');
-Xex.LoadOld = function (server, file)
-{
- var obj = new XMLHttpRequest ();
- var url = server ? server + '/' + file : file;
- obj.open ('GET', url, false);
- obj.overrideMimeType ('text/xml');
- obj.send ('');
- return (obj.responseXML && obj.responseXML.firstChild);
-};
-
(function () {
var queue = new Array ();
var iframe = null;
}
}
}) ();
-