Skip to content

Commit

Permalink
chore: use production version 4.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Pol Torrent i Soler committed Sep 21, 2023
1 parent 951d89d commit b551927
Show file tree
Hide file tree
Showing 32 changed files with 251 additions and 150 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public function __call($m, $a) {
else
throw new HException('Unable to call «'.$m.'»');
}
static function __meta__() { $»args = func_get_args(); return call_user_func_array(self::$__meta__, $»args); }
static $__meta__;
static $REFER = "ref";
static $PARENT = "ref_parent";
static $STROKE = "stroke";
Expand All @@ -35,6 +37,7 @@ public function __call($m, $a) {
static $POINT_SIZE = "point_size";
static $POINT_STYLE = "point_style";
static $LABEL = "label";
static $LABEL_VISIBILITY = "label_visibility";
static $LABEL_COLOR = "label_color";
static $LABEL_BOLD = "label_bold";
static $LABEL_ITALIC = "label_italic";
Expand All @@ -43,7 +46,6 @@ public function __call($m, $a) {
static $FIXED = "fixed";
static $COLOR = "color";
static $FONT_SIZE = "font_size";
static $LABEL_VISIBILITY = "label_visibility";
static $VIEW_3D = "view_3D";
static $PIE_RADIUS = "pie_radius";
static $PIE_HEIGHT = "pie_height";
Expand Down Expand Up @@ -77,3 +79,4 @@ static function newGeometryElementStyle() {
}
function __toString() { return 'com.wiris.util.geometry.GeometryElementStyle'; }
}
com_wiris_util_geometry_GeometryElementStyle::$__meta__ = _hx_anonymous(array("statics" => _hx_anonymous(array("LABEL" => _hx_anonymous(array("Deprecated" => null))))));
47 changes: 47 additions & 0 deletions quizzes/lib/com/wiris/util/type/StringUtils.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,52 @@ static function countOccurrences($s, $target) {
}
return $count;
}
static function splitOnGreek($text) {
$length = haxe_Utf8::length($text);
if($length === 0) {
return null;
}
$runs = null;
$runStartIndex = 0;
$currentIndex = 0;
$currentGreekRun = true;
$it = com_wiris_system_Utf8::getIterator($text);
while($it->hasNext()) {
$codepoint = $it->next();
$isGreek = com_wiris_util_xml_WCharacterBase::isGreek($codepoint);
if($isGreek && !$currentGreekRun) {
if($runs === null) {
$runs = new _hx_array(array());
}
$runText = haxe_Utf8::sub($text, $runStartIndex, $currentIndex - $runStartIndex);
$runs->push($runText);
unset($runText);
}
if($isGreek) {
if($runs === null) {
$runs = new _hx_array(array());
}
$runs->push(com_wiris_util_type_StringUtils_0($codepoint, $currentGreekRun, $currentIndex, $isGreek, $it, $length, $runStartIndex, $runs, $text));
}
if($isGreek !== $currentGreekRun) {
$runStartIndex = $currentIndex;
$currentGreekRun = $isGreek;
}
$currentIndex += 1;
unset($isGreek,$codepoint);
}
if($runs !== null && !$currentGreekRun) {
$runText = haxe_Utf8::sub($text, $runStartIndex, $currentIndex - $runStartIndex);
$runs->push($runText);
}
return $runs;
}
function __toString() { return 'com.wiris.util.type.StringUtils'; }
}
function com_wiris_util_type_StringUtils_0(&$codepoint, &$currentGreekRun, &$currentIndex, &$isGreek, &$it, &$length, &$runStartIndex, &$runs, &$text) {
{
$s = new haxe_Utf8(null);
$s->addChar($codepoint);
return $s->toString();
}
}
12 changes: 12 additions & 0 deletions quizzes/lib/com/wiris/util/xml/WCharacterBase.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,18 @@ static function stripAccent($c) {
return com_wiris_util_xml_WCharacterBase_5($c);
}
}
static function containsGreek($text) {
if($text === null) {
return false;
}
$it = com_wiris_system_Utf8::getIterator($text);
while($it->hasNext()) {
if(com_wiris_util_xml_WCharacterBase::isGreek($it->next())) {
return true;
}
}
return false;
}
function __toString() { return 'com.wiris.util.xml.WCharacterBase'; }
}
com_wiris_util_xml_WCharacterBase::$ALIGNMENT_RELATION_OPERATORS = new _hx_array(array(61, 8801, 8764, 8776, 8771, 8773, 8800, 8802, 8769, 62, 60, 8805, 8804, 10878, 10877, 10887, 10888, 8810, 8811, 8733, 8826, 8827, 8882, 8883));
Expand Down
57 changes: 48 additions & 9 deletions quizzes/lib/quizzes.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions quizzes/lib/strings_graph.ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"tt_squareRoot": "arrel quadrada",
"tt_nRoot": "arrel",
"tt_numbers": "nombre",
"tt_numberE": "número e",
"tt_numberE": "nombre e",
"tt_numberPi": "nombre pi",
"tt_functions": "funcions",
"tt_sinus": "sinus",
Expand All @@ -96,9 +96,9 @@
"tt_download": "Descarregar",
"tt_settingsSection": "Configuració",
"tt_settings": "Configuració",
"tt_showHiddenElements": "Show hidden elements",
"tt_hideElement": "Hide element",
"tt_restoreInitialContent": "Restore",
"tt_showHiddenElements": "Mostrar elements ocults",
"tt_hideElement": "Amagar element",
"tt_restoreInitialContent": "Restaurar",

