From 7767a61b95015082a6e0db3e2367e40169813703 Mon Sep 17 00:00:00 2001 From: Steffen Becker Date: Mon, 17 Aug 2026 00:31:27 +0200 Subject: [PATCH] feat: the references tab groups its buttons the way both word processors do MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Captions, index entries and citations each get their own group instead of riding under the table-of-contents label, which said nothing about them. The index options menu names the index it edits and lays its ten levels out as one strip of keys — as rows they were the whole menu. --- .../ribbon/tabs/ReferencesTab.svelte | 102 +++++++++++------- src/lib/i18n/locales/de.ts | 2 + src/lib/i18n/locales/en.ts | 2 + 3 files changed, 67 insertions(+), 39 deletions(-) diff --git a/src/lib/components/ribbon/tabs/ReferencesTab.svelte b/src/lib/components/ribbon/tabs/ReferencesTab.svelte index 78ba230..b6dff89 100644 --- a/src/lib/components/ribbon/tabs/ReferencesTab.svelte +++ b/src/lib/components/ribbon/tabs/ReferencesTab.svelte @@ -106,7 +106,7 @@ variant="big" icon="tocLevels" label={t().ribbon.tocOptions} - title={t().ribbon.tocOptions} + title={`${t().ribbon.indexes.toc} – ${t().ribbon.tocOptions}`} disabled={!toc} caret active={isMenuOpen('tocLevels')} @@ -114,10 +114,13 @@ /> {#if isMenuOpen('tocLevels')} {/if} + + +
+ + + (captionOpen = true)} + onclick={() => editor?.chain().focus().insertNote('footnote').run()} /> editor?.chain().focus().insertNote('endnote').run()} /> + onNoteOptions?.()} + /> + + +
+ + - - +
- - + editor?.chain().focus().insertNote('footnote').run()} - /> - editor?.chain().focus().insertNote('endnote').run()} - /> - onNoteOptions?.()} + onclick={() => (captionOpen = true)} /> +
+ + + + + + + + diff --git a/src/lib/i18n/locales/de.ts b/src/lib/i18n/locales/de.ts index 86dc8e0..b3f044c 100644 --- a/src/lib/i18n/locales/de.ts +++ b/src/lib/i18n/locales/de.ts @@ -759,6 +759,8 @@ const de: Messages = { pageSetup: 'Seite einrichten', toc: 'Inhaltsverzeichnis', notes: 'Fußnoten', + citations: 'Zitate und Literaturverzeichnis', + index: 'Index', revisions: 'Nachverfolgung', proofing: 'Rechtschreibung', language: 'Sprache', diff --git a/src/lib/i18n/locales/en.ts b/src/lib/i18n/locales/en.ts index 8fa75cd..9867130 100644 --- a/src/lib/i18n/locales/en.ts +++ b/src/lib/i18n/locales/en.ts @@ -765,6 +765,8 @@ const en = { pageSetup: 'Page Setup', toc: 'Table of Contents', notes: 'Footnotes', + citations: 'Citations & Bibliography', + index: 'Index', revisions: 'Tracking', proofing: 'Proofing', language: 'Language',