From 47e83d90bd8a125500e048ab36b3ec1b171703ab Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Wed, 25 Mar 2026 21:53:43 +0100 Subject: [PATCH] =?UTF-8?q?Remove=20IPA:DE=20option=20=E2=80=94=20no=20Ger?= =?UTF-8?q?man=20IPA=20dictionary=20available?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Our IPA system only has English dictionaries (Britfone MIT, eng_to_ipa MIT). The "IPA: nur DE" option was useless at best and misleading. Removed from dropdown, type definition, and API validation. Syllable DE mode stays — pyphen has a German hyphenation dictionary. Co-Authored-By: Claude Opus 4.6 --- admin-lehrer/components/grid-editor/GridToolbar.tsx | 1 - admin-lehrer/components/grid-editor/useGridEditor.ts | 2 +- klausur-service/backend/grid_editor_api.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/admin-lehrer/components/grid-editor/GridToolbar.tsx b/admin-lehrer/components/grid-editor/GridToolbar.tsx index cddbc53..2fde08e 100644 --- a/admin-lehrer/components/grid-editor/GridToolbar.tsx +++ b/admin-lehrer/components/grid-editor/GridToolbar.tsx @@ -22,7 +22,6 @@ interface GridToolbarProps { const IPA_LABELS: Record = { auto: 'IPA: Auto', en: 'IPA: nur EN', - de: 'IPA: nur DE', all: 'IPA: Alle', none: 'IPA: Aus', } diff --git a/admin-lehrer/components/grid-editor/useGridEditor.ts b/admin-lehrer/components/grid-editor/useGridEditor.ts index 9936ddd..d9eeff0 100644 --- a/admin-lehrer/components/grid-editor/useGridEditor.ts +++ b/admin-lehrer/components/grid-editor/useGridEditor.ts @@ -14,7 +14,7 @@ export interface GridEditorState { selectedZone: number | null } -export type IpaMode = 'auto' | 'all' | 'de' | 'en' | 'none' +export type IpaMode = 'auto' | 'all' | 'en' | 'none' export type SyllableMode = 'auto' | 'all' | 'de' | 'en' | 'none' export function useGridEditor(sessionId: string | null) { diff --git a/klausur-service/backend/grid_editor_api.py b/klausur-service/backend/grid_editor_api.py index 0e58d74..5346101 100644 --- a/klausur-service/backend/grid_editor_api.py +++ b/klausur-service/backend/grid_editor_api.py @@ -1593,7 +1593,7 @@ async def _build_grid_core( @router.post("/sessions/{session_id}/build-grid") async def build_grid( session_id: str, - ipa_mode: str = Query("auto", pattern="^(auto|all|de|en|none)$"), + ipa_mode: str = Query("auto", pattern="^(auto|all|en|none)$"), syllable_mode: str = Query("auto", pattern="^(auto|all|de|en|none)$"), ): """Build a structured, zone-aware grid from existing Kombi word results.