diff --git a/studio-v2/app/vocab-worksheet/page.tsx b/studio-v2/app/vocab-worksheet/page.tsx index 9c77c03..571fb4f 100644 --- a/studio-v2/app/vocab-worksheet/page.tsx +++ b/studio-v2/app/vocab-worksheet/page.tsx @@ -157,8 +157,8 @@ export default function VocabWorksheetPage() { const [includeSolutions, setIncludeSolutions] = useState(true) const [lineHeight, setLineHeight] = useState('normal') const [selectedFormat, setSelectedFormat] = useState('standard') - const [showIpa, setShowIpa] = useState(false) - const [showSyllables, setShowSyllables] = useState(false) + const [ipaMode, setIpaMode] = useState<'auto' | 'en' | 'de' | 'all' | 'none'>('none') + const [syllableMode, setSyllableMode] = useState<'auto' | 'en' | 'de' | 'all' | 'none'>('none') // Export state const [worksheetId, setWorksheetId] = useState(null) @@ -440,9 +440,7 @@ export default function VocabWorksheetPage() { const API_BASE = getApiBase() try { - const ipaParam = showIpa ? 'auto' : 'none' - const syllableParam = showSyllables ? 'auto' : 'none' - const res = await fetch(`${API_BASE}/api/v1/vocab/sessions/${session!.id}/process-single-page/${pageIndex}?ipa_mode=${ipaParam}&syllable_mode=${syllableParam}`, { + const res = await fetch(`${API_BASE}/api/v1/vocab/sessions/${session!.id}/process-single-page/${pageIndex}?ipa_mode=${ipaMode}&syllable_mode=${syllableMode}`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ ocr_prompts: ocrPrompts }), @@ -1965,21 +1963,35 @@ export default function VocabWorksheetPage() { {/* OCR display options */}

Anzeigeoptionen

-
- - +
+
+ + +
+
+ + +