"tt_view": "Flotant",
"tt_maximize": "Maximitzar",
Expand Down Expand Up @@ -157,8 +157,8 @@
"downloadText": "Seleccioneu una mida per descarregar el tauler gràfic com una imatge PNG quadrada.",
"downloadHelperText": "Imatge quadrada (1:1)",
"downloadErrorText": "La mida ha de ser un nombre enter positiu.",
"confirm": "confirma",
"cancel": "cancel·la",
"confirm": "Confirmar",
"cancel": "cancel·lar",
"sizeInPixels": "Mida en píxels",
"insertANumber": "Inseriu un nombre",

Expand Down
6 changes: 3 additions & 3 deletions quizzes/lib/strings_graph.da.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@
"tt_download": "Download",
"tt_settingsSection": "Indstillinger",
"tt_settings": "Indstillinger",
"tt_showHiddenElements": "Show hidden elements",
"tt_hideElement": "Hide element",
"tt_restoreInitialContent": "Restore",
"tt_showHiddenElements": "Vis skjulte elementer",
"tt_hideElement": "Skjul element",
"tt_restoreInitialContent": "Gendan",

"tt_view": "Floating",
"tt_maximize": "Maksimer",
Expand Down
6 changes: 3 additions & 3 deletions quizzes/lib/strings_graph.de.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@
"tt_download": "Download",
"tt_settingsSection": "Einstellungen",
"tt_settings": "Einstellungen",
"tt_showHiddenElements": "Show hidden elements",
"tt_hideElement": "Hide element",
"tt_restoreInitialContent": "Restore",
"tt_showHiddenElements": "Ausgeblendete Elemente anzeigen",
"tt_hideElement": "Element ausblenden",
"tt_restoreInitialContent": "Wiederherstellen",

"tt_view": "Floating",
"tt_maximize": "Maximieren",
Expand Down
6 changes: 3 additions & 3 deletions quizzes/lib/strings_graph.el.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@
"tt_download": "Download",
"tt_settingsSection": "Ρυθμίσεις",
"tt_settings": "Ρυθμίσεις",
"tt_showHiddenElements": "Show hidden elements",
"tt_hideElement": "Hide element",
"tt_restoreInitialContent": "Restore",
"tt_showHiddenElements": "Εμφάνιση κρυμμένων στοιχείων",
"tt_hideElement": "Απόκρυψη στοιχείου",
"tt_restoreInitialContent": "Επαναφορά",

"tt_view": "Floating",
"tt_maximize": "Μεγέθυνση",
Expand Down
2 changes: 1 addition & 1 deletion quizzes/lib/strings_graph.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
"downloadText": "Select a size to download the plotter as a square PNG image.",
"downloadHelperText": "Square Image (1:1)",
"downloadErrorText": "Size must be a whole number.",
"confirm": "confirm",
"confirm": "Confirm",
"cancel": "cancel",
"sizeInPixels": "Size in pixels",
"insertANumber": "Insert a number",
Expand Down
8 changes: 4 additions & 4 deletions quizzes/lib/strings_graph.es.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@
"tt_download": "Descargar",
"tt_settingsSection": "Configuración",
"tt_settings": "Configuración",
"tt_showHiddenElements": "Show hidden elements",
"tt_hideElement": "Hide element",
"tt_restoreInitialContent": "Restore",
"tt_showHiddenElements": "Mostrar elementos ocultos",
"tt_hideElement": "Ocultar elemento",
"tt_restoreInitialContent": "Restaurar",

