Skip to content

Commit

Permalink
updated dist to version 1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoemp committed Apr 15, 2017
1 parent 8f46dd9 commit d3e8718
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 10 deletions.
23 changes: 19 additions & 4 deletions dist/assets/i18n/octra/octra_de.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
"project": "Projekt",
"authors": "Authoren",
"no guidelines found": "Keine Transkriptionsrichtlinien gefunden",
"example": "Beispiel"
"example": "Beispiel",
"select database": "Datenbank wählen",
"agreement": "Einverständniserklärung",
"agreement read": "Ich habe die {{agreement}} gelesen und akzeptiert"
},
"transcription":{
"start": "Transkription fortsetzen",
Expand Down Expand Up @@ -113,7 +116,10 @@
"online mode": "Online Modus",
"online mode disabled": "Der Online Modus ist derzeit deaktiviert. Sie können OCTRA stattdessen lokal nutzen.",
"local mode": "Lokaler Modus",
"old file found": "Es wurden Daten zu einer vorherigen Transkription gefunden. Um diese fortzusetzen, ziehen Sie die folgende Datei per Drag & Drop in das graue Feld:<br/><br/>{{file_label}}"
"old file found": "Es wurden Daten zu einer vorherigen Transkription gefunden. Um diese fortzusetzen, ziehen Sie die folgende Datei per Drag & Drop in das graue Feld:<br/><br/>{{file_label}}",
"online mode data warning": "Es sind lokale Daten vorhanden, die im Offline Modus erstellt worden sind. Das Nutzen des Online Modus überschreibt diese lokalen Daten.",
"offline mode data warning": "Es sind lokale Daten vorhanden, die im Online Modus erstellt worden sind. Das Nutzen des Offline Modus überschreibt diese lokalen Daten.",
"online mode continue": "Es wurden alte Daten gefunden. Zum Forsetzen folgende Daten angeben: {{member_id}} , {{member_project}}, {{member_jobno}}"
},
"dropzone": {
"drag&drop here": "Audiodatei (*.wav) hier hineinziehen oder hier klicken",
Expand Down Expand Up @@ -148,5 +154,14 @@
},
"segment invisible": "Das Segment muss sichtbar sein, um es abspielen zu können",
"boundary cannot delete": "Die Segmentgrenze kann nicht gelöscht werden, da daran angrenzende Segmente bereits transkribiert wurden",
"boundary cannot set": "Die Segmentgrenze kann nicht innerhalb eines trankribierten Segments gesetzt werden"
}
"boundary cannot set": "Die Segmentgrenze kann nicht innerhalb eines trankribierten Segments gesetzt werden",
"send error": "Es ist ein Fehler aufgetreten. Lade diese Seite mit ihrem Browser noch einmal und versuche es erneut",
"transcription submitted":{
"no jobs left": "Keine freien Aufgaben verfügbar",
"transcription sent": "Transkription wurde übertragen.",
"transcription sent successfully": "Ihre Transkription wurde erfolgreich übertragen.",
"want to do": "Was wollen Sie tun?",
"quit": "Beenden und abmelden",
"next transcription": "Jetzt nächste Transkription durchführen"
}
}
21 changes: 18 additions & 3 deletions dist/assets/i18n/octra/octra_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
"project": "Project",
"authors": "Authors",
"no guidelines found": "No guidelines found",
"example": "Example"
"example": "Example",
"select database": "Select Database",
"agreement": "agreement",
"agreement read": "I have read the agreement and accept its content"
},
"transcription":{
"start": "Continue transcription",
Expand Down Expand Up @@ -114,7 +117,10 @@
"online mode": "Online Mode",
"online mode disabled": "Online mode is currently inactive. Please use OCTRA locally.",
"local mode": "Local Mode",
"old file found": "There is data from a previous transcription. If you like to continue your work, just drag & drop the following file to the gray box:<br/><br/>{{file_label}}"
"old file found": "There is data from a previous transcription. If you like to continue your work, just drag & drop the following file to the gray box:<br/><br/>{{file_label}}",
"online mode data warning": "There is local data that was created in offline mode. If you want to continue in online mode this data will be overwritten.",
"offline mode data warning": "There is local data that was created in online mode. If you want to continue in offline mode this data will be overwritten.",
"online mode continue": "Old data found. To continue make sure to set these login data: {{member_id}} , {{member_project}}, {{member_jobno}}"
},
"dropzone": {
"drag&drop here": "Drag & Drop audio file (*.wav) here or click here.",
Expand Down Expand Up @@ -149,5 +155,14 @@
},
"segment invisible": "This segment has to be visible to play its audio sequence",
"boundary cannot delete": "Cannot delete boundary, because there are neighboring segments that are already transcribed.",
"boundary cannot set": "Cannot set boundary in a segments that is already transcribed."
"boundary cannot set": "Cannot set boundary in a segments that is already transcribed.",
"send error": "An error occured. Please reload this page and try it again",
"transcription submitted":{
"no jobs left": "No available jobs left",
"transcription sent": "transcription was transmitted",
"transcription sent successfully": "Your transcription was transmitted successfully.",
"want to do": "What do you like to do?",
"quit": "Quit and sign out",
"next transcription": "Get next transcription now"
}
}
66 changes: 66 additions & 0 deletions dist/assets/testfiles/functions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/**
* this is a test validation method to show how validation could work.
* @param annotation
* @returns {{position: number, length: number, code: string}}
*/
function validateAnnotation(annotation, guidelines) {
let result = [];

//Z01 Satzzeichen
let re = /[\(\.,\!\?;\-\)]/g;
while ((match = re.exec(annotation)) != null) {
result.push({
start: match.index,
length : match[0].length,
code: "Z01"
});
}

//G01
for(let i = 0; i < guidelines.markers.length; i++){
let marker = guidelines.markers[i].code;

re = new RegExp("("+ escapeRegex(marker) +")( *("+ escapeRegex(marker) +"))+", "g");
while ((match = re.exec(annotation)) != null) {
result.push({
start: match.index,
length : match[0].length,
code: "G01"
});
}
}

//R02 Ziffern
re = /[0-9]+/g;
while ((match = re.exec(annotation)) != null) {
result.push({
start: match.index,
length : match[0].length,
code: "R02"
});
}

result = sortValidationResult(result);
return result;
}

