diff --git a/language/.en.json b/language/.en.json index cf2cde7..58e1844 100644 --- a/language/.en.json +++ b/language/.en.json @@ -21,8 +21,8 @@ "label": "Text", "placeholder": "*Oslo* is the capital of Norway, *Stockholm* is the capital of Sweden and *Copenhagen* is the capital of Denmark. All cities are located in the *Scandinavian:Northern Part of Europe* peninsula.", "important": { - "description": "", - "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive\\+Correct! \\-Incorrect, try again!*" + "description": "", + "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive/awesome\\+Correct! \\-Incorrect, try again!*" } }, { diff --git a/language/af.json b/language/af.json index c3c36ae..4bbe843 100644 --- a/language/af.json +++ b/language/af.json @@ -21,8 +21,8 @@ "label": "Teks", "placeholder": "*Oslo* is die hoofstad van Noorweë, *Stockholm* is die hoofstad van Swede en *Kopenhagen* is die hoofstad van Denemarke. Alle stede is geleë in die *Skandinawiese: Noordelike deel van Europa* skiereiland.", "important": { - "description": "", - "example": "H5P inhoud kan geredigeer word deur middel van 'n *blaaier:Watter tipe program is Chrome?*.
H5P inhoud is *interaktief\\+Reg! \\-Verkeerd, probeer weer!*" + "description": "", + "example": "H5P inhoud kan geredigeer word deur middel van 'n *blaaier:Watter tipe program is Chrome?*.
H5P inhoud is *interaktief/awesome\\+Reg! \\-Verkeerd, probeer weer!*" } }, { diff --git a/language/ar.json b/language/ar.json index ba1b67d..d135399 100644 --- a/language/ar.json +++ b/language/ar.json @@ -21,8 +21,8 @@ "label": "نص", "placeholder": "*أوسلو* هي عاصمة النرويج، و*ستوكهولم* هي عاصمة السويد، و*كوبنغاهن* هي عاصمة الدنمارك. وتقع جميع المدن في شبه الجزيرة *الإسكندنافية: الجزء الشمالي من أوروبا*.", "important": { - "description": "", - "example": "يمكن تحرير محتوى H5P باستخدام *متصفح: أي نوع من البرامج هو ”كروم“؟*.
محتوى H5P *تفاعلي/+إجابة صحيحة! /-إجابة غير صحيحة، فحاول مجدداً!*" + "description": "", + "example": "يمكن تحرير محتوى H5P باستخدام *متصفح: أي نوع من البرامج هو ”كروم“؟*.
محتوى H5P *تفاعلي/رائع/+إجابة صحيحة! /-إجابة غير صحيحة، فحاول مجدداً!*" } }, { diff --git a/language/bg.json b/language/bg.json index 54f1b98..2e83c1d 100644 --- a/language/bg.json +++ b/language/bg.json @@ -21,8 +21,8 @@ "label": "Текст", "placeholder": "*Осло* е столицата на Норвегия, *Стокхолм* е столицата на Швеция и *Копенхаген* на Дания.", "important": { - "description": "", - "example": "Съдържанието на H5P може да се редактира с *browser:какъв тип програма е Chrome?*.
Съдържанието на H5P е *интерактивно\\+Правилно! \\-Неправилно, опитай отново!*" + "description": "", + "example": "Съдържанието на H5P може да се редактира с *browser:какъв тип програма е Chrome?*.
Съдържанието на H5P е *интерактивно/awesome\\+Правилно! \\-Неправилно, опитай отново!*" } }, { diff --git a/language/bs.json b/language/bs.json index bb705d7..c845cb4 100644 --- a/language/bs.json +++ b/language/bs.json @@ -21,8 +21,8 @@ "label": "Tekst", "placeholder": "*Oslo* je glavni grad Norveške, *Stockholm* je glavni grad Švedske i *Copenhagen* je glavni grad Danske. Svi gradovi su locirani u *Skandinavija:Sjeverni dio Europe* poluotok.", "important": { - "description": "", - "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive\\+Correct! \\-Incorrect, try again!*" + "description": "", + "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive/awesome\\+Correct! \\-Incorrect, try again!*" } }, { diff --git a/language/ca.json b/language/ca.json index 246ab60..64da49a 100644 --- a/language/ca.json +++ b/language/ca.json @@ -21,8 +21,8 @@ "label": "Text", "placeholder": "*Oslo* és la capital de Noruega, *Estocolm* és la capital de Suècia i *Copenhaguen* és la capital de Dinamarca. Totes les ciutats estan situades a la península de *Scandinava: Part nord d’Europa*.", "important": { - "description": "", - "example": "El contingut d’H5P es pot editar utilitzant un *navegador:Quin tipus de programa és Chrome?*.
El contingut d’H5P és *interactiu\\+Correcte \\-Incorrecte; torna-ho a provar.*" + "description": "", + "example": "El contingut d’H5P es pot editar utilitzant un *navegador:Quin tipus de programa és Chrome?*.
El contingut d’H5P és *interactiu/awesome\\+Correcte \\-Incorrecte; torna-ho a provar.*" } }, { diff --git a/language/cs.json b/language/cs.json index f435ddd..ea31eb9 100644 --- a/language/cs.json +++ b/language/cs.json @@ -21,8 +21,8 @@ "label": "Text", "placeholder": "*Oslo* je hlavním městem Norska, *Stockholm* je hlavním městem Švédska a *Copenhagen* je hlavním městem Dánska. Všechna města se nacházejí na poloostrově *Skandinávie: Severní část Evropy* .", "important": { - "description": "", - "example": "Obsah H5P lze upravovat pomocí *prohlížeče:Jaký typ programu je Chrome?*.
H5P obsah je *interaktivní\\+Správně! \\-Nesprávně, zkuste znovu!*" + "description": "", + "example": "Obsah H5P lze upravovat pomocí *prohlížeče:Jaký typ programu je Chrome?*.
H5P obsah je *interaktivní/awesome\\+Správně! \\-Nesprávně, zkuste znovu!*" } }, { diff --git a/language/da.json b/language/da.json index 3ac0722..ef80723 100644 --- a/language/da.json +++ b/language/da.json @@ -21,8 +21,8 @@ "label": "Text", "placeholder": "*Oslo* is the capital of Norway, *Stockholm* is the capital of Sweden and *Copenhagen* is the capital of Denmark. All cities are located in the *Scandinavian:Northern Part of Europe* peninsula.", "important": { - "description": "", - "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive\\+Correct! \\-Incorrect, try again!*" + "description": "", + "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive/awesome\\+Correct! \\-Incorrect, try again!*" } }, { diff --git a/language/de.json b/language/de.json index 7435e8f..3542278 100644 --- a/language/de.json +++ b/language/de.json @@ -21,8 +21,8 @@ "label": "Text", "placeholder": "*Oslo* ist die Hauptstadt von Norwegen, *Stockholm* ist die Hauptstadt von Schweden und *Kopenhagen* ist die Hauptstadt von Dänemark. Alle Städte befinden sich auf der *skandinavischen: nördlicher Teil von Europa* Halbinsel.", "important": { - "description": "", - "example": "H5P-Inhalt kann mit einem *Browser:Was für eine Art von Programm ist Chrome?* bearbeitet werden.
H5P-Inhalt ist *interaktiv\\+Richtig!\\-Falsch. Probiere es nochmal!*." + "description": "", + "example": "H5P-Inhalt kann mit einem *Browser:Was für eine Art von Programm ist Chrome?* bearbeitet werden.
H5P-Inhalt ist *interaktiv/großartig\\+Richtig!\\-Falsch. Probiere es nochmal!*." } }, { diff --git a/language/el.json b/language/el.json index 6b042e9..80b45e5 100644 --- a/language/el.json +++ b/language/el.json @@ -21,8 +21,8 @@ "label": "Κείμενο", "placeholder": "Το *Όσλο* είναι η πρωτεύουσα της Νορβηγίας, η *Στοκχόλμη* είναι η πρωτεύουσα της Σουηδίας και η *Κοπεγχάγη* είναι η πρωτεύουσα της Δανίας. Όλες οι περιοχές βρίσκονται στη *Σκανδιναβική* χερσόνησο.", "important": { - "description": "", - "example": "Μπορεί να γίνει επεξεργασία των αντικειμένων του e-me content με τη χρήση ενός *φυλλομετρητή: Τι είδους πρόγραμμα είναι ο Chrome;*.
Τα αντικείμενα του e-me content είναι *διαδραστικά\\+Σωστό! \\-Λάθος, προσπάθησε ξανά!*" + "description": "", + "example": "Μπορεί να γίνει επεξεργασία των αντικειμένων του e-me content με τη χρήση ενός *φυλλομετρητή: Τι είδους πρόγραμμα είναι ο Chrome;*.
Τα αντικείμενα του e-me content είναι *διαδραστικά/awesome\\+Σωστό! \\-Λάθος, προσπάθησε ξανά!*" } }, { diff --git a/language/es-mx.json b/language/es-mx.json index 0941ad7..c33a296 100644 --- a/language/es-mx.json +++ b/language/es-mx.json @@ -21,8 +21,8 @@ "label": "Texto", "placeholder": "*Oslo* es la capital de Noruega, *Estocolmo* es la capital de Suecia y *Copenhague* es la capital de Dinamarca. Todas las ciudades están ubicadas en la península *Escandinava:Parte norte de Europa*.", "important": { - "description": "", - "example": "El contenido de H5P se puede editar utilizando un *navegador:¿Qué tipo de programa es Chrome?*.
El contenido H5P es *interactivo\\+¡Correcto! \\-¡Incorrecto, prueba de nuevo!*" + "description": "", + "example": "El contenido de H5P se puede editar utilizando un *navegador:¿Qué tipo de programa es Chrome?*.
El contenido H5P es *interactivo/awesome\\+¡Correcto! \\-¡Incorrecto, prueba de nuevo!*" } }, { diff --git a/language/es.json b/language/es.json index 9c65d9f..4aa9ef1 100644 --- a/language/es.json +++ b/language/es.json @@ -21,8 +21,8 @@ "label": "Texto", "placeholder": "*Oslo* es la capital de Noruega, *Estocolmo* es la capital de Suecia y *Copenhague* es la capital de Dinamarca. Todas las ciudades están ubicadas en la península *Escandinava:Parte norte de Europa*.", "important": { - "description": "", - "example": "El contenido de H5P se puede editar utilizando un *navegador:¿Qué tipo de programa es Chrome?*.
El contenido de H5P es *interactivo\\+Correcto! \\-Incorrecto, prueba de nuevo!*" + "description": "", + "example": "El contenido de H5P se puede editar utilizando un *navegador:¿Qué tipo de programa es Chrome?*.
El contenido de H5P es *interactivo/awesome\\+Correcto! \\-Incorrecto, prueba de nuevo!*" } }, { diff --git a/language/et.json b/language/et.json index f29be41..0f94f05 100644 --- a/language/et.json +++ b/language/et.json @@ -21,8 +21,8 @@ "label": "Tekst", "placeholder": "*Oslo* on Norra pealinn, *Stockholm* on Rootsi pealinn ja *Kopenhaagen* on Taani pealinn. Kõik need linnad asuvad *Skandinaavia:Euroopa põhjaosa* poolsaarel.", "important": { - "description": "", - "example": "H5P sisu töötlemiseks sobib *brauser:Mis tüüpi programm on Chrome?*.
H5P sisu on *interaktiivne\\+Õige! \\-Vale, proovi uuesti!*" + "description": "", + "example": "H5P sisu töötlemiseks sobib *brauser:Mis tüüpi programm on Chrome?*.
H5P sisu on *interaktiivne/awesome\\+Õige! \\-Vale, proovi uuesti!*" } }, { diff --git a/language/eu.json b/language/eu.json index 6c41ef7..8065485 100644 --- a/language/eu.json +++ b/language/eu.json @@ -21,8 +21,8 @@ "label": "Testua", "placeholder": "*Oslo* Norvegiako hiruburua da, *Stockholm* Suediako hiriburua da eta *Kopenhagen* Danimarkako hiriburua da. Hiru hiri *Eskandinavia:Europako iparraldeko* penintsulan daude.", "important": { - "description": "", - "example": "H5P edukia editatu daiteke *nabigatzailez:Zer aplikazio mota da Chrome?*.
H5P edukia *interaktiboa\\+Asmatu duzu! \\-Ez da zuzena, saiatu berriro!* da" + "description": "", + "example": "H5P edukia editatu daiteke *nabigatzailez:Zer aplikazio mota da Chrome?*.
H5P edukia *interaktiboa/awesome\\+Asmatu duzu! \\-Ez da zuzena, saiatu berriro!* da" } }, { diff --git a/language/fa.json b/language/fa.json index fafac7b..dbf4a15 100644 --- a/language/fa.json +++ b/language/fa.json @@ -21,7 +21,7 @@ "label": "متن", "placeholder": "*اسلو* پایتخت نروژ است، *استکهلم* پایتخت سوئد است و *کپنهاگ* پایتخت دانمارک است. همه این شهرها در شبه جزیره *اسکاندیناوی:قسمت شمالی اروپا* واقع شده‌اند.", "important": { - "description": "", + "description": "", "example": "محتوای H5P را می‌توان با استفاده از یک *مرورگر:کروم چه نوع برنامه‌ای است؟* ویرایش کرد.
محتوای H5P *تعاملی\\+صحیح! \\-غلط، دوباره تلاش کنید!* است" } }, diff --git a/language/fi.json b/language/fi.json index dcb427a..c5eabf4 100644 --- a/language/fi.json +++ b/language/fi.json @@ -21,8 +21,8 @@ "label": "Teksti", "placeholder": "*Helsinki* on Suomessa, *Tukholma* on Ruotsissa. Kumpikin on maansa *pääkaupunki:hallinnollinen keskus*.", "important": { - "description": "", - "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive\\+Correct! \\-Incorrect, try again!*" + "description": "", + "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive/awesome\\+Correct! \\-Incorrect, try again!*" } }, { diff --git a/language/fr.json b/language/fr.json index 34a3e83..34363a8 100644 --- a/language/fr.json +++ b/language/fr.json @@ -21,8 +21,8 @@ "label": "Question", "placeholder": "Paris est la capitale de la *France*", "important": { - "description": "", - "example": "Les contenus H5P peuvent être édités en utilisant un *navigateur:Quel type de programme utilisez vous pour consulter des sites Internet ?*.
Un contenu H5P est *interactif\\+Correct ! \\-Incorrect, Recommencez !*" + "description": "", + "example": "Les contenus H5P peuvent être édités en utilisant un *navigateur:Quel type de programme utilisez vous pour consulter des sites Internet ?*.
Un contenu H5P est *interactif/awesome\\+Correct ! \\-Incorrect, Recommencez !*" } }, { diff --git a/language/ga.json b/language/ga.json index da61af2..e45ae20 100644 --- a/language/ga.json +++ b/language/ga.json @@ -21,8 +21,8 @@ "label": "Text", "placeholder": "*Oslo* is the capital of Norway, *Stockholm* is the capital of Sweden and *Copenhagen* is the capital of Denmark. All cities are located in the *Scandinavian:Northern Part of Europe* peninsula.", "important": { - "description": "", - "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive\\+Correct! \\-Incorrect, try again!*" + "description": "", + "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive/awesome\\+Correct! \\-Incorrect, try again!*" } }, { diff --git a/language/gl.json b/language/gl.json index 003899d..04d5569 100644 --- a/language/gl.json +++ b/language/gl.json @@ -21,8 +21,8 @@ "label": "Texto", "placeholder": "*Oslo* é a capital de Noruega, *Estocolmo* é a capital de Suecia e *Copenhage* é a capital de Dinamarca. Todas as cidades están situadas na península *Escandinava:Parte norte de Europa*.", "important": { - "description": "", - "example": "O contido H5P pódese editar cun *navegador:Que clase de programa é Chrome?*.
O contido H5P é *interactivo\\+Correcto! \\-Incorrecto, proba outra vez!*" + "description": "", + "example": "O contido H5P pódese editar cun *navegador:Que clase de programa é Chrome?*.
O contido H5P é *interactivo/awesome\\+Correcto! \\-Incorrecto, proba outra vez!*" } }, { diff --git a/language/he.json b/language/he.json index de8871d..e3dc7d6 100644 --- a/language/he.json +++ b/language/he.json @@ -21,7 +21,7 @@ "label": "תוכן", "placeholder": "*אוסלו* היא בירת נורווגיה, *שטוקהולם* היא בירת שוודיה ו*קופנהגן* היא בירת דנמרק. כל הערים ממוקמות בחצי האי *הסקנדינבי: בחלק הצפוני של אירופה*.", "important": { - "description": "", + "description": "", "example": "ניתן לערוך תוכן H5P באמצעות *דפדפן:איזה סוג תוכנית הוא Chrome?*.
תוכן H5P הוא *אינטראקטיבי\\+נכון! \\-שגוי. נסה שוב!*" } }, diff --git a/language/hu.json b/language/hu.json index c09c703..d35e086 100644 --- a/language/hu.json +++ b/language/hu.json @@ -21,8 +21,8 @@ "label": "Text", "placeholder": "*Oslo* is the capital of Norway, *Stockholm* is the capital of Sweden and *Copenhagen* is the capital of Denmark. All cities are located in the *Scandinavian:Northern Part of Europe* peninsula.", "important": { - "description": "", - "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive\\+Correct! \\-Incorrect, try again!*" + "description": "", + "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive/awesome\\+Correct! \\-Incorrect, try again!*" } }, { diff --git a/language/it.json b/language/it.json index 3ae908e..b036f17 100644 --- a/language/it.json +++ b/language/it.json @@ -21,8 +21,8 @@ "label": "Testo", "placeholder": "*Oslo* è la capitale della Norvegia, *Stoccolma* è la capitale della Svezia e *Copenaghen* è la capitale della Danimarca. Tutte queste città si trovano nella penisola della *Scandinavia:Parte a nord dell'Europa*", "important": { - "description": "", - "example": "I contenuti H5P possono essere modificati usando un *browser:Che tipo di software è Chrome?*.
Il contenuto H5P è *interattivo\\+Giusto! \\-Sbagliato. Riprova!*" + "description": "", + "example": "I contenuti H5P possono essere modificati usando un *browser:Che tipo di software è Chrome?*.
Il contenuto H5P è *interattivo/awesome\\+Giusto! \\-Sbagliato. Riprova!*" } }, { diff --git a/language/ja.json b/language/ja.json index 39bae7c..037f383 100644 --- a/language/ja.json +++ b/language/ja.json @@ -21,8 +21,8 @@ "label": "テキスト", "placeholder": "*オスロ*はノルウェーの首都です。*ストックホルム*はスウェーデンの首都で、*コペンハーゲン*はデンマークの首都です。すべての都市は*スカンジナビア:ヨーロッパの北部*半島に位置しています。", "important": { - "description": "", - "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive\\+Correct! \\-Incorrect, try again!*" + "description": "", + "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive/awesome\\+Correct! \\-Incorrect, try again!*" } }, { diff --git a/language/ka.json b/language/ka.json index 707e69b..c37f13a 100644 --- a/language/ka.json +++ b/language/ka.json @@ -21,8 +21,8 @@ "label": "ტექსტი", "placeholder": "*ოსლო* არის ნორვეგიის დედაქალაქი, *სტოკჰოლმი* არის შვედეთის დედაქალაქი და *კოპენჰაგენი* არის დანიის დედაქალაქი. ყველა ქალაქი მდებარეობს *სკანდინავიაში:ევროპის ჩრდილოეთ ნაწილში* ნახევარკუნძულზე.", "important": { - "description": "", - "example": "H5P კონტენტის რედაქტირება შესაძლებელია *ბრაუზერის: რა ტიპის პროგრამაა Chrome?*.
H5P კონტენტი *ინტერაქტიული\\+სწორია! \\-არასწორია, სცადეთ ხელახლა!*" + "description": "", + "example": "H5P კონტენტის რედაქტირება შესაძლებელია *ბრაუზერის: რა ტიპის პროგრამაა Chrome?*.
H5P კონტენტი *ინტერაქტიული/awesome\\+სწორია! \\-არასწორია, სცადეთ ხელახლა!*" } }, { diff --git a/language/km.json b/language/km.json index a5be956..add4600 100644 --- a/language/km.json +++ b/language/km.json @@ -21,7 +21,7 @@ "label": "អត្ថបទ", "placeholder": "*ភ្នំពេញ*ជារាជធានីនៃប្រទេសកម្ពុជា, *បាងកក* ជារាជធានីនៃប្រទេសថៃ ហើយ *ហាណូយ* ជារាជធានីនៃប្រទេសវៀតណាម។ រាជធានីទាំងនេះស្ថិតក្នុង*តំបន់អាស៊ីអាគ្នេហ៍:ទីតាំងមួយក្នុងទ្វីប* ។", "important": { - "description": "", + "description": "", "example": "គោត្រូវបានចាត់ទុកជាប្រភេទ*ថនិកសត្វ:សត្វដែលចិញ្ចឹមកូនដោយទឹកដោះ\\+ត្រឹមត្រូវ! \\-មិនត្រឹមត្រូវទេ សូមសាកម្តងទៀត!*។" } }, diff --git a/language/ko.json b/language/ko.json index 71468e3..57dd233 100644 --- a/language/ko.json +++ b/language/ko.json @@ -21,8 +21,8 @@ "label": "텍스트", "placeholder": "*서울*은 대한민국의 수도이고 *파리* 는 프랑스의 수도이다. 한국이 속한 대륙은 *아시아:동아시아가 속한 대륙* 이다", "important": { - "description": "", - "example": "H5P 콘텐츠는 *브라우저: 크롬은 어떤 종류의 프로그램인가?*
H5P 콘텐츠는 *상호작용적\\+정답입니다! \\-오답이네요, 다시해보세요!*" + "description": "", + "example": "H5P 콘텐츠는 *브라우저: 크롬은 어떤 종류의 프로그램인가?*
H5P 콘텐츠는 *상호작용적/awesome\\+정답입니다! \\-오답이네요, 다시해보세요!*" } }, { diff --git a/language/lt.json b/language/lt.json index 5e169eb..01fab4a 100644 --- a/language/lt.json +++ b/language/lt.json @@ -21,8 +21,8 @@ "label": "Tekstas", "placeholder": "*Oslas* yra Norvegijos sostinė, *Stokholmas* yra Švedijos sostinė ir *Kopenhaga* yra Danijos sostinė. Visi miestai randasi *Skandinavijos pusiasalyje, Šiaurinėje Europos* dalyje.", "important": { - "description": "", - "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive\\+Correct! \\-Incorrect, try again!*" + "description": "", + "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive/awesome\\+Correct! \\-Incorrect, try again!*" } }, { diff --git a/language/lv.json b/language/lv.json index a4f8b91..7f0d1e2 100644 --- a/language/lv.json +++ b/language/lv.json @@ -21,8 +21,8 @@ "label": "Teksts", "placeholder": "*Oslo* ir Norvēģijas galvaspilsēta, *Stokholma* ir Zviedrijas galvaspilsēta un *Kopenhāgena* ir Dānijas galvaspilsēta. Visas pilsētas atrodas *Skandināvijas:Eiropas ziemeļdaļas* pussalā.", "important": { - "description": "", - "example": "H5P saturu var rediģēt, izmantojot *pārlūkprogrammu:Kāda veida programma ir Chrome?*.
H5P saturs ir *interaktīvs\\+Pareizi! \\-Nepareizi, mēģiniet vēlreiz!*" + "description": "", + "example": "H5P saturu var rediģēt, izmantojot *pārlūkprogrammu:Kāda veida programma ir Chrome?*.
H5P saturs ir *interaktīvs/awesome\\+Pareizi! \\-Nepareizi, mēģiniet vēlreiz!*" } }, { diff --git a/language/mn.json b/language/mn.json index 19380b1..e99ade0 100644 --- a/language/mn.json +++ b/language/mn.json @@ -21,8 +21,8 @@ "label": "Текст", "placeholder": "*Осло* нь Норвегийн нийслэл, *Стокгольм* нь Шведийн нийслэл, *Копенгаген* нь Данийн нийслэл юм. Бүх хотууд *Скандинав:Европын хойд хэсэг* хойгт байрладаг.", "important": { - "description": "", - "example": "H5P контентыг *хөтөч: Chrome нь ямар төрлийн програм вэ?* ашиглан засварлаж болно.
H5P контент *интерактив\\+Зөв! \\-Буруу, дахин оролдоно уу!*" + "description": "", + "example": "H5P контентыг *хөтөч: Chrome нь ямар төрлийн програм вэ?* ашиглан засварлаж болно.
H5P контент *интерактив/awesome\\+Зөв! \\-Буруу, дахин оролдоно уу!*" } }, { diff --git a/language/nb.json b/language/nb.json index 25b4cb6..6c08409 100644 --- a/language/nb.json +++ b/language/nb.json @@ -21,7 +21,7 @@ "label": "Tekst", "placeholder": "*Oslo* er hovedstaden i Norge, *Stockholm* er hovedstaden i Sverige og *København* er hovedstaden i Danmark. Alle byene er lokalisert i *Skandinavia:den nordlige delen av Europa*.", "important": { - "description": "", + "description": "", "example": "H5P-innhold kan redigeres med en *nettleser:Hva slags program er Chrome?*.
H5P-innhold er *interaktivt\\+Riktig!\\-Feil, prøv igjen*" } }, diff --git a/language/nl.json b/language/nl.json index a522843..e12c4ea 100644 --- a/language/nl.json +++ b/language/nl.json @@ -21,8 +21,8 @@ "label": "Tekst", "placeholder": "*Amsterdam* is de hoofdstad van Nederland, *Brussel* is de hoofdstad van België en *Luxemburg* is de hoofdstad van Luxemburg. Alle steden liggen in de *Benelux:afkorting*.", "important": { - "description": "", - "example": "H5P-inhoud kan bewerkt worden via een *browser:Welk soort programma is Chrome?*.
H5P inhoud is *interactief\\+Juist! \\-Onjuist, probeer opnieuw!*" + "description": "", + "example": "H5P-inhoud kan bewerkt worden via een *browser:Welk soort programma is Chrome?*.
H5P inhoud is *interactief/awesome\\+Juist! \\-Onjuist, probeer opnieuw!*" } }, { diff --git a/language/nn.json b/language/nn.json index 4d44c9f..0c653c1 100644 --- a/language/nn.json +++ b/language/nn.json @@ -21,7 +21,7 @@ "label": "Tekst", "placeholder": "*Oslo* er hovudstaden i Noreg, *Stockholm* er hovudstaden i Sverige og *København* er hovudstaden i Danmark. Alle byane er lokaliserte i *Skandinavia:den nordlege delen av Europa*.", "important": { - "description": "", + "description": "", "example": "H5P-innhald kan redigerast med ein *nettlesar:Kva slags program er Chrome?*.
H5P-innhald er *interaktivt\\+Rett!\\-Feil, prøv igjen*" } }, diff --git a/language/pl.json b/language/pl.json index d297cc4..e1ee611 100644 --- a/language/pl.json +++ b/language/pl.json @@ -21,8 +21,8 @@ "label": "Treść", "placeholder": "*Oslo* jest stolicą Norwegii, *Sztokholm* jest stolicą Szwecji, a *Kopenhaga* jest stolicą Danii. Wszystkie te miasta leżą w *Skandynawii:Północnej Europie*.", "important": { - "description": "", - "example": "Zasoby H5P można tworzyć w *przeglądarce:Na przykład Google Chrome.*.
Zasoby H5P są *interaktywne\\+Dobrze! \\-Ależ nie, popraw odpowiedź!*" + "description": "", + "example": "Zasoby H5P można tworzyć w *przeglądarce:Na przykład Google Chrome.*.
Zasoby H5P są *interaktywne/awesome\\+Dobrze! \\-Ależ nie, popraw odpowiedź!*" } }, { diff --git a/language/pt-br.json b/language/pt-br.json index d23dbe8..77d94a4 100644 --- a/language/pt-br.json +++ b/language/pt-br.json @@ -21,8 +21,8 @@ "label": "Texto", "placeholder": "*Oslo* é a capital da Noruega, *Estocolmo* é a capital da Suécia e *Copenhague* é a capital da Dinamarca. Todas estas cidades estão localizadas na península *Escandinava:Parte norte da Europa*.", "important": { - "description": "", - "example": "Conteúdo H5P pode ser editado usando um *navegador:QUe tipo de programa é o Chrome?*.
Conteúdo H5P é *interativo\\+Correto! \\-Incorreto, tente novamente!*" + "description": "", + "example": "Conteúdo H5P pode ser editado usando um *navegador:QUe tipo de programa é o Chrome?*.
Conteúdo H5P é *interativo/awesome\\+Correto! \\-Incorreto, tente novamente!*" } }, { diff --git a/language/pt.json b/language/pt.json index 66b1b3c..fa39adf 100644 --- a/language/pt.json +++ b/language/pt.json @@ -21,8 +21,8 @@ "label": "Mensagem", "placeholder": "*Oslo* é a capital da Noruega, *Estocolmo* é a capital da Suécia e *Copenhaga* é a capital da Dinamarca. Todas as cidades estão localizadas na península *Escandinava:Norte da Europa*.", "important": { - "description": "", - "example": "O conteúdo H5P pode ser editado utilizando um *navegador:Qual o tipo de programa é o Chrome?*.
O conteúdo H5P é *interativo\\+Correto! \\-Incorreto, tente de novo!*" + "description": "", + "example": "O conteúdo H5P pode ser editado utilizando um *navegador:Qual o tipo de programa é o Chrome?*.
O conteúdo H5P é *interativo/awesome\\+Correto! \\-Incorreto, tente de novo!*" } }, { diff --git a/language/ro.json b/language/ro.json index cf2cde7..58e1844 100644 --- a/language/ro.json +++ b/language/ro.json @@ -21,8 +21,8 @@ "label": "Text", "placeholder": "*Oslo* is the capital of Norway, *Stockholm* is the capital of Sweden and *Copenhagen* is the capital of Denmark. All cities are located in the *Scandinavian:Northern Part of Europe* peninsula.", "important": { - "description": "", - "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive\\+Correct! \\-Incorrect, try again!*" + "description": "", + "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive/awesome\\+Correct! \\-Incorrect, try again!*" } }, { diff --git a/language/ru.json b/language/ru.json index d883fd7..f56beaf 100644 --- a/language/ru.json +++ b/language/ru.json @@ -21,8 +21,8 @@ "label": "Текст", "placeholder": "*Осло* столица Норвегии, *Стокгольм* столица Швеции и *Копенгаген* столица Дании. Все города расположены в *Скандинавии:Северной части Европы*.", "important": { - "description": "", - "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive\\+Верно! \\-Неверно, попробуйте еще раз!*" + "description": "", + "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive/awesome\\+Верно! \\-Неверно, попробуйте еще раз!*" } }, { diff --git a/language/sl.json b/language/sl.json index a64f3a4..d5c65b9 100644 --- a/language/sl.json +++ b/language/sl.json @@ -21,8 +21,8 @@ "label": "Besedilo naloge", "placeholder": "Oslo je glavno mesto *Norveške*. Helsinki so glavno mesto *Finske*.", "important": { - "description": "", - "example": "Za brskanje po spletu lahko uporabimo *spletni brskalnik:Takšen program je na primer Chrome*. Vsebina H5P je *interaktivna\\+Pravilno!\\-Nepravilno. Poskusi ponovno.*" + "description": "", + "example": "Za brskanje po spletu lahko uporabimo *spletni brskalnik:Takšen program je na primer Chrome*. Vsebina H5P je *interaktivna/awesome\\+Pravilno!\\-Nepravilno. Poskusi ponovno.*" } }, { diff --git a/language/sma.json b/language/sma.json index cf2cde7..58e1844 100644 --- a/language/sma.json +++ b/language/sma.json @@ -21,8 +21,8 @@ "label": "Text", "placeholder": "*Oslo* is the capital of Norway, *Stockholm* is the capital of Sweden and *Copenhagen* is the capital of Denmark. All cities are located in the *Scandinavian:Northern Part of Europe* peninsula.", "important": { - "description": "", - "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive\\+Correct! \\-Incorrect, try again!*" + "description": "", + "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive/awesome\\+Correct! \\-Incorrect, try again!*" } }, { diff --git a/language/sme.json b/language/sme.json index cf2cde7..58e1844 100644 --- a/language/sme.json +++ b/language/sme.json @@ -21,8 +21,8 @@ "label": "Text", "placeholder": "*Oslo* is the capital of Norway, *Stockholm* is the capital of Sweden and *Copenhagen* is the capital of Denmark. All cities are located in the *Scandinavian:Northern Part of Europe* peninsula.", "important": { - "description": "", - "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive\\+Correct! \\-Incorrect, try again!*" + "description": "", + "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive/awesome\\+Correct! \\-Incorrect, try again!*" } }, { diff --git a/language/smj.json b/language/smj.json index cf2cde7..58e1844 100644 --- a/language/smj.json +++ b/language/smj.json @@ -21,8 +21,8 @@ "label": "Text", "placeholder": "*Oslo* is the capital of Norway, *Stockholm* is the capital of Sweden and *Copenhagen* is the capital of Denmark. All cities are located in the *Scandinavian:Northern Part of Europe* peninsula.", "important": { - "description": "", - "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive\\+Correct! \\-Incorrect, try again!*" + "description": "", + "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive/awesome\\+Correct! \\-Incorrect, try again!*" } }, { diff --git a/language/sr.json b/language/sr.json index 7624d0e..7083ea6 100644 --- a/language/sr.json +++ b/language/sr.json @@ -21,8 +21,8 @@ "label": "Текст", "placeholder": "*Oslo* is the capital of Norway, *Stockholm* is the capital of Sweden and *Copenhagen* is the capital of Denmark. All cities are located in the *Scandinavian:Northern Part of Europe* peninsula.", "important": { - "description": "", - "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive\\+Correct! \\-Incorrect, try again!*" + "description": "", + "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive/awesome\\+Correct! \\-Incorrect, try again!*" } }, { diff --git a/language/sv.json b/language/sv.json index 3aca074..20f75cb 100644 --- a/language/sv.json +++ b/language/sv.json @@ -21,8 +21,8 @@ "label": "Text", "placeholder": "*Oslo* är Norges huvudstad, *Stockholm* är Sveriges huvudstad och *Köpenhamn* är Danmarks huvudstad. Alla dessa städer ligger i *Skandinavien:Norra delen av Europa*.", "important": { - "description": "", - "example": "H5P-innehåll kan redigeras med en *webbläsare:Vad är Chrome för typ av programvara?*.
H5P-innehåll är *interaktivt\\+Rätt! \\-Inte rätt, försök igen!*" + "description": "", + "example": "H5P-innehåll kan redigeras med en *webbläsare:Vad är Chrome för typ av programvara?*.
H5P-innehåll är *interaktivt/awesome\\+Rätt! \\-Inte rätt, försök igen!*" } }, { diff --git a/language/sw.json b/language/sw.json index ebba61e..a467c77 100644 --- a/language/sw.json +++ b/language/sw.json @@ -21,8 +21,8 @@ "label": "Maandishi", "placeholder": "*Oslo* ni mji mkuu wa Norway, *Stockholm* ni mji mkuu wa Uswidi na *Copenhagen* ni mji mkuu wa Denmark. Miji yote iko katika peninsula ya *Skandinavia: Kaskazini mwa Ulaya*.", "important": { - "description": "", - "example": "Maudhui ya H5P yanaweza kuhaririwa kwa kutumia *kivinjari: Chrome ni aina gani ya programu?*.
Maudhui ya H5P *yanaingiliana\\+Sahihi! \\-Siyo sahihi, jaribu tena!*" + "description": "", + "example": "Maudhui ya H5P yanaweza kuhaririwa kwa kutumia *kivinjari: Chrome ni aina gani ya programu?*.
Maudhui ya H5P *yanaingiliana/awesome\\+Sahihi! \\-Siyo sahihi, jaribu tena!*" } }, { diff --git a/language/te.json b/language/te.json index ef1dbdb..f310147 100644 --- a/language/te.json +++ b/language/te.json @@ -21,8 +21,8 @@ "label": "టెక్స్ట్", "placeholder": "*ఓస్లో* నార్వే రాజధాని, *స్టాక్‌హోమ్* స్వీడన్ రాజధాని మరియు *కోపెన్‌హాగన్* డెన్మార్క్ రాజధాని. అన్ని నగరాలు *స్కాండినేవియన్:యూరప్ యొక్క ఉత్తర భాగం* ద్వీపకల్పంలో ఉన్నాయి.", "important": { - "description": "", - "example": "H5P కంటెంట్‌ను *బ్రౌజర్‌ని ఉపయోగించి సవరించవచ్చు: Chrome ఏ రకమైన ప్రోగ్రామ్?*.
H5P కంటెంట్ *ఇంటరాక్టివ్\\+సరైనది! \\-తప్పు, మళ్లీ ప్రయత్నించండి!*" + "description": "", + "example": "H5P కంటెంట్‌ను *బ్రౌజర్‌ని ఉపయోగించి సవరించవచ్చు: Chrome ఏ రకమైన ప్రోగ్రామ్?*.
H5P కంటెంట్ *ఇంటరాక్టివ్/awesome\\+సరైనది! \\-తప్పు, మళ్లీ ప్రయత్నించండి!*" } }, { diff --git a/language/th.json b/language/th.json index 7a82d13..6953e0b 100644 --- a/language/th.json +++ b/language/th.json @@ -21,7 +21,7 @@ "label": "ข้อความ", "placeholder": "*ออสโล* เป็นเมืองหลวงของประเทศนอร์เวย์, *สต็อกโฮล์ม* เป็นเมืองหลวงของประเทศสวีเดนและ *โคเปนเฮเกิน* เป็นเมืองหลวงของประเทศเดนมาร์ก ทั้งสามเมืองตั้งอยู่ในคาบสมุทรสกาฟเมืองในภูมิภาค *สแกนดิเนเวีย:ส่วนเหนือของยุโรป*", "important": { - "description": "", + "description": "", "example": "เนื้อหา H5P สามารถแก้ไขได้โดยใช้ *เบราว์เซอร์:โปรแกรมประเภทใดคือ Chrome?*
เนื้อหา H5P เป็น *แบบโต้ตอบ\\+ถูกต้องแล้ว! \\-ไม่ถูกต้อง ลองอีกครั้ง!*" } }, diff --git a/language/tr.json b/language/tr.json index 771e575..556dae6 100644 --- a/language/tr.json +++ b/language/tr.json @@ -21,8 +21,8 @@ "label": "Metin", "placeholder": "*Ankara* Türkiye'nin başkentidir. *İstanbul* Marmara Bölgesi'nin, *Diyarbakır* Güneydoğu Anadolu Bölgesi'nin illeridir. Tüm şehirler *Anadolu:Türkiye'nin İstanbul Boğazı'yla Avrupa'dan ayrılan asya kıtasındaki topraklarıdır* yarımadasında bulunur.", "important": { - "description": "", - "example": "*Ankara:Türkiye'nin başkenti* İç Anadolu Bölgesi illerinden biridir.
*Kare\\+Doğru! \\-Yanlış, lütfen tekrar dene!* dört kenarı eş uzunlukta olan bir geometrik şekildir." + "description": "", + "example": "*Ankara:Türkiye'nin başkenti* İç Anadolu Bölgesi illerinden biridir.
*Kare/awesome\\+Doğru! \\-Yanlış, lütfen tekrar dene!* dört kenarı eş uzunlukta olan bir geometrik şekildir." } }, { diff --git a/language/uk.json b/language/uk.json index 192f2a7..629dc09 100644 --- a/language/uk.json +++ b/language/uk.json @@ -21,8 +21,8 @@ "label": "Текст", "placeholder": "*Осло* столиця Норвегії, *Стокгольм* столиця Швеції та *Копенгаген* столиця Данії. Всі міста розташовані в *Скандинавії: Північній частині Європи*", "important": { - "description": "", - "example": "Вміст H5P можна редагувати за допомогою *браузера: Який тип програми Chrome?*.
Вміст H5P *інтерактивний\\+Верно! \\-Неверно, попробуйте еще раз!*" + "description": "", + "example": "Вміст H5P можна редагувати за допомогою *браузера: Який тип програми Chrome?*.
Вміст H5P *інтерактивний/awesome\\+Верно! \\-Неверно, попробуйте еще раз!*" } }, { diff --git a/language/vi.json b/language/vi.json index cf2cde7..58e1844 100644 --- a/language/vi.json +++ b/language/vi.json @@ -21,8 +21,8 @@ "label": "Text", "placeholder": "*Oslo* is the capital of Norway, *Stockholm* is the capital of Sweden and *Copenhagen* is the capital of Denmark. All cities are located in the *Scandinavian:Northern Part of Europe* peninsula.", "important": { - "description": "", - "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive\\+Correct! \\-Incorrect, try again!*" + "description": "", + "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive/awesome\\+Correct! \\-Incorrect, try again!*" } }, { diff --git a/language/zh-tw.json b/language/zh-tw.json index 0ba982c..d1b6e32 100644 --- a/language/zh-tw.json +++ b/language/zh-tw.json @@ -21,8 +21,8 @@ "label": "文字", "placeholder": "*奧斯陸* 是挪威的首都, *斯德哥爾摩* 是瑞典的首都, *哥本哈根* 是丹麥的首都.所有的城市都位於 *斯堪地那維亞:歐洲的北部* 半島.", "important": { - "description": "", - "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive\\+Correct! \\-Incorrect, try again!*" + "description": "", + "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive/awesome\\+Correct! \\-Incorrect, try again!*" } }, { diff --git a/library.json b/library.json index 4cb9ae5..67d69ca 100644 --- a/library.json +++ b/library.json @@ -2,8 +2,9 @@ "title": "Drag the Words", "description": "Drag and drop pieces of text to create complete sentences.", "majorVersion": 1, - "minorVersion": 10, - "patchVersion": 9, + "minorVersion": 12, + "patchVersion": 0, + "coreApi": { "majorVersion": 1, "minorVersion": 19 @@ -59,4 +60,4 @@ "minorVersion": 0 } ] -} \ No newline at end of file +} diff --git a/package-lock.json b/package-lock.json index 9cc9fe2..85a6c14 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "h5p-drag-text", - "version": "1.5.7", + "version": "1.11.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "h5p-drag-text", - "version": "1.5.7", + "version": "1.11.0", "license": "MIT", "devDependencies": { "@ava/babel": "^2.0.0", diff --git a/package.json b/package.json index da8bcc6..bd4366a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "h5p-drag-text", - "version": "1.5.7", + "version": "1.11.0", "private": true, "description": "Drag the Words allows content designers to create textual expressions with missing pieces of text. The end user drags a missing piece of text to its correct place, to form a complete expression.", "scripts": { diff --git a/semantics.json b/semantics.json index 92b7376..557875a 100644 --- a/semantics.json +++ b/semantics.json @@ -69,8 +69,8 @@ "placeholder": "*Oslo* is the capital of Norway, *Stockholm* is the capital of Sweden and *Copenhagen* is the capital of Denmark. All cities are located in the *Scandinavian:Northern Part of Europe* peninsula.", "description": "", "important": { - "description": "", - "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive\\+Correct! \\-Incorrect, try again!*" + "description": "", + "example": "H5P content may be edited using a *browser:What type of program is Chrome?*.
H5P content is *interactive/cool/great\\+Correct! \\-Incorrect, try again!*" } }, { @@ -354,4 +354,4 @@ "importance": "low", "common": true } -] \ No newline at end of file +] diff --git a/src/scripts/drag-text.js b/src/scripts/drag-text.js index ea090ae..dd20ff4 100644 --- a/src/scripts/drag-text.js +++ b/src/scripts/drag-text.js @@ -796,7 +796,11 @@ H5P.DragText = (function ($, Question, ConfirmationDialog) { if(self.isAnswerPart(part)) { // is draggable/droppable const solution = lex(part); - self.createDraggable(solution.text); + + Util.splitIgnoreEscaped(solution.text).forEach((answerOption) => { + self.createDraggable(answerOption); + }); + self.createDroppable(solution.text, solution.tip, solution.correctFeedback, solution.incorrectFeedback); } else { diff --git a/src/scripts/droppable.js b/src/scripts/droppable.js index 4a2b6f3..3690c78 100644 --- a/src/scripts/droppable.js +++ b/src/scripts/droppable.js @@ -1,3 +1,5 @@ +import Util from './util.js'; + H5P.TextDroppable = (function ($) { //CSS Main Containers: //Special Sub-containers: @@ -173,7 +175,9 @@ H5P.TextDroppable = (function ($) { if (this.containedDraggable === null) { return false; } - return this.containedDraggable.getAnswerText() === this.text; + + return Util.splitIgnoreEscaped(this.text) + .includes(this.containedDraggable.getAnswerText()); }; /** diff --git a/src/scripts/util.js b/src/scripts/util.js index 9946ff3..f36054c 100644 --- a/src/scripts/util.js +++ b/src/scripts/util.js @@ -106,11 +106,32 @@ var createElementWithTextPart = function(text) { return el; }; +/** + * Split a text string into an array of segments using a specified separator while allowing for escaped separators using an escape character. + * @param {string} text The text to be split into segments. + * @param {string} [separator] The separator character to split the text (default is '/'). + * @param {string} [escapeChar] The escape character used to escape the separator (default is '\'). + * @returns {string[]} An array of segments split from the text. + */ +const splitIgnoreEscaped = (text, separator = '/', escapeChar = '\\\\') => { + // escapeChar looks duplicated because it's used in regular expression + const unlikelyReplacement = `${H5P.createUUID()}-${H5P.createUUID()}`; + + return text + .replace(new RegExp(`${escapeChar}${separator}`, 'g'), unlikelyReplacement) + .split(separator) + .map((splitSegment) => { + return splitSegment + .replace(new RegExp(unlikelyReplacement, 'g'), separator); + }); +} + export default { curry: curry, cleanCharacter: cleanCharacter, startsWith: startsWith, endsWith: endsWith, shuffle: shuffle, - createElementWithTextPart: createElementWithTextPart + createElementWithTextPart: createElementWithTextPart, + splitIgnoreEscaped: splitIgnoreEscaped }; diff --git a/upgrades.js b/upgrades.js index 7a9a656..22e9ee7 100644 --- a/upgrades.js +++ b/upgrades.js @@ -53,6 +53,40 @@ H5PUpgrades['H5P.DragText'] = (function ($) { extras.metadata.title = title.replace(/<[^>]*>?/g, ''); } + finished(null, parameters, extras); + }, + + 12: function (parameters, finished, extras) { + if (typeof parameters?.textField === 'string') { + const asteriskPositions = Array.from(parameters.textField) + .reduce((indexes, char, index) => { + return (char === '*') ? + [...indexes, index] : + indexes; + }, []); + + let lookAtIndex = 0; + let textWithReplacement = ''; + while (lookAtIndex < parameters.textField.length) { + const currentChar = parameters.textField[lookAtIndex]; + let replacement = currentChar; + + if (currentChar === '/') { + const nextAsteriskIndex = asteriskPositions + .findIndex((position) => position > lookAtIndex); + + if (nextAsteriskIndex % 2 === 1) { + replacement = '\\/'; + } + } + + textWithReplacement = `${textWithReplacement}${replacement}`; + lookAtIndex++; + } + + parameters.textField = textWithReplacement; + } + finished(null, parameters, extras); } }