From cb6d61e1ca03fff39b469bb717afa52883becbcd Mon Sep 17 00:00:00 2001 From: Miodec Date: Fri, 17 Nov 2023 16:16:32 +0000 Subject: [PATCH] fix: use hebrew quotes also making sure that these are interchangable with other quote characters --- frontend/src/ts/controllers/input-controller.ts | 9 +++++++-- frontend/static/quotes/hebrew.json | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/src/ts/controllers/input-controller.ts b/frontend/src/ts/controllers/input-controller.ts index f78c950fd..fef2e910e 100644 --- a/frontend/src/ts/controllers/input-controller.ts +++ b/frontend/src/ts/controllers/input-controller.ts @@ -398,11 +398,16 @@ function isCharCorrect(char: string, charIndex: number): boolean { } if ( - (char === "’" || char === "‘" || char === "'" || char === "ʼ") && + (char === "’" || + char === "‘" || + char === "'" || + char === "ʼ" || + char === "׳") && (originalChar === "’" || originalChar === "‘" || originalChar === "'" || - originalChar === "ʼ") + originalChar === "ʼ" || + originalChar === "׳") ) { return true; } diff --git a/frontend/static/quotes/hebrew.json b/frontend/static/quotes/hebrew.json index b3ec92e6c..f76796ac5 100644 --- a/frontend/static/quotes/hebrew.json +++ b/frontend/static/quotes/hebrew.json @@ -86,7 +86,7 @@ "id": 13 }, { - "text": "זו שסיימה בית ספר יתר על המידה, שהוציאה את כל השפה על נסיונות. תחת חלון על השלחן מנחת תעודה: 'עברה את כשלונותיה'.", + "text": "׳זו שסיימה בית ספר יתר על המידה, שהוציאה את כל השפה על נסיונות. תחת חלון על השלחן מנחת תעודה: ׳עברה את כשלונותיה.", "source": "נורית זרחי", "length": 113, "id": 14