From 73182d450fb653703b0cbed6b2af9a1bf8d80d7b Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Sat, 22 Feb 2025 13:10:33 +0200 Subject: [PATCH] fix(punctuation): Add period instead of semicolon for Greek lang (@sledgehammer999) (#6299) ### Description This is a followup to PR #6297. 1. `:` is a valid punctuation mark and isn't decided in another if/else branch, so I left it as-is. 2. `;` is also a valid punctuation mark but it is used as a question mark in the appropriate if/else branch. So here I convert it to a period. Modern greeks use either a period or a comma in place of a middle dot/ano teleia. I would say that a period fits better most of the time. ### Checks - [ ] Adding quotes? - [ ] Make sure to include translations for the quotes in the description (or another comment) so we can verify their content. - [ ] Adding a language or a theme? - [ ] If is a language, did you edit `_list.json`, `_groups.json` and add `languages.json`? - [ ] If is a theme, did you add the theme.css? - Also please add a screenshot of the theme, it would be extra awesome if you do so! - [ ] Check if any open issues are related to this PR; if so, be sure to tag them below. - [ ] Make sure the PR title follows the Conventional Commits standard. (https://www.conventionalcommits.org for more info) - [ ] Make sure to include your GitHub username prefixed with @ inside parentheses at the end of the PR title. Closes # --- frontend/src/ts/test/words-generator.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/ts/test/words-generator.ts b/frontend/src/ts/test/words-generator.ts index a3e6f9eaf..5bf4734ab 100644 --- a/frontend/src/ts/test/words-generator.ts +++ b/frontend/src/ts/test/words-generator.ts @@ -204,6 +204,11 @@ export async function punctuateWord( ) { if (currentLanguage === "french") { word = ";"; + } else if (currentLanguage === "greek") { + // Normally U+00B7 ('middle dot' or 'ano teleia') would be used here. + // However, a) it has fallen into disuse in contemporary times and + // b) there isn't a dedicated key on a keyboard to input it + word = "."; } else if (currentLanguage === "arabic" || currentLanguage === "kurdish") { word += "؛"; } else if (currentLanguage === "chinese") {