summaryrefslogtreecommitdiff
path: root/demo.html
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-10-28 12:50:55 +0100
committerPatrick Simianer <p@simianer.de>2015-10-28 12:50:55 +0100
commit09f8c82118223b71a091600256af7a3d56734ddd (patch)
tree41ca3c6cff270923c5a648275f8a5073258510d2 /demo.html
parent20461c1beb880be96727265266e483b79cbeec04 (diff)
remove raphael lib, mv
Diffstat (limited to 'demo.html')
-rw-r--r--demo.html51
1 files changed, 51 insertions, 0 deletions
diff --git a/demo.html b/demo.html
new file mode 100644
index 0000000..3594dfd
--- /dev/null
+++ b/demo.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<!-- 2015-08-26 -->
+<html lang="en">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>derivation editor</title>
+ <script src="raphael.js" type="text/javascript" charset="utf-8"></script>
+ <!--<script src="Raphael.InlineTextEditing/raphael.inline_text_editing.js" charset="utf-8"></script>-->
+ <script src="https://raw.githubusercontent.com/marmelab/Raphael.InlineTextEditing/fd578f0eddd4172e6d9b3fde4cb67576cf546dc1/raphael.inline_text_editing.js" charset="utf-8"></script>
+ <script src="edit.js" type="text/javascript" charset="utf-8"></script>
+</head>
+<body>
+ <div id="derivation_editor">
+ <div id="holder"></div>
+ </div>
+ <input type="button" value="+" onClick="add_obj()" />
+ <input type="button" value="reset" onClick="reset();" />
+ <input type="button" value="D" onClick="extract_data()" />
+ <pre id="data">
+ <pre id="debug" style="background:red;width:100%"></pre>
+ </pre>
+ <h3>Instructions</h3>
+ <ul>
+ <li><strong>reorder target phrases:</strong> drag and drop the box</li>
+ <li><strong>add/remove links:</strong> select a source phrase by clicking on its box, then click on appropriate target phrase (click selected source phrase again to cancel linking)</li>
+ <li><strong>edit text:</strong> double click on text, click outside once to stop editing</li>
+ <li><strong>add target phrase:</strong> click '+' button to add a new phrase</li>
+ <li><strong>remove target phrase:</strong> drag phrase onto red box</li>
+ <li><strong>reset:</strong> click 'reset' button to start from scratch</li>
+ <li><strong>show recorded data:</strong>click 'D' button</li>
+ </ul>
+ <h3>TODO</h3>
+ <ul>
+ <li><strike>edit text and resize, move (dblclick)</strike></li>
+ <li><strike>remove objs (move to special field)</strike></li>
+ <li><strike>add objs ("+" button, far right)</strike></li>
+ <li><strike>add alignments (click source, then target)</strike></li>
+ <li><strike>extract data</strike></li>
+ <li><strike>integrate into MT system</strike</li>
+ <li>integrate in live system</li>
+ </ul>
+ <h3>known issues</h3>
+ <ul>
+ <li>text editing is somewhat buggy (hides words while typing)</li>
+ <li>instructions should be rewritten</li>
+ <li>no undo</li>
+ <li>source side is fixed</li>
+ </ul>
+</body>
+</html>
+