summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-03-10 15:49:41 +0100
committerPatrick Simianer <p@simianer.de>2016-03-10 15:49:41 +0100
commit5d3f588582ff0bd27df34139e4fae4517c177ba7 (patch)
treef2073f81e500b0540f13c2d0a9df57ed0793c309 /inc
parentee35a6ec4c43906173446207d4ec441b9eaa461a (diff)
improved help, hid meta stuff, fix db
Diffstat (limited to 'inc')
-rw-r--r--inc/db.inc.php8
-rw-r--r--inc/help.inc.php24
-rw-r--r--inc/session-overview.inc.php4
3 files changed, 16 insertions, 20 deletions
diff --git a/inc/db.inc.php b/inc/db.inc.php
new file mode 100644
index 0000000..f08eda5
--- /dev/null
+++ b/inc/db.inc.php
@@ -0,0 +1,8 @@
+<?php
+
+$SESSION_DIR="/fast_scratch/simianer/lfpe/sessions";
+$json = file_get_contents($SESSION_DIR."/".$_GET["key"]."/data.json");
+$db = json_decode($json);
+
+?>
+
diff --git a/inc/help.inc.php b/inc/help.inc.php
index 0977776..c29d989 100644
--- a/inc/help.inc.php
+++ b/inc/help.inc.php
@@ -1,32 +1,31 @@
<p>Press the 'Next' button to <strong>submit</strong> your post-edit and to request the next segment for post-edition.
-Alternatively, in the textual interface, you may just press return when the post-edit is finished ('Target' text area is focused).</p>
+In the textual interface, you may just press return when the post-edit is finished (and 'Target' text area is in focus).</p>
-<p>The session can be paused at any time and continued later; However, if you have to pause your session, wait until the activity notification disappears and then press 'Pause', as we are collecting timing information. You may also just reload this site upon your return and re-request the segment to reset the timer.</p>
+<p>The session can be paused at any time and continued later -- just press 'Pause'. Note that we are collecting timing information, so pausing your session on inactivity is important for us. You may also just reload this site upon your return and re-request the segment to reset the timer.</p>
<p>Please use only a <strong>single browser window</strong> per session at the same time. Going back to earlier examples is not possible, please take great care when interacting with the system.</p>
<p><span style="border-bottom:1px solid #ccc">Instructions for the graphical interface:</span></p>
-<p>To submit a post-edition in the graphical interface all phrases have to be marked as finished (phrases are highlighted in dark gray color).</p>
+<p>Mark all phrases as finished (phrases are highlighted in dark gray color) and press 'Next' to submit a post-edition in the graphical interface. Keyboard interface:</p>
<ul>
- <li><strong>Moving around:</strong> Press <strong>Shift+S</strong>, then select phrases using the arrow keys. This is the default mode.</li>
+ <li><strong>Moving around:</strong> Press <strong>Shift+S</strong>, then select phrases using the arrow keys. This is the default mode. Use <strong>Shift+I</strong> to jump to the first phrase, or <strong>Shift+O</strong> to the very last phrase.</li>
<li><strong>Editing text:</strong> Double click on a phrase or press <strong>Shift+E</strong> to edit the contents of the current phrase. Press 'Return' to save.</li>
<li><strong>Reordering of target phrases:</strong> Press <strong>Shift+M</strong>, then use the arrow keys to move the selected phrase. Press 'Return' to fix its position.</li>
<li><strong>Mark phrase as finished:</strong> Press <strong>Return</strong> to mark phrases as finished (press 'Return' again to undo). Moving, editing, aligning or deleting of finished phrases is not possible.</li>
- <li><strong>Adding target phrases:</strong> To add a phrase right next to the currently selected one, press <strong>'A'</strong>.</li>
+ <li><strong>Adding target phrases:</strong> To add a phrase right next to the currently selected one, press <strong>Shift+A</strong>.</li>
<li><strong>Removing target phrases:</strong> Press <strong>Shift+D</strong> to delete the currently selected phrase.</li>
<li><strong>Adding/removing alignments:</strong> Select a source phrase by clicking on it, then click on a target phrase to connect or disconnect it with the selected source phrase. Click the selected source phrase again to cancel.</li>
<li><strong>Undo:</strong> Press <strong>Shift+U</strong> to undo alignments, text edits and deletion of phrases.</li>
- <li><strong>Reset:</strong> Click 'Reset' button to start from scratch.</li>
+ <li><strong>Reset:</strong> Click 'Reset' button to restart editing of the current segment.</li>
</ul>
<p>The interface was tested with <strong>Firefox</strong> 31, 38 and 43.</p>
-<p><span style="border-bottom:1px solid #ccc">Known issues:</span></p>
+<!--<p><span style="border-bottom:1px solid #ccc">Known issues:</span></p>
<ul>
<li>The width of the canvas of graphical editor may be to small when adding a lot of phrases.</li>
<li>The in-line editor may change height and span several lines.</li>
<li>When editing phrases that have no contents, the input box is lower than normal.</li>
- <li>The horizontal scrollbar doesn't follow highlighted phrase.</li>
<li>Mouseover is not detected for undoing.</li>
<li>The interface only works with Firefox.</li>
</ul>
@@ -36,12 +35,5 @@ Alternatively, in the textual interface, you may just press return when the post
<li>If the <em>string</em> of the translation is not changed (compared to the original MT output), there will be no pairwise ranking update. </li>
<li>New rules are added (and known rules are annotated) in a leave-one-out fashion. Amongst other things, this implies that 'new' rules will first receive a weight upon their second occurrence. As OOV rules are added prior to translation, they are added immediately.</li>
<li>Most tables are sortable (click on respective column in header row).</li>
-</ul>
-
-<p class="tiny">
- Support: <a href="mailto://simianer@cl.uni-heidelberg.de">Mail</a>
-</p>
-<p class="tiny">Session: <?php echo $_GET["key"]; ?> |
- <a href="http://postedit.cl.uni-heidelberg.de:<?php echo $db->port; ?>/debug" target="_blank">Debug</a>
-</p>
+</ul>-->
diff --git a/inc/session-overview.inc.php b/inc/session-overview.inc.php
index a6d46b8..793120a 100644
--- a/inc/session-overview.inc.php
+++ b/inc/session-overview.inc.php
@@ -1,9 +1,5 @@
<?php
-$SESSION_DIR="/fast_scratch/simianer/lfpe/sessions";
-$json = file_get_contents($SESSION_DIR."/".$_GET["key"]."/data.json");
-$db = json_decode($json);
-
$class = "";
$i = 0;
foreach($db->raw_source_segments as $s) {