"tt_view": "Flotante",
"tt_maximize": "Maximizar",
Expand Down Expand Up @@ -157,7 +157,7 @@
"downloadText": "Seleccione un tamaño para descargar el tablero gráfico como una imagen cuadrada PNG",
"downloadHelperText": "Imagen cuadrada (1:1)",
"downloadErrorText": "El tamaño debe ser un número entero positivo.",
"confirm": "confirmar",
"confirm": "Confirmar",
"cancel": "cancelar",
"sizeInPixels": "Tamaño en píxeles",
"insertANumber": "Inserte un número",
Expand Down
12 changes: 6 additions & 6 deletions quizzes/lib/strings_graph.fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"tt_measures": "Mesures",
"tt_area": "Zone",
"tt_angle": "Angle",
"tt_length": "Longueur",
"tt_length": "Longitud",
"tt_labels": "Étiquette",
"tt_elementMML": "Expression",
"tt_image": "Image",
Expand Down Expand Up @@ -73,7 +73,7 @@
"tt_squareRoot": "racine carrée",
"tt_nRoot": "racine",
"tt_numbers": "nombre",
"tt_numberE": "nombre e",
"tt_numberE": "nombre e",
"tt_numberPi": "nombre pi",
"tt_functions": "fonctions",
"tt_sinus": "sinus",
Expand All @@ -96,9 +96,9 @@
"tt_download": "Download",
"tt_settingsSection": "Réglages",
"tt_settings": "Réglages",
"tt_showHiddenElements": "Show hidden elements",
"tt_hideElement": "Hide element",
"tt_restoreInitialContent": "Restore",
"tt_showHiddenElements": "Afficher les éléments cachés",
"tt_hideElement": "Cacher un élément",
"tt_restoreInitialContent": "Restaurer",

"tt_view": "Floating",
"tt_maximize": "Maximiser",
Expand Down Expand Up @@ -158,7 +158,7 @@
"downloadHelperText": "Square Image (1:1)",
"downloadErrorText": "Size must be a whole number.",
"confirm": "confirmer",
"cancel": "annuler ",
"cancel": "annuler",
"sizeInPixels": "Size in pixels",
"insertANumber": "Insert a number",

Expand Down
6 changes: 3 additions & 3 deletions quizzes/lib/strings_graph.it.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@
"tt_download": "Download",
"tt_settingsSection": "Impostazione",
"tt_settings": "Impostazione",
"tt_showHiddenElements": "Show hidden elements",
"tt_hideElement": "Hide element",
"tt_restoreInitialContent": "Restore",
"tt_showHiddenElements": "Mostra elementi nascosti",
"tt_hideElement": "Nascondi elemento",
"tt_restoreInitialContent": "Ripristinare",

"tt_view": "Floating",
"tt_maximize": "Ingrandisci",
Expand Down
2 changes: 1 addition & 1 deletion quizzes/lib/strings_graph.nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
"downloadText": "Select a size to download the plotter as a square PNG image.",
"downloadHelperText": "Square Image (1:1)",
"downloadErrorText": "Size must be a whole number.",
"confirm": "confirm",
"confirm": "Confirm",
"cancel": "annuleren",
"sizeInPixels": "Size in pixels",
"insertANumber": "Insert a number",
Expand Down
12 changes: 6 additions & 6 deletions quizzes/lib/strings_graph.no.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"tt_interpolatingPolynomial": "Interpolating polynomial",
"tt_measures": "Målinger",
"tt_area": "Område",
"tt_angle": "Vinkel",
"tt_length": "lengde",
"tt_angle": "Hjørne",
"tt_length": "Lengde",
"tt_labels": "Etiketten",
"tt_elementMML": "Expression",
"tt_image": "Bilde",
Expand Down Expand Up @@ -73,7 +73,7 @@
"tt_squareRoot": "kvadratrot",
"tt_nRoot": "rot",
"tt_numbers": "tall",
"tt_numberE": "tallet e",
"tt_numberE": "tall e",
"tt_numberPi": "tallet pi",
"tt_functions": "funksjoner",
"tt_sinus": "sinus",
Expand All @@ -96,9 +96,9 @@
"tt_download": "Download",
"tt_settingsSection": "Innstillinger",
"tt_settings": "Innstillinger",
"tt_showHiddenElements": "Show hidden elements",
"tt_hideElement": "Hide element",
"tt_restoreInitialContent": "Restore",
"tt_showHiddenElements": "Vis skjulte elementer",
"tt_hideElement": "Skjul element",
"tt_restoreInitialContent": "Gjenopprett",