function escapeRegex(regex_str) {
//escape special chars in regex
return regex_str.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
}

function sortValidationResult(result){
return result.sort(function(a,b){
if(a.start == b.start)
return 0;
if(a.start < b.start)
return -1;
if(a.start > b.start)
return 1;
});
}

function tidyUpAnnotation(annotation, guidelines) {
let result = annotation;
return result;
}
2 changes: 1 addition & 1 deletion dist/config/allowed_users.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"name": "",
"name": "julian_test",
"id": 45
}
]
1 change: 1 addition & 0 deletions dist/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"octra": {
"login_enabled": false,
"logging_enabled": true,
"showdetails": true,
"responsive": {
"enabled": true,
"fixedwidth": 1200
Expand Down
4 changes: 2 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
})();
</script>
<link href="styles.00bb9d8710df94975c39.bundle.css" rel="stylesheet"/></head>
<link href="styles.9f8f4e8e287a24463bb2.bundle.css" rel="stylesheet"/></head>
<!-- 3. Display the application -->
<body>

Expand All @@ -33,5 +33,5 @@
</noscript>
</div>
</octra>
<script type="text/javascript" src="inline.8c57c796e216240a7c65.bundle.js"></script><script type="text/javascript" src="polyfills.9fe7b80a78a2b60116c5.bundle.js"></script><script type="text/javascript" src="scripts.fff9076962741e8872c7.bundle.js"></script><script type="text/javascript" src="vendor.6ee72a8d1699c6f9794b.bundle.js"></script><script type="text/javascript" src="main.b942d49b24a1c726037d.bundle.js"></script></body>
<script type="text/javascript" src="inline.018141b52314f596977a.bundle.js"></script><script type="text/javascript" src="polyfills.9fe7b80a78a2b60116c5.bundle.js"></script><script type="text/javascript" src="scripts.fff9076962741e8872c7.bundle.js"></script><script type="text/javascript" src="vendor.c4217ca646f0111a0f6d.bundle.js"></script><script type="text/javascript" src="main.6b76e624a0f2ee7e3cc6.bundle.js"></script></body>
</html>

0 comments on commit d3e8718

Please sign in to comment.