"tt_view": "Floating",
"tt_maximize": "Maksimer",
Expand Down
6 changes: 3 additions & 3 deletions quizzes/lib/strings_graph.pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@
"tt_download": "Download",
"tt_settingsSection": "Definições",
"tt_settings": "Definições",
"tt_showHiddenElements": "Show hidden elements",
"tt_hideElement": "Hide element",
"tt_restoreInitialContent": "Restore",
"tt_showHiddenElements": "Mostrar elementos ocultos",
"tt_hideElement": "Ocultar elemento",
"tt_restoreInitialContent": "Restaurar",

"tt_view": "Floating",
"tt_maximize": "Maximizar",
Expand Down
14 changes: 7 additions & 7 deletions quizzes/lib/strings_quizzes.ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -558,13 +558,13 @@
"quizzes_studio_input_options_answer_input_method_lock_initial_content_label": "Bloqueja el contingut initial",
"quizzes_studio_input_options_answer_input_method_lock_initial_content_helper_text": "No permetis que l'estudiant modifiqui el contingut inicial fora de les caixes blanques d'aquest. Si aquesta opció està activada, l'estudiant només podrar entrar text i fórmules als blancs que hi hagi al contingut inicial. ",

"quizzes_studio_input_options_answer_input_method_display_settings_label": "Display settings",
"quizzes_studio_input_options_answer_input_method_display_settings_label_name": " Visibility of labels' name",
"quizzes_studio_input_options_answer_input_method_display_settings_label_value": "Visibility of labels' value",
"quizzes_studio_input_options_answer_input_method_display_settings_helper_text": "Select the display setting of the labels' name and value. You can decide if the student sees the labels' value always, never or when they are focus.",
"always": "Always",
"focus": "Focus",
"never": "Never",
"quizzes_studio_input_options_answer_input_method_display_settings_label": "Configuració de la pantalla",
"quizzes_studio_input_options_answer_input_method_display_settings_label_name": "Visibilitat del nom de les etiquetes",
"quizzes_studio_input_options_answer_input_method_display_settings_label_value": "Visibilitat del valor de les etiquetes",
"quizzes_studio_input_options_answer_input_method_display_settings_helper_text": "Seleccioneu la configuració de visualització del nom i el valor de les etiquetes. Podeu decidir si l'alumne veu el valor de les etiquetes sempre, mai o quan estan enfocades.",
"always": "Sempre",
"focus": "Enfocar",
"never": "Mai",

"quizzes_studio_home_random_variables_title": "Variables aleatòries",
"quizzes_studio_home_random_variables_title_basic_mode": "Mode bàsic",
Expand Down
14 changes: 7 additions & 7 deletions quizzes/lib/strings_quizzes.da.json
Original file line number Diff line number Diff line change
Expand Up @@ -558,13 +558,13 @@
"quizzes_studio_input_options_answer_input_method_lock_initial_content_label": "Lås indledende indhold",
"quizzes_studio_input_options_answer_input_method_lock_initial_content_helper_text": "Tillad ikke eleven at ændre svaret uden for de tomme pladsholdere, der er tilbage i det indledende indhold. Hvis denne indstilling er aktiveret, vil eleven kun være i stand til at udfylde boksene med det oprindelige indhold.",

"quizzes_studio_input_options_answer_input_method_display_settings_label": "Display settings",
"quizzes_studio_input_options_answer_input_method_display_settings_label_name": " Visibility of labels' name",
"quizzes_studio_input_options_answer_input_method_display_settings_label_value": "Visibility of labels' value",
"quizzes_studio_input_options_answer_input_method_display_settings_helper_text": "Select the display setting of the labels' name and value. You can decide if the student sees the labels' value always, never or when they are focus.",
"always": "Always",
"focus": "Focus",
"never": "Never",
"quizzes_studio_input_options_answer_input_method_display_settings_label": "Indstillinger for visning",
"quizzes_studio_input_options_answer_input_method_display_settings_label_name": "Synlighed af etiketnavn",
"quizzes_studio_input_options_answer_input_method_display_settings_label_value": "Synlighed af etiketværdi",
"quizzes_studio_input_options_answer_input_method_display_settings_helper_text": "Vælg indstillingen for visning af etiketters navn og værdi. Du kan vælge, hvornår den studerende kan se etiketværdier: altid, aldrig eller når de er i fokus.",
"always": "Altid",
"focus": "I fokus",
"never": "Aldrig",

"quizzes_studio_home_random_variables_title": "Vilkårlige variabler",
"quizzes_studio_home_random_variables_title_basic_mode": "Grundlæggende tilstand",
Expand Down
14 changes: 7 additions & 7 deletions quizzes/lib/strings_quizzes.de.json
Original file line number Diff line number Diff line change
Expand Up @@ -558,13 +558,13 @@
"quizzes_studio_input_options_answer_input_method_lock_initial_content_label": "Ursprünglichen Inhalt sperren",
"quizzes_studio_input_options_answer_input_method_lock_initial_content_helper_text": "So können Studierende nicht die Antworten außerhalb der leeren Platzhalter ändern, die im ursprünglichen Inhalt eingefügt wurden. Wenn diese Einstellung aktiviert ist, können die Studierenden nur die Felder im ursprünglichen Inhalt ausfüllen.",

"quizzes_studio_input_options_answer_input_method_display_settings_label": "Display settings",
"quizzes_studio_input_options_answer_input_method_display_settings_label_name": " Visibility of labels' name",
"quizzes_studio_input_options_answer_input_method_display_settings_label_value": "Visibility of labels' value",
"quizzes_studio_input_options_answer_input_method_display_settings_helper_text": "Select the display setting of the labels' name and value. You can decide if the student sees the labels' value always, never or when they are focus.",
"always": "Always",
"focus": "Focus",
"never": "Never",
"quizzes_studio_input_options_answer_input_method_display_settings_label": "Einstellungen anzeigen",
"quizzes_studio_input_options_answer_input_method_display_settings_label_name": "Sichtbarkeit des Beschriftungsnamens",
"quizzes_studio_input_options_answer_input_method_display_settings_label_value": "Sichtbarkeit des Beschriftungswertes",
"quizzes_studio_input_options_answer_input_method_display_settings_helper_text": "Anzeigeeinstellung für den Namen und Wert der Beschriftungen auswählen. Sie können entscheiden, ob die Werte der Beschriftungen immer, nie oder nur dann sichtbar sind, wenn sie fokussiert werden.",
"always": "Immer",
"focus": "Fokus",
"never": "Nie",

"quizzes_studio_home_random_variables_title": "Zufallsvariablen",
"quizzes_studio_home_random_variables_title_basic_mode": "Basic-Modus",
Expand Down
14 changes: 7 additions & 7 deletions quizzes/lib/strings_quizzes.el.json
Original file line number Diff line number Diff line change
Expand Up @@ -558,13 +558,13 @@
"quizzes_studio_input_options_answer_input_method_lock_initial_content_label": "Κλείδωμα αρχικού περιεχομένου",
"quizzes_studio_input_options_answer_input_method_lock_initial_content_helper_text": "Μην επιτρέψετε στον μαθητή να τροποποιήσει την απάντηση εκτός των κενών θέσεων κράτησης θέσης που έχουν απομείνει στο αρχικό περιεχόμενο. Εάν αυτή η ρύθμιση είναι ενεργοποιημένη, ο μαθητής θα μπορεί να συμπληρώσει μόνο τα πλαίσια του αρχικού περιεχομένου.",

"quizzes_studio_input_options_answer_input_method_display_settings_label": "Display settings",
"quizzes_studio_input_options_answer_input_method_display_settings_label_name": " Visibility of labels' name",
"quizzes_studio_input_options_answer_input_method_display_settings_label_value": "Visibility of labels' value",
"quizzes_studio_input_options_answer_input_method_display_settings_helper_text": "Select the display setting of the labels' name and value. You can decide if the student sees the labels' value always, never or when they are focus.",
"always": "Always",
"focus": "Focus",
"never": "Never",
"quizzes_studio_input_options_answer_input_method_display_settings_label": "Ρυθμίσεις εμφάνισης",
"quizzes_studio_input_options_answer_input_method_display_settings_label_name": "Ορατότητα ονομάτων ετικετών",
"quizzes_studio_input_options_answer_input_method_display_settings_label_value": "Ορατότητα τιμών ετικετών",
"quizzes_studio_input_options_answer_input_method_display_settings_helper_text": "Επιλέξτε τη ρύθμιση εμφάνισης των ονομάτων και των τιμών των ετικετών. Μπορείτε να αποφασίσετε αν οι τιμές των ετικετών θα είναι ορατές στον μαθητή πάντα, ποτέ ή όταν χρησιμοποιεί την εστίαση.",
"always": "Πάντα",
"focus": "Σε εστίαση",
"never": "Ποτέ",

"quizzes_studio_home_random_variables_title": "Τυχαίες Μεταβλητές",
"quizzes_studio_home_random_variables_title_basic_mode": "Βασική Λειτουργία",
Expand Down
Loading

0 comments on commit b551927

Please sign in to comment.