From df358f2775023a9d319d1f2cae8df96245f3879a Mon Sep 17 00:00:00 2001 From: merrick-2002 Date: Thu, 6 Aug 2026 19:19:36 +0800 Subject: [PATCH] Sync snapshot (2026-08-06) (#38) - Movable, resizable floating objects and a shared 104-preset shape gallery across Docs, Sheets, and Slides - Sheets Insert menu: screenshot capture, recommended charts, and an icon library - Slides: Home slideshow module and slideshow-exit fixes - Docs: track-changes fixes (IME input, tracked-deletion re-deletion) and Word-parity font handling - Redact secret-looking tokens from outgoing AI messages (community contribution from PR #32, hardened with narrower patterns and tests) - Linux packaging: AppImage and deb download instructions Co-authored-by: GenOffice --- .github/workflows/ci.yml | 6 +- .github/workflows/promote-stable.yml | 10 +- README.md | 23 + apps/docs/package.json | 4 +- apps/docs/src/main/docs-main.ts | 8 +- apps/docs/src/renderer/ai/commands.ts | 51 +- apps/docs/src/renderer/ai/protocol.ts | 107 +- apps/docs/src/renderer/ai/tools.ts | 21 +- .../src/renderer/components/ContextMenu.tsx | 13 +- .../renderer/components/HeaderFooterArea.tsx | 5 +- apps/docs/src/renderer/components/Ribbon.tsx | 127 +- .../components/ribbon-format-state.ts | 18 +- .../renderer/components/ribbon-insert-tab.tsx | 44 +- .../src/renderer/components/ribbon-tabs.tsx | 162 +- .../src/renderer/components/shape-gallery.tsx | 196 ++ apps/docs/src/renderer/editor/convert.ts | 65 +- apps/docs/src/renderer/editor/extensions.ts | 136 +- apps/docs/src/renderer/editor/hf-dom.ts | 6 +- apps/docs/src/renderer/editor/marks.ts | 51 +- .../src/renderer/editor/protected-render.ts | 66 +- apps/docs/src/renderer/editor/revisions.ts | 124 +- apps/docs/src/renderer/editor/shape-svg.ts | 149 ++ apps/docs/src/renderer/font-list.ts | 12 + apps/docs/src/renderer/i18n/strings-app.ts | 84 +- apps/docs/src/renderer/i18n/strings-ribbon.ts | 1995 ++++++++++++++++ apps/docs/src/renderer/line-metrics.ts | 13 + apps/docs/src/renderer/styles.css | 143 +- .../tests/ai-deleted-revision-context.test.ts | 276 +++ apps/docs/tests/commands.test.ts | 42 +- apps/docs/tests/font-classify.test.ts | 45 + apps/docs/tests/font-paste-roundtrip.test.ts | 88 + apps/docs/tests/native-table.test.ts | 1 + apps/docs/tests/revisions.test.ts | 46 + apps/docs/tests/shape-gallery.test.ts | 29 + .../docs/tests/style-gallery-overflow.test.ts | 196 ++ apps/docs/tests/textbox-edit.test.ts | 33 + apps/pdf/package.json | 2 +- apps/pdf/src/main/pdf-main.ts | 8 +- apps/sheets/package.json | 4 +- apps/sheets/src/domain/chart-recommend.ts | 123 + apps/sheets/src/domain/workbook-dsl.ts | 14 +- apps/sheets/src/main/pdf-export.ts | 11 +- apps/sheets/src/main/sheets-main.ts | 94 +- apps/sheets/src/preload/index.ts | 33 + apps/sheets/src/renderer/App.tsx | 41 + apps/sheets/src/renderer/ExcelShell.tsx | 34 +- apps/sheets/src/renderer/IconsDialog.tsx | 146 ++ .../src/renderer/RecommendedChartsDialog.tsx | 314 +++ apps/sheets/src/renderer/ScreenshotDialog.tsx | 141 ++ apps/sheets/src/renderer/WorkbookVisuals.tsx | 43 +- .../src/renderer/ai/prompts/guides/charts.md | 14 +- .../renderer/ai/prompts/guides/shape-image.md | 9 +- apps/sheets/src/renderer/edit-journal.ts | 13 +- apps/sheets/src/renderer/i18n/strings-app.ts | 2107 ++++++++++++++++- .../src/renderer/i18n/strings-dialogs.ts | 589 +++++ apps/sheets/src/renderer/icon-catalog.ts | 534 +++++ apps/sheets/src/renderer/ribbon-actions.ts | 12 + apps/sheets/src/renderer/shape-gallery.tsx | 277 +++ apps/sheets/src/renderer/styles.css | 180 +- apps/sheets/src/renderer/visual-actions.ts | 72 +- apps/sheets/src/shared/desktop-api.ts | 55 +- apps/sheets/src/shared/ipc-channels.ts | 2 + apps/sheets/src/shared/shape-types.ts | 119 + apps/sheets/tests/chart-recommend.test.ts | 108 + apps/sheets/tests/shape-gallery.test.ts | 34 + apps/shell/electron-builder.cjs | 11 +- apps/shell/package.json | 2 +- apps/shell/src/main/cloud-projects.ts | 162 ++ apps/shell/src/main/error-dialog.ts | 24 + apps/shell/src/main/index.ts | 47 +- apps/shell/src/preload/index.ts | 29 + apps/shell/src/renderer/src/Home.tsx | 428 +++- apps/shell/src/renderer/src/home.css | 319 +++ apps/shell/src/renderer/src/strings.ts | 326 +++ apps/shell/src/shared/home-api.ts | 33 + apps/shell/tests/cloud-projects.test.ts | 167 ++ apps/shell/tests/error-dialog.test.ts | 93 + apps/slides/package.json | 4 +- apps/slides/src/main/attachments-ipc.ts | 5 +- apps/slides/src/main/slides-main.ts | 38 +- .../src/renderer/assets/icon-spelling.png | Bin 0 -> 1340 bytes .../src/renderer/assets/icon-translate.png | Bin 0 -> 1413 bytes .../slides/src/renderer/components/Ribbon.tsx | 30 +- .../src/renderer/components/RibbonHomeTab.tsx | 70 + .../src/renderer/components/SlideShowView.tsx | 32 +- .../renderer/components/gallery-previews.tsx | 7 +- apps/slides/src/renderer/components/icons.tsx | 25 +- .../src/renderer/components/ribbon-shared.tsx | 7 + .../src/renderer/i18n/strings-ribbon.ts | 1349 +++++++++++ apps/slides/src/renderer/insert-presets.ts | 80 +- apps/slides/src/renderer/styles.css | 14 +- e2e/sheets-insert-gallery.spec.ts | 116 + e2e/sheets-insert-screenshot.spec.ts | 84 + package-lock.json | 177 +- package.json | 3 +- packages/agent-core/src/index.ts | 2 +- packages/agent-core/src/loop.ts | 55 +- .../agent-core/tests/sanitize-payload.test.ts | 46 + packages/ai-search/src/genoffice-auth.ts | 89 +- packages/ai-search/src/gsk.ts | 100 +- packages/ai-search/src/shared.ts | 15 + .../ai-search/tests/genoffice-auth.test.ts | 65 +- packages/ai-search/tests/gsk.test.ts | 81 + packages/docx-engine/src/generate.ts | 237 +- packages/docx-engine/src/index.ts | 5 + packages/docx-engine/src/parse.ts | 87 +- packages/docx-engine/src/patch.ts | 13 +- packages/docx-engine/src/types.ts | 9 +- packages/docx-engine/tests/line-shape.test.ts | 38 + .../tests/rfonts-dual-slot.test.ts | 140 ++ .../docx-engine/tests/textbox-edit.test.ts | 65 +- packages/electron-utils/src/dialog-memory.ts | 70 + packages/electron-utils/src/index.ts | 1 + .../tests/dialog-memory.test.ts | 94 + scripts/promote-stable.cjs | 94 +- 115 files changed, 13603 insertions(+), 913 deletions(-) create mode 100644 apps/docs/src/renderer/components/shape-gallery.tsx create mode 100644 apps/docs/src/renderer/editor/shape-svg.ts create mode 100644 apps/docs/tests/ai-deleted-revision-context.test.ts create mode 100644 apps/docs/tests/font-classify.test.ts create mode 100644 apps/docs/tests/font-paste-roundtrip.test.ts create mode 100644 apps/docs/tests/shape-gallery.test.ts create mode 100644 apps/docs/tests/style-gallery-overflow.test.ts create mode 100644 apps/sheets/src/domain/chart-recommend.ts create mode 100644 apps/sheets/src/renderer/IconsDialog.tsx create mode 100644 apps/sheets/src/renderer/RecommendedChartsDialog.tsx create mode 100644 apps/sheets/src/renderer/ScreenshotDialog.tsx create mode 100644 apps/sheets/src/renderer/icon-catalog.ts create mode 100644 apps/sheets/src/renderer/shape-gallery.tsx create mode 100644 apps/sheets/src/shared/shape-types.ts create mode 100644 apps/sheets/tests/chart-recommend.test.ts create mode 100644 apps/sheets/tests/shape-gallery.test.ts create mode 100644 apps/shell/src/main/cloud-projects.ts create mode 100644 apps/shell/src/main/error-dialog.ts create mode 100644 apps/shell/tests/cloud-projects.test.ts create mode 100644 apps/shell/tests/error-dialog.test.ts create mode 100644 apps/slides/src/renderer/assets/icon-spelling.png create mode 100644 apps/slides/src/renderer/assets/icon-translate.png create mode 100644 e2e/sheets-insert-gallery.spec.ts create mode 100644 e2e/sheets-insert-screenshot.spec.ts create mode 100644 packages/agent-core/tests/sanitize-payload.test.ts create mode 100644 packages/docx-engine/tests/line-shape.test.ts create mode 100644 packages/docx-engine/tests/rfonts-dual-slot.test.ts create mode 100644 packages/electron-utils/src/dialog-memory.ts create mode 100644 packages/electron-utils/tests/dialog-memory.test.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a32bb73..2990bdd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: - name: Setup Node uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: - node-version: 20 + node-version: 22 cache: npm cache-dependency-path: package-lock.json @@ -110,7 +110,7 @@ jobs: - name: Setup Node uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: - node-version: 20 + node-version: 22 cache: npm cache-dependency-path: package-lock.json @@ -156,7 +156,7 @@ jobs: - name: Upload E2E artifacts on failure if: failure() - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: e2e-artifacts path: | diff --git a/.github/workflows/promote-stable.yml b/.github/workflows/promote-stable.yml index 33f3ce7..58f13b5 100644 --- a/.github/workflows/promote-stable.yml +++ b/.github/workflows/promote-stable.yml @@ -4,7 +4,9 @@ name: Promote to Stable # channel. No rebuild: rewrites latest.yml / latest-mac.yml on the CDN to # the versioned feed archive uploaded when the build went to beta, and # re-points the marketing download aliases (GenOffice.dmg / -# GenOfficeSetup.exe) to the promoted version via server-side blob copy. +# GenOfficeSetup.exe) to the promoted version by downloading the installer +# and re-uploading it under the alias name (server-side copy cannot read +# the private source container). # Windows and mac version sequences are independent. Empty inputs default # to each platform's newest beta version; type "skip" to leave a platform # untouched. @@ -34,12 +36,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v7 with: - node-version: 20 + node-version: 22 - name: Promote env: diff --git a/README.md b/README.md index 50963a7..fc834d0 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,29 @@ Previous version: Other versions are on the [Releases](https://github.com/genspark-ai/genoffice/releases) page. +### Linux + +x86_64, glibc 2.34+ (Ubuntu 22.04 or newer; tested on Ubuntu 24.04): + +- **Debian / Ubuntu**: [genoffice_0.5.149_amd64.deb](https://github.com/genspark-ai/genoffice/releases/download/linux-v0.5.149/genoffice_0.5.149_amd64.deb) +- **Other distros**: [GenOffice-0.5.149.AppImage](https://github.com/genspark-ai/genoffice/releases/download/linux-v0.5.149/GenOffice-0.5.149.AppImage) + +Install the deb with apt — it pulls in the dependencies and adds GenOffice +to the applications menu: + +```bash +sudo apt install ./genoffice_0.5.149_amd64.deb +``` + +The AppImage instead runs in place: install the FUSE 2 runtime +(`sudo apt install libfuse2`; on Ubuntu 24.04 the package is `libfuse2t64`), +make the file executable, then run it: + +```bash +chmod +x GenOffice-0.5.149.AppImage +./GenOffice-0.5.149.AppImage +``` + ## Apps | App | Product | What it is | diff --git a/apps/docs/package.json b/apps/docs/package.json index f2117ed..f36258b 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -34,7 +34,7 @@ "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^5.0.4", - "electron": "^41.0.3", + "electron": "^43.3.0", "electron-builder": "^26.0.12", "electron-vite": "^5.0.0", "jsdom": "^28.0.0", @@ -49,7 +49,7 @@ "build": { "appId": "com.genoffice.docs", "productName": "GenOffice Docs", - "electronVersion": "41.7.1", + "electronVersion": "43.3.0", "artifactName": "AIDocx-${version}-${arch}.${ext}", "directories": { "output": "release" diff --git a/apps/docs/src/main/docs-main.ts b/apps/docs/src/main/docs-main.ts index 9f69c3d..f50272e 100644 --- a/apps/docs/src/main/docs-main.ts +++ b/apps/docs/src/main/docs-main.ts @@ -18,6 +18,8 @@ import { installContextMenu, installNavigationGuard, safeExternalUrl, + showOpenDialogWithMemory, + showSaveDialogWithMemory, windowMenuTemplate, } from '@genoffice/electron-utils' import { createI18n, getUiLang, normalizeLang, setUiLang } from '@genoffice/i18n' @@ -1938,13 +1940,11 @@ function dialogParent(event: IpcMainInvokeEvent): BrowserWindow | undefined { } async function openDialog(event: IpcMainInvokeEvent, options: OpenDialogOptions) { - const parent = dialogParent(event) - return parent ? dialog.showOpenDialog(parent, options) : dialog.showOpenDialog(options) + return showOpenDialogWithMemory(dialog, dialogParent(event), options) } async function saveDialog(event: IpcMainInvokeEvent, options: SaveDialogOptions) { - const parent = dialogParent(event) - return parent ? dialog.showSaveDialog(parent, options) : dialog.showSaveDialog(options) + return showSaveDialogWithMemory(dialog, dialogParent(event), options) } /** default folder where new files land on their first (silent) save; shared with the other editors via shell */ diff --git a/apps/docs/src/renderer/ai/commands.ts b/apps/docs/src/renderer/ai/commands.ts index 7433506..b6a002f 100644 --- a/apps/docs/src/renderer/ai/commands.ts +++ b/apps/docs/src/renderer/ai/commands.ts @@ -2,7 +2,9 @@ import type { Editor } from '@tiptap/core' import type { Node as PmDocNode, Schema } from '@tiptap/pm/model' import type { Transaction } from '@tiptap/pm/state' import { generateTocFieldXml, type TocEntry } from '@genoffice/docx-engine' +import { isEastAsianFontName } from '../font-list' import { t } from '../i18n/locale' +import { isTrackedDeleted, liveText } from './protocol' /** * Structured edit commands: the model emits a @@ -155,6 +157,8 @@ export interface CommandResult { matched: number changed: number skippedProtected: number + /** targets skipped because the text is a pending tracked deletion */ + skippedDeleted?: number detail?: string } @@ -411,7 +415,8 @@ function blockText(node: PmDocNode): string { if (node.type.name === 'docProtected') { return [node.attrs.label, node.attrs.previewText].filter(Boolean).join(' ') } - return node.textContent + // match against current content only, or targets would hit already-deleted revision text + return liveText(node) } function matchTarget(doc: PmDocNode, target: Target, sel: SelRange): TopBlock[] { @@ -473,7 +478,13 @@ function runUpdateTextStyle( // patch applied onto each text node's existing docTextStyle attrs const markPatch: Record = {} for (const f of cmd.fields) { - if ((TEXT_ATTR_KEYS as readonly string[]).includes(f)) { + if (f === 'font') { + // route to the matching rFonts slot; clearing clears both + const v = cmd.style.font + if (!v) Object.assign(markPatch, { font: null, fontAscii: null }) + else if (isEastAsianFontName(v)) markPatch.font = v + else markPatch.fontAscii = v + } else if ((TEXT_ATTR_KEYS as readonly string[]).includes(f)) { markPatch[f] = cmd.style[f as (typeof TEXT_ATTR_KEYS)[number]] ?? null } else if (f === 'baselineOffset') { const value = cmd.style.baselineOffset @@ -513,14 +524,8 @@ function runUpdateTextStyle( const childFrom = from + offset const childTo = childFrom + child.nodeSize const existing = child.marks.find((m) => m.type.name === 'docTextStyle')?.attrs ?? {} - const merged: Record = { - color: existing.color ?? null, - sizeHalfPoints: existing.sizeHalfPoints ?? null, - font: existing.font ?? null, - highlight: existing.highlight ?? null, - vertAlign: existing.vertAlign ?? null, - ...markPatch, - } + // spread keeps every non-listed attr (fontAscii/styleId/rawRPr…) alive + const merged: Record = { ...existing, ...markPatch } const empty = Object.values(merged).every((v) => v === null) if (empty) tr.removeMark(childFrom, childTo, schema.marks.docTextStyle) else tr.addMark(childFrom, childTo, schema.marks.docTextStyle.create(merged)) @@ -599,20 +604,27 @@ function runReplaceAllText(tr: Transaction, schema: Schema, cmd: ReplaceAllText) const replacements: Array<{ from: number; to: number; marks: PmDocNode['marks'] }> = [] const touchedIndexes = new Set() let skippedProtected = 0 + let skippedDeleted = 0 for (const b of blocks) { if (b.node.type.name === 'docProtected') { if (blockText(b.node).includes(cmd.containsText)) skippedProtected++ continue } + const blockDeleted = isTrackedDeleted(b.node) b.node.forEach((child, offset) => { if (!child.isText || !child.text) return + const struck = blockDeleted || child.marks.some((m) => m.type.name === 'del') const hay = matchCase ? child.text : child.text.toLowerCase() let at = hay.indexOf(needle) while (at !== -1) { - const from = b.pos + 1 + offset + at - replacements.push({ from, to: from + needle.length, marks: child.marks }) - touchedIndexes.add(b.index) + if (struck) { + skippedDeleted++ + } else { + const from = b.pos + 1 + offset + at + replacements.push({ from, to: from + needle.length, marks: child.marks }) + touchedIndexes.add(b.index) + } at = hay.indexOf(needle, at + needle.length) } }) @@ -633,6 +645,7 @@ function runReplaceAllText(tr: Transaction, schema: Schema, cmd: ReplaceAllText) matched: touchedIndexes.size, changed: touchedIndexes.size, skippedProtected, + skippedDeleted, detail: t('aiCmdReplacedCount', { count: replacements.length }), } } @@ -644,15 +657,20 @@ function runDeleteBlocks( sel: SelRange, ): CommandResult { const blocks = topLevelBlocks(tr.doc) - const matched = matchTarget(tr.doc, cmd.target, sel) + const matchedAll = matchTarget(tr.doc, cmd.target, sel) + // deleting a pending deletion is a no-op (the tracker re-materializes it struck); + // skip and report so the model does not retry forever + const matched = matchedAll.filter((b) => !isTrackedDeleted(b.node)) + const skippedDeleted = matchedAll.length - matched.length if (matched.length === blocks.length && matched.length > 0) { // doc requires block+: deleting everything leaves one empty paragraph tr.replaceWith(0, tr.doc.content.size, schema.nodes.docParagraph.create()) return { command: 'deleteBlocks', - matched: matched.length, + matched: matchedAll.length, changed: matched.length, skippedProtected: 0, + skippedDeleted, } } for (const b of [...matched].sort((a, z) => z.pos - a.pos)) { @@ -660,9 +678,10 @@ function runDeleteBlocks( } return { command: 'deleteBlocks', - matched: matched.length, + matched: matchedAll.length, changed: matched.length, skippedProtected: 0, + skippedDeleted, } } diff --git a/apps/docs/src/renderer/ai/protocol.ts b/apps/docs/src/renderer/ai/protocol.ts index d8d49b6..7ed121b 100644 --- a/apps/docs/src/renderer/ai/protocol.ts +++ b/apps/docs/src/renderer/ai/protocol.ts @@ -44,7 +44,7 @@ export const COMMANDS_GUIDE = [ ' blockIndexes?: number[] // indexes from the "document block list"', " scope?: 'selection' | 'document' // selection = only blocks covered by the current selection", '}', - "{ updateTextStyle: { target, style: { color?, highlight?, sizeHalfPoints?, font?, bold?, italic?, underline?, strike?, baselineOffset?: 'SUPERSCRIPT'|'SUBSCRIPT'|'NONE', link?: {url}|null }, fields: string[] } } // value null = clear that property", + "{ updateTextStyle: { target, style: { color?, highlight?, sizeHalfPoints?, font?, bold?, italic?, underline?, strike?, baselineOffset?: 'SUPERSCRIPT'|'SUBSCRIPT'|'NONE', link?: {url}|null }, fields: string[] } } // value null = clear that property; font applies only to its own script's slot (an East Asian font keeps the run's Latin font and vice versa)", "{ updateParagraphStyle: { target, style: { align?: 'left'|'center'|'right'|'justify', lineSpacing?, indentLeft?, indentRight?, indentFirstLine?, spaceBefore?, spaceAfter?, pageBreakBefore?, shadingFill?, borders?: subset of 'tblr'|null }, fields: string[] } } // indentFirstLine positive = first-line indent, negative = hanging; a two-character indent for CJK text ≈ font size in pt × 40 twips", '{ setHeadingLevel: { target, level: 0-6 } } // 0 = demote to body paragraph', '{ replaceAllText: { containsText, replaceText, matchCase? } }', @@ -111,6 +111,7 @@ export const AGENT_SYSTEM_PROMPT = [ '- When the user has text selected, the message includes the selection block indexes and content; rewrite-style requests apply to the selection by default;', '- Web search: use web_search when you need up-to-date information/data/fact checking; search before writing about uncertain facts — do not fabricate;', '- Illustrations: when the user wants pictures, first image_search (English keywords work better) → pick a suitable result → insert_image with its imageUrl to insert into the document;', + '- Tracked deletions (struck-through revision text) are not part of the current content and are hidden from the block list/read_blocks/stats; when a [tracked deletion] tag or a skipped-deletion notice appears, that text is already deleted — never try to delete or rewrite it again (the user accepts/rejects revisions in the Review tab);', '- Charts: use insert_chart for data visualization (bar/line/pie; saved as native Word charts); use edit_chart to change the data of an existing chart block in the block list; data must be real, from the document or search results;', '- One reply may chain multiple tools; after everything is done, always finish with a short plain-text summary.', '', @@ -176,6 +177,42 @@ export function blockRangePositions( return { from, to } } +// ---- tracked deletions (pending revisions are not current content) ---- + +const hasDelMark = (node: ProseMirrorNode) => node.marks.some((m) => m.type.name === 'del') + +/** block text as it reads once pending tracked deletions are applied (textContent minus del runs) */ +export function liveText(node: ProseMirrorNode): string { + if ((node.attrs?.blockRevision as { kind?: string } | null)?.kind === 'del') return '' + let out = '' + const walk = (child: ProseMirrorNode): void => { + if (hasDelMark(child)) return + if (child.isText) out += child.text ?? '' + else if (child.isLeaf) out += child.type.spec.leafText?.(child) ?? '' + else child.forEach(walk) + } + node.forEach(walk) + return out +} + +/** + * The whole block is a pending deletion revision (struck through in the editor). + * Checked structurally, not by text length: atom leaves (inline formulas, ruby) + * carry no textContent, so a live formula must still count as live content. + */ +export function isTrackedDeleted(node: ProseMirrorNode): boolean { + if ((node.attrs?.blockRevision as { kind?: string } | null)?.kind === 'del') return true + let hasContent = false + let hasLive = false + node.descendants((child) => { + if (child.isText || (child.isInline && child.isLeaf)) { + hasContent = true + if (!hasDelMark(child)) hasLive = true + } + }) + return hasContent && !hasLive +} + // ---- blocks -> restricted HTML ---- function escapeHtml(text: string): string { @@ -186,6 +223,8 @@ function inlineToHtml(content: PmNode[] | undefined): string { if (!content) return '' let html = '' for (const node of content) { + // del-marked runs are pending deletions, not current content + if ((node.marks ?? []).some((m: PmMark) => m.type === 'del')) continue if (node.type === 'hardBreak') { html += '
' continue @@ -220,6 +259,7 @@ function inlineToHtml(content: PmNode[] | undefined): string { function inlineToPlainText(content: PmNode[] | undefined): string { if (!content) return '' return content + .filter((n) => !(n.marks ?? []).some((m: PmMark) => m.type === 'del')) .map((n) => (n.type === 'hardBreak' ? '\n' : n.type === 'text' ? (n.text ?? '') : '')) .join('') } @@ -268,7 +308,13 @@ export function serializeRangeToHtml(editor: Editor, startIndex: number, endInde listBuffer = null } - for (const node of children) { + for (let i = 0; i < children.length; i++) { + const node = children[i] + if (isTrackedDeleted(editor.state.doc.child(startIndex + i))) { + // the deleted block still separates the surrounding lists in the document + flushList() + continue + } if (node.type === 'docHeading') { flushList() const level = Math.min(Math.max(Number(node.attrs?.level) || 1, 1), 6) @@ -319,6 +365,7 @@ interface ContextEntry { type: string preview: string isHeading: boolean + deleted: boolean } /** @@ -329,35 +376,48 @@ interface ContextEntry { export function buildDocumentContext(editor: Editor): string { const entries: ContextEntry[] = [] let index = 0 + let fullText = '' + let hasPendingDeletions = false editor.state.doc.forEach((node) => { let type: string let preview: string let isHeading = false - if (node.type.name === 'docHeading') { - type = `h${Math.min(Math.max(Number(node.attrs.level) || 1, 1), 6)}` - preview = node.textContent - isHeading = true - } else if (node.type.name === 'docListItem') { - type = 'li' - preview = node.textContent - } else if (node.type.name === 'docTable') { - type = 'table' - preview = node.textContent - } else if (node.type.name === 'docProtected') { + let deleted: boolean + if (node.type.name === 'docProtected') { + // protected blocks can only be block-level deletions (blockRevision) + deleted = isTrackedDeleted(node) type = String(node.attrs.label || node.attrs.blockType || 'protected') preview = String(node.attrs.previewText ?? '') + if (deleted) hasPendingDeletions = true + else fullText += node.textContent } else { - type = 'p' - preview = node.textContent + deleted = isTrackedDeleted(node) + const live = liveText(node) + // deleted blocks show their struck text so the model can talk about the + // revision, but that text never counts as current content + preview = deleted ? node.textContent : live + if (!deleted) fullText += live + if (deleted || live !== node.textContent) hasPendingDeletions = true + if (node.type.name === 'docHeading') { + type = `h${Math.min(Math.max(Number(node.attrs.level) || 1, 1), 6)}` + isHeading = true + } else if (node.type.name === 'docListItem') { + type = 'li' + } else if (node.type.name === 'docTable') { + type = 'table' + } else { + type = 'p' + } } - entries.push({ index, type, preview: preview.replace(/\s+/g, ' ').trim(), isHeading }) + entries.push({ index, type, preview: preview.replace(/\s+/g, ' ').trim(), isHeading, deleted }) index++ }) const render = (bodyMax: number) => - entries.map( - (e) => `${e.index}|${e.type}|${clip(e.preview, e.isHeading ? PREVIEW_MAX_CHARS : bodyMax)}`, - ) + entries.map((e) => { + const body = clip(e.preview, e.isHeading ? PREVIEW_MAX_CHARS : bodyMax) + return `${e.index}|${e.type}|${e.deleted ? '[tracked deletion] ' : ''}${body}` + }) let lines = render(PREVIEW_MAX_CHARS) if (lines.join('\n').length > DOC_CONTEXT_MAX_CHARS) lines = render(PREVIEW_TIGHT_CHARS) if (lines.join('\n').length > DOC_CONTEXT_MAX_CHARS) { @@ -388,7 +448,6 @@ export function buildDocumentContext(editor: Editor): string { : `No selection; cursor is in block ${scope.startIndex}` // authoritative stats for answer mode (previews above may be clipped) - const fullText = editor.state.doc.textContent const statsLine = `Full-text stats: words ${countWords(fullText)}, characters (no spaces) ${ fullText.replace(/\s/g, '').length }, characters (with spaces) ${fullText.length}` @@ -397,6 +456,11 @@ export function buildDocumentContext(editor: Editor): string { `The document has ${entries.length} blocks, listed below (index|type|content preview):`, ...lines, statsLine, + ...(hasPendingDeletions + ? [ + 'Tracked changes: blocks tagged [tracked deletion] and struck-through text inside other blocks are pending deletion revisions — that text is already deleted, is excluded from stats/read_blocks, and must never be deleted or rewritten again; the user accepts/rejects revisions in the Review tab.', + ] + : []), selLine, ].join('\n') } @@ -627,7 +691,8 @@ function parseTable(el: Element): PmNode | null { function parseCodeBlock(el: Element): PmNode | null { const text = (el.textContent ?? '').replace(/^\n/, '').replace(/\s+$/, '') if (!text) return null - const mark: PmMark = { type: 'docTextStyle', attrs: { font: CODE_BLOCK_PRESET.font } } + // Latin slot only: monospace applies to code text, an inherited CJK font stays intact + const mark: PmMark = { type: 'docTextStyle', attrs: { fontAscii: CODE_BLOCK_PRESET.font } } const content: PmNode[] = [] text.split('\n').forEach((line, i) => { if (i > 0) content.push({ type: 'hardBreak' }) diff --git a/apps/docs/src/renderer/ai/tools.ts b/apps/docs/src/renderer/ai/tools.ts index 12dc639..ad2903c 100644 --- a/apps/docs/src/renderer/ai/tools.ts +++ b/apps/docs/src/renderer/ai/tools.ts @@ -9,6 +9,7 @@ import { buildDocumentContext, insertBlocksAfter, isBlankDocument, + isTrackedDeleted, parseHtmlFragment, replaceBlockRange, serializeRangeToHtml, @@ -442,8 +443,18 @@ function executeSyncTool( : offset > 0 ? `\n(end of range: ${html.length} characters in total)` : '' + let empty = '(range is empty)' + if (!slice) { + let deletedBlocks = 0 + for (let i = range.start; i <= range.end; i++) { + if (isTrackedDeleted(editor.state.doc.child(i))) deletedBlocks++ + } + if (deletedBlocks > 0) { + empty = `(the ${deletedBlocks} block(s) in this range are pending tracked deletions — that text is already deleted and hidden from reads; do not delete or rewrite it again)` + } + } return { - output: slice ? slice + note : '(range is empty)', + output: slice ? slice + note : empty, mutated: false, summary: t('aiSumReadBlocksRange', { start: range.start, end: range.end }), } @@ -663,8 +674,14 @@ function executeSyncTool( if (!outcome.ok) return fail(t('aiSumApplyCommands'), outcome.error ?? 'command execution failed') const changed = outcome.results.reduce((sum, r) => sum + r.changed, 0) + const skippedDeleted = outcome.results.reduce((sum, r) => sum + (r.skippedDeleted ?? 0), 0) + // explicit model-facing note so it stops retrying deletions of already-deleted text + const deletedNote = + skippedDeleted > 0 + ? `\nNote: ${skippedDeleted} matched target(s) were skipped because that text is a pending tracked deletion (already struck through). It is not current content — do not try to delete or replace it again; the user accepts/rejects revisions in the Review tab.` + : '' return { - output: outcome.summary, + output: outcome.summary + deletedNote, mutated: changed > 0, summary: outcome.summary, } diff --git a/apps/docs/src/renderer/components/ContextMenu.tsx b/apps/docs/src/renderer/components/ContextMenu.tsx index a22ecb1..ca48d7a 100644 --- a/apps/docs/src/renderer/components/ContextMenu.tsx +++ b/apps/docs/src/renderer/components/ContextMenu.tsx @@ -1,7 +1,7 @@ import { useEffect, useRef, useState } from 'react' import type { Editor } from '@tiptap/core' import { useI18n, type StringKey } from '../i18n/locale' -import { fontFamiliesFor } from '../font-list' +import { fontFamiliesFor, isEastAsianFontName } from '../font-list' import { cssFontFamily } from '../line-metrics' import { setParaAttrs, activeParaAttrs } from './ribbon-tabs' import { setSelectionAlign } from '../editor/direction' @@ -336,7 +336,9 @@ export function FontDialog({ editor, onClose }: { editor: Editor; onClose: () => ? 'italic' : 'regular' - const [font, setFont] = useState((textAttrs.font as string | null) ?? '') + const [font, setFont] = useState( + (textAttrs.font as string | null) ?? (textAttrs.fontAscii as string | null) ?? '', + ) const [size, setSize] = useState( textAttrs.sizeHalfPoints ? Number(textAttrs.sizeHalfPoints) / 2 : 11, ) @@ -358,7 +360,12 @@ export function FontDialog({ editor, onClose }: { editor: Editor; onClose: () => .setMark('docTextStyle', { color: hex === '000000' ? null : hex, sizeHalfPoints: Math.round(size * 2), - font: font || null, + // picks target only their script's rFonts slot; the other slot survives + ...(!font + ? { font: null, fontAscii: null } + : isEastAsianFontName(font) + ? { font } + : { fontAscii: font }), highlight: textAttrs.highlight ?? null, vertAlign: vertAlign || null, }) diff --git a/apps/docs/src/renderer/components/HeaderFooterArea.tsx b/apps/docs/src/renderer/components/HeaderFooterArea.tsx index ec857c2..216b971 100644 --- a/apps/docs/src/renderer/components/HeaderFooterArea.tsx +++ b/apps/docs/src/renderer/components/HeaderFooterArea.tsx @@ -1,7 +1,7 @@ import { useEffect, useRef, useState } from 'react' import { TOTAL_PAGES_MARK, type HfImage, type HfParagraph, type Run } from '@genoffice/docx-engine' import { useI18n } from '../i18n/locale' -import { cssFontFamily } from '../line-metrics' +import { cssDualFontFamily, cssFontFamily } from '../line-metrics' export interface HfValue { text: string @@ -17,7 +17,8 @@ function runStyle(run: Run): React.CSSProperties { if (run.strike) style.textDecoration = `${style.textDecoration ?? ''} line-through`.trim() if (run.color) style.color = `#${run.color}` if (run.sizeHalfPoints) style.fontSize = `${run.sizeHalfPoints / 2}pt` - if (run.font) style.fontFamily = cssFontFamily(run.font) + if (run.font && run.fontAscii) style.fontFamily = cssDualFontFamily(run.fontAscii, run.font) + else if (run.font || run.fontAscii) style.fontFamily = cssFontFamily((run.font ?? run.fontAscii)!) return style } diff --git a/apps/docs/src/renderer/components/Ribbon.tsx b/apps/docs/src/renderer/components/Ribbon.tsx index 374fede..11f75db 100644 --- a/apps/docs/src/renderer/components/Ribbon.tsx +++ b/apps/docs/src/renderer/components/Ribbon.tsx @@ -1,4 +1,4 @@ -import { memo, useEffect, useRef, useState } from 'react' +import { memo, useEffect, useLayoutEffect, useRef, useState } from 'react' import type { CSSProperties, ReactNode } from 'react' import type { ChainedCommands, Editor } from '@tiptap/core' import type { Command } from '@tiptap/pm/state' @@ -35,7 +35,7 @@ import type { InkTool } from '../editor/ink' import type { RibbonFormatState } from './ribbon-format-state' import { setSelectedColumnWidth } from '../editor/table-sizing' import { useI18n, type StringKey } from '../i18n/locale' -import { fontFamiliesFor } from '../font-list' +import { fontFamiliesFor, isEastAsianFontName } from '../font-list' import { cssFontFamily } from '../line-metrics' import { DesignTab, @@ -896,6 +896,22 @@ function RibbonInner({ : presetActive('italic') ? 'char:__preset_emphasis' : 'p' + + // Style gallery overflow: the inline row clips (the ribbon row cannot grow), + // so a "more styles" expander must appear whenever cards are cut off. + const styleGalleryRef = useRef(null) + const [styleGalleryOverflow, setStyleGalleryOverflow] = useState(false) + useLayoutEffect(() => { + const el = styleGalleryRef.current + if (!el || typeof ResizeObserver === 'undefined') return + const check = () => setStyleGalleryOverflow(el.scrollWidth - el.clientWidth > 1) + check() + const ro = new ResizeObserver(check) + ro.observe(el) + return () => ro.disconnect() + // scrollWidth changes don't fire the observer: re-check when the card set can change + }, [tab, charStyleItems.length, lang]) + const currentSize = fs.fontSizePt const currentFont = fs.fontFamily // The "(Body)" entry means "no explicit run font — inherit the document's body @@ -918,6 +934,13 @@ function RibbonInner({ setDropdown(null) } + /** font picks target only their script's rFonts slot (Word never flattens the other one) */ + const setFont = (name: string | null) => { + if (!name) setTextStyle({ font: null, fontAscii: null }) + else if (isEastAsianFontName(name)) setTextStyle({ font: name }) + else setTextStyle({ fontAscii: name }) + } + /** apply paragraph-level attrs to every block type in the selection */ const setParaAttr = (attrs: Record) => { if (sub) { @@ -987,8 +1010,14 @@ function RibbonInner({ if (!node.isText) return const m = node.marks.find((mm) => mm.type === type) if (!m) return - if (m.attrs.color == null && m.attrs.sizeHalfPoints == null && m.attrs.font == null) return - const attrs = { ...m.attrs, color: null, sizeHalfPoints: null, font: null } + if ( + m.attrs.color == null && + m.attrs.sizeHalfPoints == null && + m.attrs.font == null && + m.attrs.fontAscii == null + ) + return + const attrs = { ...m.attrs, color: null, sizeHalfPoints: null, font: null, fontAscii: null } const keep = Object.values(attrs).some((v) => v !== null) jobs.push({ from: Math.max(pos, start), @@ -1004,6 +1033,43 @@ function RibbonInner({ }).run() } + /** Style cards, shared by the inline gallery and its overflow menu */ + const renderStyleCards = (inMenu: boolean) => { + const apply = (key: string) => { + applyStyle(key) + if (inMenu) setDropdown(null) + } + return ( + <> + {STYLE_GALLERY.map((s) => ( + + ))} + {charStyleItems.map((s) => ( + + ))} + + ) + } + const toggleList = (kind: 'bullet' | 'ordered') => { if (sub) return // textboxes have no list numbering if (editor.isActive('docListItem', { kind })) { @@ -1881,7 +1947,7 @@ function RibbonInner({ }} onBlur={(e) => { const v = e.target.value.trim() - if (v !== currentFont) setTextStyle({ font: v || null }) + if (v !== currentFont) setFont(v || null) }} /> @@ -1908,7 +1974,7 @@ function RibbonInner({ key={f} className={f === currentFont ? 'active' : ''} style={{ fontFamily: cssFontFamily(f) }} - onClick={() => setTextStyle({ font: f })} + onClick={() => setFont(f)} > {f} @@ -2515,37 +2581,28 @@ function RibbonInner({
{/* ---- Styles ---- */} -
-
- {STYLE_GALLERY.map((s) => ( +
+
+
+ {renderStyleCards(false)} +
+ {/* clipped cards stay reachable through the expander grid */} + {styleGalleryOverflow && ( - ))} - {/* all visible character styles render inline: the styles panel - that used to catch the overflow is gone */} - {charStyleItems.map((s) => ( - - ))} + )} + {dropdown === 'styleGallery' && ( +
{renderStyleCards(true)}
+ )}
{t('ribbonGroupStyles')}
diff --git a/apps/docs/src/renderer/components/ribbon-format-state.ts b/apps/docs/src/renderer/components/ribbon-format-state.ts index ce9b493..2137622 100644 --- a/apps/docs/src/renderer/components/ribbon-format-state.ts +++ b/apps/docs/src/renderer/components/ribbon-format-state.ts @@ -4,6 +4,7 @@ import { isInTable, mergeCells, selectedRect, splitCell } from '@tiptap/pm/table import type { DocDefaults, StyleInfo } from '@genoffice/docx-engine' import { getActiveSubEditor } from '../editor/active-editor' import { effectiveSizeHalfPoints } from '../editor/text-style-resolve' +import { textHasCjk } from '../line-metrics' import { cachedByDoc } from '../doc-cache' /** @@ -154,6 +155,21 @@ export function computeFormatState( const imageSelected = protAttrs.blockType === 'image' && !!protAttrs.imageDataUrl const textAttrs = ed.getAttributes('docTextStyle') + // Dual-slot runs: like Word's font box, show the slot matching the script at the caret + const displayFont = (): string => { + const font = str(textAttrs.font) + const fontAscii = str(textAttrs.fontAscii) + if (!font || !fontAscii || font === fontAscii) return font ?? fontAscii ?? '' + const { from, to } = ed.state.selection + const sample = + from === to + ? ed.state.doc.textBetween( + Math.max(0, from - 1), + Math.min(ed.state.doc.content.size, from + 1), + ) + : ed.state.doc.textBetween(from, Math.min(to, from + 32), ' ') + return textHasCjk(sample) ? font : fontAscii + } const paraAttrs = sub ? ed.getAttributes('docParagraph') : paraAttrsOf(editor) const mainPara = paraAttrsOf(editor) @@ -186,7 +202,7 @@ export function computeFormatState( textColor: str(textAttrs.color), charStyleId: str(textAttrs.styleId), fontSizePt: (effectiveSizeHalfPoints(ed, styles, docDefaults) ?? 22) / 2, - fontFamily: str(textAttrs.font) ?? '', + fontFamily: displayFont(), headingLevel: editor.isActive('docHeading') ? Number(editor.getAttributes('docHeading').level ?? 1) : null, diff --git a/apps/docs/src/renderer/components/ribbon-insert-tab.tsx b/apps/docs/src/renderer/components/ribbon-insert-tab.tsx index 4f83683..71b6ed9 100644 --- a/apps/docs/src/renderer/components/ribbon-insert-tab.tsx +++ b/apps/docs/src/renderer/components/ribbon-insert-tab.tsx @@ -36,12 +36,13 @@ import { } from './icons' /** icon size for the big icon-over-label ribbon buttons (slides ribbon parity) */ +import { SHAPE_GALLERY, ShapePreview, isLineKind } from './shape-gallery' import { BIG, InsertTabProps, - SHAPE_PRESETS, insertBlankPageAt, insertImageViaDialog, + insertLineAt, insertPageBreakAt, insertShapeAt, insertTableAt, @@ -733,26 +734,27 @@ export function InsertTab({ {dropdown === 'shape' && (
- {SHAPE_PRESETS.map((s) => ( - + {SHAPE_GALLERY.map((group) => ( +
+
{t(group.labelKey)}
+
+ {group.shapes.map((s) => ( + + ))} +
+
))}
)} diff --git a/apps/docs/src/renderer/components/ribbon-tabs.tsx b/apps/docs/src/renderer/components/ribbon-tabs.tsx index 1017451..f789c52 100644 --- a/apps/docs/src/renderer/components/ribbon-tabs.tsx +++ b/apps/docs/src/renderer/components/ribbon-tabs.tsx @@ -1,7 +1,7 @@ import { useState } from 'react' -import type { CSSProperties } from 'react' import type { Editor, JSONContent } from '@tiptap/core' import { + buildLineParagraphXml, buildShapeParagraphXml, buildTextboxParagraphXml, buildWordArtParagraphXml, @@ -10,6 +10,7 @@ import { type TextboxDisplay, } from '@genoffice/docx-engine' import type { DocsTabInfo } from '../../shared/ipc' +import { shapeLabelKey } from './shape-gallery' import { tableModelToPmNode } from '../editor/convert' import type { InkTool } from '../editor/ink' import { t, useI18n, type StringKey } from '../i18n/locale' @@ -207,89 +208,18 @@ export function insertTextboxAt(editor: Editor): void { heightEmu: TEXTBOX_HEIGHT_EMU, id: Math.floor(Math.random() * 900000) + 100000, }) - editor - .chain() - .focus() - .insertContent({ - type: 'docProtected', - attrs: { - docxIndex: null, - blockType: 'passthrough', - label: t('ribbonTextBox'), - genXml: xml, - textboxes: [emptyTextboxDisplay()], - }, - }) - .run() -} - -/** Common DrawingML preset shapes for the shape picker dropdown. */ -export const SHAPE_PRESETS: Array<{ - prst: string - labelKey: StringKey - clipPath?: string - borderRadius?: string -}> = [ - { prst: 'rect', labelKey: 'ribbonShapeRect' }, - { prst: 'roundRect', labelKey: 'ribbonShapeRoundRect', borderRadius: '12%' }, - { prst: 'ellipse', labelKey: 'ribbonShapeEllipse', borderRadius: '50%' }, - { - prst: 'triangle', - labelKey: 'ribbonShapeTriangle', - clipPath: 'polygon(50% 0%, 0% 100%, 100% 100%)', - }, - { - prst: 'rtTriangle', - labelKey: 'ribbonShapeRtTriangle', - clipPath: 'polygon(0% 0%, 0% 100%, 100% 100%)', - }, - { - prst: 'diamond', - labelKey: 'ribbonShapeDiamond', - clipPath: 'polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)', - }, - { - prst: 'parallelogram', - labelKey: 'ribbonShapeParallelogram', - clipPath: 'polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%)', - }, - { - prst: 'pentagon', - labelKey: 'ribbonShapePentagon', - clipPath: 'polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)', - }, - { - prst: 'hexagon', - labelKey: 'ribbonShapeHexagon', - clipPath: 'polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%)', - }, - { - prst: 'star5', - labelKey: 'ribbonShapeStar5', - clipPath: - 'polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%)', - }, - { - prst: 'rightArrow', - labelKey: 'ribbonShapeRightArrow', - clipPath: 'polygon(0% 25%, 65% 25%, 65% 0%, 100% 50%, 65% 100%, 65% 75%, 0% 75%)', - }, - { - prst: 'leftRightArrow', - labelKey: 'ribbonShapeLeftRightArrow', - clipPath: - 'polygon(0% 50%, 20% 0%, 20% 30%, 80% 30%, 80% 0%, 100% 50%, 80% 100%, 80% 70%, 20% 70%, 20% 100%)', - }, -] - -/** Shape preset CSS: convert a prst name to inline style properties. */ -export function shapePresetStyle(prst: string | undefined): CSSProperties { - const preset = SHAPE_PRESETS.find((s) => s.prst === prst) - if (!preset) return {} - const style: CSSProperties = {} - if (preset.clipPath) style.clipPath = preset.clipPath - if (preset.borderRadius) style.borderRadius = preset.borderRadius - return style + // never plain insertContent: with an object selected (NodeSelection) that + // would replace the selected shape instead of adding a new block + insertTopLevelBlockAtSelection(editor, { + type: 'docProtected', + attrs: { + docxIndex: null, + blockType: 'passthrough', + label: t('ribbonTextBox'), + genXml: xml, + textboxes: [emptyTextboxDisplay()], + }, + }) } /** @@ -303,9 +233,45 @@ export function insertTopLevelBlockAtSelection(editor: Editor, content: JSONCont return editor.chain().focus().insertContentAt(position, content).run() } +/** Insert a floating stroke-only line/connector at the cursor. */ +export function insertLineAt(editor: Editor, kind: string): void { + const straight = kind !== 'lineBent' && kind !== 'lineCurved' + const widthEmu = 1800000 + // Word's horizontal line is a zero-height extent; the display box keeps a + // 12 px grab band and draws the stroke at its vertical center + const heightEmu = straight ? 0 : 1080000 + const xml = buildLineParagraphXml({ + kind, + widthEmu, + heightEmu, + id: Math.floor(Math.random() * 900000) + 100000, + }) + const textbox: TextboxDisplay = { + borderColor: '000000', + widthPx: Math.round(widthEmu / 9525), + heightPx: straight ? 12 : Math.round(heightEmu / 9525), + prst: kind, + paras: [], + readOnly: true, + insetTopPx: 0, + insetRightPx: 0, + insetBottomPx: 0, + insetLeftPx: 0, + } + insertTopLevelBlockAtSelection(editor, { + type: 'docProtected', + attrs: { + docxIndex: null, + blockType: 'passthrough', + label: t('ribbonShapeLabel', { name: t(shapeLabelKey(kind)) }), + genXml: xml, + textboxes: [textbox], + }, + }) +} + /** Insert a floating preset shape (wps:wsp with prstGeom) at the cursor. */ export function insertShapeAt(editor: Editor, prst: string): void { - const preset = SHAPE_PRESETS.find((s) => s.prst === prst) ?? SHAPE_PRESETS[0] const widthEmu = 1800000 const heightEmu = 1080000 const xml = buildShapeParagraphXml({ @@ -331,7 +297,7 @@ export function insertShapeAt(editor: Editor, prst: string): void { attrs: { docxIndex: null, blockType: 'passthrough', - label: t('ribbonShapeLabel', { name: t(preset.labelKey) }), + label: t('ribbonShapeLabel', { name: t(shapeLabelKey(prst)) }), genXml: xml, textboxes: [textbox], }, @@ -370,20 +336,16 @@ export function insertWordArtAt(editor: Editor, wordArtId: string): void { }, ], } - editor - .chain() - .focus() - .insertContent({ - type: 'docProtected', - attrs: { - docxIndex: null, - blockType: 'passthrough', - label: t('ribbonWordArtLabel', { name: preset.label }), - genXml: xml, - textboxes: [textbox], - }, - }) - .run() + insertTopLevelBlockAtSelection(editor, { + type: 'docProtected', + attrs: { + docxIndex: null, + blockType: 'passthrough', + label: t('ribbonWordArtLabel', { name: preset.label }), + genXml: xml, + textboxes: [textbox], + }, + }) } export function insertPageBreakAt(editor: Editor): void { diff --git a/apps/docs/src/renderer/components/shape-gallery.tsx b/apps/docs/src/renderer/components/shape-gallery.tsx new file mode 100644 index 0000000..f915109 --- /dev/null +++ b/apps/docs/src/renderer/components/shape-gallery.tsx @@ -0,0 +1,196 @@ +/** + * Insert-tab shape gallery: grouped presets + geometry-driven previews. + * The preview traces the same geometry as the box background and the saved + * OOXML prstGeom, so the picked cell matches the inserted shape. + */ +import { shapePreviewPathD } from '../editor/shape-svg' +import type { StringKey } from '../i18n/locale' + +export interface ShapeDef { + /** OOXML prstGeom name (persisted verbatim, also drives the preview) */ + prst: string + labelKey: StringKey +} + +export interface ShapeGroup { + labelKey: StringKey + shapes: ShapeDef[] +} + +const s = (prst: string, labelKey: StringKey): ShapeDef => ({ prst, labelKey }) + +/** Display kinds inserted as stroke-only lines/connectors (no text body). */ +export function isLineKind(prst: string): boolean { + return prst.startsWith('line') +} + +export const SHAPE_GALLERY: ShapeGroup[] = [ + { + labelKey: 'ribbonShapeGroupLines', + shapes: [ + s('line', 'ribbonShapeLine'), + s('lineArrow', 'ribbonShapeLineArrow'), + s('lineArrowDouble', 'ribbonShapeLineArrowDouble'), + s('lineBent', 'ribbonShapeLineBent'), + s('lineCurved', 'ribbonShapeLineCurved'), + ], + }, + { + labelKey: 'ribbonShapeGroupRects', + shapes: [ + s('rect', 'ribbonShapeRect'), + s('roundRect', 'ribbonShapeRoundRect'), + s('snip1Rect', 'ribbonShapeSnip1Rect'), + s('snip2SameRect', 'ribbonShapeSnip2SameRect'), + s('snip2DiagRect', 'ribbonShapeSnip2DiagRect'), + s('snipRoundRect', 'ribbonShapeSnipRoundRect'), + s('round1Rect', 'ribbonShapeRound1Rect'), + s('round2SameRect', 'ribbonShapeRound2SameRect'), + s('round2DiagRect', 'ribbonShapeRound2DiagRect'), + ], + }, + { + labelKey: 'ribbonShapeGroupBasic', + shapes: [ + s('ellipse', 'ribbonShapeEllipse'), + s('triangle', 'ribbonShapeTriangle'), + s('rtTriangle', 'ribbonShapeRtTriangle'), + s('parallelogram', 'ribbonShapeParallelogram'), + s('trapezoid', 'ribbonShapeTrapezoid'), + s('diamond', 'ribbonShapeDiamond'), + s('pentagon', 'ribbonShapePentagon'), + s('hexagon', 'ribbonShapeHexagon'), + s('octagon', 'ribbonShapeOctagon'), + s('plus', 'ribbonShapePlus'), + s('mathPlus', 'ribbonShapeMathPlus'), + s('pie', 'ribbonShapePie'), + s('chord', 'ribbonShapeChord'), + s('teardrop', 'ribbonShapeTeardrop'), + s('frame', 'ribbonShapeFrame'), + s('halfFrame', 'ribbonShapeHalfFrame'), + s('corner', 'ribbonShapeCorner'), + s('diagStripe', 'ribbonShapeDiagStripe'), + s('donut', 'ribbonShapeDonut'), + s('noSmoking', 'ribbonShapeNoSmoking'), + s('blockArc', 'ribbonShapeBlockArc'), + s('foldedCorner', 'ribbonShapeFoldedCorner'), + s('bevel', 'ribbonShapeBevel'), + s('cube', 'ribbonShapeCube'), + s('can', 'ribbonShapeCan'), + s('lightningBolt', 'ribbonShapeLightningBolt'), + s('heart', 'ribbonShapeHeart'), + s('sun', 'ribbonShapeSun'), + s('moon', 'ribbonShapeMoon'), + s('cloud', 'ribbonShapeCloud'), + s('arc', 'ribbonShapeArc'), + s('plaque', 'ribbonShapePlaque'), + s('smileyFace', 'ribbonShapeSmileyFace'), + s('leftBracket', 'ribbonShapeLeftBracket'), + s('rightBracket', 'ribbonShapeRightBracket'), + s('leftBrace', 'ribbonShapeLeftBrace'), + s('rightBrace', 'ribbonShapeRightBrace'), + ], + }, + { + labelKey: 'ribbonShapeGroupArrows', + shapes: [ + s('rightArrow', 'ribbonShapeRightArrow'), + s('leftArrow', 'ribbonShapeLeftArrow'), + s('upArrow', 'ribbonShapeUpArrow'), + s('downArrow', 'ribbonShapeDownArrow'), + s('leftRightArrow', 'ribbonShapeLeftRightArrow'), + s('upDownArrow', 'ribbonShapeUpDownArrow'), + s('quadArrow', 'ribbonShapeQuadArrow'), + s('bentArrow', 'ribbonShapeBentArrow'), + s('uturnArrow', 'ribbonShapeUturnArrow'), + s('curvedRightArrow', 'ribbonShapeCurvedRightArrow'), + s('stripedRightArrow', 'ribbonShapeStripedRightArrow'), + s('notchedRightArrow', 'ribbonShapeNotchedRightArrow'), + s('chevron', 'ribbonShapeChevron'), + s('homePlate', 'ribbonShapeHomePlate'), + ], + }, + { + labelKey: 'ribbonShapeGroupStars', + shapes: [ + s('star4', 'ribbonShapeStar4'), + s('star5', 'ribbonShapeStar5'), + s('star6', 'ribbonShapeStar6'), + s('star7', 'ribbonShapeStar7'), + s('star8', 'ribbonShapeStar8'), + s('star10', 'ribbonShapeStar10'), + s('star12', 'ribbonShapeStar12'), + s('star16', 'ribbonShapeStar16'), + s('star24', 'ribbonShapeStar24'), + s('star32', 'ribbonShapeStar32'), + s('irregularSeal1', 'ribbonShapeIrregularSeal1'), + s('irregularSeal2', 'ribbonShapeIrregularSeal2'), + s('ribbon', 'ribbonShapeRibbon'), + s('ribbon2', 'ribbonShapeRibbon2'), + s('wave', 'ribbonShapeWave'), + s('doubleWave', 'ribbonShapeDoubleWave'), + ], + }, + { + labelKey: 'ribbonShapeGroupFlowchart', + shapes: [ + s('flowChartProcess', 'ribbonShapeFlowProcess'), + s('flowChartAlternateProcess', 'ribbonShapeFlowAlternateProcess'), + s('flowChartDecision', 'ribbonShapeFlowDecision'), + s('flowChartPredefinedProcess', 'ribbonShapeFlowPredefinedProcess'), + s('flowChartInternalStorage', 'ribbonShapeFlowInternalStorage'), + s('flowChartDocument', 'ribbonShapeFlowDocument'), + s('flowChartMultidocument', 'ribbonShapeFlowMultidocument'), + s('flowChartTerminator', 'ribbonShapeFlowTerminator'), + s('flowChartPreparation', 'ribbonShapeFlowPreparation'), + s('flowChartManualInput', 'ribbonShapeFlowManualInput'), + s('flowChartManualOperation', 'ribbonShapeFlowManualOperation'), + s('flowChartConnector', 'ribbonShapeFlowConnector'), + s('flowChartOffpageConnector', 'ribbonShapeFlowOffpageConnector'), + s('flowChartMagneticDisk', 'ribbonShapeFlowMagneticDisk'), + s('flowChartMagneticDrum', 'ribbonShapeFlowMagneticDrum'), + s('flowChartDisplay', 'ribbonShapeFlowDisplay'), + s('flowChartDelay', 'ribbonShapeFlowDelay'), + s('flowChartOr', 'ribbonShapeFlowOr'), + s('flowChartCollate', 'ribbonShapeFlowCollate'), + s('flowChartSort', 'ribbonShapeFlowSort'), + s('flowChartExtract', 'ribbonShapeFlowExtract'), + s('flowChartMerge', 'ribbonShapeFlowMerge'), + s('flowChartSummingJunction', 'ribbonShapeFlowSummingJunction'), + s('flowChartPunchedTape', 'ribbonShapeFlowPunchedTape'), + ], + }, + { + labelKey: 'ribbonShapeGroupCallouts', + shapes: [ + s('wedgeRectCallout', 'ribbonShapeWedgeRectCallout'), + s('wedgeRoundRectCallout', 'ribbonShapeWedgeRoundRectCallout'), + s('wedgeEllipseCallout', 'ribbonShapeWedgeEllipseCallout'), + s('cloudCallout', 'ribbonShapeCloudCallout'), + ], + }, +] + +const SHAPE_BY_PRST = new Map(SHAPE_GALLERY.flatMap((g) => g.shapes.map((d) => [d.prst, d]))) + +export function shapeLabelKey(prst: string): StringKey { + return SHAPE_BY_PRST.get(prst)?.labelKey ?? 'ribbonShapeRect' +} + +/** Flowchart nodes preview flat (also disambiguates them from diamond/ellipse). */ +export function ShapePreview({ prst, size = 20 }: { prst: string; size?: number }) { + const h = prst.startsWith('flowChart') ? size * 0.62 : size + const d = shapePreviewPathD(prst, size, h) + return ( + + {d ? ( + + ) : null} + + ) +} diff --git a/apps/docs/src/renderer/editor/convert.ts b/apps/docs/src/renderer/editor/convert.ts index 8e85c9c..483d909 100644 --- a/apps/docs/src/renderer/editor/convert.ts +++ b/apps/docs/src/renderer/editor/convert.ts @@ -9,7 +9,9 @@ import { patchMathTokens, patchTableCellTexts, type CellTextsPatch, - patchTextboxHeights, + patchDrawingExtent, + patchTextboxSizes, + type TextboxSizePatch, patchTextboxParas, generateTableModelXml, type Block, @@ -34,6 +36,7 @@ import { } from '@genoffice/docx-engine' import { t } from '../i18n/locale' import { inlineMathML } from './equation' +import { isStraightLineKind } from './shape-svg' /** minimal ProseMirror JSON shapes */ export interface PmMark { @@ -607,6 +610,7 @@ function runMarks(run: Run): PmMark[] { run.color || run.sizeHalfPoints || run.font || + run.fontAscii || run.charSpacingTwips || run.charScalePct || run.highlight || @@ -621,6 +625,7 @@ function runMarks(run: Run): PmMark[] { color: run.color ?? null, sizeHalfPoints: run.sizeHalfPoints ?? null, font: run.font ?? null, + fontAscii: run.fontAscii ?? null, charSpacingTwips: run.charSpacingTwips ?? null, charScaleEm: run.charScalePct ? charScaleEm(run.text, run.charScalePct) : null, highlight: run.highlight ?? null, @@ -788,7 +793,7 @@ export function pmDocToSavePlan(doc: PmNode, originalBlocks: Block[]): SavePlan const imagePatch = imagePatchOf(node, original) const tableTexts = tableTextsPatch(node, original) const textboxTexts = textboxParasPatch(node, original) - const textboxHeights = textboxHeightsPatch(node, original) + const textboxSizes = textboxSizesPatch(node, original) const textboxOffsetX = node.attrs?.imageOffsetXEmu != null ? Number(node.attrs.imageOffsetXEmu) : undefined const textboxOffsetY = @@ -807,6 +812,15 @@ export function pmDocToSavePlan(doc: PmNode, originalBlocks: Block[]): SavePlan changedCount++ chartPatches.push(chartPatch) } + // chart resize rewrites the body drawing's extent + const chartDisplay = node.attrs?.chartDisplay as ChartDisplay | null + const chartSize = + chartDisplay?.widthPx && + chartDisplay.heightPx && + (chartDisplay.widthPx !== original.chartDisplay?.widthPx || + chartDisplay.heightPx !== original.chartDisplay?.heightPx) + ? { w: chartDisplay.widthPx, h: chartDisplay.heightPx } + : null if (imagePatch && original.originalXml) { changedCount++ let xml = patchImageParagraphXml(original.originalXml, imagePatch) @@ -828,13 +842,13 @@ export function pmDocToSavePlan(doc: PmNode, originalBlocks: Block[]): SavePlan changedCount++ pushBlock({ kind: 'xml', xml: patchTableCellTexts(original.originalXml, tableTexts) }) } else if ( - (textboxTexts || textboxHeights || textboxPositionChanged) && + (textboxTexts || textboxSizes || textboxPositionChanged) && original.originalXml ) { changedCount++ let xml = original.originalXml if (textboxTexts) xml = patchTextboxParas(xml, textboxTexts) - if (textboxHeights) xml = patchTextboxHeights(xml, textboxHeights) + if (textboxSizes) xml = patchTextboxSizes(xml, textboxSizes) if (textboxPositionChanged) { const wrap = (node.attrs?.imageWrap as ImageWrap | null) ?? original.imageWrap ?? 'square-left' @@ -847,6 +861,12 @@ export function pmDocToSavePlan(doc: PmNode, originalBlocks: Block[]): SavePlan } else if (formulaTokens && original.originalXml) { changedCount++ pushBlock({ kind: 'xml', xml: patchMathTokens(original.originalXml, formulaTokens) }) + } else if (chartSize && original.originalXml) { + changedCount++ + pushBlock({ + kind: 'xml', + xml: patchDrawingExtent(original.originalXml, chartSize.w, chartSize.h), + }) } else { pushBlock({ kind: 'original', docxIndex: idx }) } @@ -888,6 +908,17 @@ export function pmDocToSavePlan(doc: PmNode, originalBlocks: Block[]): SavePlan ), ) } + // persist resize/autogrow of newly-inserted single-box shapes/lines; + // horizontal lines keep their zero-height extent (display box is a grab band) + const genBox = genTextboxes?.length === 1 ? genTextboxes[0] : null + if (genBox && (genBox.widthPx || genBox.heightPx)) { + xml = patchTextboxSizes(xml, [ + { + wPx: genBox.widthPx ?? null, + hPx: isStraightLineKind(genBox.prst) ? null : (genBox.heightPx ?? null), + }, + ]) + } // apply wrap changes for floating textboxes/shapes const genWrap = node.attrs?.imageWrap as ImageWrap | null const genOffsetX = @@ -925,7 +956,13 @@ export function pmDocToSavePlan(doc: PmNode, originalBlocks: Block[]): SavePlan values: s.values, })) } - pushBlock({ kind: 'chart', chart: spec }) + pushBlock({ + kind: 'chart', + chart: spec, + ...(display?.widthPx && display.heightPx + ? { extentPx: { w: display.widthPx, h: display.heightPx } } + : {}), + }) } // protected node without an anchor or generated payload cannot be regenerated; drop it continue @@ -1241,18 +1278,21 @@ function textboxParasPatch( return changed ? boxes : null } -function textboxHeightsPatch(node: PmNode, original: Block): (number | null)[] | null { +function textboxSizesPatch(node: PmNode, original: Block): (TextboxSizePatch | null)[] | null { const current = node.attrs?.textboxes as TextboxDisplay[] | null const initial = original.textboxes if (!current || !initial || current.length !== initial.length) return null let changed = false - const heights = current.map((box, index) => { - const originalHeight = initial[index].heightPx - if (!originalHeight || !box.heightPx || box.heightPx === originalHeight) return null + const sizes = current.map((box, index) => { + // a resize on an autofit box (no initial heightPx) pins its height: + // patchTextboxSizes drops spAutoFit so Word honors the fixed extent + const wPx = box.widthPx && box.widthPx !== initial[index].widthPx ? box.widthPx : null + const hPx = box.heightPx && box.heightPx !== initial[index].heightPx ? box.heightPx : null + if (wPx == null && hPx == null) return null changed = true - return box.heightPx + return { wPx, hPx } }) - return changed ? heights : null + return changed ? sizes : null } function fieldTextPatch(node: PmNode, original: Block): FieldTextPatch | null { @@ -1503,6 +1543,7 @@ export function inlineToRuns(content: PmNode[]): Run[] { if (mark.attrs?.color) run.color = String(mark.attrs.color) if (mark.attrs?.sizeHalfPoints) run.sizeHalfPoints = Number(mark.attrs.sizeHalfPoints) if (mark.attrs?.font) run.font = String(mark.attrs.font) + if (mark.attrs?.fontAscii) run.fontAscii = String(mark.attrs.fontAscii) if (mark.attrs?.charSpacingTwips) run.charSpacingTwips = Number(mark.attrs.charSpacingTwips) if (mark.attrs?.highlight) run.highlight = String(mark.attrs.highlight) if (mark.attrs?.vertAlign === 'superscript' || mark.attrs?.vertAlign === 'subscript') { @@ -1558,6 +1599,7 @@ function runStyleKey(run: Run): string { run.color ?? null, run.sizeHalfPoints ?? null, run.font ?? null, + run.fontAscii ?? null, run.highlight ?? null, run.vertAlign ?? null, run.link?.href ?? null, @@ -1599,6 +1641,7 @@ function normalizedRuns(runs: Run[]): unknown[] { r.color ?? null, r.sizeHalfPoints ?? null, r.font ?? null, + r.fontAscii ?? null, r.highlight ?? null, r.vertAlign ?? null, r.link?.href ?? null, diff --git a/apps/docs/src/renderer/editor/extensions.ts b/apps/docs/src/renderer/editor/extensions.ts index 10d9944..052e7ca 100644 --- a/apps/docs/src/renderer/editor/extensions.ts +++ b/apps/docs/src/renderer/editor/extensions.ts @@ -51,6 +51,7 @@ import { constrainTableWidthAtCell } from './table-sizing' */ import { + CHART_MAX_WIDTH_PX, drawChartSvg, renderChartSpec, renderFieldSpec, @@ -60,6 +61,7 @@ import { textboxBoxStyle, wireChartEditing, } from './protected-render' +import { isStraightLineKind } from './shape-svg' import { BoldMark, CommentMark, @@ -1275,6 +1277,14 @@ export const DocProtected = Node.create({ // Let ProseMirror plugins receive handle presses; floating-object // dragging is implemented at the editor-view level. if (target?.closest?.('.doc-move-handle')) return false + // Object-mode body presses on floating boxes also go to the drag plugin + if ( + event.type === 'mousedown' && + dom.classList.contains('doc-protected-textboxes') && + !dom.classList.contains('doc-content-editing') && + target?.closest?.('.doc-textbox') + ) + return false const contentTarget = target?.closest?.(EDITABLE_PROTECTED_SELECTOR) return ( !!contentTarget && @@ -1323,12 +1333,12 @@ function protectedDomSpec(node: PmNode): DomSpec { `transform:translate(${Number(offsetX ?? 0) / EMU_PER_PX}px,` + `${Number(offsetY ?? 0) / EMU_PER_PX}px)` } - return [ - 'div', - attrs, - moveHandleSpec(t('editorMoveTextbox')), - ...(textboxes as TextboxDisplay[]).map(renderTextboxSpec), - ] + const children: DomSpec[] = (textboxes as TextboxDisplay[]).map(renderTextboxSpec) + // corner resize handle; multi-box nodes keep per-box autogrow semantics only + if ((textboxes as TextboxDisplay[]).length === 1) { + children.push(['span', { class: 'box-resize-handle', contenteditable: 'false' }]) + } + return ['div', attrs, moveHandleSpec(t('editorMoveTextbox')), ...children] } // empty section-break paragraphs (page-per-section converter output): Word // shows nothing here, so render a near-invisible strip (hover reveals it) @@ -1406,6 +1416,7 @@ function protectedDomSpec(node: PmNode): DomSpec { attrs, moveHandleSpec(t('editorMoveChart')), renderChartSpec(chartDisplay as ChartDisplay), + ['span', { class: 'box-resize-handle', contenteditable: 'false' }], ] } // OLE embed with a packaged preview picture: show the picture with a @@ -1928,7 +1939,7 @@ function mountTextboxEditors( ) } - /** external model change (undo of a commit, AI edit): re-feed the sub-editors */ + /** external model change (undo of a commit, AI edit, resize): re-feed the sub-editors */ const sync = (boxes: TextboxDisplay[] | null) => { if (!boxes || boxes === knownBoxes) return knownBoxes = boxes @@ -1937,6 +1948,7 @@ function mountTextboxEditors( if (sub && !sub.isDestroyed) sub.commands.setContent(textboxDocJson(box)) const el = boxEls[i] if (el) el.setAttribute('style', textboxBoxStyle(box)) + minHeights[i] = box.minHeightPx ?? box.heightPx measuredHeights[i] = box.heightPx }) } @@ -1961,13 +1973,105 @@ function mountTextboxEditors( return { cleanup, sync, setEditable, commit } } -/** drag the corner handle of a selected image to resize it */ +/** drag the corner handle of a selected image or floating box to resize it */ function imageResizePlugin(): Plugin { return new Plugin({ props: { handleDOMEvents: { mousedown: (view, event) => { const target = event.target as HTMLElement + if (target.classList?.contains('box-resize-handle')) { + const wrapper = target.closest('.doc-protected') as HTMLElement | null + const isChart = !!wrapper?.classList.contains('doc-protected-chart') + const boxEl = wrapper?.querySelector( + isChart ? '.doc-chart-canvas svg' : '.doc-textbox', + ) as HTMLElement | null + if (!wrapper || !boxEl) return false + let pos = -1 + view.state.doc.descendants((node, p) => { + if (pos !== -1) return false + if (node.type.name === 'docProtected' && view.nodeDOM(p) === wrapper) pos = p + return pos === -1 + }) + if (pos === -1) return false + const attrs = view.state.doc.nodeAt(pos)?.attrs + const boxes = attrs?.textboxes as TextboxDisplay[] | null + const chart = attrs?.chartDisplay as ChartDisplay | null + if (!isChart && (!Array.isArray(boxes) || boxes.length !== 1)) return false + if (isChart && !chart) return false + event.preventDefault() + view.dispatch(view.state.tr.setSelection(NodeSelection.create(view.state.doc, pos))) + + const zoomEl = document.querySelector('.doc-zoom') as HTMLElement | null + const zoom = zoomEl ? parseFloat(getComputedStyle(zoomEl).zoom || '1') || 1 : 1 + const startRect = boxEl.getBoundingClientRect() + const startW = isChart + ? startRect.width / zoom + : parseFloat(getComputedStyle(boxEl).width) || boxes![0].widthPx || 189 + const startH = isChart + ? startRect.height / zoom + : parseFloat(getComputedStyle(boxEl).height) || boxes![0].heightPx || 113 + const startX = event.clientX + const startY = event.clientY + + // horizontal lines resize in length only (their saved extent is zero-height) + const lockH = !isChart && isStraightLineKind(boxes![0].prst) + const minW = isChart ? 120 : 24 + const minH = isChart ? 80 : 8 + // charts never draw wider than the render cap, so don't let the model exceed it + const maxW = isChart ? CHART_MAX_WIDTH_PX : Infinity + const sizeAt = (e: MouseEvent) => ({ + w: Math.min(maxW, Math.max(minW, startW + (e.clientX - startX) / zoom)), + h: lockH ? startH : Math.max(minH, startH + (e.clientY - startY) / zoom), + }) + const onMove = (e: MouseEvent) => { + const { w, h } = sizeAt(e) + boxEl.style.width = `${w}px` + boxEl.style.height = `${h}px` + } + const onUp = (e: MouseEvent) => { + window.removeEventListener('mousemove', onMove) + window.removeEventListener('mouseup', onUp) + const { w, h } = sizeAt(e) + const node = view.state.doc.nodeAt(pos) + if (!node) return + if (isChart) { + const display = node.attrs.chartDisplay as ChartDisplay | null + if (!display) return + view.dispatch( + view.state.tr.setNodeMarkup(pos, undefined, { + ...node.attrs, + chartDisplay: { + ...display, + widthPx: Math.round(w), + heightPx: Math.round(h), + }, + }), + ) + return + } + const box = (node.attrs.textboxes as TextboxDisplay[] | null)?.[0] + if (!box) return + // straight lines keep their zero-height extent: never give them a heightPx + const next = lockH + ? { ...box, widthPx: Math.round(w) } + : { + ...box, + widthPx: Math.round(w), + heightPx: Math.round(h), + minHeightPx: Math.round(h), + } + view.dispatch( + view.state.tr.setNodeMarkup(pos, undefined, { + ...node.attrs, + textboxes: [next], + }), + ) + } + window.addEventListener('mousemove', onMove) + window.addEventListener('mouseup', onUp) + return true + } if (!target.classList?.contains('img-resize-handle')) return false const wrapper = target.closest('.doc-protected') as HTMLElement | null const img = wrapper?.querySelector('img.doc-protected-img') as HTMLImageElement | null @@ -2025,6 +2129,9 @@ const EMU_PER_PX = 9525 /** * Drag floating images and textbox shapes (wp:anchor) to update posOffset. + * Activates on the move handle, or on body presses of floating textbox / + * shape / WordArt blocks in object mode (3 px threshold keeps clicks as + * plain selection). * Only handles images with numeric posOffset (imageOffsetXEmu/YEmu set). * Inline images (no imageWrap) are auto-converted to anchor on drag start * with square wrap and the initial offset derived from the drag delta. @@ -2037,10 +2144,11 @@ function floatingObjectDragPlugin(): Plugin { if (event.button !== 0) return false const target = event.target as HTMLElement | null if (!target) return false - // Only activate on the move handle of an image block const handle = target.closest('.doc-move-handle') as HTMLElement | null - if (!handle) return false - const wrapper = handle.closest('.doc-protected') as HTMLElement | null + let wrapper = handle + ? (handle.closest('.doc-protected') as HTMLElement | null) + : (target.closest('.doc-protected-textboxes') as HTMLElement | null) + if (!handle && wrapper?.classList.contains('doc-content-editing')) wrapper = null if (!wrapper) return false // Find the ProseMirror node position @@ -2081,9 +2189,13 @@ function floatingObjectDragPlugin(): Plugin { isTextbox ? '.doc-textbox' : '.doc-protected-img', ) as HTMLElement | null + const startThresholdPx = handle ? 0 : 3 + let started = false const onMove = (e: MouseEvent) => { const dx = (e.clientX - startX) / zoom const dy = (e.clientY - startY) / zoom + if (!started && Math.hypot(dx, dy) < startThresholdPx) return + started = true if (visual) visual.style.transform = `translate(${dx}px, ${dy}px)` } @@ -2095,7 +2207,7 @@ function floatingObjectDragPlugin(): Plugin { const dx = (e.clientX - startX) / zoom const dy = (e.clientY - startY) / zoom // Only update if actually moved (≥1 px) - if (Math.abs(dx) < 1 && Math.abs(dy) < 1) return + if (!started || (Math.abs(dx) < 1 && Math.abs(dy) < 1)) return const newX = Math.round(startOffsetX + dx * EMU_PER_PX) const newY = Math.round(startOffsetY + dy * EMU_PER_PX) diff --git a/apps/docs/src/renderer/editor/hf-dom.ts b/apps/docs/src/renderer/editor/hf-dom.ts index 02b3d83..c4d065f 100644 --- a/apps/docs/src/renderer/editor/hf-dom.ts +++ b/apps/docs/src/renderer/editor/hf-dom.ts @@ -5,7 +5,7 @@ import { type HfParagraph, type Run, } from '@genoffice/docx-engine' -import { cssFontFamily } from '../line-metrics' +import { cssDualFontFamily, cssFontFamily } from '../line-metrics' /** * Plain-DOM header/footer rendering for the canvas page gaps (M4 always-on @@ -21,7 +21,9 @@ function applyRunStyle(span: HTMLElement, run: Run): void { if (deco.length > 0) span.style.textDecoration = deco.join(' ') if (run.color) span.style.color = `#${run.color}` if (run.sizeHalfPoints) span.style.fontSize = `${run.sizeHalfPoints / 2}pt` - if (run.font) span.style.fontFamily = cssFontFamily(run.font) + if (run.font && run.fontAscii) span.style.fontFamily = cssDualFontFamily(run.fontAscii, run.font) + else if (run.font || run.fontAscii) + span.style.fontFamily = cssFontFamily((run.font ?? run.fontAscii)!) } /** effective paragraphs: rich paras when present, else the legacy single line (mirrors HeaderFooterArea) */ diff --git a/apps/docs/src/renderer/editor/marks.ts b/apps/docs/src/renderer/editor/marks.ts index c2d5333..4c00f49 100644 --- a/apps/docs/src/renderer/editor/marks.ts +++ b/apps/docs/src/renderer/editor/marks.ts @@ -2,7 +2,8 @@ import { Extension, Mark } from '@tiptap/core' import { Plugin, PluginKey } from '@tiptap/pm/state' import { Decoration, DecorationSet } from '@tiptap/pm/view' import {} from '@tiptap/pm/tables' -import { cssFontFamily } from '../line-metrics' +import { cssDualFontFamily, cssFontFamily } from '../line-metrics' +import { isEastAsianFontName } from '../font-list' import { t } from '../i18n/locale' import {} from '@genoffice/docx-engine' @@ -277,7 +278,13 @@ export const RevisionOriginalExtension = Extension.create({ ] if (old.color) styles.push(`color:#${old.color}`) if (old.sizeHalfPoints) styles.push(`font-size:${Number(old.sizeHalfPoints) / 2}pt`) - if (old.font) styles.push(`font-family:${cssFontFamily(String(old.font))}`) + if (old.font || old.fontAscii) { + const ea = old.font ? String(old.font) : null + const ascii = old.fontAscii ? String(old.fontAscii) : null + styles.push( + `font-family:${ea && ascii ? cssDualFontFamily(ascii, ea) : cssFontFamily((ea ?? ascii)!)}`, + ) + } decos.push(Decoration.inline(pos, pos + node.nodeSize, { style: styles.join(';') })) }) return decos.length > 0 ? DecorationSet.create(state.doc, decos) : DecorationSet.empty @@ -339,6 +346,27 @@ export const InstrFieldMark = Mark.create({ }, }) +/** + * font-family chain → dual-slot font attrs, inverting renderHTML's encoding: + * the Latin slot is the chain's first Latin family, the eastAsia slot its first + * East Asian family. Generic families and the bundled CJK tofu-fallbacks that + * cssFontFamily appends to Latin chains are not user picks and are skipped. + * A Latin-only chain fills both slots, matching how parse.ts reads a + * Latin-only w:rFonts. Exported for tests. + */ +export function fontAttrsFromFamilyChain(chain: string | undefined): Record { + const families = (chain ?? '') + .split(',') + .map((x) => x.trim().replace(/^["']|["']$/g, '')) + .filter((x) => x && !/^(serif|sans-serif|monospace|cursive|fantasy|system-ui)$/i.test(x)) + const ea = families.find( + (f, i) => isEastAsianFontName(f) && (i === 0 || !/^noto (sans|serif) cjk sc$/i.test(f)), + ) + const latin = families.find((f) => !isEastAsianFontName(f)) + if (!ea && !latin) return {} + return { font: ea ?? latin, ...(latin ? { fontAscii: latin } : {}) } +} + /** Inline styles of foreign HTML → docTextStyle attrs (returns false when no usable style, so no mark is applied) */ function textStyleAttrsFromDom(el: HTMLElement): Record | false { const attrs: Record = {} @@ -365,11 +393,7 @@ function textStyleAttrsFromDom(el: HTMLElement): Record | false else if (size.endsWith('px')) attrs.sizeHalfPoints = Math.round(v * 1.5) } } - const family = st.fontFamily - ?.split(',')[0] - ?.trim() - .replace(/^["']|["']$/g, '') - if (family) attrs.font = family + Object.assign(attrs, fontAttrsFromFamilyChain(st.fontFamily)) const spacing = parseFloat(st.letterSpacing) if (Number.isFinite(spacing) && spacing !== 0) { attrs.charSpacingTwips = Math.round( @@ -391,6 +415,8 @@ export const TextStyleMark = Mark.create({ color: { default: null as string | null }, sizeHalfPoints: { default: null as number | null }, font: { default: null as string | null }, + // Latin slot (w:ascii/w:hAnsi) when it differs from the primary/eastAsia font + fontAscii: { default: null as string | null }, charSpacingTwips: { default: null as number | null }, // letter spacing (em, negative = condensed) converted from w:w scaling; precomputed by convert per run text charScaleEm: { default: null as number | null }, @@ -420,7 +446,13 @@ export const TextStyleMark = Mark.create({ if (mark.attrs.color) styles.push(`color:#${mark.attrs.color}`) if (mark.attrs.sizeHalfPoints) styles.push(`font-size:${Number(mark.attrs.sizeHalfPoints) / 2}pt`) - if (mark.attrs.font) styles.push(`font-family:${cssFontFamily(String(mark.attrs.font))}`) + if (mark.attrs.font || mark.attrs.fontAscii) { + const ea = mark.attrs.font ? String(mark.attrs.font) : null + const ascii = mark.attrs.fontAscii ? String(mark.attrs.fontAscii) : null + styles.push( + `font-family:${ea && ascii ? cssDualFontFamily(ascii, ea) : cssFontFamily((ea ?? ascii)!)}`, + ) + } const spacingPt = mark.attrs.charSpacingTwips ? Number(mark.attrs.charSpacingTwips) / 20 : 0 const scaleEm = mark.attrs.charScaleEm ? Number(mark.attrs.charScaleEm) : 0 if (spacingPt && scaleEm) styles.push(`letter-spacing:calc(${spacingPt}pt + ${scaleEm}em)`) @@ -435,7 +467,8 @@ export const TextStyleMark = Mark.create({ if (mark.attrs.vertAlign === 'subscript') styles.push('vertical-align:sub;font-size:0.75em') if (mark.attrs.em) { const em = String(mark.attrs.em) - const shape = em === 'circle' ? 'open circle' : em === 'comma' ? 'filled sesame' : 'filled dot' + const shape = + em === 'circle' ? 'open circle' : em === 'comma' ? 'filled sesame' : 'filled dot' // Word renders Chinese emphasis marks (dot/underDot) below the text; comma/circle kenten go above const pos = em === 'comma' || em === 'circle' ? 'over' : 'under' styles.push(`text-emphasis:${shape}`, `text-emphasis-position:${pos} right`) diff --git a/apps/docs/src/renderer/editor/protected-render.ts b/apps/docs/src/renderer/editor/protected-render.ts index 6ccc834..eacaebe 100644 --- a/apps/docs/src/renderer/editor/protected-render.ts +++ b/apps/docs/src/renderer/editor/protected-render.ts @@ -2,8 +2,9 @@ import type { Node as PmNode } from '@tiptap/pm/model' import {} from '@tiptap/pm/state' import type { EditorView } from '@tiptap/pm/view' import {} from '@tiptap/pm/tables' -import { cssFontFamily } from '../line-metrics' +import { cssDualFontFamily, cssFontFamily } from '../line-metrics' import { t } from '../i18n/locale' +import { shapeBackgroundCss } from './shape-svg' import { type ChartDisplay, type FieldDisplay, @@ -166,14 +167,26 @@ interface ChartGeom { bottom: number } +/** widest a chart draws at; the resize handle clamps to this too so mouseup never snaps back */ +export const CHART_MAX_WIDTH_PX = 660 + /** draw the read-only SVG preview into the node's .doc-chart-canvas */ export function drawChartSvg(dom: HTMLElement, chart: ChartDisplay | null): void { const canvas = dom.querySelector('.doc-chart-canvas') if (!canvas || !chart?.series.length) return - const geom: ChartGeom = { width: 560, height: 240, left: 46, right: 12, top: 12, bottom: 26 } + const geom: ChartGeom = { + width: Math.min(chart.widthPx ?? 560, CHART_MAX_WIDTH_PX), + height: chart.heightPx ?? 240, + left: 46, + right: 12, + top: 12, + bottom: 26, + } const svg = document.createElementNS(SVG_NS, 'svg') svg.setAttribute('viewBox', `0 0 ${geom.width} ${geom.height}`) svg.setAttribute('class', 'doc-chart-svg') + svg.style.width = `${geom.width}px` + svg.style.height = `${geom.height}px` if (chart.kind === 'pie') drawPie(svg, chart, geom) else drawAxes(svg, chart, geom) @@ -391,27 +404,6 @@ export function wireChartEditing( } /** rendering of an anchored textbox (code box / callout card); text is editable in place */ -/** CSS clip-path/borderRadius for DrawingML prstGeom shapes. */ -const PRST_CSS: Record = { - roundRect: { borderRadius: '12%' }, - ellipse: { borderRadius: '50%' }, - triangle: { clipPath: 'polygon(50% 0%, 0% 100%, 100% 100%)' }, - rtTriangle: { clipPath: 'polygon(0% 0%, 0% 100%, 100% 100%)' }, - diamond: { clipPath: 'polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)' }, - parallelogram: { clipPath: 'polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%)' }, - pentagon: { clipPath: 'polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)' }, - hexagon: { clipPath: 'polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%)' }, - star5: { - clipPath: - 'polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%)', - }, - rightArrow: { clipPath: 'polygon(0% 25%, 65% 25%, 65% 0%, 100% 50%, 65% 100%, 65% 75%, 0% 75%)' }, - leftRightArrow: { - clipPath: - 'polygon(0% 50%, 20% 0%, 20% 30%, 80% 30%, 80% 0%, 100% 50%, 80% 100%, 80% 70%, 20% 70%, 20% 100%)', - }, -} - /** * WordArt preset CSS approximation applied to the entire textbox container. * color: used as -webkit-text-fill-color; stroke: optional -webkit-text-stroke. @@ -430,18 +422,26 @@ export function textboxBoxStyle(box: TextboxDisplay): string { const insetRight = box.insetRightPx ?? 9.6 const insetBottom = box.insetBottomPx ?? 4.8 const insetLeft = box.insetLeftPx ?? 9.6 - const shapeStyle = box.prst ? PRST_CSS[box.prst] : undefined + // preset geometry renders as an SVG background so the box div stays plain + // (sub-editors replaceChildren() it); border/fill live inside the SVG then + const geomCss = box.prst + ? shapeBackgroundCss( + box.prst, + box.widthPx ?? 189, + box.heightPx ?? 113, + box.fill, + box.borderColor, + ) + : null const waStyle = box.wordArtId ? WORDART_CSS[box.wordArtId] : undefined return [ - box.fill ? `background:#${box.fill}` : '', - box.borderColor && !shapeStyle?.clipPath ? `border-color:#${box.borderColor}` : '', - box.borderColor && shapeStyle?.clipPath ? `outline:2px solid #${box.borderColor}` : '', + geomCss ?? '', + !geomCss && box.fill ? `background:#${box.fill}` : '', + !geomCss && box.borderColor ? `border-color:#${box.borderColor}` : '', box.widthPx ? `width:${box.widthPx}px` : '', // Word clips fixed-height (noAutofit) boxes instead of growing them box.heightPx ? `height:${box.heightPx}px` : '', `padding:${insetTop}px ${insetRight}px ${insetBottom}px ${insetLeft}px`, - shapeStyle?.clipPath ? `clip-path:${shapeStyle.clipPath}` : '', - shapeStyle?.borderRadius ? `border-radius:${shapeStyle.borderRadius}` : '', waStyle?.color ? `-webkit-text-fill-color:${waStyle.color}` : '', waStyle?.stroke ? `-webkit-text-stroke:${waStyle.stroke}` : '', waStyle?.textShadow ? `text-shadow:${waStyle.textShadow}` : '', @@ -462,7 +462,13 @@ export function renderTextboxSpec(box: TextboxDisplay): DomSpec { run.bold ? 'font-weight:700' : '', run.italic ? 'font-style:italic' : '', run.underline ? 'text-decoration:underline' : '', - run.font ? `font-family:${cssFontFamily(run.font)}` : '', + run.font || run.fontAscii + ? `font-family:${ + run.font && run.fontAscii + ? cssDualFontFamily(run.fontAscii, run.font) + : cssFontFamily((run.font ?? run.fontAscii)!) + }` + : '', run.sizeHalfPoints ? `font-size:${run.sizeHalfPoints / 2}pt` : '', ] .filter(Boolean) diff --git a/apps/docs/src/renderer/editor/revisions.ts b/apps/docs/src/renderer/editor/revisions.ts index b1d7719..a4a6a53 100644 --- a/apps/docs/src/renderer/editor/revisions.ts +++ b/apps/docs/src/renderer/editor/revisions.ts @@ -51,6 +51,7 @@ const TEXT_STYLE_FIELDS = [ 'color', 'sizeHalfPoints', 'font', + 'fontAscii', 'charSpacingTwips', 'charScaleEm', 'highlight', @@ -621,8 +622,40 @@ export const TrackChangesExtension = Extension.create { + if (from >= to) return { text: '', children: [] } + const $from = doc.resolve(from) + if (!$from.sameParent(doc.resolve(to)) || !$from.parent.isTextblock) return null + let ok = true + let text = '' + const children: PmNode[] = [] + doc.nodesBetween(from, to, (node, pos) => { + if (!node.isInline) return true + if (node.isText) { + const a = Math.max(from - pos, 0) + const b = Math.min(to - pos, node.text!.length) + const cut = a > 0 || b < node.text!.length ? node.cut(a, b) : node + text += cut.text + children.push(cut) + } else if (node.isLeaf && node.nodeSize === 1) { + text += '' + children.push(node) + } else ok = false + return false + }) + return ok ? { text, children } : null + } return [ new Plugin({ key: new PluginKey('trackChangesRecorder'), @@ -647,6 +680,7 @@ export const TrackChangesExtension = Extension.create 0 && tracked.every((t) => t.getMeta('composition'))) { + composing = true + } const flush = composing ? null : pendingIme if (!composing) pendingIme = null if (tracked.length === 0 && !flush) return null @@ -708,28 +748,12 @@ export const TrackChangesExtension = Extension.create 0 - slice.content.forEach((child) => { - if (!child.isInline) inlineOnly = false - }) - if (!inlineOnly) continue - slice.content.forEach((child) => { - const ownIns = child.marks.some( - (m) => m.type === insType && m.attrs.author === storage.author, - ) - if (!ownIns) removed.push(child) - }) + pendingIme = { + from, + to, + base: oldState.doc, + mapping: new Mapping(transactions.flatMap((t) => t.mapping.maps)), } - pendingIme = { from, to, removed } } } return null @@ -1047,16 +1071,54 @@ export const TrackChangesExtension = Extension.create 0 || b < len) ? child.cut(a, b) : child) + at += len + } + removed = removed.filter( + (child) => + // deleting your own insertion removes it outright + !child.marks.some((m) => m.type === insType && m.attrs.author === storage.author), + ) + } + const insFrom = tr.mapping.map(from + prefix, 1) + const insTo = tr.mapping.map(to - suffix, -1) + if (insFrom < insTo) { + tr.removeMark(insFrom, insTo, delType) + tr.addMark(insFrom, insTo, insMark) changed = true } - if (flush.removed.length > 0) { - const at = Math.max(from, to) - const end = flush.removed.reduce((acc, child) => { + if (removed.length > 0) { + const at = Math.max(insFrom, insTo) + const end = removed.reduce((acc, child) => { const struck = child.marks.some((m) => m.type === delType) ? child : child.mark([...child.marks, delMark]) diff --git a/apps/docs/src/renderer/editor/shape-svg.ts b/apps/docs/src/renderer/editor/shape-svg.ts new file mode 100644 index 0000000..8256d57 --- /dev/null +++ b/apps/docs/src/renderer/editor/shape-svg.ts @@ -0,0 +1,149 @@ +/** + * Preset shape geometry for docs: gallery previews and textbox shape + * backgrounds share the geometry the saved OOXML prstGeom describes. + * The shape visual is a data-URI SVG background so the box DOM stays a plain + * div (textbox sub-editors replaceChildren() the box on mount). + */ +import { + isPillPreset, + presetPath, + presetPolygon, +} from '../../../../../packages/pptx-render/src/preset-geometry' + +const R = (v: number) => Math.round(v * 100) / 100 + +function polygonPathD(pts: number[]): string { + const parts: string[] = [] + for (let i = 0; i < pts.length; i += 2) { + parts.push(`${i === 0 ? 'M' : 'L'} ${R(pts[i]!)} ${R(pts[i + 1]!)}`) + } + return parts.join(' ') + ' Z' +} + +function roundRectPathD(w: number, h: number, r: number): string { + return ( + `M ${R(r)} 0 L ${R(w - r)} 0 A ${R(r)} ${R(r)} 0 0 1 ${R(w)} ${R(r)} L ${R(w)} ${R(h - r)} ` + + `A ${R(r)} ${R(r)} 0 0 1 ${R(w - r)} ${R(h)} L ${R(r)} ${R(h)} A ${R(r)} ${R(r)} 0 0 1 0 ${R(h - r)} ` + + `L 0 ${R(r)} A ${R(r)} ${R(r)} 0 0 1 ${R(r)} 0 Z` + ) +} + +interface ShapePaths { + /** fill + stroke */ + main?: string + /** fill only */ + fillOnly?: string + /** stroke only (braces, arcs) */ + strokeOnly?: string +} + +/** Open V arrowhead at (x2,y2), pointing away from (x1,y1). */ +function arrowHeadD(x1: number, y1: number, x2: number, y2: number, len: number): string { + const dx = x2 - x1 + const dy = y2 - y1 + const l = Math.hypot(dx, dy) || 1 + const ux = dx / l + const uy = dy / l + const bx = x2 - ux * len + const by = y2 - uy * len + const wl = len * 0.6 + return `M ${R(bx - uy * wl)} ${R(by + ux * wl)} L ${R(x2)} ${R(y2)} L ${R(bx + uy * wl)} ${R(by - ux * wl)}` +} + +/** Straight line kinds: saved with cy=0 (Word's horizontal line), drawn level. */ +export function isStraightLineKind(prst: string | undefined): boolean { + return prst === 'line' || prst === 'lineArrow' || prst === 'lineArrowDouble' +} + +/** Level line at the box's vertical center (the in-document rendering). */ +function straightLinePaths(prst: string, w: number, h: number): ShapePaths { + const y = h / 2 + const parts = [`M 0 ${R(y)} L ${R(w)} ${R(y)}`] + const len = Math.min(16, Math.max(7, w * 0.09)) + if (prst !== 'line') parts.push(arrowHeadD(0, y, w, y, len)) + if (prst === 'lineArrowDouble') parts.push(arrowHeadD(w, y, 0, y, len)) + return { strokeOnly: parts.join(' ') } +} + +/** Stroke-only line/connector kinds (gallery preview traces the diagonal). */ +function linePaths(prst: string, w: number, h: number): ShapePaths | null { + if (isStraightLineKind(prst)) { + const parts = [`M 0 0 L ${R(w)} ${R(h)}`] + const len = Math.min(16, Math.max(7, Math.hypot(w, h) * 0.09)) + if (prst !== 'line') parts.push(arrowHeadD(0, 0, w, h, len)) + if (prst === 'lineArrowDouble') parts.push(arrowHeadD(w, h, 0, 0, len)) + return { strokeOnly: parts.join(' ') } + } + if (prst === 'lineBent') + return { strokeOnly: `M 0 0 L ${R(w / 2)} 0 L ${R(w / 2)} ${R(h)} L ${R(w)} ${R(h)}` } + if (prst === 'lineCurved') + return { strokeOnly: `M 0 0 C ${R(w * 0.6)} 0 ${R(w * 0.4)} ${R(h)} ${R(w)} ${R(h)}` } + return null +} + +/** Preset → path channels in a w×h box; null when the geometry is unknown. */ +export function shapePaths(prst: string, w: number, h: number): ShapePaths | null { + const line = linePaths(prst, w, h) + if (line) return line + const poly = presetPolygon(prst, w, h) + if (poly) return { main: polygonPathD(poly) } + const path = presetPath(prst, w, h) + if (path) return { main: path.path, fillOnly: path.fillPath, strokeOnly: path.strokePath } + // Alternate Process is a rounded rectangle, not a pill like Terminator + if (prst === 'roundRect' || prst === 'flowChartAlternateProcess') + return { main: roundRectPathD(w, h, Math.min(w, h) * 0.16667) } + if (isPillPreset(prst)) return { main: roundRectPathD(w, h, Math.min(w, h) / 2) } + if (prst === 'ellipse') { + const rx = w / 2 + const ry = h / 2 + return { + main: `M 0 ${R(ry)} A ${R(rx)} ${R(ry)} 0 1 1 ${R(w)} ${R(ry)} A ${R(rx)} ${R(ry)} 0 1 1 0 ${R(ry)} Z`, + } + } + if (prst === 'rect' || prst === 'flowChartProcess') + return { main: `M 0 0 L ${R(w)} 0 L ${R(w)} ${R(h)} L 0 ${R(h)} Z` } + return null +} + +/** Stroke-only outline for gallery preview cells. */ +export function shapePreviewPathD(prst: string, w: number, h: number): string | null { + const paths = shapePaths(prst, w, h) + if (!paths) return null + return [paths.main, paths.fillOnly, paths.strokeOnly].filter(Boolean).join(' ') +} + +/** + * Shape visual as CSS background properties (data-URI SVG at the box's pixel + * size, insets included so the stroke isn't clipped at the edges). + */ +export function shapeBackgroundCss( + prst: string, + w: number, + h: number, + fillHex?: string, + borderHex?: string, +): string | null { + const paths = isStraightLineKind(prst) + ? straightLinePaths(prst, Math.max(8, w - 2), Math.max(8, h - 2)) + : shapePaths(prst, Math.max(8, w - 2), Math.max(8, h - 2)) + if (!paths) return null + const fill = fillHex ? `#${fillHex}` : 'none' + const stroke = borderHex ? `#${borderHex}` : 'none' + const parts: string[] = [] + if (paths.main) + parts.push(``) + if (paths.fillOnly) parts.push(``) + if (paths.strokeOnly) + parts.push( + ``, + ) + const svg = + `` + + parts.join('') + + '' + return ( + `background-image:url("data:image/svg+xml,${encodeURIComponent(svg)}");` + + 'background-size:100% 100%;background-repeat:no-repeat' + ) +} diff --git a/apps/docs/src/renderer/font-list.ts b/apps/docs/src/renderer/font-list.ts index 1e2f123..4dee42c 100644 --- a/apps/docs/src/renderer/font-list.ts +++ b/apps/docs/src/renderer/font-list.ts @@ -36,6 +36,18 @@ const JAPANESE = ['Yu Gothic', 'Yu Mincho', 'Meiryo', 'MS Gothic', 'MS Mincho'] const KOREAN = ['Malgun Gothic', 'Batang', 'Gulim', 'Dotum'] const TRADITIONAL_CHINESE = ['Microsoft JhengHei', 'PMingLiU'] +const EAST_ASIAN_FONT_RE = + /[⺀-鿿豈-﫿぀-ヿㇰ-ㇿ가-힯]|sim(sun|hei)|nsimsun|kaiti|fangsong|dengxian|yahei|songti|heiti|xingkai|lisu|youyuan|st(zhongsong|song|kai|fangsong|xihei|hupo|liti|caiyun)|pingfang|hiragino|meiryo|osaka|kozuka|yu (gothic|mincho)|yugoth|ms (ui )?p?(gothic|mincho)|biz ud|malgun|batang|gulim|dotum|gungsuh|m(ye|yu)ngjo|nanum|apple (sd )?gothic|applemyungjo|jhenghei|p?mingliu|biaukai|dfkai|kaiu|source han|noto (sans|serif) (cjk|sc|tc|hk|jp|kr)|wenquanyi/i + +/** + * Which rFonts slot a font-box pick should target: East Asian names go to + * w:eastAsia, everything else to w:ascii/w:hAnsi — mirroring Word, where + * picking a Latin font never clobbers the Chinese font and vice versa. + */ +export function isEastAsianFontName(name: string): boolean { + return EAST_ASIAN_FONT_RE.test(name.normalize('NFKC')) +} + export function fontFamiliesFor(lang: Lang): readonly string[] { switch (lang) { case 'zh': diff --git a/apps/docs/src/renderer/i18n/strings-app.ts b/apps/docs/src/renderer/i18n/strings-app.ts index f50c196..88a61f9 100644 --- a/apps/docs/src/renderer/i18n/strings-app.ts +++ b/apps/docs/src/renderer/i18n/strings-app.ts @@ -20,7 +20,7 @@ export const appStrings = defineStrings({ appOpenFailed: '打开失败: {error}', appFontsMissing: '文档字体未安装:{names}(已用替代字体显示)', appVerticalTextNotice: '文档包含竖排文字(暂以横排显示,保存不受影响)', - appNewDocCreated: '已新建空白文档,可在右侧 AI 面板直接描述要生成的内容', + appNewDocCreated: '已新建空白文档,可在左侧 AI 面板直接描述要生成的内容', appNewFailed: '新建失败: {error}', appSaveFailed: '保存失败: {error}', appAutoSavedAt: '已自动保存 ({time})', @@ -308,9 +308,10 @@ export const appStrings = defineStrings({ appOpenedFile: 'Opened {name}', appOpenFailed: 'Open failed: {error}', appFontsMissing: 'Missing document fonts: {names} (substitutes shown)', - appVerticalTextNotice: 'This document contains vertical text (shown horizontally for now; saving is unaffected)', + appVerticalTextNotice: + 'This document contains vertical text (shown horizontally for now; saving is unaffected)', appNewDocCreated: - 'Blank document created. Describe what to generate in the AI pane on the right.', + 'Blank document created. Describe what to generate in the AI pane on the left.', appNewFailed: 'Failed to create document: {error}', appSaveFailed: 'Save failed: {error}', appAutoSavedAt: 'AutoSaved ({time})', @@ -580,8 +581,9 @@ export const appStrings = defineStrings({ appOpenedFile: '{name} を開きました', appOpenFailed: '開けませんでした: {error}', appFontsMissing: '文書のフォントが未インストールです: {names}(代替フォントで表示)', - appVerticalTextNotice: '縦書きテキストを含む文書です(現在は横書きで表示。保存には影響しません)', - appNewDocCreated: '空白の文書を作成しました。右側の AI パネルで生成したい内容を記述できます', + appVerticalTextNotice: + '縦書きテキストを含む文書です(現在は横書きで表示。保存には影響しません)', + appNewDocCreated: '空白の文書を作成しました。左側の AI パネルで生成したい内容を記述できます', appNewFailed: '新規作成に失敗しました: {error}', appSaveFailed: '保存に失敗しました: {error}', appAutoSavedAt: '自動保存しました ({time})', @@ -882,9 +884,10 @@ export const appStrings = defineStrings({ appOpenedFile: '{name}을(를) 열었습니다', appOpenFailed: '열기 실패: {error}', appFontsMissing: '문서 글꼴이 설치되어 있지 않습니다: {names} (대체 글꼴로 표시)', - appVerticalTextNotice: '세로쓰기 텍스트가 포함된 문서입니다(현재 가로쓰기로 표시되며 저장에는 영향이 없습니다)', + appVerticalTextNotice: + '세로쓰기 텍스트가 포함된 문서입니다(현재 가로쓰기로 표시되며 저장에는 영향이 없습니다)', appNewDocCreated: - '빈 문서를 만들었습니다. 오른쪽 AI 패널에서 생성할 내용을 바로 입력할 수 있습니다', + '빈 문서를 만들었습니다. 왼쪽 AI 패널에서 생성할 내용을 바로 입력할 수 있습니다', appNewFailed: '새로 만들기 실패: {error}', appSaveFailed: '저장 실패: {error}', appAutoSavedAt: '자동 저장됨 ({time})', @@ -1182,9 +1185,10 @@ export const appStrings = defineStrings({ appOpenedFile: '{name} ouvert', appOpenFailed: "Échec de l'ouverture : {error}", appFontsMissing: 'Polices du document manquantes : {names} (polices de substitution affichées)', - appVerticalTextNotice: "Ce document contient du texte vertical (affiché horizontalement pour l'instant ; l'enregistrement n'est pas affecté)", + appVerticalTextNotice: + "Ce document contient du texte vertical (affiché horizontalement pour l'instant ; l'enregistrement n'est pas affecté)", appNewDocCreated: - 'Document vierge créé. Décrivez le contenu à générer dans le volet IA à droite', + 'Document vierge créé. Décrivez le contenu à générer dans le volet IA à gauche', appNewFailed: 'Échec de la création du document : {error}', appSaveFailed: "Échec de l'enregistrement : {error}", appAutoSavedAt: 'Enregistrement automatique ({time})', @@ -1463,9 +1467,10 @@ export const appStrings = defineStrings({ appOpenedFile: '{name} geöffnet', appOpenFailed: 'Öffnen fehlgeschlagen: {error}', appFontsMissing: 'Fehlende Dokumentschriftarten: {names} (Ersatzschriften werden angezeigt)', - appVerticalTextNotice: 'Dieses Dokument enthält vertikalen Text (vorerst horizontal angezeigt; das Speichern ist nicht betroffen)', + appVerticalTextNotice: + 'Dieses Dokument enthält vertikalen Text (vorerst horizontal angezeigt; das Speichern ist nicht betroffen)', appNewDocCreated: - 'Leeres Dokument erstellt. Beschreiben Sie im KI-Bereich rechts, was generiert werden soll', + 'Leeres Dokument erstellt. Beschreiben Sie im KI-Bereich links, was generiert werden soll', appNewFailed: 'Erstellen des Dokuments fehlgeschlagen: {error}', appSaveFailed: 'Speichern fehlgeschlagen: {error}', appAutoSavedAt: 'Automatisch gespeichert ({time})', @@ -1746,9 +1751,10 @@ export const appStrings = defineStrings({ appOpenedFile: 'Se abrió {name}', appOpenFailed: 'Error al abrir: {error}', appFontsMissing: 'Faltan fuentes del documento: {names} (se muestran sustitutas)', - appVerticalTextNotice: 'Este documento contiene texto vertical (se muestra horizontal por ahora; el guardado no se ve afectado)', + appVerticalTextNotice: + 'Este documento contiene texto vertical (se muestra horizontal por ahora; el guardado no se ve afectado)', appNewDocCreated: - 'Documento en blanco creado. Describa el contenido que desea generar en el panel de IA de la derecha', + 'Documento en blanco creado. Describa el contenido que desea generar en el panel de IA de la izquierda', appNewFailed: 'Error al crear el documento: {error}', appSaveFailed: 'Error al guardar: {error}', appAutoSavedAt: 'Guardado automáticamente ({time})', @@ -2026,7 +2032,7 @@ export const appStrings = defineStrings({ appOpenFailed: 'เปิดไม่สำเร็จ: {error}', appFontsMissing: 'ไม่มีแบบอักษรของเอกสาร: {names} (แสดงด้วยแบบอักษรทดแทน)', appVerticalTextNotice: 'เอกสารนี้มีข้อความแนวตั้ง (แสดงเป็นแนวนอนชั่วคราว ไม่มีผลต่อการบันทึก)', - appNewDocCreated: 'สร้างเอกสารเปล่าแล้ว อธิบายเนื้อหาที่ต้องการสร้างได้ในแผง AI ทางขวา', + appNewDocCreated: 'สร้างเอกสารเปล่าแล้ว อธิบายเนื้อหาที่ต้องการสร้างได้ในแผง AI ทางซ้าย', appNewFailed: 'สร้างเอกสารไม่สำเร็จ: {error}', appSaveFailed: 'บันทึกไม่สำเร็จ: {error}', appAutoSavedAt: 'บันทึกอัตโนมัติแล้ว ({time})', @@ -2298,9 +2304,10 @@ export const appStrings = defineStrings({ appOpenedFile: '{name} dibuka', appOpenFailed: 'Gagal membuka: {error}', appFontsMissing: 'Font dokumen tidak tersedia: {names} (ditampilkan dengan font pengganti)', - appVerticalTextNotice: 'Dokumen ini berisi teks vertikal (sementara ditampilkan horizontal; penyimpanan tidak terpengaruh)', + appVerticalTextNotice: + 'Dokumen ini berisi teks vertikal (sementara ditampilkan horizontal; penyimpanan tidak terpengaruh)', appNewDocCreated: - 'Dokumen kosong telah dibuat. Jelaskan konten yang ingin dibuat di panel AI sebelah kanan', + 'Dokumen kosong telah dibuat. Jelaskan konten yang ingin dibuat di panel AI sebelah kiri', appNewFailed: 'Gagal membuat dokumen: {error}', appSaveFailed: 'Gagal menyimpan: {error}', appAutoSavedAt: 'Disimpan otomatis ({time})', @@ -2573,8 +2580,9 @@ export const appStrings = defineStrings({ appOpenedFile: 'Открыт файл {name}', appOpenFailed: 'Не удалось открыть: {error}', appFontsMissing: 'Отсутствуют шрифты документа: {names} (показаны заменители)', - appVerticalTextNotice: 'Документ содержит вертикальный текст (пока отображается горизонтально; на сохранение это не влияет)', - appNewDocCreated: 'Создан пустой документ. Опишите содержимое для создания в панели ИИ справа', + appVerticalTextNotice: + 'Документ содержит вертикальный текст (пока отображается горизонтально; на сохранение это не влияет)', + appNewDocCreated: 'Создан пустой документ. Опишите содержимое для создания в панели ИИ слева', appNewFailed: 'Не удалось создать документ: {error}', appSaveFailed: 'Не удалось сохранить: {error}', appAutoSavedAt: 'Автосохранение ({time})', @@ -2851,9 +2859,10 @@ export const appStrings = defineStrings({ appOpenedFile: 'تم فتح {name}', appOpenFailed: 'فشل الفتح: {error}', appFontsMissing: 'خطوط المستند غير مثبتة: {names} (تُعرض بخطوط بديلة)', - appVerticalTextNotice: 'يحتوي المستند على نص عمودي (يُعرض أفقيًا حاليًا؛ لا يؤثر ذلك على الحفظ)', + appVerticalTextNotice: + 'يحتوي المستند على نص عمودي (يُعرض أفقيًا حاليًا؛ لا يؤثر ذلك على الحفظ)', appNewDocCreated: - 'تم إنشاء مستند فارغ. صِف المحتوى المراد إنشاؤه في لوحة الذكاء الاصطناعي على اليمين', + 'تم إنشاء مستند فارغ. صِف المحتوى المراد إنشاؤه في لوحة الذكاء الاصطناعي على اليسار', appNewFailed: 'فشل إنشاء المستند: {error}', appSaveFailed: 'فشل الحفظ: {error}', appAutoSavedAt: 'تم الحفظ التلقائي ({time})', @@ -3122,8 +3131,10 @@ export const appStrings = defineStrings({ appOpenedFile: '{name} aberto', appOpenFailed: 'Falha ao abrir: {error}', appFontsMissing: 'Fontes do documento ausentes: {names} (substitutas exibidas)', - appVerticalTextNotice: 'Este documento contém texto vertical (exibido horizontalmente por enquanto; o salvamento não é afetado)', - appNewDocCreated: 'Documento em branco criado. Descreva o que gerar no painel de IA à direita.', + appVerticalTextNotice: + 'Este documento contém texto vertical (exibido horizontalmente por enquanto; o salvamento não é afetado)', + appNewDocCreated: + 'Documento em branco criado. Descreva o que gerar no painel de IA à esquerda.', appNewFailed: 'Falha ao criar o documento: {error}', appSaveFailed: 'Falha ao salvar: {error}', appAutoSavedAt: 'Salvo automaticamente ({time})', @@ -3397,8 +3408,9 @@ export const appStrings = defineStrings({ appOpenedFile: '{name} aperto', appOpenFailed: 'Apertura non riuscita: {error}', appFontsMissing: 'Font del documento mancanti: {names} (mostrati sostituti)', - appVerticalTextNotice: 'Questo documento contiene testo verticale (mostrato orizzontalmente per ora; il salvataggio non è interessato)', - appNewDocCreated: 'Documento vuoto creato. Descrivi cosa generare nel pannello IA a destra.', + appVerticalTextNotice: + 'Questo documento contiene testo verticale (mostrato orizzontalmente per ora; il salvataggio non è interessato)', + appNewDocCreated: 'Documento vuoto creato. Descrivi cosa generare nel pannello IA a sinistra.', appNewFailed: 'Creazione del documento non riuscita: {error}', appSaveFailed: 'Salvataggio non riuscito: {error}', appAutoSavedAt: 'Salvato automaticamente ({time})', @@ -3672,8 +3684,9 @@ export const appStrings = defineStrings({ appOpenedFile: 'Otwarto {name}', appOpenFailed: 'Otwieranie nie powiodło się: {error}', appFontsMissing: 'Brak czcionek dokumentu: {names} (wyświetlane zamienniki)', - appVerticalTextNotice: 'Ten dokument zawiera tekst pionowy (na razie wyświetlany poziomo; zapis pozostaje bez zmian)', - appNewDocCreated: 'Utworzono pusty dokument. Opisz w panelu AI po prawej, co wygenerować.', + appVerticalTextNotice: + 'Ten dokument zawiera tekst pionowy (na razie wyświetlany poziomo; zapis pozostaje bez zmian)', + appNewDocCreated: 'Utworzono pusty dokument. Opisz w panelu AI po lewej, co wygenerować.', appNewFailed: 'Nie udało się utworzyć dokumentu: {error}', appSaveFailed: 'Zapisywanie nie powiodło się: {error}', appAutoSavedAt: 'Zapisano automatycznie ({time})', @@ -3950,9 +3963,10 @@ export const appStrings = defineStrings({ appOpenedFile: '{name} geopend', appOpenFailed: 'Openen mislukt: {error}', appFontsMissing: 'Ontbrekende documentlettertypen: {names} (vervangingen weergegeven)', - appVerticalTextNotice: 'Dit document bevat verticale tekst (voorlopig horizontaal weergegeven; opslaan wordt niet beïnvloed)', + appVerticalTextNotice: + 'Dit document bevat verticale tekst (voorlopig horizontaal weergegeven; opslaan wordt niet beïnvloed)', appNewDocCreated: - 'Leeg document gemaakt. Beschrijf in het AI-paneel rechts wat er gegenereerd moet worden.', + 'Leeg document gemaakt. Beschrijf in het AI-paneel links wat er gegenereerd moet worden.', appNewFailed: 'Document maken mislukt: {error}', appSaveFailed: 'Opslaan mislukt: {error}', appAutoSavedAt: 'Automatisch opgeslagen ({time})', @@ -4232,9 +4246,10 @@ export const appStrings = defineStrings({ appOpenedFile: '{name} dibuka', appOpenFailed: 'Gagal membuka: {error}', appFontsMissing: 'Fon dokumen tiada: {names} (dipaparkan dengan fon ganti)', - appVerticalTextNotice: 'Dokumen ini mengandungi teks menegak (dipaparkan mendatar buat masa ini; penyimpanan tidak terjejas)', + appVerticalTextNotice: + 'Dokumen ini mengandungi teks menegak (dipaparkan mendatar buat masa ini; penyimpanan tidak terjejas)', appNewDocCreated: - 'Dokumen kosong telah dibuat. Terangkan kandungan yang hendak dijana di panel AI sebelah kanan.', + 'Dokumen kosong telah dibuat. Terangkan kandungan yang hendak dijana di panel AI sebelah kiri.', appNewFailed: 'Gagal membuat dokumen: {error}', appSaveFailed: 'Gagal menyimpan: {error}', appAutoSavedAt: 'Disimpan secara automatik ({time})', @@ -4508,7 +4523,7 @@ export const appStrings = defineStrings({ appOpenFailed: 'הפתיחה נכשלה: {error}', appFontsMissing: 'גופני המסמך חסרים: {names} (מוצגים גופנים חלופיים)', appVerticalTextNotice: 'המסמך מכיל טקסט אנכי (מוצג אופקית בינתיים; השמירה אינה מושפעת)', - appNewDocCreated: 'נוצר מסמך ריק. תארו בחלונית ה-AI מימין מה ליצור.', + appNewDocCreated: 'נוצר מסמך ריק. תארו בחלונית ה-AI משמאל מה ליצור.', appNewFailed: 'יצירת המסמך נכשלה: {error}', appSaveFailed: 'השמירה נכשלה: {error}', appAutoSavedAt: 'נשמר אוטומטית ({time})', @@ -4776,8 +4791,9 @@ export const appStrings = defineStrings({ appOpenedFile: '{name} खोला गया', appOpenFailed: 'खोलने में विफल: {error}', appFontsMissing: 'दस्तावेज़ के फ़ॉन्ट इंस्टॉल नहीं हैं: {names} (विकल्प फ़ॉन्ट दिखाए गए)', - appVerticalTextNotice: 'इस दस्तावेज़ में लंबवत पाठ है (फ़िलहाल क्षैतिज रूप में दिखाया गया है; सहेजने पर असर नहीं)', - appNewDocCreated: 'खाली दस्तावेज़ बनाया गया। दाईं ओर AI पैनल में बताएँ कि क्या जनरेट करना है।', + appVerticalTextNotice: + 'इस दस्तावेज़ में लंबवत पाठ है (फ़िलहाल क्षैतिज रूप में दिखाया गया है; सहेजने पर असर नहीं)', + appNewDocCreated: 'खाली दस्तावेज़ बनाया गया। बाईं ओर AI पैनल में बताएँ कि क्या जनरेट करना है।', appNewFailed: 'दस्तावेज़ बनाने में विफल: {error}', appSaveFailed: 'सहेजने में विफल: {error}', appAutoSavedAt: 'स्वतः सहेजा गया ({time})', @@ -5050,7 +5066,7 @@ export const appStrings = defineStrings({ appOpenFailed: '開啟失敗: {error}', appFontsMissing: '文件字型未安裝:{names}(已以替代字型顯示)', appVerticalTextNotice: '文件包含直排文字(暫以橫排顯示,儲存不受影響)', - appNewDocCreated: '已建立空白文件,可在右側 AI 面板直接描述要產生的內容', + appNewDocCreated: '已建立空白文件,可在左側 AI 面板直接描述要產生的內容', appNewFailed: '建立失敗: {error}', appSaveFailed: '儲存失敗: {error}', appAutoSavedAt: '已自動儲存 ({time})', diff --git a/apps/docs/src/renderer/i18n/strings-ribbon.ts b/apps/docs/src/renderer/i18n/strings-ribbon.ts index e032c40..2476a4c 100644 --- a/apps/docs/src/renderer/i18n/strings-ribbon.ts +++ b/apps/docs/src/renderer/i18n/strings-ribbon.ts @@ -126,6 +126,7 @@ export const ribbonStrings = defineStrings({ ribbonStyleIntenseEmphasis: '明显强调', ribbonStylePreview: 'Aa文', ribbonStylePaneTip: '样式窗格:查看全部样式,从选区新建/更新样式', + ribbonMoreStyles: '更多样式', ribbonGroupStyles: '样式', // Home · AI ribbonAiAssistant: 'Genspark', @@ -284,6 +285,110 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar5: '五角星', ribbonShapeRightArrow: '右箭头', ribbonShapeLeftRightArrow: '左右箭头', + ribbonShapeGroupRects: '矩形', + ribbonShapeGroupLines: '线条', + ribbonShapeLine: '直线', + ribbonShapeLineArrow: '箭头', + ribbonShapeLineArrowDouble: '双箭头', + ribbonShapeLineBent: '肘形连接符', + ribbonShapeLineCurved: '曲线连接符', + ribbonShapeGroupBasic: '基本形状', + ribbonShapeGroupArrows: '箭头', + ribbonShapeGroupStars: '星形', + ribbonShapeGroupFlowchart: '流程图', + ribbonShapeGroupCallouts: '标注', + ribbonShapeSnip1Rect: '剪去单角的矩形', + ribbonShapeSnip2SameRect: '剪去同侧角的矩形', + ribbonShapeSnip2DiagRect: '剪去对角的矩形', + ribbonShapeSnipRoundRect: '剪去一个圆角的矩形', + ribbonShapeRound1Rect: '圆化单角的矩形', + ribbonShapeRound2SameRect: '圆化同侧角的矩形', + ribbonShapeRound2DiagRect: '圆化对角的矩形', + ribbonShapeTrapezoid: '梯形', + ribbonShapeOctagon: '八边形', + ribbonShapePlus: '十字形', + ribbonShapeMathPlus: '加号', + ribbonShapePie: '饼形', + ribbonShapeChord: '弦形', + ribbonShapeTeardrop: '泪滴形', + ribbonShapeFrame: '框架', + ribbonShapeHalfFrame: '半闭框', + ribbonShapeCorner: 'L 形', + ribbonShapeDiagStripe: '斜纹', + ribbonShapeDonut: '圆环', + ribbonShapeNoSmoking: '禁止符', + ribbonShapeBlockArc: '空心弧', + ribbonShapeFoldedCorner: '折角形', + ribbonShapeBevel: '棱台', + ribbonShapeCube: '立方体', + ribbonShapeCan: '圆柱形', + ribbonShapeLightningBolt: '闪电形', + ribbonShapeHeart: '心形', + ribbonShapeSun: '太阳形', + ribbonShapeMoon: '新月形', + ribbonShapeCloud: '云形', + ribbonShapeArc: '弧形', + ribbonShapePlaque: '铭牌', + ribbonShapeSmileyFace: '笑脸', + ribbonShapeLeftBracket: '左中括号', + ribbonShapeRightBracket: '右中括号', + ribbonShapeLeftBrace: '左大括号', + ribbonShapeRightBrace: '右大括号', + ribbonShapeLeftArrow: '左箭头', + ribbonShapeUpArrow: '上箭头', + ribbonShapeDownArrow: '下箭头', + ribbonShapeUpDownArrow: '上下箭头', + ribbonShapeQuadArrow: '十字箭头', + ribbonShapeBentArrow: '圆角右箭头', + ribbonShapeUturnArrow: '手杖形箭头', + ribbonShapeCurvedRightArrow: '弧形右箭头', + ribbonShapeStripedRightArrow: '虚尾箭头', + ribbonShapeNotchedRightArrow: '缺口右箭头', + ribbonShapeChevron: 'V 形', + ribbonShapeHomePlate: '燕尾形', + ribbonShapeStar4: '四角星', + ribbonShapeStar6: '六角星', + ribbonShapeStar7: '七角星', + ribbonShapeStar8: '八角星', + ribbonShapeStar10: '十角星', + ribbonShapeStar12: '十二角星', + ribbonShapeStar16: '十六角星', + ribbonShapeStar24: '二十四角星', + ribbonShapeStar32: '三十二角星', + ribbonShapeIrregularSeal1: '爆炸形 1', + ribbonShapeIrregularSeal2: '爆炸形 2', + ribbonShapeRibbon: '前凸带形', + ribbonShapeRibbon2: '上凸带形', + ribbonShapeWave: '波形', + ribbonShapeDoubleWave: '双波形', + ribbonShapeFlowProcess: '流程图: 过程', + ribbonShapeFlowAlternateProcess: '流程图: 可选过程', + ribbonShapeFlowDecision: '决策', + ribbonShapeFlowPredefinedProcess: '流程图: 预定义过程', + ribbonShapeFlowInternalStorage: '流程图: 内部贮存', + ribbonShapeFlowDocument: '流程图: 文档', + ribbonShapeFlowMultidocument: '流程图: 多文档', + ribbonShapeFlowTerminator: '终止', + ribbonShapeFlowPreparation: '流程图: 准备', + ribbonShapeFlowManualInput: '流程图: 手动输入', + ribbonShapeFlowManualOperation: '流程图: 手动操作', + ribbonShapeFlowConnector: '流程图: 接点', + ribbonShapeFlowOffpageConnector: '流程图: 离页连接符', + ribbonShapeFlowMagneticDisk: '流程图: 磁盘', + ribbonShapeFlowMagneticDrum: '流程图: 直接访问存储器', + ribbonShapeFlowDisplay: '流程图: 显示', + ribbonShapeFlowDelay: '流程图: 延期', + ribbonShapeFlowOr: '流程图: 或者', + ribbonShapeFlowCollate: '流程图: 对照', + ribbonShapeFlowSort: '流程图: 排序', + ribbonShapeFlowExtract: '流程图: 摘录', + ribbonShapeFlowMerge: '流程图: 合并', + ribbonShapeFlowSummingJunction: '流程图: 汇总连接', + ribbonShapeFlowPunchedTape: '流程图: 资料带', + ribbonShapeWedgeRectCallout: '矩形标注', + ribbonShapeWedgeRoundRectCallout: '圆角矩形标注', + ribbonShapeWedgeEllipseCallout: '椭圆形标注', + ribbonShapeCloudCallout: '云形标注', // Design ribbonThemes: '主题', ribbonThemesTip: '更改文档主题(字体 + 颜色),保存后在 Word 中生效', @@ -663,6 +768,7 @@ export const ribbonStrings = defineStrings({ ribbonStylePreview: 'AaBb', ribbonStylePaneTip: 'Styles pane: browse all styles, create or update styles from the selection', + ribbonMoreStyles: 'More styles', ribbonGroupStyles: 'Styles', ribbonAiAssistant: 'Genspark', ribbonAiAssistantTip: 'Open the AI assistant', @@ -815,6 +921,110 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar5: '5-Point Star', ribbonShapeRightArrow: 'Right Arrow', ribbonShapeLeftRightArrow: 'Left-Right Arrow', + ribbonShapeGroupRects: 'Rectangles', + ribbonShapeGroupLines: 'Lines', + ribbonShapeLine: 'Line', + ribbonShapeLineArrow: 'Line Arrow', + ribbonShapeLineArrowDouble: 'Line Arrow: Double', + ribbonShapeLineBent: 'Elbow Connector', + ribbonShapeLineCurved: 'Curved Connector', + ribbonShapeGroupBasic: 'Basic Shapes', + ribbonShapeGroupArrows: 'Arrows', + ribbonShapeGroupStars: 'Stars', + ribbonShapeGroupFlowchart: 'Flowchart', + ribbonShapeGroupCallouts: 'Callouts', + ribbonShapeSnip1Rect: 'Snip Single Corner Rectangle', + ribbonShapeSnip2SameRect: 'Snip Same Side Corner Rectangle', + ribbonShapeSnip2DiagRect: 'Snip Diagonal Corner Rectangle', + ribbonShapeSnipRoundRect: 'Snip and Round Single Corner Rectangle', + ribbonShapeRound1Rect: 'Round Single Corner Rectangle', + ribbonShapeRound2SameRect: 'Round Same Side Corner Rectangle', + ribbonShapeRound2DiagRect: 'Round Diagonal Corner Rectangle', + ribbonShapeTrapezoid: 'Trapezoid', + ribbonShapeOctagon: 'Octagon', + ribbonShapePlus: 'Cross', + ribbonShapeMathPlus: 'Plus Sign', + ribbonShapePie: 'Pie', + ribbonShapeChord: 'Chord', + ribbonShapeTeardrop: 'Teardrop', + ribbonShapeFrame: 'Frame', + ribbonShapeHalfFrame: 'Half Frame', + ribbonShapeCorner: 'L-Shape', + ribbonShapeDiagStripe: 'Diagonal Stripe', + ribbonShapeDonut: 'Donut', + ribbonShapeNoSmoking: '"No" Symbol', + ribbonShapeBlockArc: 'Block Arc', + ribbonShapeFoldedCorner: 'Folded Corner', + ribbonShapeBevel: 'Bevel', + ribbonShapeCube: 'Cube', + ribbonShapeCan: 'Can', + ribbonShapeLightningBolt: 'Lightning Bolt', + ribbonShapeHeart: 'Heart', + ribbonShapeSun: 'Sun', + ribbonShapeMoon: 'Moon', + ribbonShapeCloud: 'Cloud', + ribbonShapeArc: 'Arc', + ribbonShapePlaque: 'Plaque', + ribbonShapeSmileyFace: 'Smiley Face', + ribbonShapeLeftBracket: 'Left Bracket', + ribbonShapeRightBracket: 'Right Bracket', + ribbonShapeLeftBrace: 'Left Brace', + ribbonShapeRightBrace: 'Right Brace', + ribbonShapeLeftArrow: 'Left Arrow', + ribbonShapeUpArrow: 'Up Arrow', + ribbonShapeDownArrow: 'Down Arrow', + ribbonShapeUpDownArrow: 'Up-Down Arrow', + ribbonShapeQuadArrow: 'Quad Arrow', + ribbonShapeBentArrow: 'Bent Arrow', + ribbonShapeUturnArrow: 'U-Turn Arrow', + ribbonShapeCurvedRightArrow: 'Curved Right Arrow', + ribbonShapeStripedRightArrow: 'Striped Right Arrow', + ribbonShapeNotchedRightArrow: 'Notched Right Arrow', + ribbonShapeChevron: 'Chevron', + ribbonShapeHomePlate: 'Pentagon Arrow', + ribbonShapeStar4: 'Star: 4 Points', + ribbonShapeStar6: 'Star: 6 Points', + ribbonShapeStar7: 'Star: 7 Points', + ribbonShapeStar8: 'Star: 8 Points', + ribbonShapeStar10: 'Star: 10 Points', + ribbonShapeStar12: 'Star: 12 Points', + ribbonShapeStar16: 'Star: 16 Points', + ribbonShapeStar24: 'Star: 24 Points', + ribbonShapeStar32: 'Star: 32 Points', + ribbonShapeIrregularSeal1: 'Explosion 1', + ribbonShapeIrregularSeal2: 'Explosion 2', + ribbonShapeRibbon: 'Down Ribbon', + ribbonShapeRibbon2: 'Up Ribbon', + ribbonShapeWave: 'Wave', + ribbonShapeDoubleWave: 'Double Wave', + ribbonShapeFlowProcess: 'Flowchart: Process', + ribbonShapeFlowAlternateProcess: 'Flowchart: Alternate Process', + ribbonShapeFlowDecision: 'Flowchart: Decision', + ribbonShapeFlowPredefinedProcess: 'Flowchart: Predefined Process', + ribbonShapeFlowInternalStorage: 'Flowchart: Internal Storage', + ribbonShapeFlowDocument: 'Flowchart: Document', + ribbonShapeFlowMultidocument: 'Flowchart: Multidocument', + ribbonShapeFlowTerminator: 'Flowchart: Terminator', + ribbonShapeFlowPreparation: 'Flowchart: Preparation', + ribbonShapeFlowManualInput: 'Flowchart: Manual Input', + ribbonShapeFlowManualOperation: 'Flowchart: Manual Operation', + ribbonShapeFlowConnector: 'Flowchart: Connector', + ribbonShapeFlowOffpageConnector: 'Flowchart: Off-page Connector', + ribbonShapeFlowMagneticDisk: 'Flowchart: Magnetic Disk', + ribbonShapeFlowMagneticDrum: 'Flowchart: Direct Access Storage', + ribbonShapeFlowDisplay: 'Flowchart: Display', + ribbonShapeFlowDelay: 'Flowchart: Delay', + ribbonShapeFlowOr: 'Flowchart: Or', + ribbonShapeFlowCollate: 'Flowchart: Collate', + ribbonShapeFlowSort: 'Flowchart: Sort', + ribbonShapeFlowExtract: 'Flowchart: Extract', + ribbonShapeFlowMerge: 'Flowchart: Merge', + ribbonShapeFlowSummingJunction: 'Flowchart: Summing Junction', + ribbonShapeFlowPunchedTape: 'Flowchart: Punched Tape', + ribbonShapeWedgeRectCallout: 'Rectangular Callout', + ribbonShapeWedgeRoundRectCallout: 'Rounded Rectangular Callout', + ribbonShapeWedgeEllipseCallout: 'Oval Callout', + ribbonShapeCloudCallout: 'Cloud Callout', ribbonThemes: 'Themes', ribbonThemesTip: 'Change the document theme (fonts + colors); applies in Word after saving', ribbonFonts: 'Fonts', @@ -1201,6 +1411,7 @@ export const ribbonStrings = defineStrings({ ribbonStylePreview: 'Aaあ', ribbonStylePaneTip: 'スタイル ウィンドウ:すべてのスタイルを表示し、選択範囲からスタイルを新規作成/更新', + ribbonMoreStyles: 'その他のスタイル', ribbonGroupStyles: 'スタイル', // Home · AI ribbonAiAssistant: 'Genspark', @@ -1361,6 +1572,110 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar5: '星 5', ribbonShapeRightArrow: '右矢印', ribbonShapeLeftRightArrow: '左右矢印', + ribbonShapeGroupRects: '四角形', + ribbonShapeGroupLines: '線', + ribbonShapeLine: '直線', + ribbonShapeLineArrow: '矢印', + ribbonShapeLineArrowDouble: '双方向矢印', + ribbonShapeLineBent: 'カギ線コネクタ', + ribbonShapeLineCurved: '曲線コネクタ', + ribbonShapeGroupBasic: '基本図形', + ribbonShapeGroupArrows: 'ブロック矢印', + ribbonShapeGroupStars: '星', + ribbonShapeGroupFlowchart: 'フローチャート', + ribbonShapeGroupCallouts: '吹き出し', + ribbonShapeSnip1Rect: '四角形: 1 つの角を切り取る', + ribbonShapeSnip2SameRect: '四角形: 上の 2 つの角を切り取る', + ribbonShapeSnip2DiagRect: '四角形: 対角を切り取る', + ribbonShapeSnipRoundRect: '四角形: 1 つの角を切り取り 1 つの角を丸める', + ribbonShapeRound1Rect: '四角形: 1 つの角を丸める', + ribbonShapeRound2SameRect: '四角形: 上の 2 つの角を丸める', + ribbonShapeRound2DiagRect: '四角形: 対角を丸める', + ribbonShapeTrapezoid: '台形', + ribbonShapeOctagon: '八角形', + ribbonShapePlus: '十字形', + ribbonShapeMathPlus: '加算記号', + ribbonShapePie: '部分円', + ribbonShapeChord: '弦', + ribbonShapeTeardrop: '涙形', + ribbonShapeFrame: 'フレーム', + ribbonShapeHalfFrame: '半フレーム', + ribbonShapeCorner: 'L字', + ribbonShapeDiagStripe: '斜め縞', + ribbonShapeDonut: 'ドーナツ', + ribbonShapeNoSmoking: '禁止マーク', + ribbonShapeBlockArc: 'アーチ', + ribbonShapeFoldedCorner: 'メモ', + ribbonShapeBevel: '額縁', + ribbonShapeCube: '直方体', + ribbonShapeCan: '円柱', + ribbonShapeLightningBolt: '稲妻', + ribbonShapeHeart: 'ハート', + ribbonShapeSun: '太陽', + ribbonShapeMoon: '月', + ribbonShapeCloud: '雲', + ribbonShapeArc: '円弧', + ribbonShapePlaque: 'ブローチ', + ribbonShapeSmileyFace: 'スマイル', + ribbonShapeLeftBracket: '左大かっこ', + ribbonShapeRightBracket: '右大かっこ', + ribbonShapeLeftBrace: '左中かっこ', + ribbonShapeRightBrace: '右中かっこ', + ribbonShapeLeftArrow: '矢印: 左', + ribbonShapeUpArrow: '矢印: 上', + ribbonShapeDownArrow: '矢印: 下', + ribbonShapeUpDownArrow: '矢印: 上下', + ribbonShapeQuadArrow: '十字矢印', + ribbonShapeBentArrow: '屈折矢印', + ribbonShapeUturnArrow: 'Uターン矢印', + ribbonShapeCurvedRightArrow: '右カーブ矢印', + ribbonShapeStripedRightArrow: 'ストライプ矢印', + ribbonShapeNotchedRightArrow: '矢印: V字型', + ribbonShapeChevron: '矢印: 山形', + ribbonShapeHomePlate: '矢印: 五方向', + ribbonShapeStar4: '星: 4 pt', + ribbonShapeStar6: '星: 6 pt', + ribbonShapeStar7: '星: 7 pt', + ribbonShapeStar8: '星: 8 pt', + ribbonShapeStar10: '星: 10 pt', + ribbonShapeStar12: '星: 12 pt', + ribbonShapeStar16: '星: 16 pt', + ribbonShapeStar24: '星: 24 pt', + ribbonShapeStar32: '星: 32 pt', + ribbonShapeIrregularSeal1: '爆発: 8 pt', + ribbonShapeIrregularSeal2: '爆発: 14 pt', + ribbonShapeRibbon: 'リボン: 下に曲がる', + ribbonShapeRibbon2: 'リボン: 上に曲がる', + ribbonShapeWave: '小波', + ribbonShapeDoubleWave: '大波', + ribbonShapeFlowProcess: 'フローチャート: 処理', + ribbonShapeFlowAlternateProcess: 'フローチャート: 代替処理', + ribbonShapeFlowDecision: 'フローチャート: 判断', + ribbonShapeFlowPredefinedProcess: 'フローチャート: 定義済み処理', + ribbonShapeFlowInternalStorage: 'フローチャート: 内部記憶', + ribbonShapeFlowDocument: 'フローチャート: 書類', + ribbonShapeFlowMultidocument: 'フローチャート: 複数書類', + ribbonShapeFlowTerminator: 'フローチャート: 端子', + ribbonShapeFlowPreparation: 'フローチャート: 準備', + ribbonShapeFlowManualInput: 'フローチャート: 手操作入力', + ribbonShapeFlowManualOperation: 'フローチャート: 手作業', + ribbonShapeFlowConnector: 'フローチャート: 結合子', + ribbonShapeFlowOffpageConnector: 'フローチャート: 他ページ結合子', + ribbonShapeFlowMagneticDisk: 'フローチャート: 磁気ディスク', + ribbonShapeFlowMagneticDrum: 'フローチャート: 直接アクセス記憶', + ribbonShapeFlowDisplay: 'フローチャート: 表示', + ribbonShapeFlowDelay: 'フローチャート: 遅延', + ribbonShapeFlowOr: 'フローチャート: 論理和', + ribbonShapeFlowCollate: 'フローチャート: 照合', + ribbonShapeFlowSort: 'フローチャート: 分類', + ribbonShapeFlowExtract: 'フローチャート: 抽出', + ribbonShapeFlowMerge: 'フローチャート: 統合', + ribbonShapeFlowSummingJunction: 'フローチャート: 和接合', + ribbonShapeFlowPunchedTape: 'フローチャート: せん孔テープ', + ribbonShapeWedgeRectCallout: '四角形吹き出し', + ribbonShapeWedgeRoundRectCallout: '角丸四角形吹き出し', + ribbonShapeWedgeEllipseCallout: '円形吹き出し', + ribbonShapeCloudCallout: '雲形吹き出し', // Design ribbonThemes: 'テーマ', ribbonThemesTip: 'ドキュメントのテーマ(フォント + 色)を変更。保存後に Word で反映', @@ -1754,6 +2069,7 @@ export const ribbonStrings = defineStrings({ ribbonStylePreview: 'Aa가', ribbonStylePaneTip: '스타일 창: 모든 스타일을 보고 선택 영역에서 스타일을 새로 만들거나 업데이트', + ribbonMoreStyles: '스타일 더 보기', ribbonGroupStyles: '스타일', // Home · AI ribbonAiAssistant: 'Genspark', @@ -1913,6 +2229,110 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar5: '별: 꼭짓점 5개', ribbonShapeRightArrow: '오른쪽 화살표', ribbonShapeLeftRightArrow: '왼쪽/오른쪽 화살표', + ribbonShapeGroupRects: '사각형', + ribbonShapeGroupLines: '선', + ribbonShapeLine: '직선', + ribbonShapeLineArrow: '화살표', + ribbonShapeLineArrowDouble: '양방향 화살표', + ribbonShapeLineBent: '꺾인 연결선', + ribbonShapeLineCurved: '곡선 연결선', + ribbonShapeGroupBasic: '기본 도형', + ribbonShapeGroupArrows: '블록 화살표', + ribbonShapeGroupStars: '별', + ribbonShapeGroupFlowchart: '순서도', + ribbonShapeGroupCallouts: '설명선', + ribbonShapeSnip1Rect: '사각형: 잘린 한쪽 모서리', + ribbonShapeSnip2SameRect: '사각형: 잘린 같은 쪽 모서리', + ribbonShapeSnip2DiagRect: '사각형: 잘린 대각선 방향 모서리', + ribbonShapeSnipRoundRect: '사각형: 잘리고 둥근 한쪽 모서리', + ribbonShapeRound1Rect: '사각형: 둥근 한쪽 모서리', + ribbonShapeRound2SameRect: '사각형: 둥근 같은 쪽 모서리', + ribbonShapeRound2DiagRect: '사각형: 둥근 대각선 방향 모서리', + ribbonShapeTrapezoid: '사다리꼴', + ribbonShapeOctagon: '팔각형', + ribbonShapePlus: '십자형', + ribbonShapeMathPlus: '더하기 기호', + ribbonShapePie: '원형', + ribbonShapeChord: '현', + ribbonShapeTeardrop: '눈물 방울', + ribbonShapeFrame: '액자', + ribbonShapeHalfFrame: '반액자', + ribbonShapeCorner: 'L 도형', + ribbonShapeDiagStripe: '대각선 줄무늬', + ribbonShapeDonut: '도넛', + ribbonShapeNoSmoking: '금지 기호', + ribbonShapeBlockArc: '막힌 원호', + ribbonShapeFoldedCorner: '모서리가 접힌 도형', + ribbonShapeBevel: '빗면', + ribbonShapeCube: '정육면체', + ribbonShapeCan: '원통', + ribbonShapeLightningBolt: '번개', + ribbonShapeHeart: '하트', + ribbonShapeSun: '해', + ribbonShapeMoon: '달', + ribbonShapeCloud: '구름', + ribbonShapeArc: '호', + ribbonShapePlaque: '명판', + ribbonShapeSmileyFace: '웃는 얼굴', + ribbonShapeLeftBracket: '왼쪽 대괄호', + ribbonShapeRightBracket: '오른쪽 대괄호', + ribbonShapeLeftBrace: '왼쪽 중괄호', + ribbonShapeRightBrace: '오른쪽 중괄호', + ribbonShapeLeftArrow: '화살표: 왼쪽', + ribbonShapeUpArrow: '화살표: 위쪽', + ribbonShapeDownArrow: '화살표: 아래쪽', + ribbonShapeUpDownArrow: '화살표: 위/아래', + ribbonShapeQuadArrow: '십자형 화살표', + ribbonShapeBentArrow: '굽은 화살표', + ribbonShapeUturnArrow: 'U자형 화살표', + ribbonShapeCurvedRightArrow: '오른쪽으로 구부러진 화살표', + ribbonShapeStripedRightArrow: '줄무늬가 있는 오른쪽 화살표', + ribbonShapeNotchedRightArrow: '화살표: 톱니 모양 오른쪽', + ribbonShapeChevron: '화살표: 갈매기형 수장', + ribbonShapeHomePlate: '화살표: 오각형', + ribbonShapeStar4: '별: 꼭짓점 4개', + ribbonShapeStar6: '별: 꼭짓점 6개', + ribbonShapeStar7: '별: 꼭짓점 7개', + ribbonShapeStar8: '별: 꼭짓점 8개', + ribbonShapeStar10: '별: 꼭짓점 10개', + ribbonShapeStar12: '별: 꼭짓점 12개', + ribbonShapeStar16: '별: 꼭짓점 16개', + ribbonShapeStar24: '별: 꼭짓점 24개', + ribbonShapeStar32: '별: 꼭짓점 32개', + ribbonShapeIrregularSeal1: '폭발: 8pt', + ribbonShapeIrregularSeal2: '폭발: 14pt', + ribbonShapeRibbon: '아래쪽 리본', + ribbonShapeRibbon2: '위쪽 리본', + ribbonShapeWave: '물결', + ribbonShapeDoubleWave: '이중 물결', + ribbonShapeFlowProcess: '순서도: 처리', + ribbonShapeFlowAlternateProcess: '순서도: 대체 처리', + ribbonShapeFlowDecision: '순서도: 판단', + ribbonShapeFlowPredefinedProcess: '순서도: 미리 정의된 처리', + ribbonShapeFlowInternalStorage: '순서도: 내부 저장소', + ribbonShapeFlowDocument: '순서도: 문서', + ribbonShapeFlowMultidocument: '순서도: 다중 문서', + ribbonShapeFlowTerminator: '순서도: 종결자', + ribbonShapeFlowPreparation: '순서도: 준비', + ribbonShapeFlowManualInput: '순서도: 수동 입력', + ribbonShapeFlowManualOperation: '순서도: 수동 작업', + ribbonShapeFlowConnector: '순서도: 연결자', + ribbonShapeFlowOffpageConnector: '순서도: 페이지 연결자', + ribbonShapeFlowMagneticDisk: '순서도: 자기 디스크', + ribbonShapeFlowMagneticDrum: '순서도: 직접 액세스 저장소', + ribbonShapeFlowDisplay: '순서도: 화면 표시', + ribbonShapeFlowDelay: '순서도: 지연', + ribbonShapeFlowOr: '순서도: 논리합', + ribbonShapeFlowCollate: '순서도: 대조', + ribbonShapeFlowSort: '순서도: 정렬', + ribbonShapeFlowExtract: '순서도: 추출', + ribbonShapeFlowMerge: '순서도: 병합', + ribbonShapeFlowSummingJunction: '순서도: 합 접합', + ribbonShapeFlowPunchedTape: '순서도: 천공 테이프', + ribbonShapeWedgeRectCallout: '사각형 설명선', + ribbonShapeWedgeRoundRectCallout: '모서리가 둥근 사각형 설명선', + ribbonShapeWedgeEllipseCallout: '타원형 설명선', + ribbonShapeCloudCallout: '구름 모양 설명선', // Design ribbonThemes: '테마', ribbonThemesTip: '문서 테마(글꼴 + 색) 변경. 저장 후 Word에서 적용됨', @@ -2300,6 +2720,7 @@ export const ribbonStrings = defineStrings({ ribbonStylePreview: 'AaBb', ribbonStylePaneTip: 'Volet Styles : parcourir tous les styles, créer ou mettre à jour un style à partir de la sélection', + ribbonMoreStyles: 'Autres styles', ribbonGroupStyles: 'Styles', ribbonAiAssistant: 'Genspark', ribbonAiAssistantTip: "Ouvrir l'assistant IA", @@ -2454,6 +2875,110 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar5: 'Étoile à 5 branches', ribbonShapeRightArrow: 'Flèche droite', ribbonShapeLeftRightArrow: 'Flèche bilatérale', + ribbonShapeGroupRects: 'Rectangles', + ribbonShapeGroupLines: 'Lignes', + ribbonShapeLine: 'Ligne', + ribbonShapeLineArrow: 'Flèche', + ribbonShapeLineArrowDouble: 'Flèche double', + ribbonShapeLineBent: 'Connecteur en angle', + ribbonShapeLineCurved: 'Connecteur courbe', + ribbonShapeGroupBasic: 'Formes de base', + ribbonShapeGroupArrows: 'Flèches pleines', + ribbonShapeGroupStars: 'Étoiles', + ribbonShapeGroupFlowchart: 'Organigrammes', + ribbonShapeGroupCallouts: 'Bulles', + ribbonShapeSnip1Rect: 'Rectangle : un seul coin coupé', + ribbonShapeSnip2SameRect: 'Rectangle : coins du même côté coupés', + ribbonShapeSnip2DiagRect: 'Rectangle : coins en diagonale coupés', + ribbonShapeSnipRoundRect: 'Rectangle : un coin coupé, un coin arrondi', + ribbonShapeRound1Rect: 'Rectangle : un seul coin arrondi', + ribbonShapeRound2SameRect: 'Rectangle : coins du même côté arrondis', + ribbonShapeRound2DiagRect: 'Rectangle : coins en diagonale arrondis', + ribbonShapeTrapezoid: 'Trapèze', + ribbonShapeOctagon: 'Octogone', + ribbonShapePlus: 'Croix', + ribbonShapeMathPlus: 'Signe plus', + ribbonShapePie: 'Secteur', + ribbonShapeChord: 'Corde', + ribbonShapeTeardrop: 'Larme', + ribbonShapeFrame: 'Cadre', + ribbonShapeHalfFrame: 'Demi-cadre', + ribbonShapeCorner: 'Forme en L', + ribbonShapeDiagStripe: 'Bande diagonale', + ribbonShapeDonut: 'Anneau', + ribbonShapeNoSmoking: 'Symbole « Interdit »', + ribbonShapeBlockArc: 'Arc plein', + ribbonShapeFoldedCorner: 'Coin plié', + ribbonShapeBevel: 'Biseau', + ribbonShapeCube: 'Cube', + ribbonShapeCan: 'Cylindre', + ribbonShapeLightningBolt: 'Éclair', + ribbonShapeHeart: 'Cœur', + ribbonShapeSun: 'Soleil', + ribbonShapeMoon: 'Lune', + ribbonShapeCloud: 'Nuage', + ribbonShapeArc: 'Arc', + ribbonShapePlaque: 'Plaque', + ribbonShapeSmileyFace: 'Visage souriant', + ribbonShapeLeftBracket: 'Crochet gauche', + ribbonShapeRightBracket: 'Crochet droit', + ribbonShapeLeftBrace: 'Accolade gauche', + ribbonShapeRightBrace: 'Accolade droite', + ribbonShapeLeftArrow: 'Flèche : gauche', + ribbonShapeUpArrow: 'Flèche : haut', + ribbonShapeDownArrow: 'Flèche : bas', + ribbonShapeUpDownArrow: 'Flèche : haut-bas', + ribbonShapeQuadArrow: 'Flèche : quadruple', + ribbonShapeBentArrow: 'Flèche : pliée', + ribbonShapeUturnArrow: 'Flèche : demi-tour', + ribbonShapeCurvedRightArrow: 'Flèche : courbée vers la droite', + ribbonShapeStripedRightArrow: 'Flèche : rayée vers la droite', + ribbonShapeNotchedRightArrow: 'Flèche : droite avec encoche', + ribbonShapeChevron: 'Chevron', + ribbonShapeHomePlate: 'Flèche : pentagone', + ribbonShapeStar4: 'Étoile : 4 branches', + ribbonShapeStar6: 'Étoile : 6 branches', + ribbonShapeStar7: 'Étoile : 7 branches', + ribbonShapeStar8: 'Étoile : 8 branches', + ribbonShapeStar10: 'Étoile : 10 branches', + ribbonShapeStar12: 'Étoile : 12 branches', + ribbonShapeStar16: 'Étoile : 16 branches', + ribbonShapeStar24: 'Étoile : 24 branches', + ribbonShapeStar32: 'Étoile : 32 branches', + ribbonShapeIrregularSeal1: 'Explosion 1', + ribbonShapeIrregularSeal2: 'Explosion 2', + ribbonShapeRibbon: 'Ruban : incliné vers le bas', + ribbonShapeRibbon2: 'Ruban : incliné vers le haut', + ribbonShapeWave: 'Vague', + ribbonShapeDoubleWave: 'Double vague', + ribbonShapeFlowProcess: 'Organigramme : processus', + ribbonShapeFlowAlternateProcess: 'Organigramme : autre processus', + ribbonShapeFlowDecision: 'Organigramme : décision', + ribbonShapeFlowPredefinedProcess: 'Organigramme : processus prédéfini', + ribbonShapeFlowInternalStorage: 'Organigramme : stockage interne', + ribbonShapeFlowDocument: 'Organigramme : document', + ribbonShapeFlowMultidocument: 'Organigramme : multidocument', + ribbonShapeFlowTerminator: 'Organigramme : terminaison', + ribbonShapeFlowPreparation: 'Organigramme : préparation', + ribbonShapeFlowManualInput: 'Organigramme : entrée manuelle', + ribbonShapeFlowManualOperation: 'Organigramme : opération manuelle', + ribbonShapeFlowConnector: 'Organigramme : connecteur', + ribbonShapeFlowOffpageConnector: 'Organigramme : renvoi à une autre page', + ribbonShapeFlowMagneticDisk: 'Organigramme : disque magnétique', + ribbonShapeFlowMagneticDrum: 'Organigramme : stockage à accès direct', + ribbonShapeFlowDisplay: 'Organigramme : affichage', + ribbonShapeFlowDelay: 'Organigramme : délai', + ribbonShapeFlowOr: 'Organigramme : ou', + ribbonShapeFlowCollate: 'Organigramme : assemblage', + ribbonShapeFlowSort: 'Organigramme : tri', + ribbonShapeFlowExtract: 'Organigramme : extraction', + ribbonShapeFlowMerge: 'Organigramme : fusion', + ribbonShapeFlowSummingJunction: 'Organigramme : jonction de sommation', + ribbonShapeFlowPunchedTape: 'Organigramme : bande perforée', + ribbonShapeWedgeRectCallout: 'Bulle rectangulaire', + ribbonShapeWedgeRoundRectCallout: 'Bulle rectangulaire arrondie', + ribbonShapeWedgeEllipseCallout: 'Bulle ovale', + ribbonShapeCloudCallout: 'Bulle en forme de nuage', ribbonThemes: 'Thèmes', ribbonThemesTip: 'Modifier le thème du document (polices + couleurs) ; appliqué dans Word après enregistrement', @@ -2843,6 +3368,7 @@ export const ribbonStrings = defineStrings({ ribbonStylePreview: 'AaBb', ribbonStylePaneTip: 'Formatvorlagenbereich: alle Formatvorlagen anzeigen, aus der Auswahl neue erstellen oder aktualisieren', + ribbonMoreStyles: 'Weitere Formatvorlagen', ribbonGroupStyles: 'Formatvorlagen', ribbonAiAssistant: 'Genspark', ribbonAiAssistantTip: 'KI-Assistenten öffnen', @@ -2997,6 +3523,110 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar5: 'Stern mit 5 Zacken', ribbonShapeRightArrow: 'Pfeil nach rechts', ribbonShapeLeftRightArrow: 'Pfeil nach links und rechts', + ribbonShapeGroupRects: 'Rechtecke', + ribbonShapeGroupLines: 'Linien', + ribbonShapeLine: 'Linie', + ribbonShapeLineArrow: 'Pfeil', + ribbonShapeLineArrowDouble: 'Doppelpfeil', + ribbonShapeLineBent: 'Gewinkelte Verbindung', + ribbonShapeLineCurved: 'Gekrümmte Verbindung', + ribbonShapeGroupBasic: 'Standardformen', + ribbonShapeGroupArrows: 'Blockpfeile', + ribbonShapeGroupStars: 'Sterne', + ribbonShapeGroupFlowchart: 'Flussdiagramm', + ribbonShapeGroupCallouts: 'Legenden', + ribbonShapeSnip1Rect: 'Rechteck: einzelne Ecke abgeschnitten', + ribbonShapeSnip2SameRect: 'Rechteck: Ecken auf derselben Seite abgeschnitten', + ribbonShapeSnip2DiagRect: 'Rechteck: diagonale Ecken abgeschnitten', + ribbonShapeSnipRoundRect: 'Rechteck: einzelne Ecke abgeschnitten und abgerundet', + ribbonShapeRound1Rect: 'Rechteck: einzelne Ecke abgerundet', + ribbonShapeRound2SameRect: 'Rechteck: Ecken auf derselben Seite abgerundet', + ribbonShapeRound2DiagRect: 'Rechteck: diagonale Ecken abgerundet', + ribbonShapeTrapezoid: 'Trapez', + ribbonShapeOctagon: 'Achteck', + ribbonShapePlus: 'Kreuz', + ribbonShapeMathPlus: 'Pluszeichen', + ribbonShapePie: 'Kreissegment', + ribbonShapeChord: 'Sehne', + ribbonShapeTeardrop: 'Träne', + ribbonShapeFrame: 'Rahmen', + ribbonShapeHalfFrame: 'Halber Rahmen', + ribbonShapeCorner: 'L-Form', + ribbonShapeDiagStripe: 'Diagonaler Streifen', + ribbonShapeDonut: 'Ring', + ribbonShapeNoSmoking: 'Verbotssymbol', + ribbonShapeBlockArc: 'Blockbogen', + ribbonShapeFoldedCorner: 'Gefaltete Ecke', + ribbonShapeBevel: 'Fase', + ribbonShapeCube: 'Würfel', + ribbonShapeCan: 'Zylinder', + ribbonShapeLightningBolt: 'Blitz', + ribbonShapeHeart: 'Herz', + ribbonShapeSun: 'Sonne', + ribbonShapeMoon: 'Mond', + ribbonShapeCloud: 'Wolke', + ribbonShapeArc: 'Bogen', + ribbonShapePlaque: 'Plakette', + ribbonShapeSmileyFace: 'Smiley', + ribbonShapeLeftBracket: 'Linke eckige Klammer', + ribbonShapeRightBracket: 'Rechte eckige Klammer', + ribbonShapeLeftBrace: 'Geschweifte Klammer links', + ribbonShapeRightBrace: 'Geschweifte Klammer rechts', + ribbonShapeLeftArrow: 'Pfeil: nach links', + ribbonShapeUpArrow: 'Pfeil: nach oben', + ribbonShapeDownArrow: 'Pfeil: nach unten', + ribbonShapeUpDownArrow: 'Pfeil: nach oben und unten', + ribbonShapeQuadArrow: 'Vierfachpfeil', + ribbonShapeBentArrow: 'Gebogener Pfeil', + ribbonShapeUturnArrow: 'U-förmiger Pfeil', + ribbonShapeCurvedRightArrow: 'Nach rechts gekrümmter Pfeil', + ribbonShapeStripedRightArrow: 'Gestreifter Pfeil nach rechts', + ribbonShapeNotchedRightArrow: 'Pfeil: eingekerbt nach rechts', + ribbonShapeChevron: 'Chevron', + ribbonShapeHomePlate: 'Pfeil: Fünfeck', + ribbonShapeStar4: 'Stern: 4 Zacken', + ribbonShapeStar6: 'Stern: 6 Zacken', + ribbonShapeStar7: 'Stern: 7 Zacken', + ribbonShapeStar8: 'Stern: 8 Zacken', + ribbonShapeStar10: 'Stern: 10 Zacken', + ribbonShapeStar12: 'Stern: 12 Zacken', + ribbonShapeStar16: 'Stern: 16 Zacken', + ribbonShapeStar24: 'Stern: 24 Zacken', + ribbonShapeStar32: 'Stern: 32 Zacken', + ribbonShapeIrregularSeal1: 'Explosion 1', + ribbonShapeIrregularSeal2: 'Explosion 2', + ribbonShapeRibbon: 'Band nach unten', + ribbonShapeRibbon2: 'Band nach oben', + ribbonShapeWave: 'Welle', + ribbonShapeDoubleWave: 'Doppelwelle', + ribbonShapeFlowProcess: 'Flussdiagramm: Prozess', + ribbonShapeFlowAlternateProcess: 'Flussdiagramm: Alternativer Prozess', + ribbonShapeFlowDecision: 'Flussdiagramm: Entscheidung', + ribbonShapeFlowPredefinedProcess: 'Flussdiagramm: Vordefinierter Prozess', + ribbonShapeFlowInternalStorage: 'Flussdiagramm: Interner Speicher', + ribbonShapeFlowDocument: 'Flussdiagramm: Dokument', + ribbonShapeFlowMultidocument: 'Flussdiagramm: Mehrere Dokumente', + ribbonShapeFlowTerminator: 'Flussdiagramm: Grenzstelle', + ribbonShapeFlowPreparation: 'Flussdiagramm: Vorbereitung', + ribbonShapeFlowManualInput: 'Flussdiagramm: Manuelle Eingabe', + ribbonShapeFlowManualOperation: 'Flussdiagramm: Manueller Vorgang', + ribbonShapeFlowConnector: 'Flussdiagramm: Verbindungsstelle', + ribbonShapeFlowOffpageConnector: 'Flussdiagramm: Verbindung zu anderer Seite', + ribbonShapeFlowMagneticDisk: 'Flussdiagramm: Magnetplatte', + ribbonShapeFlowMagneticDrum: 'Flussdiagramm: Direktzugriffsspeicher', + ribbonShapeFlowDisplay: 'Flussdiagramm: Anzeige', + ribbonShapeFlowDelay: 'Flussdiagramm: Verzögerung', + ribbonShapeFlowOr: 'Flussdiagramm: Oder', + ribbonShapeFlowCollate: 'Flussdiagramm: Zusammenstellen', + ribbonShapeFlowSort: 'Flussdiagramm: Sortieren', + ribbonShapeFlowExtract: 'Flussdiagramm: Auszug', + ribbonShapeFlowMerge: 'Flussdiagramm: Zusammenführen', + ribbonShapeFlowSummingJunction: 'Flussdiagramm: Summierungspunkt', + ribbonShapeFlowPunchedTape: 'Flussdiagramm: Lochstreifen', + ribbonShapeWedgeRectCallout: 'Rechteckige Legende', + ribbonShapeWedgeRoundRectCallout: 'Abgerundete rechteckige Legende', + ribbonShapeWedgeEllipseCallout: 'Ovale Legende', + ribbonShapeCloudCallout: 'Wolkenförmige Legende', ribbonThemes: 'Designs', ribbonThemesTip: 'Dokumentdesign ändern (Schriftarten + Farben); wird nach dem Speichern in Word übernommen', @@ -3387,6 +4017,7 @@ export const ribbonStrings = defineStrings({ ribbonStylePreview: 'AaBb', ribbonStylePaneTip: 'Panel de estilos: ver todos los estilos y crear o actualizar estilos a partir de la selección', + ribbonMoreStyles: 'Más estilos', ribbonGroupStyles: 'Estilos', ribbonAiAssistant: 'Genspark', ribbonAiAssistantTip: 'Abrir el asistente de IA', @@ -3540,6 +4171,110 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar5: 'Estrella de 5 puntas', ribbonShapeRightArrow: 'Flecha derecha', ribbonShapeLeftRightArrow: 'Flecha izquierda y derecha', + ribbonShapeGroupRects: 'Rectángulos', + ribbonShapeGroupLines: 'Líneas', + ribbonShapeLine: 'Línea', + ribbonShapeLineArrow: 'Flecha', + ribbonShapeLineArrowDouble: 'Flecha doble', + ribbonShapeLineBent: 'Conector angular', + ribbonShapeLineCurved: 'Conector curvado', + ribbonShapeGroupBasic: 'Formas básicas', + ribbonShapeGroupArrows: 'Flechas de bloque', + ribbonShapeGroupStars: 'Estrellas', + ribbonShapeGroupFlowchart: 'Diagrama de flujo', + ribbonShapeGroupCallouts: 'Llamadas', + ribbonShapeSnip1Rect: 'Rectángulo: una esquina recortada', + ribbonShapeSnip2SameRect: 'Rectángulo: esquinas del mismo lado recortadas', + ribbonShapeSnip2DiagRect: 'Rectángulo: esquinas en diagonal recortadas', + ribbonShapeSnipRoundRect: 'Rectángulo: una esquina recortada y otra redondeada', + ribbonShapeRound1Rect: 'Rectángulo: una esquina redondeada', + ribbonShapeRound2SameRect: 'Rectángulo: esquinas del mismo lado redondeadas', + ribbonShapeRound2DiagRect: 'Rectángulo: esquinas en diagonal redondeadas', + ribbonShapeTrapezoid: 'Trapecio', + ribbonShapeOctagon: 'Octágono', + ribbonShapePlus: 'Cruz', + ribbonShapeMathPlus: 'Signo más', + ribbonShapePie: 'Sector circular', + ribbonShapeChord: 'Cuerda', + ribbonShapeTeardrop: 'Lágrima', + ribbonShapeFrame: 'Marco', + ribbonShapeHalfFrame: 'Medio marco', + ribbonShapeCorner: 'Forma de L', + ribbonShapeDiagStripe: 'Franja diagonal', + ribbonShapeDonut: 'Anillo', + ribbonShapeNoSmoking: 'Símbolo de prohibido', + ribbonShapeBlockArc: 'Arco de bloque', + ribbonShapeFoldedCorner: 'Esquina doblada', + ribbonShapeBevel: 'Bisel', + ribbonShapeCube: 'Cubo', + ribbonShapeCan: 'Cilindro', + ribbonShapeLightningBolt: 'Rayo', + ribbonShapeHeart: 'Corazón', + ribbonShapeSun: 'Sol', + ribbonShapeMoon: 'Luna', + ribbonShapeCloud: 'Nube', + ribbonShapeArc: 'Arco', + ribbonShapePlaque: 'Placa', + ribbonShapeSmileyFace: 'Cara sonriente', + ribbonShapeLeftBracket: 'Corchete izquierdo', + ribbonShapeRightBracket: 'Corchete derecho', + ribbonShapeLeftBrace: 'Llave izquierda', + ribbonShapeRightBrace: 'Llave derecha', + ribbonShapeLeftArrow: 'Flecha: izquierda', + ribbonShapeUpArrow: 'Flecha: arriba', + ribbonShapeDownArrow: 'Flecha: abajo', + ribbonShapeUpDownArrow: 'Flecha: arriba y abajo', + ribbonShapeQuadArrow: 'Flecha de cuatro puntas', + ribbonShapeBentArrow: 'Flecha doblada', + ribbonShapeUturnArrow: 'Flecha en U', + ribbonShapeCurvedRightArrow: 'Flecha curvada hacia la derecha', + ribbonShapeStripedRightArrow: 'Flecha a rayas hacia la derecha', + ribbonShapeNotchedRightArrow: 'Flecha: derecha con muesca', + ribbonShapeChevron: 'Cheurón', + ribbonShapeHomePlate: 'Flecha: pentágono', + ribbonShapeStar4: 'Estrella: 4 puntas', + ribbonShapeStar6: 'Estrella: 6 puntas', + ribbonShapeStar7: 'Estrella: 7 puntas', + ribbonShapeStar8: 'Estrella: 8 puntas', + ribbonShapeStar10: 'Estrella: 10 puntas', + ribbonShapeStar12: 'Estrella: 12 puntas', + ribbonShapeStar16: 'Estrella: 16 puntas', + ribbonShapeStar24: 'Estrella: 24 puntas', + ribbonShapeStar32: 'Estrella: 32 puntas', + ribbonShapeIrregularSeal1: 'Explosión 1', + ribbonShapeIrregularSeal2: 'Explosión 2', + ribbonShapeRibbon: 'Cinta hacia abajo', + ribbonShapeRibbon2: 'Cinta hacia arriba', + ribbonShapeWave: 'Onda', + ribbonShapeDoubleWave: 'Doble onda', + ribbonShapeFlowProcess: 'Diagrama de flujo: proceso', + ribbonShapeFlowAlternateProcess: 'Diagrama de flujo: proceso alternativo', + ribbonShapeFlowDecision: 'Diagrama de flujo: decisión', + ribbonShapeFlowPredefinedProcess: 'Diagrama de flujo: proceso predefinido', + ribbonShapeFlowInternalStorage: 'Diagrama de flujo: almacenamiento interno', + ribbonShapeFlowDocument: 'Diagrama de flujo: documento', + ribbonShapeFlowMultidocument: 'Diagrama de flujo: multidocumento', + ribbonShapeFlowTerminator: 'Diagrama de flujo: terminador', + ribbonShapeFlowPreparation: 'Diagrama de flujo: preparación', + ribbonShapeFlowManualInput: 'Diagrama de flujo: entrada manual', + ribbonShapeFlowManualOperation: 'Diagrama de flujo: operación manual', + ribbonShapeFlowConnector: 'Diagrama de flujo: conector', + ribbonShapeFlowOffpageConnector: 'Diagrama de flujo: conector fuera de página', + ribbonShapeFlowMagneticDisk: 'Diagrama de flujo: disco magnético', + ribbonShapeFlowMagneticDrum: 'Diagrama de flujo: almacenamiento de acceso directo', + ribbonShapeFlowDisplay: 'Diagrama de flujo: pantalla', + ribbonShapeFlowDelay: 'Diagrama de flujo: retraso', + ribbonShapeFlowOr: 'Diagrama de flujo: o', + ribbonShapeFlowCollate: 'Diagrama de flujo: intercalar', + ribbonShapeFlowSort: 'Diagrama de flujo: ordenar', + ribbonShapeFlowExtract: 'Diagrama de flujo: extraer', + ribbonShapeFlowMerge: 'Diagrama de flujo: combinar', + ribbonShapeFlowSummingJunction: 'Diagrama de flujo: unión de suma', + ribbonShapeFlowPunchedTape: 'Diagrama de flujo: cinta perforada', + ribbonShapeWedgeRectCallout: 'Llamada rectangular', + ribbonShapeWedgeRoundRectCallout: 'Llamada rectangular redondeada', + ribbonShapeWedgeEllipseCallout: 'Llamada ovalada', + ribbonShapeCloudCallout: 'Llamada de nube', ribbonThemes: 'Temas', ribbonThemesTip: 'Cambiar el tema del documento (fuentes + colores); se aplica en Word después de guardar', @@ -3929,6 +4664,7 @@ export const ribbonStrings = defineStrings({ ribbonStyleIntenseEmphasis: 'เน้นมาก', ribbonStylePreview: 'Aaก', ribbonStylePaneTip: 'บานหน้าต่างสไตล์: ดูสไตล์ทั้งหมด สร้างหรืออัปเดตสไตล์จากส่วนที่เลือก', + ribbonMoreStyles: 'สไตล์เพิ่มเติม', ribbonGroupStyles: 'สไตล์', ribbonAiAssistant: 'Genspark', ribbonAiAssistantTip: 'เปิดผู้ช่วย AI', @@ -4081,6 +4817,110 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar5: 'ดาว 5 แฉก', ribbonShapeRightArrow: 'ลูกศรชี้ขวา', ribbonShapeLeftRightArrow: 'ลูกศรซ้าย-ขวา', + ribbonShapeGroupRects: 'สี่เหลี่ยมผืนผ้า', + ribbonShapeGroupLines: 'เส้น', + ribbonShapeLine: 'เส้นตรง', + ribbonShapeLineArrow: 'ลูกศร', + ribbonShapeLineArrowDouble: 'ลูกศรสองหัว', + ribbonShapeLineBent: 'ตัวเชื่อมต่อแบบหักมุม', + ribbonShapeLineCurved: 'ตัวเชื่อมต่อแบบโค้ง', + ribbonShapeGroupBasic: 'รูปร่างพื้นฐาน', + ribbonShapeGroupArrows: 'ลูกศร', + ribbonShapeGroupStars: 'ดาว', + ribbonShapeGroupFlowchart: 'ผังงาน', + ribbonShapeGroupCallouts: 'คำบรรยายภาพ', + ribbonShapeSnip1Rect: 'สี่เหลี่ยมตัดมุมเดียว', + ribbonShapeSnip2SameRect: 'สี่เหลี่ยมตัดมุมด้านเดียวกัน', + ribbonShapeSnip2DiagRect: 'สี่เหลี่ยมตัดมุมทแยง', + ribbonShapeSnipRoundRect: 'สี่เหลี่ยมตัดมุมและมุมมนอย่างละมุม', + ribbonShapeRound1Rect: 'สี่เหลี่ยมมุมมนหนึ่งมุม', + ribbonShapeRound2SameRect: 'สี่เหลี่ยมมุมมนด้านเดียวกัน', + ribbonShapeRound2DiagRect: 'สี่เหลี่ยมมุมมนทแยง', + ribbonShapeTrapezoid: 'สี่เหลี่ยมคางหมู', + ribbonShapeOctagon: 'แปดเหลี่ยม', + ribbonShapePlus: 'กากบาท', + ribbonShapeMathPlus: 'เครื่องหมายบวก', + ribbonShapePie: 'รูปพาย', + ribbonShapeChord: 'คอร์ด', + ribbonShapeTeardrop: 'หยดน้ำ', + ribbonShapeFrame: 'กรอบ', + ribbonShapeHalfFrame: 'ครึ่งกรอบ', + ribbonShapeCorner: 'รูปตัว L', + ribbonShapeDiagStripe: 'แถบทแยง', + ribbonShapeDonut: 'โดนัท', + ribbonShapeNoSmoking: 'สัญลักษณ์ห้าม', + ribbonShapeBlockArc: 'ส่วนโค้งทึบ', + ribbonShapeFoldedCorner: 'มุมพับ', + ribbonShapeBevel: 'ขอบเอียง', + ribbonShapeCube: 'ลูกบาศก์', + ribbonShapeCan: 'ทรงกระบอก', + ribbonShapeLightningBolt: 'สายฟ้า', + ribbonShapeHeart: 'หัวใจ', + ribbonShapeSun: 'ดวงอาทิตย์', + ribbonShapeMoon: 'ดวงจันทร์', + ribbonShapeCloud: 'เมฆ', + ribbonShapeArc: 'ส่วนโค้ง', + ribbonShapePlaque: 'แผ่นป้าย', + ribbonShapeSmileyFace: 'หน้ายิ้ม', + ribbonShapeLeftBracket: 'วงเล็บเหลี่ยมซ้าย', + ribbonShapeRightBracket: 'วงเล็บเหลี่ยมขวา', + ribbonShapeLeftBrace: 'วงเล็บปีกกาซ้าย', + ribbonShapeRightBrace: 'วงเล็บปีกกาขวา', + ribbonShapeLeftArrow: 'ลูกศรชี้ซ้าย', + ribbonShapeUpArrow: 'ลูกศรชี้ขึ้น', + ribbonShapeDownArrow: 'ลูกศรชี้ลง', + ribbonShapeUpDownArrow: 'ลูกศรขึ้นลง', + ribbonShapeQuadArrow: 'ลูกศรสี่ทิศทาง', + ribbonShapeBentArrow: 'ลูกศรโค้งงอ', + ribbonShapeUturnArrow: 'ลูกศรยูเทิร์น', + ribbonShapeCurvedRightArrow: 'ลูกศรโค้งไปทางขวา', + ribbonShapeStripedRightArrow: 'ลูกศรลายทางชี้ขวา', + ribbonShapeNotchedRightArrow: 'ลูกศรชี้ขวาแบบบาก', + ribbonShapeChevron: 'บั้ง', + ribbonShapeHomePlate: 'ลูกศรห้าเหลี่ยม', + ribbonShapeStar4: 'ดาว 4 แฉก', + ribbonShapeStar6: 'ดาว 6 แฉก', + ribbonShapeStar7: 'ดาว 7 แฉก', + ribbonShapeStar8: 'ดาว 8 แฉก', + ribbonShapeStar10: 'ดาว 10 แฉก', + ribbonShapeStar12: 'ดาว 12 แฉก', + ribbonShapeStar16: 'ดาว 16 แฉก', + ribbonShapeStar24: 'ดาว 24 แฉก', + ribbonShapeStar32: 'ดาว 32 แฉก', + ribbonShapeIrregularSeal1: 'ระเบิด 1', + ribbonShapeIrregularSeal2: 'ระเบิด 2', + ribbonShapeRibbon: 'ริบบิ้นโค้งลง', + ribbonShapeRibbon2: 'ริบบิ้นโค้งขึ้น', + ribbonShapeWave: 'คลื่น', + ribbonShapeDoubleWave: 'คลื่นคู่', + ribbonShapeFlowProcess: 'ผังงาน: กระบวนการ', + ribbonShapeFlowAlternateProcess: 'ผังงาน: กระบวนการทางเลือก', + ribbonShapeFlowDecision: 'ผังงาน: การตัดสินใจ', + ribbonShapeFlowPredefinedProcess: 'ผังงาน: กระบวนการที่กำหนดไว้ล่วงหน้า', + ribbonShapeFlowInternalStorage: 'ผังงาน: ที่เก็บข้อมูลภายใน', + ribbonShapeFlowDocument: 'ผังงาน: เอกสาร', + ribbonShapeFlowMultidocument: 'ผังงาน: หลายเอกสาร', + ribbonShapeFlowTerminator: 'ผังงาน: จุดสิ้นสุด', + ribbonShapeFlowPreparation: 'ผังงาน: การเตรียมการ', + ribbonShapeFlowManualInput: 'ผังงาน: การป้อนข้อมูลด้วยตนเอง', + ribbonShapeFlowManualOperation: 'ผังงาน: การดำเนินการด้วยตนเอง', + ribbonShapeFlowConnector: 'ผังงาน: จุดเชื่อมต่อ', + ribbonShapeFlowOffpageConnector: 'ผังงาน: จุดเชื่อมต่อนอกหน้า', + ribbonShapeFlowMagneticDisk: 'ผังงาน: จานแม่เหล็ก', + ribbonShapeFlowMagneticDrum: 'ผังงาน: ที่เก็บข้อมูลแบบเข้าถึงโดยตรง', + ribbonShapeFlowDisplay: 'ผังงาน: การแสดงผล', + ribbonShapeFlowDelay: 'ผังงาน: การหน่วงเวลา', + ribbonShapeFlowOr: 'ผังงาน: หรือ', + ribbonShapeFlowCollate: 'ผังงาน: การเทียบเคียง', + ribbonShapeFlowSort: 'ผังงาน: การเรียงลำดับ', + ribbonShapeFlowExtract: 'ผังงาน: การแยกข้อมูล', + ribbonShapeFlowMerge: 'ผังงาน: การผสาน', + ribbonShapeFlowSummingJunction: 'ผังงาน: จุดรวม', + ribbonShapeFlowPunchedTape: 'ผังงาน: เทปเจาะรู', + ribbonShapeWedgeRectCallout: 'คำบรรยายสี่เหลี่ยม', + ribbonShapeWedgeRoundRectCallout: 'คำบรรยายสี่เหลี่ยมมุมมน', + ribbonShapeWedgeEllipseCallout: 'คำบรรยายวงรี', + ribbonShapeCloudCallout: 'คำบรรยายรูปเมฆ', ribbonThemes: 'ธีม', ribbonThemesTip: 'เปลี่ยนธีมของเอกสาร (ฟอนต์ + สี) มีผลใน Word หลังบันทึก', ribbonFonts: 'ฟอนต์', @@ -4458,6 +5298,7 @@ export const ribbonStrings = defineStrings({ ribbonStyleIntenseEmphasis: 'Penekanan Kuat', ribbonStylePreview: 'AaBb', ribbonStylePaneTip: 'Panel Gaya: telusuri semua gaya, buat atau perbarui gaya dari pilihan', + ribbonMoreStyles: 'Gaya lainnya', ribbonGroupStyles: 'Gaya', ribbonAiAssistant: 'Genspark', ribbonAiAssistantTip: 'Buka asisten AI', @@ -4610,6 +5451,110 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar5: 'Bintang 5 Titik', ribbonShapeRightArrow: 'Panah Kanan', ribbonShapeLeftRightArrow: 'Panah Kiri-Kanan', + ribbonShapeGroupRects: 'Persegi Panjang', + ribbonShapeGroupLines: 'Garis', + ribbonShapeLine: 'Garis lurus', + ribbonShapeLineArrow: 'Panah', + ribbonShapeLineArrowDouble: 'Panah ganda', + ribbonShapeLineBent: 'Konektor siku', + ribbonShapeLineCurved: 'Konektor lengkung', + ribbonShapeGroupBasic: 'Bentuk Dasar', + ribbonShapeGroupArrows: 'Panah Blok', + ribbonShapeGroupStars: 'Bintang', + ribbonShapeGroupFlowchart: 'Bagan Alur', + ribbonShapeGroupCallouts: 'Balon keterangan', + ribbonShapeSnip1Rect: 'Persegi Panjang: Satu Sudut Terpotong', + ribbonShapeSnip2SameRect: 'Persegi Panjang: Sudut Sisi Sama Terpotong', + ribbonShapeSnip2DiagRect: 'Persegi Panjang: Sudut Diagonal Terpotong', + ribbonShapeSnipRoundRect: 'Persegi Panjang: Satu Sudut Terpotong dan Membulat', + ribbonShapeRound1Rect: 'Persegi Panjang: Satu Sudut Membulat', + ribbonShapeRound2SameRect: 'Persegi Panjang: Sudut Sisi Sama Membulat', + ribbonShapeRound2DiagRect: 'Persegi Panjang: Sudut Diagonal Membulat', + ribbonShapeTrapezoid: 'Trapesium', + ribbonShapeOctagon: 'Segi Delapan', + ribbonShapePlus: 'Palang', + ribbonShapeMathPlus: 'Tanda tambah', + ribbonShapePie: 'Pai', + ribbonShapeChord: 'Tali Busur', + ribbonShapeTeardrop: 'Tetesan Air Mata', + ribbonShapeFrame: 'Bingkai', + ribbonShapeHalfFrame: 'Setengah Bingkai', + ribbonShapeCorner: 'Bentuk L', + ribbonShapeDiagStripe: 'Garis Diagonal', + ribbonShapeDonut: 'Donat', + ribbonShapeNoSmoking: 'Simbol "Dilarang"', + ribbonShapeBlockArc: 'Busur blok', + ribbonShapeFoldedCorner: 'Sudut Terlipat', + ribbonShapeBevel: 'Bevel', + ribbonShapeCube: 'Kubus', + ribbonShapeCan: 'Tabung', + ribbonShapeLightningBolt: 'Petir', + ribbonShapeHeart: 'Hati', + ribbonShapeSun: 'Matahari', + ribbonShapeMoon: 'Bulan', + ribbonShapeCloud: 'Awan', + ribbonShapeArc: 'Busur', + ribbonShapePlaque: 'Plakat', + ribbonShapeSmileyFace: 'Wajah Tersenyum', + ribbonShapeLeftBracket: 'Kurung Siku Kiri', + ribbonShapeRightBracket: 'Kurung Siku Kanan', + ribbonShapeLeftBrace: 'Kurung kurawal kiri', + ribbonShapeRightBrace: 'Kurung kurawal kanan', + ribbonShapeLeftArrow: 'Panah: Kiri', + ribbonShapeUpArrow: 'Panah: Atas', + ribbonShapeDownArrow: 'Panah: Bawah', + ribbonShapeUpDownArrow: 'Panah: Atas-Bawah', + ribbonShapeQuadArrow: 'Panah Empat Arah', + ribbonShapeBentArrow: 'Panah Menekuk', + ribbonShapeUturnArrow: 'Panah Putar Balik', + ribbonShapeCurvedRightArrow: 'Panah Melengkung ke Kanan', + ribbonShapeStripedRightArrow: 'Panah Bergaris ke Kanan', + ribbonShapeNotchedRightArrow: 'Panah: Kanan Bertakik', + ribbonShapeChevron: 'Chevron', + ribbonShapeHomePlate: 'Panah: Segi Lima', + ribbonShapeStar4: 'Bintang: 4 Titik', + ribbonShapeStar6: 'Bintang: 6 Titik', + ribbonShapeStar7: 'Bintang: 7 Titik', + ribbonShapeStar8: 'Bintang: 8 Titik', + ribbonShapeStar10: 'Bintang: 10 Titik', + ribbonShapeStar12: 'Bintang: 12 Titik', + ribbonShapeStar16: 'Bintang: 16 Titik', + ribbonShapeStar24: 'Bintang: 24 Titik', + ribbonShapeStar32: 'Bintang: 32 Titik', + ribbonShapeIrregularSeal1: 'Ledakan 1', + ribbonShapeIrregularSeal2: 'Ledakan 2', + ribbonShapeRibbon: 'Pita Bawah', + ribbonShapeRibbon2: 'Pita Atas', + ribbonShapeWave: 'Gelombang', + ribbonShapeDoubleWave: 'Gelombang Ganda', + ribbonShapeFlowProcess: 'Bagan Alur: Proses', + ribbonShapeFlowAlternateProcess: 'Bagan Alur: Proses Alternatif', + ribbonShapeFlowDecision: 'Bagan Alur: Keputusan', + ribbonShapeFlowPredefinedProcess: 'Bagan Alur: Proses yang Ditentukan Sebelumnya', + ribbonShapeFlowInternalStorage: 'Bagan Alur: Penyimpanan Internal', + ribbonShapeFlowDocument: 'Bagan Alur: Dokumen', + ribbonShapeFlowMultidocument: 'Bagan Alur: Multidokumen', + ribbonShapeFlowTerminator: 'Bagan Alur: Terminator', + ribbonShapeFlowPreparation: 'Bagan Alur: Persiapan', + ribbonShapeFlowManualInput: 'Bagan Alur: Input Manual', + ribbonShapeFlowManualOperation: 'Bagan Alur: Operasi Manual', + ribbonShapeFlowConnector: 'Bagan Alur: Konektor', + ribbonShapeFlowOffpageConnector: 'Bagan Alur: Konektor Luar Halaman', + ribbonShapeFlowMagneticDisk: 'Bagan Alur: Disk Magnetik', + ribbonShapeFlowMagneticDrum: 'Bagan Alur: Penyimpanan Akses Langsung', + ribbonShapeFlowDisplay: 'Bagan Alur: Tampilan', + ribbonShapeFlowDelay: 'Bagan Alur: Penundaan', + ribbonShapeFlowOr: 'Bagan Alur: Atau', + ribbonShapeFlowCollate: 'Bagan Alur: Kolasi', + ribbonShapeFlowSort: 'Bagan Alur: Urutkan', + ribbonShapeFlowExtract: 'Bagan Alur: Ekstrak', + ribbonShapeFlowMerge: 'Bagan Alur: Gabung', + ribbonShapeFlowSummingJunction: 'Bagan Alur: Persimpangan Penjumlahan', + ribbonShapeFlowPunchedTape: 'Bagan Alur: Pita Berlubang', + ribbonShapeWedgeRectCallout: 'Keterangan persegi', + ribbonShapeWedgeRoundRectCallout: 'Keterangan persegi membulat', + ribbonShapeWedgeEllipseCallout: 'Keterangan oval', + ribbonShapeCloudCallout: 'Keterangan awan', ribbonThemes: 'Tema', ribbonThemesTip: 'Ubah tema dokumen (font + warna); berlaku di Word setelah disimpan', ribbonFonts: 'Font', @@ -4994,6 +5939,7 @@ export const ribbonStrings = defineStrings({ ribbonStylePreview: 'АаБб', ribbonStylePaneTip: 'Область стилей: просмотр всех стилей, создание и обновление стилей по выделенному фрагменту', + ribbonMoreStyles: 'Другие стили', ribbonGroupStyles: 'Стили', ribbonAiAssistant: 'Genspark', ribbonAiAssistantTip: 'Открыть помощника ИИ', @@ -5146,6 +6092,110 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar5: '5-конечная звезда', ribbonShapeRightArrow: 'Стрелка вправо', ribbonShapeLeftRightArrow: 'Двунаправленная стрелка', + ribbonShapeGroupRects: 'Прямоугольники', + ribbonShapeGroupLines: 'Линии', + ribbonShapeLine: 'Линия', + ribbonShapeLineArrow: 'Стрелка', + ribbonShapeLineArrowDouble: 'Двойная стрелка', + ribbonShapeLineBent: 'Ломаная соединительная линия', + ribbonShapeLineCurved: 'Изогнутая соединительная линия', + ribbonShapeGroupBasic: 'Основные фигуры', + ribbonShapeGroupArrows: 'Фигурные стрелки', + ribbonShapeGroupStars: 'Звёзды', + ribbonShapeGroupFlowchart: 'Блок-схема', + ribbonShapeGroupCallouts: 'Выноски', + ribbonShapeSnip1Rect: 'Прямоугольник: один срезанный угол', + ribbonShapeSnip2SameRect: 'Прямоугольник: два срезанных угла с одной стороны', + ribbonShapeSnip2DiagRect: 'Прямоугольник: срезанные углы по диагонали', + ribbonShapeSnipRoundRect: 'Прямоугольник: один угол срезан, один скруглён', + ribbonShapeRound1Rect: 'Прямоугольник: один скруглённый угол', + ribbonShapeRound2SameRect: 'Прямоугольник: два скруглённых угла с одной стороны', + ribbonShapeRound2DiagRect: 'Прямоугольник: скруглённые углы по диагонали', + ribbonShapeTrapezoid: 'Трапеция', + ribbonShapeOctagon: 'Восьмиугольник', + ribbonShapePlus: 'Крест', + ribbonShapeMathPlus: 'Знак плюс', + ribbonShapePie: 'Сектор', + ribbonShapeChord: 'Хорда', + ribbonShapeTeardrop: 'Капля', + ribbonShapeFrame: 'Рамка', + ribbonShapeHalfFrame: 'Половина рамки', + ribbonShapeCorner: 'L-образная фигура', + ribbonShapeDiagStripe: 'Диагональная полоса', + ribbonShapeDonut: 'Кольцо', + ribbonShapeNoSmoking: 'Знак запрета', + ribbonShapeBlockArc: 'Арка', + ribbonShapeFoldedCorner: 'Загнутый угол', + ribbonShapeBevel: 'Багетная рамка', + ribbonShapeCube: 'Куб', + ribbonShapeCan: 'Цилиндр', + ribbonShapeLightningBolt: 'Молния', + ribbonShapeHeart: 'Сердце', + ribbonShapeSun: 'Солнце', + ribbonShapeMoon: 'Месяц', + ribbonShapeCloud: 'Облако', + ribbonShapeArc: 'Дуга', + ribbonShapePlaque: 'Табличка', + ribbonShapeSmileyFace: 'Улыбающееся лицо', + ribbonShapeLeftBracket: 'Левая квадратная скобка', + ribbonShapeRightBracket: 'Правая квадратная скобка', + ribbonShapeLeftBrace: 'Левая фигурная скобка', + ribbonShapeRightBrace: 'Правая фигурная скобка', + ribbonShapeLeftArrow: 'Стрелка: влево', + ribbonShapeUpArrow: 'Стрелка: вверх', + ribbonShapeDownArrow: 'Стрелка: вниз', + ribbonShapeUpDownArrow: 'Стрелка: вверх-вниз', + ribbonShapeQuadArrow: 'Четырёхсторонняя стрелка', + ribbonShapeBentArrow: 'Изогнутая стрелка', + ribbonShapeUturnArrow: 'Стрелка разворота', + ribbonShapeCurvedRightArrow: 'Стрелка, изогнутая вправо', + ribbonShapeStripedRightArrow: 'Штриховая стрелка вправо', + ribbonShapeNotchedRightArrow: 'Стрелка: вправо с вырезом', + ribbonShapeChevron: 'Шеврон', + ribbonShapeHomePlate: 'Стрелка: пятиугольник', + ribbonShapeStar4: 'Звезда: 4 луча', + ribbonShapeStar6: 'Звезда: 6 лучей', + ribbonShapeStar7: 'Звезда: 7 лучей', + ribbonShapeStar8: 'Звезда: 8 лучей', + ribbonShapeStar10: 'Звезда: 10 лучей', + ribbonShapeStar12: 'Звезда: 12 лучей', + ribbonShapeStar16: 'Звезда: 16 лучей', + ribbonShapeStar24: 'Звезда: 24 луча', + ribbonShapeStar32: 'Звезда: 32 луча', + ribbonShapeIrregularSeal1: 'Взрыв 1', + ribbonShapeIrregularSeal2: 'Взрыв 2', + ribbonShapeRibbon: 'Лента лицом вниз', + ribbonShapeRibbon2: 'Лента лицом вверх', + ribbonShapeWave: 'Волна', + ribbonShapeDoubleWave: 'Двойная волна', + ribbonShapeFlowProcess: 'Блок-схема: процесс', + ribbonShapeFlowAlternateProcess: 'Блок-схема: альтернативный процесс', + ribbonShapeFlowDecision: 'Блок-схема: решение', + ribbonShapeFlowPredefinedProcess: 'Блок-схема: типовой процесс', + ribbonShapeFlowInternalStorage: 'Блок-схема: внутренняя память', + ribbonShapeFlowDocument: 'Блок-схема: документ', + ribbonShapeFlowMultidocument: 'Блок-схема: несколько документов', + ribbonShapeFlowTerminator: 'Блок-схема: знак завершения', + ribbonShapeFlowPreparation: 'Блок-схема: подготовка', + ribbonShapeFlowManualInput: 'Блок-схема: ручной ввод', + ribbonShapeFlowManualOperation: 'Блок-схема: ручное управление', + ribbonShapeFlowConnector: 'Блок-схема: соединитель', + ribbonShapeFlowOffpageConnector: 'Блок-схема: ссылка на другую страницу', + ribbonShapeFlowMagneticDisk: 'Блок-схема: магнитный диск', + ribbonShapeFlowMagneticDrum: 'Блок-схема: память с прямым доступом', + ribbonShapeFlowDisplay: 'Блок-схема: дисплей', + ribbonShapeFlowDelay: 'Блок-схема: задержка', + ribbonShapeFlowOr: 'Блок-схема: или', + ribbonShapeFlowCollate: 'Блок-схема: сопоставление', + ribbonShapeFlowSort: 'Блок-схема: сортировка', + ribbonShapeFlowExtract: 'Блок-схема: извлечение', + ribbonShapeFlowMerge: 'Блок-схема: слияние', + ribbonShapeFlowSummingJunction: 'Блок-схема: узел суммирования', + ribbonShapeFlowPunchedTape: 'Блок-схема: перфолента', + ribbonShapeWedgeRectCallout: 'Прямоугольная выноска', + ribbonShapeWedgeRoundRectCallout: 'Скругленная прямоугольная выноска', + ribbonShapeWedgeEllipseCallout: 'Овальная выноска', + ribbonShapeCloudCallout: 'Выноска-облако', ribbonThemes: 'Темы', ribbonThemesTip: 'Изменить тему документа (шрифты + цвета); применяется в Word после сохранения', @@ -5529,6 +6579,7 @@ export const ribbonStrings = defineStrings({ ribbonStyleIntenseEmphasis: 'تأكيد مكثف', ribbonStylePreview: 'Aaأب', ribbonStylePaneTip: 'جزء الأنماط: استعراض كافة الأنماط، وإنشاء الأنماط أو تحديثها من التحديد', + ribbonMoreStyles: 'المزيد من الأنماط', ribbonGroupStyles: 'أنماط', ribbonAiAssistant: 'Genspark', ribbonAiAssistantTip: 'فتح مساعد الذكاء الاصطناعي', @@ -5681,6 +6732,110 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar5: 'نجمة خماسية', ribbonShapeRightArrow: 'سهم لليمين', ribbonShapeLeftRightArrow: 'سهم لليسار واليمين', + ribbonShapeGroupRects: 'مستطيلات', + ribbonShapeGroupLines: 'خطوط', + ribbonShapeLine: 'خط', + ribbonShapeLineArrow: 'سهم', + ribbonShapeLineArrowDouble: 'سهم مزدوج', + ribbonShapeLineBent: 'رابط مرفقي', + ribbonShapeLineCurved: 'رابط منحنٍ', + ribbonShapeGroupBasic: 'أشكال أساسية', + ribbonShapeGroupArrows: 'أسهم عريضة', + ribbonShapeGroupStars: 'نجوم', + ribbonShapeGroupFlowchart: 'مخطط انسيابي', + ribbonShapeGroupCallouts: 'وسائل شرح', + ribbonShapeSnip1Rect: 'مستطيل: زاوية واحدة مقصوصة', + ribbonShapeSnip2SameRect: 'مستطيل: زاويتان مقصوصتان من نفس الجانب', + ribbonShapeSnip2DiagRect: 'مستطيل: زاويتان مقصوصتان قطريًا', + ribbonShapeSnipRoundRect: 'مستطيل: زاوية مقصوصة وزاوية مستديرة', + ribbonShapeRound1Rect: 'مستطيل: زاوية واحدة مستديرة', + ribbonShapeRound2SameRect: 'مستطيل: زاويتان مستديرتان من نفس الجانب', + ribbonShapeRound2DiagRect: 'مستطيل: زاويتان مستديرتان قطريًا', + ribbonShapeTrapezoid: 'شبه منحرف', + ribbonShapeOctagon: 'ثماني', + ribbonShapePlus: 'صليب', + ribbonShapeMathPlus: 'علامة الجمع', + ribbonShapePie: 'قطاع دائري', + ribbonShapeChord: 'وتر', + ribbonShapeTeardrop: 'دمعة', + ribbonShapeFrame: 'إطار', + ribbonShapeHalfFrame: 'نصف إطار', + ribbonShapeCorner: 'شكل L', + ribbonShapeDiagStripe: 'شريط قطري', + ribbonShapeDonut: 'حلقة', + ribbonShapeNoSmoking: 'رمز "ممنوع"', + ribbonShapeBlockArc: 'قوس مصمت', + ribbonShapeFoldedCorner: 'زاوية مطوية', + ribbonShapeBevel: 'حافة مشطوفة', + ribbonShapeCube: 'مكعب', + ribbonShapeCan: 'أسطوانة', + ribbonShapeLightningBolt: 'برق', + ribbonShapeHeart: 'قلب', + ribbonShapeSun: 'شمس', + ribbonShapeMoon: 'قمر', + ribbonShapeCloud: 'سحابة', + ribbonShapeArc: 'قوس', + ribbonShapePlaque: 'لوحة', + ribbonShapeSmileyFace: 'وجه مبتسم', + ribbonShapeLeftBracket: 'قوس أيسر', + ribbonShapeRightBracket: 'قوس أيمن', + ribbonShapeLeftBrace: 'قوس متعرج أيسر', + ribbonShapeRightBrace: 'قوس متعرج أيمن', + ribbonShapeLeftArrow: 'سهم: لليسار', + ribbonShapeUpArrow: 'سهم: لأعلى', + ribbonShapeDownArrow: 'سهم: لأسفل', + ribbonShapeUpDownArrow: 'سهم: لأعلى ولأسفل', + ribbonShapeQuadArrow: 'سهم رباعي الاتجاهات', + ribbonShapeBentArrow: 'سهم منعطف', + ribbonShapeUturnArrow: 'سهم على شكل حرف U', + ribbonShapeCurvedRightArrow: 'سهم منحنٍ لليمين', + ribbonShapeStripedRightArrow: 'سهم مخطط لليمين', + ribbonShapeNotchedRightArrow: 'سهم: لليمين بحزّ', + ribbonShapeChevron: 'شيفرون', + ribbonShapeHomePlate: 'سهم: خماسي', + ribbonShapeStar4: 'نجمة: 4 رؤوس', + ribbonShapeStar6: 'نجمة: 6 رؤوس', + ribbonShapeStar7: 'نجمة: 7 رؤوس', + ribbonShapeStar8: 'نجمة: 8 رؤوس', + ribbonShapeStar10: 'نجمة: 10 رؤوس', + ribbonShapeStar12: 'نجمة: 12 رأسًا', + ribbonShapeStar16: 'نجمة: 16 رأسًا', + ribbonShapeStar24: 'نجمة: 24 رأسًا', + ribbonShapeStar32: 'نجمة: 32 رأسًا', + ribbonShapeIrregularSeal1: 'انفجار 1', + ribbonShapeIrregularSeal2: 'انفجار 2', + ribbonShapeRibbon: 'شريط لأسفل', + ribbonShapeRibbon2: 'شريط لأعلى', + ribbonShapeWave: 'موجة', + ribbonShapeDoubleWave: 'موجة مزدوجة', + ribbonShapeFlowProcess: 'مخطط انسيابي: عملية', + ribbonShapeFlowAlternateProcess: 'مخطط انسيابي: عملية بديلة', + ribbonShapeFlowDecision: 'مخطط انسيابي: قرار', + ribbonShapeFlowPredefinedProcess: 'مخطط انسيابي: عملية معرفة مسبقًا', + ribbonShapeFlowInternalStorage: 'مخطط انسيابي: تخزين داخلي', + ribbonShapeFlowDocument: 'مخطط انسيابي: مستند', + ribbonShapeFlowMultidocument: 'مخطط انسيابي: مستندات متعددة', + ribbonShapeFlowTerminator: 'مخطط انسيابي: نقطة إنهاء', + ribbonShapeFlowPreparation: 'مخطط انسيابي: تحضير', + ribbonShapeFlowManualInput: 'مخطط انسيابي: إدخال يدوي', + ribbonShapeFlowManualOperation: 'مخطط انسيابي: عملية يدوية', + ribbonShapeFlowConnector: 'مخطط انسيابي: رابط', + ribbonShapeFlowOffpageConnector: 'مخطط انسيابي: رابط خارج الصفحة', + ribbonShapeFlowMagneticDisk: 'مخطط انسيابي: قرص مغناطيسي', + ribbonShapeFlowMagneticDrum: 'مخطط انسيابي: تخزين وصول مباشر', + ribbonShapeFlowDisplay: 'مخطط انسيابي: عرض', + ribbonShapeFlowDelay: 'مخطط انسيابي: تأخير', + ribbonShapeFlowOr: 'مخطط انسيابي: أو', + ribbonShapeFlowCollate: 'مخطط انسيابي: مقارنة', + ribbonShapeFlowSort: 'مخطط انسيابي: فرز', + ribbonShapeFlowExtract: 'مخطط انسيابي: استخراج', + ribbonShapeFlowMerge: 'مخطط انسيابي: دمج', + ribbonShapeFlowSummingJunction: 'مخطط انسيابي: نقطة تجميع', + ribbonShapeFlowPunchedTape: 'مخطط انسيابي: شريط مثقب', + ribbonShapeWedgeRectCallout: 'وسيلة شرح مستطيلة', + ribbonShapeWedgeRoundRectCallout: 'وسيلة شرح مستطيلة مستديرة الزوايا', + ribbonShapeWedgeEllipseCallout: 'وسيلة شرح بيضاوية', + ribbonShapeCloudCallout: 'وسيلة شرح سحابية', ribbonThemes: 'نُسق', ribbonThemesTip: 'تغيير نسق المستند (الخطوط + الألوان)؛ يُطبَّق في Word بعد الحفظ', ribbonFonts: 'خطوط', @@ -6060,6 +7215,7 @@ export const ribbonStrings = defineStrings({ ribbonStylePreview: 'AaBb', ribbonStylePaneTip: 'Painel de estilos: veja todos os estilos, crie ou atualize estilos a partir da seleção', + ribbonMoreStyles: 'Mais estilos', ribbonGroupStyles: 'Estilos', ribbonAiAssistant: 'Genspark', ribbonAiAssistantTip: 'Abrir o assistente de IA', @@ -6212,6 +7368,110 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar5: 'Estrela de 5 Pontas', ribbonShapeRightArrow: 'Seta para a Direita', ribbonShapeLeftRightArrow: 'Seta Esquerda-Direita', + ribbonShapeGroupRects: 'Retângulos', + ribbonShapeGroupLines: 'Linhas', + ribbonShapeLine: 'Linha', + ribbonShapeLineArrow: 'Seta', + ribbonShapeLineArrowDouble: 'Seta dupla', + ribbonShapeLineBent: 'Conector angular', + ribbonShapeLineCurved: 'Conector curvado', + ribbonShapeGroupBasic: 'Formas Básicas', + ribbonShapeGroupArrows: 'Setas', + ribbonShapeGroupStars: 'Estrelas', + ribbonShapeGroupFlowchart: 'Fluxograma', + ribbonShapeGroupCallouts: 'Textos explicativos', + ribbonShapeSnip1Rect: 'Retângulo com Um Canto Recortado', + ribbonShapeSnip2SameRect: 'Retângulo com Cantos do Mesmo Lado Recortados', + ribbonShapeSnip2DiagRect: 'Retângulo com Cantos Diagonais Recortados', + ribbonShapeSnipRoundRect: 'Retângulo com Um Canto Recortado e Um Arredondado', + ribbonShapeRound1Rect: 'Retângulo com Um Canto Arredondado', + ribbonShapeRound2SameRect: 'Retângulo com Cantos do Mesmo Lado Arredondados', + ribbonShapeRound2DiagRect: 'Retângulo com Cantos Diagonais Arredondados', + ribbonShapeTrapezoid: 'Trapézio', + ribbonShapeOctagon: 'Octógono', + ribbonShapePlus: 'Cruz', + ribbonShapeMathPlus: 'Sinal de adição', + ribbonShapePie: 'Pizza', + ribbonShapeChord: 'Corda', + ribbonShapeTeardrop: 'Lágrima', + ribbonShapeFrame: 'Moldura', + ribbonShapeHalfFrame: 'Meia Moldura', + ribbonShapeCorner: 'Forma de L', + ribbonShapeDiagStripe: 'Faixa Diagonal', + ribbonShapeDonut: 'Rosca', + ribbonShapeNoSmoking: 'Símbolo de "Proibido"', + ribbonShapeBlockArc: 'Arco de bloco', + ribbonShapeFoldedCorner: 'Canto Dobrado', + ribbonShapeBevel: 'Chanfro', + ribbonShapeCube: 'Cubo', + ribbonShapeCan: 'Lata', + ribbonShapeLightningBolt: 'Raio', + ribbonShapeHeart: 'Coração', + ribbonShapeSun: 'Sol', + ribbonShapeMoon: 'Lua', + ribbonShapeCloud: 'Nuvem', + ribbonShapeArc: 'Arco', + ribbonShapePlaque: 'Placa', + ribbonShapeSmileyFace: 'Rosto Sorridente', + ribbonShapeLeftBracket: 'Colchete Esquerdo', + ribbonShapeRightBracket: 'Colchete Direito', + ribbonShapeLeftBrace: 'Chave esquerda', + ribbonShapeRightBrace: 'Chave direita', + ribbonShapeLeftArrow: 'Seta para a Esquerda', + ribbonShapeUpArrow: 'Seta para Cima', + ribbonShapeDownArrow: 'Seta para Baixo', + ribbonShapeUpDownArrow: 'Seta para Cima e para Baixo', + ribbonShapeQuadArrow: 'Seta Quádrupla', + ribbonShapeBentArrow: 'Seta Dobrada', + ribbonShapeUturnArrow: 'Seta em U', + ribbonShapeCurvedRightArrow: 'Seta Curva para a Direita', + ribbonShapeStripedRightArrow: 'Seta Listrada para a Direita', + ribbonShapeNotchedRightArrow: 'Seta para a Direita com Entalhe', + ribbonShapeChevron: 'Divisa', + ribbonShapeHomePlate: 'Seta Pentagonal', + ribbonShapeStar4: 'Estrela de 4 Pontas', + ribbonShapeStar6: 'Estrela de 6 Pontas', + ribbonShapeStar7: 'Estrela de 7 Pontas', + ribbonShapeStar8: 'Estrela de 8 Pontas', + ribbonShapeStar10: 'Estrela de 10 Pontas', + ribbonShapeStar12: 'Estrela de 12 Pontas', + ribbonShapeStar16: 'Estrela de 16 Pontas', + ribbonShapeStar24: 'Estrela de 24 Pontas', + ribbonShapeStar32: 'Estrela de 32 Pontas', + ribbonShapeIrregularSeal1: 'Explosão 1', + ribbonShapeIrregularSeal2: 'Explosão 2', + ribbonShapeRibbon: 'Faixa para Baixo', + ribbonShapeRibbon2: 'Faixa para Cima', + ribbonShapeWave: 'Onda', + ribbonShapeDoubleWave: 'Onda Dupla', + ribbonShapeFlowProcess: 'Fluxograma: Processo', + ribbonShapeFlowAlternateProcess: 'Fluxograma: Processo Alternativo', + ribbonShapeFlowDecision: 'Fluxograma: Decisão', + ribbonShapeFlowPredefinedProcess: 'Fluxograma: Processo Predefinido', + ribbonShapeFlowInternalStorage: 'Fluxograma: Armazenamento Interno', + ribbonShapeFlowDocument: 'Fluxograma: Documento', + ribbonShapeFlowMultidocument: 'Fluxograma: Vários Documentos', + ribbonShapeFlowTerminator: 'Fluxograma: Terminação', + ribbonShapeFlowPreparation: 'Fluxograma: Preparação', + ribbonShapeFlowManualInput: 'Fluxograma: Entrada Manual', + ribbonShapeFlowManualOperation: 'Fluxograma: Operação Manual', + ribbonShapeFlowConnector: 'Fluxograma: Conector', + ribbonShapeFlowOffpageConnector: 'Fluxograma: Conector Fora da Página', + ribbonShapeFlowMagneticDisk: 'Fluxograma: Disco Magnético', + ribbonShapeFlowMagneticDrum: 'Fluxograma: Armazenamento de Acesso Direto', + ribbonShapeFlowDisplay: 'Fluxograma: Exibição', + ribbonShapeFlowDelay: 'Fluxograma: Atraso', + ribbonShapeFlowOr: 'Fluxograma: Ou', + ribbonShapeFlowCollate: 'Fluxograma: Agrupar', + ribbonShapeFlowSort: 'Fluxograma: Classificar', + ribbonShapeFlowExtract: 'Fluxograma: Extrair', + ribbonShapeFlowMerge: 'Fluxograma: Mesclar', + ribbonShapeFlowSummingJunction: 'Fluxograma: Junção de Soma', + ribbonShapeFlowPunchedTape: 'Fluxograma: Fita Perfurada', + ribbonShapeWedgeRectCallout: 'Texto explicativo retangular', + ribbonShapeWedgeRoundRectCallout: 'Texto explicativo retangular arredondado', + ribbonShapeWedgeEllipseCallout: 'Texto explicativo oval', + ribbonShapeCloudCallout: 'Texto explicativo em nuvem', ribbonThemes: 'Temas', ribbonThemesTip: 'Alterar o tema do documento (fontes + cores); aplicado no Word após salvar', ribbonFonts: 'Fontes', @@ -6597,6 +7857,7 @@ export const ribbonStrings = defineStrings({ ribbonStylePreview: 'AaBb', ribbonStylePaneTip: 'Riquadro stili: sfoglia tutti gli stili, crea o aggiorna stili dalla selezione', + ribbonMoreStyles: 'Altri stili', ribbonGroupStyles: 'Stili', ribbonAiAssistant: 'Genspark', ribbonAiAssistantTip: "Apri l'assistente IA", @@ -6749,6 +8010,110 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar5: 'Stella a 5 punte', ribbonShapeRightArrow: 'Freccia a destra', ribbonShapeLeftRightArrow: 'Freccia sinistra-destra', + ribbonShapeGroupRects: 'Rettangoli', + ribbonShapeGroupLines: 'Linee', + ribbonShapeLine: 'Linea', + ribbonShapeLineArrow: 'Freccia', + ribbonShapeLineArrowDouble: 'Freccia doppia', + ribbonShapeLineBent: 'Connettore a gomito', + ribbonShapeLineCurved: 'Connettore curvo', + ribbonShapeGroupBasic: 'Forme di Base', + ribbonShapeGroupArrows: 'Frecce', + ribbonShapeGroupStars: 'Stelle', + ribbonShapeGroupFlowchart: 'Diagrammi di Flusso', + ribbonShapeGroupCallouts: 'Callout', + ribbonShapeSnip1Rect: 'Rettangolo con Un Angolo Tagliato', + ribbonShapeSnip2SameRect: 'Rettangolo con Angoli sullo Stesso Lato Tagliati', + ribbonShapeSnip2DiagRect: 'Rettangolo con Angoli in Diagonale Tagliati', + ribbonShapeSnipRoundRect: 'Rettangolo con Un Angolo Tagliato e Uno Arrotondato', + ribbonShapeRound1Rect: 'Rettangolo con Un Angolo Arrotondato', + ribbonShapeRound2SameRect: 'Rettangolo con Angoli sullo Stesso Lato Arrotondati', + ribbonShapeRound2DiagRect: 'Rettangolo con Angoli in Diagonale Arrotondati', + ribbonShapeTrapezoid: 'Trapezio', + ribbonShapeOctagon: 'Ottagono', + ribbonShapePlus: 'Croce', + ribbonShapeMathPlus: 'Segno più', + ribbonShapePie: 'Torta', + ribbonShapeChord: 'Corda', + ribbonShapeTeardrop: 'Goccia', + ribbonShapeFrame: 'Cornice', + ribbonShapeHalfFrame: 'Mezza Cornice', + ribbonShapeCorner: 'Forma a L', + ribbonShapeDiagStripe: 'Striscia Diagonale', + ribbonShapeDonut: 'Anello', + ribbonShapeNoSmoking: 'Simbolo di Divieto', + ribbonShapeBlockArc: 'Arco pieno', + ribbonShapeFoldedCorner: 'Angolo Ripiegato', + ribbonShapeBevel: 'Smusso', + ribbonShapeCube: 'Cubo', + ribbonShapeCan: 'Cilindro', + ribbonShapeLightningBolt: 'Fulmine', + ribbonShapeHeart: 'Cuore', + ribbonShapeSun: 'Sole', + ribbonShapeMoon: 'Luna', + ribbonShapeCloud: 'Nuvola', + ribbonShapeArc: 'Arco', + ribbonShapePlaque: 'Targa', + ribbonShapeSmileyFace: 'Faccina Sorridente', + ribbonShapeLeftBracket: 'Parentesi Quadra Aperta', + ribbonShapeRightBracket: 'Parentesi Quadra Chiusa', + ribbonShapeLeftBrace: 'Parentesi graffa aperta', + ribbonShapeRightBrace: 'Parentesi graffa chiusa', + ribbonShapeLeftArrow: 'Freccia a Sinistra', + ribbonShapeUpArrow: 'Freccia in Su', + ribbonShapeDownArrow: 'Freccia in Giù', + ribbonShapeUpDownArrow: 'Freccia Su-Giù', + ribbonShapeQuadArrow: 'Freccia Quadrupla', + ribbonShapeBentArrow: 'Freccia Piegata', + ribbonShapeUturnArrow: 'Freccia a U', + ribbonShapeCurvedRightArrow: 'Freccia Curva a Destra', + ribbonShapeStripedRightArrow: 'Freccia a Strisce verso Destra', + ribbonShapeNotchedRightArrow: 'Freccia a Destra con Tacca', + ribbonShapeChevron: 'Gallone', + ribbonShapeHomePlate: 'Freccia a Pentagono', + ribbonShapeStar4: 'Stella a 4 Punte', + ribbonShapeStar6: 'Stella a 6 Punte', + ribbonShapeStar7: 'Stella a 7 Punte', + ribbonShapeStar8: 'Stella a 8 Punte', + ribbonShapeStar10: 'Stella a 10 Punte', + ribbonShapeStar12: 'Stella a 12 Punte', + ribbonShapeStar16: 'Stella a 16 Punte', + ribbonShapeStar24: 'Stella a 24 Punte', + ribbonShapeStar32: 'Stella a 32 Punte', + ribbonShapeIrregularSeal1: 'Esplosione 1', + ribbonShapeIrregularSeal2: 'Esplosione 2', + ribbonShapeRibbon: 'Nastro verso il Basso', + ribbonShapeRibbon2: "Nastro verso l'Alto", + ribbonShapeWave: 'Onda', + ribbonShapeDoubleWave: 'Onda Doppia', + ribbonShapeFlowProcess: 'Diagramma di Flusso: Processo', + ribbonShapeFlowAlternateProcess: 'Diagramma di Flusso: Processo Alternativo', + ribbonShapeFlowDecision: 'Diagramma di Flusso: Decisione', + ribbonShapeFlowPredefinedProcess: 'Diagramma di Flusso: Processo Predefinito', + ribbonShapeFlowInternalStorage: 'Diagramma di Flusso: Memoria Interna', + ribbonShapeFlowDocument: 'Diagramma di Flusso: Documento', + ribbonShapeFlowMultidocument: 'Diagramma di Flusso: Documenti Multipli', + ribbonShapeFlowTerminator: 'Diagramma di Flusso: Terminatore', + ribbonShapeFlowPreparation: 'Diagramma di Flusso: Preparazione', + ribbonShapeFlowManualInput: 'Diagramma di Flusso: Input Manuale', + ribbonShapeFlowManualOperation: 'Diagramma di Flusso: Operazione Manuale', + ribbonShapeFlowConnector: 'Diagramma di Flusso: Connettore', + ribbonShapeFlowOffpageConnector: 'Diagramma di Flusso: Connettore Fuori Pagina', + ribbonShapeFlowMagneticDisk: 'Diagramma di Flusso: Disco Magnetico', + ribbonShapeFlowMagneticDrum: 'Diagramma di Flusso: Memoria ad Accesso Diretto', + ribbonShapeFlowDisplay: 'Diagramma di Flusso: Visualizzazione', + ribbonShapeFlowDelay: 'Diagramma di Flusso: Ritardo', + ribbonShapeFlowOr: 'Diagramma di Flusso: Oppure', + ribbonShapeFlowCollate: 'Diagramma di Flusso: Confronto', + ribbonShapeFlowSort: 'Diagramma di Flusso: Ordinamento', + ribbonShapeFlowExtract: 'Diagramma di Flusso: Estrazione', + ribbonShapeFlowMerge: 'Diagramma di Flusso: Unione', + ribbonShapeFlowSummingJunction: 'Diagramma di Flusso: Giunzione di Somma', + ribbonShapeFlowPunchedTape: 'Diagramma di Flusso: Nastro Perforato', + ribbonShapeWedgeRectCallout: 'Callout rettangolare', + ribbonShapeWedgeRoundRectCallout: 'Callout rettangolare arrotondato', + ribbonShapeWedgeEllipseCallout: 'Callout ovale', + ribbonShapeCloudCallout: 'Callout a nuvola', ribbonThemes: 'Temi', ribbonThemesTip: 'Cambia il tema del documento (caratteri + colori); si applica in Word dopo il salvataggio', @@ -7138,6 +8503,7 @@ export const ribbonStrings = defineStrings({ ribbonStylePreview: 'AaBb', ribbonStylePaneTip: 'Okienko stylów: przeglądaj wszystkie style, twórz lub aktualizuj style na podstawie zaznaczenia', + ribbonMoreStyles: 'Więcej stylów', ribbonGroupStyles: 'Style', ribbonAiAssistant: 'Genspark', ribbonAiAssistantTip: 'Otwórz asystenta AI', @@ -7290,6 +8656,110 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar5: 'Gwiazda 5-ramienna', ribbonShapeRightArrow: 'Strzałka w prawo', ribbonShapeLeftRightArrow: 'Strzałka w lewo i w prawo', + ribbonShapeGroupRects: 'Prostokąty', + ribbonShapeGroupLines: 'Linie', + ribbonShapeLine: 'Linia', + ribbonShapeLineArrow: 'Strzałka', + ribbonShapeLineArrowDouble: 'Strzałka podwójna', + ribbonShapeLineBent: 'Łącznik łamany', + ribbonShapeLineCurved: 'Łącznik zakrzywiony', + ribbonShapeGroupBasic: 'Kształty podstawowe', + ribbonShapeGroupArrows: 'Strzałki', + ribbonShapeGroupStars: 'Gwiazdy', + ribbonShapeGroupFlowchart: 'Schemat blokowy', + ribbonShapeGroupCallouts: 'Objaśnienia', + ribbonShapeSnip1Rect: 'Prostokąt z jednym ściętym rogiem', + ribbonShapeSnip2SameRect: 'Prostokąt ze ściętymi rogami z jednej strony', + ribbonShapeSnip2DiagRect: 'Prostokąt ze ściętymi rogami po przekątnej', + ribbonShapeSnipRoundRect: 'Prostokąt z jednym rogiem ściętym i jednym zaokrąglonym', + ribbonShapeRound1Rect: 'Prostokąt z jednym zaokrąglonym rogiem', + ribbonShapeRound2SameRect: 'Prostokąt z zaokrąglonymi rogami z jednej strony', + ribbonShapeRound2DiagRect: 'Prostokąt z zaokrąglonymi rogami po przekątnej', + ribbonShapeTrapezoid: 'Trapez', + ribbonShapeOctagon: 'Ośmiokąt', + ribbonShapePlus: 'Krzyż', + ribbonShapeMathPlus: 'Znak plus', + ribbonShapePie: 'Wycinek koła', + ribbonShapeChord: 'Cięciwa', + ribbonShapeTeardrop: 'Łza', + ribbonShapeFrame: 'Ramka', + ribbonShapeHalfFrame: 'Połowa ramki', + ribbonShapeCorner: 'Kształt litery L', + ribbonShapeDiagStripe: 'Ukośny pasek', + ribbonShapeDonut: 'Pierścień', + ribbonShapeNoSmoking: 'Symbol zakazu', + ribbonShapeBlockArc: 'Łuk blokowy', + ribbonShapeFoldedCorner: 'Zagięty róg', + ribbonShapeBevel: 'Skos', + ribbonShapeCube: 'Sześcian', + ribbonShapeCan: 'Walec', + ribbonShapeLightningBolt: 'Błyskawica', + ribbonShapeHeart: 'Serce', + ribbonShapeSun: 'Słońce', + ribbonShapeMoon: 'Księżyc', + ribbonShapeCloud: 'Chmura', + ribbonShapeArc: 'Łuk', + ribbonShapePlaque: 'Plakietka', + ribbonShapeSmileyFace: 'Uśmiechnięta buźka', + ribbonShapeLeftBracket: 'Lewy nawias kwadratowy', + ribbonShapeRightBracket: 'Prawy nawias kwadratowy', + ribbonShapeLeftBrace: 'Lewy nawias klamrowy', + ribbonShapeRightBrace: 'Prawy nawias klamrowy', + ribbonShapeLeftArrow: 'Strzałka w lewo', + ribbonShapeUpArrow: 'Strzałka w górę', + ribbonShapeDownArrow: 'Strzałka w dół', + ribbonShapeUpDownArrow: 'Strzałka w górę i w dół', + ribbonShapeQuadArrow: 'Strzałka poczwórna', + ribbonShapeBentArrow: 'Strzałka zagięta', + ribbonShapeUturnArrow: 'Strzałka zawracająca', + ribbonShapeCurvedRightArrow: 'Strzałka zakrzywiona w prawo', + ribbonShapeStripedRightArrow: 'Strzałka w prawo w paski', + ribbonShapeNotchedRightArrow: 'Strzałka w prawo z wcięciem', + ribbonShapeChevron: 'Szewron', + ribbonShapeHomePlate: 'Strzałka pięciokątna', + ribbonShapeStar4: 'Gwiazda 4-ramienna', + ribbonShapeStar6: 'Gwiazda 6-ramienna', + ribbonShapeStar7: 'Gwiazda 7-ramienna', + ribbonShapeStar8: 'Gwiazda 8-ramienna', + ribbonShapeStar10: 'Gwiazda 10-ramienna', + ribbonShapeStar12: 'Gwiazda 12-ramienna', + ribbonShapeStar16: 'Gwiazda 16-ramienna', + ribbonShapeStar24: 'Gwiazda 24-ramienna', + ribbonShapeStar32: 'Gwiazda 32-ramienna', + ribbonShapeIrregularSeal1: 'Eksplozja 1', + ribbonShapeIrregularSeal2: 'Eksplozja 2', + ribbonShapeRibbon: 'Wstążka w dół', + ribbonShapeRibbon2: 'Wstążka w górę', + ribbonShapeWave: 'Fala', + ribbonShapeDoubleWave: 'Fala podwójna', + ribbonShapeFlowProcess: 'Schemat blokowy: proces', + ribbonShapeFlowAlternateProcess: 'Schemat blokowy: proces alternatywny', + ribbonShapeFlowDecision: 'Schemat blokowy: decyzja', + ribbonShapeFlowPredefinedProcess: 'Schemat blokowy: proces wstępnie zdefiniowany', + ribbonShapeFlowInternalStorage: 'Schemat blokowy: magazyn wewnętrzny', + ribbonShapeFlowDocument: 'Schemat blokowy: dokument', + ribbonShapeFlowMultidocument: 'Schemat blokowy: wiele dokumentów', + ribbonShapeFlowTerminator: 'Schemat blokowy: zakończenie', + ribbonShapeFlowPreparation: 'Schemat blokowy: przygotowanie', + ribbonShapeFlowManualInput: 'Schemat blokowy: wprowadzanie ręczne', + ribbonShapeFlowManualOperation: 'Schemat blokowy: operacja ręczna', + ribbonShapeFlowConnector: 'Schemat blokowy: łącznik', + ribbonShapeFlowOffpageConnector: 'Schemat blokowy: łącznik międzystronicowy', + ribbonShapeFlowMagneticDisk: 'Schemat blokowy: dysk magnetyczny', + ribbonShapeFlowMagneticDrum: 'Schemat blokowy: pamięć o dostępie bezpośrednim', + ribbonShapeFlowDisplay: 'Schemat blokowy: ekran', + ribbonShapeFlowDelay: 'Schemat blokowy: opóźnienie', + ribbonShapeFlowOr: 'Schemat blokowy: lub', + ribbonShapeFlowCollate: 'Schemat blokowy: zestawianie', + ribbonShapeFlowSort: 'Schemat blokowy: sortowanie', + ribbonShapeFlowExtract: 'Schemat blokowy: wyodrębnianie', + ribbonShapeFlowMerge: 'Schemat blokowy: scalanie', + ribbonShapeFlowSummingJunction: 'Schemat blokowy: węzeł sumacyjny', + ribbonShapeFlowPunchedTape: 'Schemat blokowy: taśma dziurkowana', + ribbonShapeWedgeRectCallout: 'Objaśnienie prostokątne', + ribbonShapeWedgeRoundRectCallout: 'Objaśnienie prostokątne zaokrąglone', + ribbonShapeWedgeEllipseCallout: 'Objaśnienie owalne', + ribbonShapeCloudCallout: 'Objaśnienie w kształcie chmury', ribbonThemes: 'Motywy', ribbonThemesTip: 'Zmień motyw dokumentu (czcionki + kolory); zostanie zastosowany w programie Word po zapisaniu', @@ -7677,6 +9147,7 @@ export const ribbonStrings = defineStrings({ ribbonStylePreview: 'AaBb', ribbonStylePaneTip: 'Deelvenster Stijlen: blader door alle stijlen, maak of werk stijlen bij op basis van de selectie', + ribbonMoreStyles: 'Meer stijlen', ribbonGroupStyles: 'Stijlen', ribbonAiAssistant: 'Genspark', ribbonAiAssistantTip: 'De AI-assistent openen', @@ -7829,6 +9300,110 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar5: 'Vijfpuntige ster', ribbonShapeRightArrow: 'Pijl naar rechts', ribbonShapeLeftRightArrow: 'Pijl naar links en rechts', + ribbonShapeGroupRects: 'Rechthoeken', + ribbonShapeGroupLines: 'Lijnen', + ribbonShapeLine: 'Lijn', + ribbonShapeLineArrow: 'Pijl', + ribbonShapeLineArrowDouble: 'Dubbele pijl', + ribbonShapeLineBent: 'Gehoekte verbindingslijn', + ribbonShapeLineCurved: 'Gebogen verbindingslijn', + ribbonShapeGroupBasic: 'Basisvormen', + ribbonShapeGroupArrows: 'Pijlen', + ribbonShapeGroupStars: 'Sterren', + ribbonShapeGroupFlowchart: 'Stroomdiagram', + ribbonShapeGroupCallouts: 'Toelichtingen', + ribbonShapeSnip1Rect: 'Rechthoek met één afgesneden hoek', + ribbonShapeSnip2SameRect: 'Rechthoek met afgesneden hoeken aan dezelfde zijde', + ribbonShapeSnip2DiagRect: 'Rechthoek met diagonaal afgesneden hoeken', + ribbonShapeSnipRoundRect: 'Rechthoek met één afgesneden en één afgeronde hoek', + ribbonShapeRound1Rect: 'Rechthoek met één afgeronde hoek', + ribbonShapeRound2SameRect: 'Rechthoek met afgeronde hoeken aan dezelfde zijde', + ribbonShapeRound2DiagRect: 'Rechthoek met diagonaal afgeronde hoeken', + ribbonShapeTrapezoid: 'Trapezium', + ribbonShapeOctagon: 'Achthoek', + ribbonShapePlus: 'Kruis', + ribbonShapeMathPlus: 'Plusteken', + ribbonShapePie: 'Taartpunt', + ribbonShapeChord: 'Koorde', + ribbonShapeTeardrop: 'Traan', + ribbonShapeFrame: 'Kader', + ribbonShapeHalfFrame: 'Half kader', + ribbonShapeCorner: 'L-vorm', + ribbonShapeDiagStripe: 'Diagonale streep', + ribbonShapeDonut: 'Ring', + ribbonShapeNoSmoking: 'Verbodsteken', + ribbonShapeBlockArc: 'Blokboog', + ribbonShapeFoldedCorner: 'Omgevouwen hoek', + ribbonShapeBevel: 'Schuine rand', + ribbonShapeCube: 'Kubus', + ribbonShapeCan: 'Cilinder', + ribbonShapeLightningBolt: 'Bliksemschicht', + ribbonShapeHeart: 'Hart', + ribbonShapeSun: 'Zon', + ribbonShapeMoon: 'Maan', + ribbonShapeCloud: 'Wolk', + ribbonShapeArc: 'Boog', + ribbonShapePlaque: 'Plaquette', + ribbonShapeSmileyFace: 'Smiley', + ribbonShapeLeftBracket: 'Linker vierkante haak', + ribbonShapeRightBracket: 'Rechter vierkante haak', + ribbonShapeLeftBrace: 'Accolade links', + ribbonShapeRightBrace: 'Accolade rechts', + ribbonShapeLeftArrow: 'Pijl naar links', + ribbonShapeUpArrow: 'Pijl omhoog', + ribbonShapeDownArrow: 'Pijl omlaag', + ribbonShapeUpDownArrow: 'Pijl omhoog-omlaag', + ribbonShapeQuadArrow: 'Viervoudige pijl', + ribbonShapeBentArrow: 'Gebogen pijl', + ribbonShapeUturnArrow: 'U-bochtpijl', + ribbonShapeCurvedRightArrow: 'Naar rechts gekromde pijl', + ribbonShapeStripedRightArrow: 'Gestreepte pijl naar rechts', + ribbonShapeNotchedRightArrow: 'Ingekeepte pijl naar rechts', + ribbonShapeChevron: 'Chevron', + ribbonShapeHomePlate: 'Vijfhoekige pijl', + ribbonShapeStar4: 'Ster met 4 punten', + ribbonShapeStar6: 'Ster met 6 punten', + ribbonShapeStar7: 'Ster met 7 punten', + ribbonShapeStar8: 'Ster met 8 punten', + ribbonShapeStar10: 'Ster met 10 punten', + ribbonShapeStar12: 'Ster met 12 punten', + ribbonShapeStar16: 'Ster met 16 punten', + ribbonShapeStar24: 'Ster met 24 punten', + ribbonShapeStar32: 'Ster met 32 punten', + ribbonShapeIrregularSeal1: 'Explosie 1', + ribbonShapeIrregularSeal2: 'Explosie 2', + ribbonShapeRibbon: 'Lint omlaag', + ribbonShapeRibbon2: 'Lint omhoog', + ribbonShapeWave: 'Golf', + ribbonShapeDoubleWave: 'Dubbele golf', + ribbonShapeFlowProcess: 'Stroomdiagram: proces', + ribbonShapeFlowAlternateProcess: 'Stroomdiagram: alternatief proces', + ribbonShapeFlowDecision: 'Stroomdiagram: beslissing', + ribbonShapeFlowPredefinedProcess: 'Stroomdiagram: vooraf gedefinieerd proces', + ribbonShapeFlowInternalStorage: 'Stroomdiagram: interne opslag', + ribbonShapeFlowDocument: 'Stroomdiagram: document', + ribbonShapeFlowMultidocument: 'Stroomdiagram: meerdere documenten', + ribbonShapeFlowTerminator: 'Stroomdiagram: einde', + ribbonShapeFlowPreparation: 'Stroomdiagram: voorbereiding', + ribbonShapeFlowManualInput: 'Stroomdiagram: handmatige invoer', + ribbonShapeFlowManualOperation: 'Stroomdiagram: handmatige bewerking', + ribbonShapeFlowConnector: 'Stroomdiagram: verbinding', + ribbonShapeFlowOffpageConnector: 'Stroomdiagram: verbinding naar andere pagina', + ribbonShapeFlowMagneticDisk: 'Stroomdiagram: magneetschijf', + ribbonShapeFlowMagneticDrum: 'Stroomdiagram: opslag met directe toegang', + ribbonShapeFlowDisplay: 'Stroomdiagram: beeldscherm', + ribbonShapeFlowDelay: 'Stroomdiagram: vertraging', + ribbonShapeFlowOr: 'Stroomdiagram: of', + ribbonShapeFlowCollate: 'Stroomdiagram: collationeren', + ribbonShapeFlowSort: 'Stroomdiagram: sorteren', + ribbonShapeFlowExtract: 'Stroomdiagram: extraheren', + ribbonShapeFlowMerge: 'Stroomdiagram: samenvoegen', + ribbonShapeFlowSummingJunction: 'Stroomdiagram: sommatiepunt', + ribbonShapeFlowPunchedTape: 'Stroomdiagram: ponsband', + ribbonShapeWedgeRectCallout: 'Rechthoekige toelichting', + ribbonShapeWedgeRoundRectCallout: 'Afgeronde rechthoekige toelichting', + ribbonShapeWedgeEllipseCallout: 'Ovale toelichting', + ribbonShapeCloudCallout: 'Wolkvormige toelichting', ribbonThemes: "Thema's", ribbonThemesTip: 'Het documentthema wijzigen (lettertypen + kleuren); wordt na het opslaan toegepast in Word', @@ -8216,6 +9791,7 @@ export const ribbonStrings = defineStrings({ ribbonStylePreview: 'AaBb', ribbonStylePaneTip: 'Anak tetingkap gaya: lihat semua gaya, cipta atau kemas kini gaya daripada pilihan', + ribbonMoreStyles: 'Lebih banyak gaya', ribbonGroupStyles: 'Gaya', ribbonAiAssistant: 'Genspark', ribbonAiAssistantTip: 'Buka pembantu AI', @@ -8369,6 +9945,110 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar5: 'Bintang 5 Bucu', ribbonShapeRightArrow: 'Anak Panah Kanan', ribbonShapeLeftRightArrow: 'Anak Panah Kiri-Kanan', + ribbonShapeGroupRects: 'Segi Empat Tepat', + ribbonShapeGroupLines: 'Garisan', + ribbonShapeLine: 'Garis lurus', + ribbonShapeLineArrow: 'Anak panah', + ribbonShapeLineArrowDouble: 'Anak panah berganda', + ribbonShapeLineBent: 'Penyambung siku', + ribbonShapeLineCurved: 'Penyambung melengkung', + ribbonShapeGroupBasic: 'Bentuk Asas', + ribbonShapeGroupArrows: 'Anak Panah', + ribbonShapeGroupStars: 'Bintang', + ribbonShapeGroupFlowchart: 'Carta Alir', + ribbonShapeGroupCallouts: 'Petak bual', + ribbonShapeSnip1Rect: 'Segi Empat Tepat Potong Satu Bucu', + ribbonShapeSnip2SameRect: 'Segi Empat Tepat Potong Bucu Sisi Sama', + ribbonShapeSnip2DiagRect: 'Segi Empat Tepat Potong Bucu Pepenjuru', + ribbonShapeSnipRoundRect: 'Segi Empat Tepat Potong dan Bulat Satu Bucu', + ribbonShapeRound1Rect: 'Segi Empat Tepat Bulat Satu Bucu', + ribbonShapeRound2SameRect: 'Segi Empat Tepat Bulat Bucu Sisi Sama', + ribbonShapeRound2DiagRect: 'Segi Empat Tepat Bulat Bucu Pepenjuru', + ribbonShapeTrapezoid: 'Trapezium', + ribbonShapeOctagon: 'Oktagon', + ribbonShapePlus: 'Palang', + ribbonShapeMathPlus: 'Tanda tambah', + ribbonShapePie: 'Pai', + ribbonShapeChord: 'Perentas', + ribbonShapeTeardrop: 'Titisan Air Mata', + ribbonShapeFrame: 'Bingkai', + ribbonShapeHalfFrame: 'Separuh Bingkai', + ribbonShapeCorner: 'Bentuk L', + ribbonShapeDiagStripe: 'Jalur Pepenjuru', + ribbonShapeDonut: 'Donut', + ribbonShapeNoSmoking: 'Simbol "Dilarang"', + ribbonShapeBlockArc: 'Lengkok blok', + ribbonShapeFoldedCorner: 'Bucu Terlipat', + ribbonShapeBevel: 'Serong', + ribbonShapeCube: 'Kubus', + ribbonShapeCan: 'Silinder', + ribbonShapeLightningBolt: 'Kilat', + ribbonShapeHeart: 'Hati', + ribbonShapeSun: 'Matahari', + ribbonShapeMoon: 'Bulan', + ribbonShapeCloud: 'Awan', + ribbonShapeArc: 'Lengkok', + ribbonShapePlaque: 'Plak', + ribbonShapeSmileyFace: 'Muka Senyum', + ribbonShapeLeftBracket: 'Kurungan Siku Kiri', + ribbonShapeRightBracket: 'Kurungan Siku Kanan', + ribbonShapeLeftBrace: 'Pendakap kiri', + ribbonShapeRightBrace: 'Pendakap kanan', + ribbonShapeLeftArrow: 'Anak Panah Kiri', + ribbonShapeUpArrow: 'Anak Panah Atas', + ribbonShapeDownArrow: 'Anak Panah Bawah', + ribbonShapeUpDownArrow: 'Anak Panah Atas-Bawah', + ribbonShapeQuadArrow: 'Anak Panah Empat Arah', + ribbonShapeBentArrow: 'Anak Panah Bengkok', + ribbonShapeUturnArrow: 'Anak Panah Pusing Balik', + ribbonShapeCurvedRightArrow: 'Anak Panah Melengkung ke Kanan', + ribbonShapeStripedRightArrow: 'Anak Panah Berjalur ke Kanan', + ribbonShapeNotchedRightArrow: 'Anak Panah Kanan Bertakuk', + ribbonShapeChevron: 'Cevron', + ribbonShapeHomePlate: 'Anak Panah Pentagon', + ribbonShapeStar4: 'Bintang 4 Bucu', + ribbonShapeStar6: 'Bintang 6 Bucu', + ribbonShapeStar7: 'Bintang 7 Bucu', + ribbonShapeStar8: 'Bintang 8 Bucu', + ribbonShapeStar10: 'Bintang 10 Bucu', + ribbonShapeStar12: 'Bintang 12 Bucu', + ribbonShapeStar16: 'Bintang 16 Bucu', + ribbonShapeStar24: 'Bintang 24 Bucu', + ribbonShapeStar32: 'Bintang 32 Bucu', + ribbonShapeIrregularSeal1: 'Letupan 1', + ribbonShapeIrregularSeal2: 'Letupan 2', + ribbonShapeRibbon: 'Reben Bawah', + ribbonShapeRibbon2: 'Reben Atas', + ribbonShapeWave: 'Gelombang', + ribbonShapeDoubleWave: 'Gelombang Berganda', + ribbonShapeFlowProcess: 'Carta Alir: Proses', + ribbonShapeFlowAlternateProcess: 'Carta Alir: Proses Alternatif', + ribbonShapeFlowDecision: 'Carta Alir: Keputusan', + ribbonShapeFlowPredefinedProcess: 'Carta Alir: Proses Pratakrif', + ribbonShapeFlowInternalStorage: 'Carta Alir: Storan Dalaman', + ribbonShapeFlowDocument: 'Carta Alir: Dokumen', + ribbonShapeFlowMultidocument: 'Carta Alir: Multidokumen', + ribbonShapeFlowTerminator: 'Carta Alir: Penamat', + ribbonShapeFlowPreparation: 'Carta Alir: Persediaan', + ribbonShapeFlowManualInput: 'Carta Alir: Input Manual', + ribbonShapeFlowManualOperation: 'Carta Alir: Operasi Manual', + ribbonShapeFlowConnector: 'Carta Alir: Penyambung', + ribbonShapeFlowOffpageConnector: 'Carta Alir: Penyambung Luar Halaman', + ribbonShapeFlowMagneticDisk: 'Carta Alir: Cakera Magnet', + ribbonShapeFlowMagneticDrum: 'Carta Alir: Storan Capaian Terus', + ribbonShapeFlowDisplay: 'Carta Alir: Paparan', + ribbonShapeFlowDelay: 'Carta Alir: Lengah', + ribbonShapeFlowOr: 'Carta Alir: Atau', + ribbonShapeFlowCollate: 'Carta Alir: Susun Semak', + ribbonShapeFlowSort: 'Carta Alir: Isih', + ribbonShapeFlowExtract: 'Carta Alir: Ekstrak', + ribbonShapeFlowMerge: 'Carta Alir: Cantum', + ribbonShapeFlowSummingJunction: 'Carta Alir: Simpang Penjumlahan', + ribbonShapeFlowPunchedTape: 'Carta Alir: Pita Bertebuk', + ribbonShapeWedgeRectCallout: 'Petak bual segi empat', + ribbonShapeWedgeRoundRectCallout: 'Petak bual segi empat bulat', + ribbonShapeWedgeEllipseCallout: 'Petak bual bujur', + ribbonShapeCloudCallout: 'Petak bual awan', ribbonThemes: 'Tema', ribbonThemesTip: 'Tukar tema dokumen (fon + warna); digunakan dalam Word selepas menyimpan', ribbonFonts: 'Fon', @@ -8750,6 +10430,7 @@ export const ribbonStrings = defineStrings({ ribbonStyleIntenseEmphasis: 'הדגשה חזקה', ribbonStylePreview: 'AaBb', ribbonStylePaneTip: 'חלונית סגנונות: עיין בכל הסגנונות, צור או עדכן סגנונות מהקטע הנבחר', + ribbonMoreStyles: 'סגנונות נוספים', ribbonGroupStyles: 'סגנונות', ribbonAiAssistant: 'Genspark', ribbonAiAssistantTip: 'פתח את עוזר ה-AI', @@ -8902,6 +10583,110 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar5: 'כוכב 5 קצוות', ribbonShapeRightArrow: 'חץ ימינה', ribbonShapeLeftRightArrow: 'חץ שמאלה-ימינה', + ribbonShapeGroupRects: 'מלבנים', + ribbonShapeGroupLines: 'קווים', + ribbonShapeLine: 'קו', + ribbonShapeLineArrow: 'חץ', + ribbonShapeLineArrowDouble: 'חץ כפול', + ribbonShapeLineBent: 'מחבר מרפק', + ribbonShapeLineCurved: 'מחבר מעוקל', + ribbonShapeGroupBasic: 'צורות בסיסיות', + ribbonShapeGroupArrows: 'חצים', + ribbonShapeGroupStars: 'כוכבים', + ribbonShapeGroupFlowchart: 'תרשים זרימה', + ribbonShapeGroupCallouts: 'הסברים', + ribbonShapeSnip1Rect: 'מלבן עם פינה חתוכה אחת', + ribbonShapeSnip2SameRect: 'מלבן עם פינות חתוכות באותו צד', + ribbonShapeSnip2DiagRect: 'מלבן עם פינות חתוכות באלכסון', + ribbonShapeSnipRoundRect: 'מלבן עם פינה חתוכה ופינה מעוגלת', + ribbonShapeRound1Rect: 'מלבן עם פינה מעוגלת אחת', + ribbonShapeRound2SameRect: 'מלבן עם פינות מעוגלות באותו צד', + ribbonShapeRound2DiagRect: 'מלבן עם פינות מעוגלות באלכסון', + ribbonShapeTrapezoid: 'טרפז', + ribbonShapeOctagon: 'מתומן', + ribbonShapePlus: 'צלב', + ribbonShapeMathPlus: 'סימן חיבור', + ribbonShapePie: 'עוגה', + ribbonShapeChord: 'מיתר', + ribbonShapeTeardrop: 'דמעה', + ribbonShapeFrame: 'מסגרת', + ribbonShapeHalfFrame: 'חצי מסגרת', + ribbonShapeCorner: 'צורת L', + ribbonShapeDiagStripe: 'פס אלכסוני', + ribbonShapeDonut: 'טבעת', + ribbonShapeNoSmoking: 'סמל איסור', + ribbonShapeBlockArc: 'קשת מלאה', + ribbonShapeFoldedCorner: 'פינה מקופלת', + ribbonShapeBevel: 'שיפוע', + ribbonShapeCube: 'קובייה', + ribbonShapeCan: 'גליל', + ribbonShapeLightningBolt: 'ברק', + ribbonShapeHeart: 'לב', + ribbonShapeSun: 'שמש', + ribbonShapeMoon: 'ירח', + ribbonShapeCloud: 'ענן', + ribbonShapeArc: 'קשת', + ribbonShapePlaque: 'לוחית', + ribbonShapeSmileyFace: 'פרצוף מחייך', + ribbonShapeLeftBracket: 'סוגר מרובע שמאלי', + ribbonShapeRightBracket: 'סוגר מרובע ימני', + ribbonShapeLeftBrace: 'סוגר מסולסל שמאלי', + ribbonShapeRightBrace: 'סוגר מסולסל ימני', + ribbonShapeLeftArrow: 'חץ שמאלה', + ribbonShapeUpArrow: 'חץ למעלה', + ribbonShapeDownArrow: 'חץ למטה', + ribbonShapeUpDownArrow: 'חץ למעלה-למטה', + ribbonShapeQuadArrow: 'חץ לארבעה כיוונים', + ribbonShapeBentArrow: 'חץ מכופף', + ribbonShapeUturnArrow: 'חץ פניית פרסה', + ribbonShapeCurvedRightArrow: 'חץ מעוקל ימינה', + ribbonShapeStripedRightArrow: 'חץ מפוספס ימינה', + ribbonShapeNotchedRightArrow: 'חץ ימינה עם חריץ', + ribbonShapeChevron: 'שברון', + ribbonShapeHomePlate: 'חץ מחומש', + ribbonShapeStar4: 'כוכב 4 קצוות', + ribbonShapeStar6: 'כוכב 6 קצוות', + ribbonShapeStar7: 'כוכב 7 קצוות', + ribbonShapeStar8: 'כוכב 8 קצוות', + ribbonShapeStar10: 'כוכב 10 קצוות', + ribbonShapeStar12: 'כוכב 12 קצוות', + ribbonShapeStar16: 'כוכב 16 קצוות', + ribbonShapeStar24: 'כוכב 24 קצוות', + ribbonShapeStar32: 'כוכב 32 קצוות', + ribbonShapeIrregularSeal1: 'פיצוץ 1', + ribbonShapeIrregularSeal2: 'פיצוץ 2', + ribbonShapeRibbon: 'סרט כלפי מטה', + ribbonShapeRibbon2: 'סרט כלפי מעלה', + ribbonShapeWave: 'גל', + ribbonShapeDoubleWave: 'גל כפול', + ribbonShapeFlowProcess: 'תרשים זרימה: תהליך', + ribbonShapeFlowAlternateProcess: 'תרשים זרימה: תהליך חלופי', + ribbonShapeFlowDecision: 'תרשים זרימה: החלטה', + ribbonShapeFlowPredefinedProcess: 'תרשים זרימה: תהליך מוגדר מראש', + ribbonShapeFlowInternalStorage: 'תרשים זרימה: אחסון פנימי', + ribbonShapeFlowDocument: 'תרשים זרימה: מסמך', + ribbonShapeFlowMultidocument: 'תרשים זרימה: מסמכים מרובים', + ribbonShapeFlowTerminator: 'תרשים זרימה: סיום', + ribbonShapeFlowPreparation: 'תרשים זרימה: הכנה', + ribbonShapeFlowManualInput: 'תרשים זרימה: קלט ידני', + ribbonShapeFlowManualOperation: 'תרשים זרימה: פעולה ידנית', + ribbonShapeFlowConnector: 'תרשים זרימה: מחבר', + ribbonShapeFlowOffpageConnector: 'תרשים זרימה: מחבר מחוץ לעמוד', + ribbonShapeFlowMagneticDisk: 'תרשים זרימה: דיסק מגנטי', + ribbonShapeFlowMagneticDrum: 'תרשים זרימה: אחסון בגישה ישירה', + ribbonShapeFlowDisplay: 'תרשים זרימה: תצוגה', + ribbonShapeFlowDelay: 'תרשים זרימה: השהיה', + ribbonShapeFlowOr: 'תרשים זרימה: או', + ribbonShapeFlowCollate: 'תרשים זרימה: איסוף', + ribbonShapeFlowSort: 'תרשים זרימה: מיון', + ribbonShapeFlowExtract: 'תרשים זרימה: חילוץ', + ribbonShapeFlowMerge: 'תרשים זרימה: מיזוג', + ribbonShapeFlowSummingJunction: 'תרשים זרימה: צומת סיכום', + ribbonShapeFlowPunchedTape: 'תרשים זרימה: סרט מנוקב', + ribbonShapeWedgeRectCallout: 'הסבר מלבני', + ribbonShapeWedgeRoundRectCallout: 'הסבר מלבני מעוגל', + ribbonShapeWedgeEllipseCallout: 'הסבר אליפטי', + ribbonShapeCloudCallout: 'הסבר בצורת ענן', ribbonThemes: 'ערכות נושא', ribbonThemesTip: 'שנה את ערכת הנושא של המסמך (גופנים + צבעים); תוחל ב-Word לאחר השמירה', ribbonFonts: 'גופנים', @@ -9277,6 +11062,7 @@ export const ribbonStrings = defineStrings({ ribbonStyleIntenseEmphasis: 'गहन ज़ोर', ribbonStylePreview: 'AaBb', ribbonStylePaneTip: 'शैलियाँ फलक: सभी शैलियाँ देखें, चयन से नई शैली बनाएँ या अद्यतन करें', + ribbonMoreStyles: 'और शैलियाँ', ribbonGroupStyles: 'शैलियाँ', ribbonAiAssistant: 'Genspark', ribbonAiAssistantTip: 'AI सहायक खोलें', @@ -9429,6 +11215,110 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar5: '5-कोणीय तारा', ribbonShapeRightArrow: 'दायाँ तीर', ribbonShapeLeftRightArrow: 'बाएँ-दाएँ तीर', + ribbonShapeGroupRects: 'आयत', + ribbonShapeGroupLines: 'रेखाएँ', + ribbonShapeLine: 'रेखा', + ribbonShapeLineArrow: 'तीर', + ribbonShapeLineArrowDouble: 'दोहरा तीर', + ribbonShapeLineBent: 'कोहनी कनेक्टर', + ribbonShapeLineCurved: 'वक्र कनेक्टर', + ribbonShapeGroupBasic: 'मूल आकृतियाँ', + ribbonShapeGroupArrows: 'तीर', + ribbonShapeGroupStars: 'तारे', + ribbonShapeGroupFlowchart: 'फ़्लोचार्ट', + ribbonShapeGroupCallouts: 'कॉलआउट', + ribbonShapeSnip1Rect: 'एक कटे कोने वाला आयत', + ribbonShapeSnip2SameRect: 'एक ही ओर कटे कोनों वाला आयत', + ribbonShapeSnip2DiagRect: 'विकर्ण कटे कोनों वाला आयत', + ribbonShapeSnipRoundRect: 'एक कटे और एक गोल कोने वाला आयत', + ribbonShapeRound1Rect: 'एक गोल कोने वाला आयत', + ribbonShapeRound2SameRect: 'एक ही ओर गोल कोनों वाला आयत', + ribbonShapeRound2DiagRect: 'विकर्ण गोल कोनों वाला आयत', + ribbonShapeTrapezoid: 'समलंब', + ribbonShapeOctagon: 'अष्टभुज', + ribbonShapePlus: 'क्रॉस', + ribbonShapeMathPlus: 'जोड़ चिह्न', + ribbonShapePie: 'पाई', + ribbonShapeChord: 'जीवा', + ribbonShapeTeardrop: 'अश्रु बूँद', + ribbonShapeFrame: 'फ़्रेम', + ribbonShapeHalfFrame: 'आधा फ़्रेम', + ribbonShapeCorner: 'L-आकृति', + ribbonShapeDiagStripe: 'विकर्ण पट्टी', + ribbonShapeDonut: 'डोनट', + ribbonShapeNoSmoking: 'निषेध चिह्न', + ribbonShapeBlockArc: 'ब्लॉक चाप', + ribbonShapeFoldedCorner: 'मुड़ा हुआ कोना', + ribbonShapeBevel: 'बेवेल', + ribbonShapeCube: 'घन', + ribbonShapeCan: 'बेलन', + ribbonShapeLightningBolt: 'बिजली', + ribbonShapeHeart: 'हृदय', + ribbonShapeSun: 'सूर्य', + ribbonShapeMoon: 'चंद्रमा', + ribbonShapeCloud: 'बादल', + ribbonShapeArc: 'चाप', + ribbonShapePlaque: 'पट्टिका', + ribbonShapeSmileyFace: 'मुस्कुराता चेहरा', + ribbonShapeLeftBracket: 'बायाँ कोष्ठक', + ribbonShapeRightBracket: 'दायाँ कोष्ठक', + ribbonShapeLeftBrace: 'बायाँ ब्रेस', + ribbonShapeRightBrace: 'दायाँ ब्रेस', + ribbonShapeLeftArrow: 'बायाँ तीर', + ribbonShapeUpArrow: 'ऊपर तीर', + ribbonShapeDownArrow: 'नीचे तीर', + ribbonShapeUpDownArrow: 'ऊपर-नीचे तीर', + ribbonShapeQuadArrow: 'चार दिशाओं वाला तीर', + ribbonShapeBentArrow: 'मुड़ा हुआ तीर', + ribbonShapeUturnArrow: 'यू-टर्न तीर', + ribbonShapeCurvedRightArrow: 'दाईं ओर वक्र तीर', + ribbonShapeStripedRightArrow: 'धारीदार दायाँ तीर', + ribbonShapeNotchedRightArrow: 'कटा हुआ दायाँ तीर', + ribbonShapeChevron: 'शेवरॉन', + ribbonShapeHomePlate: 'पंचभुज तीर', + ribbonShapeStar4: '4-कोणीय तारा', + ribbonShapeStar6: '6-कोणीय तारा', + ribbonShapeStar7: '7-कोणीय तारा', + ribbonShapeStar8: '8-कोणीय तारा', + ribbonShapeStar10: '10-कोणीय तारा', + ribbonShapeStar12: '12-कोणीय तारा', + ribbonShapeStar16: '16-कोणीय तारा', + ribbonShapeStar24: '24-कोणीय तारा', + ribbonShapeStar32: '32-कोणीय तारा', + ribbonShapeIrregularSeal1: 'विस्फोट 1', + ribbonShapeIrregularSeal2: 'विस्फोट 2', + ribbonShapeRibbon: 'नीचे की ओर रिबन', + ribbonShapeRibbon2: 'ऊपर की ओर रिबन', + ribbonShapeWave: 'तरंग', + ribbonShapeDoubleWave: 'दोहरी तरंग', + ribbonShapeFlowProcess: 'फ़्लोचार्ट: प्रक्रिया', + ribbonShapeFlowAlternateProcess: 'फ़्लोचार्ट: वैकल्पिक प्रक्रिया', + ribbonShapeFlowDecision: 'फ़्लोचार्ट: निर्णय', + ribbonShapeFlowPredefinedProcess: 'फ़्लोचार्ट: पूर्वनिर्धारित प्रक्रिया', + ribbonShapeFlowInternalStorage: 'फ़्लोचार्ट: आंतरिक संग्रहण', + ribbonShapeFlowDocument: 'फ़्लोचार्ट: दस्तावेज़', + ribbonShapeFlowMultidocument: 'फ़्लोचार्ट: बहु-दस्तावेज़', + ribbonShapeFlowTerminator: 'फ़्लोचार्ट: समापन', + ribbonShapeFlowPreparation: 'फ़्लोचार्ट: तैयारी', + ribbonShapeFlowManualInput: 'फ़्लोचार्ट: मैन्युअल इनपुट', + ribbonShapeFlowManualOperation: 'फ़्लोचार्ट: मैन्युअल संचालन', + ribbonShapeFlowConnector: 'फ़्लोचार्ट: संयोजक', + ribbonShapeFlowOffpageConnector: 'फ़्लोचार्ट: पृष्ठ-बाह्य संयोजक', + ribbonShapeFlowMagneticDisk: 'फ़्लोचार्ट: चुंबकीय डिस्क', + ribbonShapeFlowMagneticDrum: 'फ़्लोचार्ट: प्रत्यक्ष पहुँच संग्रहण', + ribbonShapeFlowDisplay: 'फ़्लोचार्ट: प्रदर्शन', + ribbonShapeFlowDelay: 'फ़्लोचार्ट: विलंब', + ribbonShapeFlowOr: 'फ़्लोचार्ट: या', + ribbonShapeFlowCollate: 'फ़्लोचार्ट: मिलान', + ribbonShapeFlowSort: 'फ़्लोचार्ट: छँटाई', + ribbonShapeFlowExtract: 'फ़्लोचार्ट: निष्कर्षण', + ribbonShapeFlowMerge: 'फ़्लोचार्ट: विलय', + ribbonShapeFlowSummingJunction: 'फ़्लोचार्ट: योग जंक्शन', + ribbonShapeFlowPunchedTape: 'फ़्लोचार्ट: छिद्रित टेप', + ribbonShapeWedgeRectCallout: 'आयताकार कॉलआउट', + ribbonShapeWedgeRoundRectCallout: 'गोल आयताकार कॉलआउट', + ribbonShapeWedgeEllipseCallout: 'अंडाकार कॉलआउट', + ribbonShapeCloudCallout: 'बादल कॉलआउट', ribbonThemes: 'थीम', ribbonThemesTip: 'दस्तावेज़ की थीम बदलें (फ़ॉन्ट + रंग); सहेजने के बाद Word में लागू होती है', ribbonFonts: 'फ़ॉन्ट', @@ -9811,6 +11701,7 @@ export const ribbonStrings = defineStrings({ ribbonStyleIntenseEmphasis: '鮮明強調', ribbonStylePreview: 'Aa文', ribbonStylePaneTip: '樣式窗格:檢視全部樣式,從選取範圍新增/更新樣式', + ribbonMoreStyles: '更多樣式', ribbonGroupStyles: '樣式', ribbonAiAssistant: 'Genspark', ribbonAiAssistantTip: '開啟 AI 助理', @@ -9961,6 +11852,110 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar5: '五角星', ribbonShapeRightArrow: '右箭號', ribbonShapeLeftRightArrow: '左右箭號', + ribbonShapeGroupRects: '矩形', + ribbonShapeGroupLines: '線條', + ribbonShapeLine: '直線', + ribbonShapeLineArrow: '箭頭', + ribbonShapeLineArrowDouble: '雙箭頭', + ribbonShapeLineBent: '肘形接線', + ribbonShapeLineCurved: '曲線接線', + ribbonShapeGroupBasic: '基本圖案', + ribbonShapeGroupArrows: '箭頭', + ribbonShapeGroupStars: '星形', + ribbonShapeGroupFlowchart: '流程圖', + ribbonShapeGroupCallouts: '圖說文字', + ribbonShapeSnip1Rect: '剪去單角矩形', + ribbonShapeSnip2SameRect: '剪去同側角矩形', + ribbonShapeSnip2DiagRect: '剪去對角矩形', + ribbonShapeSnipRoundRect: '剪去及圓化單角矩形', + ribbonShapeRound1Rect: '圓化單角矩形', + ribbonShapeRound2SameRect: '圓化同側角矩形', + ribbonShapeRound2DiagRect: '圓化對角矩形', + ribbonShapeTrapezoid: '梯形', + ribbonShapeOctagon: '八邊形', + ribbonShapePlus: '十字形', + ribbonShapeMathPlus: '加號', + ribbonShapePie: '派形', + ribbonShapeChord: '弦形', + ribbonShapeTeardrop: '淚滴形', + ribbonShapeFrame: '框架', + ribbonShapeHalfFrame: '半框架', + ribbonShapeCorner: 'L 形', + ribbonShapeDiagStripe: '斜紋', + ribbonShapeDonut: '圓環', + ribbonShapeNoSmoking: '禁止符號', + ribbonShapeBlockArc: '實心弧形', + ribbonShapeFoldedCorner: '摺角', + ribbonShapeBevel: '斜角', + ribbonShapeCube: '立方體', + ribbonShapeCan: '圓柱', + ribbonShapeLightningBolt: '閃電', + ribbonShapeHeart: '心形', + ribbonShapeSun: '太陽', + ribbonShapeMoon: '新月形', + ribbonShapeCloud: '雲朵形', + ribbonShapeArc: '弧形', + ribbonShapePlaque: '銘牌', + ribbonShapeSmileyFace: '笑臉', + ribbonShapeLeftBracket: '左中括號', + ribbonShapeRightBracket: '右中括號', + ribbonShapeLeftBrace: '左大括弧', + ribbonShapeRightBrace: '右大括弧', + ribbonShapeLeftArrow: '左箭頭', + ribbonShapeUpArrow: '上箭頭', + ribbonShapeDownArrow: '下箭頭', + ribbonShapeUpDownArrow: '上下箭頭', + ribbonShapeQuadArrow: '十字箭頭', + ribbonShapeBentArrow: '轉彎箭頭', + ribbonShapeUturnArrow: '迴轉箭頭', + ribbonShapeCurvedRightArrow: '右弧形箭頭', + ribbonShapeStripedRightArrow: '條紋右箭頭', + ribbonShapeNotchedRightArrow: '缺口右箭頭', + ribbonShapeChevron: 'V 形', + ribbonShapeHomePlate: '燕尾形', + ribbonShapeStar4: '四角星', + ribbonShapeStar6: '六角星', + ribbonShapeStar7: '七角星', + ribbonShapeStar8: '八角星', + ribbonShapeStar10: '十角星', + ribbonShapeStar12: '十二角星', + ribbonShapeStar16: '十六角星', + ribbonShapeStar24: '二十四角星', + ribbonShapeStar32: '三十二角星', + ribbonShapeIrregularSeal1: '爆炸 1', + ribbonShapeIrregularSeal2: '爆炸 2', + ribbonShapeRibbon: '下彎帶形', + ribbonShapeRibbon2: '上彎帶形', + ribbonShapeWave: '波浪', + ribbonShapeDoubleWave: '雙波浪', + ribbonShapeFlowProcess: '處理程序', + ribbonShapeFlowAlternateProcess: '替代處理程序', + ribbonShapeFlowDecision: '決策', + ribbonShapeFlowPredefinedProcess: '預設處理程序', + ribbonShapeFlowInternalStorage: '內部儲存體', + ribbonShapeFlowDocument: '文件', + ribbonShapeFlowMultidocument: '多重文件', + ribbonShapeFlowTerminator: '終止', + ribbonShapeFlowPreparation: '準備作業', + ribbonShapeFlowManualInput: '手動輸入', + ribbonShapeFlowManualOperation: '手動作業', + ribbonShapeFlowConnector: '接點', + ribbonShapeFlowOffpageConnector: '換頁接點', + ribbonShapeFlowMagneticDisk: '磁碟', + ribbonShapeFlowMagneticDrum: '直接存取儲存體', + ribbonShapeFlowDisplay: '顯示', + ribbonShapeFlowDelay: '延遲', + ribbonShapeFlowOr: '或', + ribbonShapeFlowCollate: '對照', + ribbonShapeFlowSort: '排序', + ribbonShapeFlowExtract: '抽選', + ribbonShapeFlowMerge: '合併', + ribbonShapeFlowSummingJunction: '加總接點', + ribbonShapeFlowPunchedTape: '打孔紙帶', + ribbonShapeWedgeRectCallout: '矩形圖說文字', + ribbonShapeWedgeRoundRectCallout: '圓角矩形圖說文字', + ribbonShapeWedgeEllipseCallout: '橢圓形圖說文字', + ribbonShapeCloudCallout: '雲朵形圖說文字', ribbonThemes: '佈景主題', ribbonThemesTip: '變更文件佈景主題(字型 + 色彩),儲存後在 Word 中生效', ribbonFonts: '字型', diff --git a/apps/docs/src/renderer/line-metrics.ts b/apps/docs/src/renderer/line-metrics.ts index 8842b68..874e177 100644 --- a/apps/docs/src/renderer/line-metrics.ts +++ b/apps/docs/src/renderer/line-metrics.ts @@ -291,6 +291,19 @@ export function cssFontFamily(font: string): string { return `${chain(font, serifLike ? CJK_SERIF : CJK_SANS)},${serifLike ? 'serif' : 'sans-serif'}` } +/** + * Fallback chain for a dual-slot run (w:ascii ≠ w:eastAsia): Latin families first, + * then the full East Asian chain. The Latin part drops its own CJK/generic fallbacks + * so CJK glyphs fall through to the eastAsia font instead of a lookalike. + */ +export function cssDualFontFamily(ascii: string, eastAsia: string): string { + if (ascii === eastAsia) return cssFontFamily(ascii) + const latin = cssFontFamily(ascii) + .split(',') + .filter((f) => !/noto (sans|serif) cjk/i.test(f) && !/^(serif|sans-serif|monospace)$/.test(f)) + return `${latin.join(',')},${cssFontFamily(eastAsia)}` +} + /** Text contains CJK characters (decides the line-height factor: CJK lines measure ~1.3em per Chinese font metrics) */ export function textHasCjk(text: string): boolean { for (const ch of text) { diff --git a/apps/docs/src/renderer/styles.css b/apps/docs/src/renderer/styles.css index 1a53b0c..8832f29 100644 --- a/apps/docs/src/renderer/styles.css +++ b/apps/docs/src/renderer/styles.css @@ -1217,23 +1217,32 @@ button { position-try-fallbacks: flip-inline; position-visibility: anchors-visible; z-index: 60; - display: grid; - grid-template-columns: repeat(4, 64px); - gap: 4px; + width: 312px; + max-height: 420px; + overflow-y: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); - padding: 8px; + padding: 6px; +} + +.shape-group-title { + padding: 6px 4px 2px; + font-size: 11px; + color: var(--text-dim, #797775); +} + +.shape-grid { + display: grid; + grid-template-columns: repeat(9, 1fr); } .shape-cell { display: flex; - flex-direction: column; align-items: center; - gap: 3px; - width: 64px; - padding: 4px 2px; + justify-content: center; + padding: 5px 0; border: none; background: none; border-radius: 4px; @@ -1245,21 +1254,6 @@ button { background: var(--active-bg); } -.shape-preview { - display: block; - width: 36px; - height: 24px; - border: 1.5px solid #2f5496; -} - -.shape-label { - font-size: 10px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - max-width: 60px; -} - /* ---- WordArt picker panel ---- */ .wordart-palette { @@ -1690,8 +1684,65 @@ th.cell-rev-del { } /* style gallery */ -.style-gallery { +/* The Styles group absorbs the row's free width and shrinks with the window + (min-width keeps two cards + the expander visible); extra cards clip inside + .style-gallery instead of widening the scrolling ribbon row, and the + expander below makes the clipped ones reachable. */ +.ribbon-group-styles { + flex: 1; + min-width: 178px; +} + +.style-gallery-wrap { gap: 4px; + min-width: 0; +} + +.style-gallery { + display: flex; + align-items: center; + gap: 4px; + flex: 1 1 0; + min-width: 0; + overflow: hidden; +} + +.style-gallery-more { + flex: 0 0 auto; + width: 17px; + height: 62px; + padding: 0; + border: 1px solid var(--border); + border-radius: 4px; + background: var(--surface); + color: var(--text-dim); + cursor: pointer; +} + +.style-gallery-more:hover { + border-color: var(--border-strong); + background: var(--hover); +} + +.style-gallery-menu { + position: fixed; + position-anchor: --rb-drop-wrap; + top: calc(anchor(bottom) + 4px); + left: anchor(left); + position-try-fallbacks: flip-inline; + position-visibility: anchors-visible; + z-index: 60; + width: min(478px, calc(100vw - 16px)); + max-height: 60vh; + overflow-y: auto; + display: grid; + grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); + gap: 4px; + background: var(--surface); + border: 1px solid var(--border-strong); + border-radius: 6px; + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); + padding: 8px; } .style-card { @@ -1700,6 +1751,7 @@ th.cell-rev-del { align-items: center; justify-content: center; gap: 2px; + flex: 0 0 auto; width: 74px; height: 62px; border: 1px solid var(--border); @@ -1708,6 +1760,10 @@ th.cell-rev-del { cursor: pointer; } +.style-gallery-menu .style-card { + width: auto; +} + .style-card:hover:not(:disabled) { border-color: var(--border-strong); background: var(--hover); @@ -3084,6 +3140,35 @@ th.cell-rev-del { pointer-events: auto; } +/* corner resize handle of floating shape/textbox/WordArt/line boxes */ +.box-resize-handle { + position: absolute; + z-index: 4; + right: -6px; + bottom: -6px; + width: 11px; + height: 11px; + border: 1px solid var(--word-blue); + border-radius: 2px; + background: var(--surface); + cursor: nwse-resize; + opacity: 0; + pointer-events: none; +} + +.doc-protected-textboxes:hover > .box-resize-handle, +.doc-protected-textboxes.ProseMirror-selectednode > .box-resize-handle, +.doc-protected-chart:hover > .box-resize-handle, +.doc-protected-chart.ProseMirror-selectednode > .box-resize-handle { + opacity: 1; + pointer-events: auto; +} + +.doc-content-editing > .box-resize-handle { + opacity: 0; + pointer-events: none; +} + /* Native ProseMirror tables */ .doc-page > .doc-table { margin: 2px 0; @@ -3549,10 +3634,8 @@ th.cell-rev-del { .doc-chart-svg { display: block; - width: 100%; - max-width: 560px; + max-width: 100%; margin: 0 auto; - height: auto; } .doc-chart-grid { @@ -5113,7 +5196,11 @@ body.docs-crop-active doubles as the bottom padding, so overflowing never grows the strip and shifts its content up */ overflow-x: scroll; - padding: 13px 14px 0; + /* side insets are transparent borders, not padding: overflow clips at the + padding edge, so side padding would let scrolled items slide flush against + the box edges — borders keep the 14px gaps while scrolling */ + padding: 13px 0 0; + border-inline: 14px solid transparent; margin-bottom: -6px; } diff --git a/apps/docs/tests/ai-deleted-revision-context.test.ts b/apps/docs/tests/ai-deleted-revision-context.test.ts new file mode 100644 index 0000000..065fe63 --- /dev/null +++ b/apps/docs/tests/ai-deleted-revision-context.test.ts @@ -0,0 +1,276 @@ +import { afterEach, describe, expect, it } from 'vitest' +import { Editor } from '@tiptap/core' +import { editorExtensions } from '../src/renderer/editor/extensions' +import { buildDocumentContext, countWords } from '../src/renderer/ai/protocol' +import { executeTool } from '../src/renderer/ai/tools' + +/** + * Tracked deletions (w:del revisions shown struck through in All Markup) are + * not current content. The bug: the model saw them as live text and kept + * "deleting" them in a loop while the tracker re-materialized them. These + * tests pin the fix: snapshots exclude/tag deleted text, and delete/replace + * tools report a discriminable skip instead of a silent no-op. + */ + +const NUM_IDS = { bullet: null, ordered: null } +const REV = { author: 'User', date: '2026-01-01T00:00:00Z' } + +interface JsonNode { + type: string + attrs?: Record + content?: JsonNode[] + text?: string + marks?: Array<{ type: string; attrs?: Record }> +} + +const text = (t: string): JsonNode => ({ type: 'text', text: t }) +const delText = (t: string): JsonNode => ({ + type: 'text', + text: t, + marks: [{ type: 'del', attrs: REV }], +}) +const para = (...content: JsonNode[]): JsonNode => ({ + type: 'docParagraph', + attrs: { docxIndex: null }, + content, +}) + +const liveEditors: Editor[] = [] + +afterEach(() => { + for (const editor of liveEditors.splice(0)) editor.destroy() +}) + +/** 0 live | 1 fully del-marked | 2 live + del tail | 3 blockRevision del */ +function createEditor(): Editor { + const editor = new Editor({ + element: document.createElement('div'), + extensions: editorExtensions, + content: { + type: 'doc', + content: [ + para(text('Keep this.')), + para(delText('Old reference 74.')), + para(text('New text '), delText('old tail')), + { + ...para(text('Old block reference 75.')), + attrs: { docxIndex: null, blockRevision: { kind: 'del', ...REV } }, + }, + ], + }, + }) + liveEditors.push(editor) + return editor +} + +describe('document snapshot vs tracked deletions', () => { + it('block list tags deleted blocks, hides deleted text and excludes it from stats', () => { + const context = buildDocumentContext(createEditor()) + expect(context).toContain('1|p|[tracked deletion] Old reference 74.') + expect(context).toContain('3|p|[tracked deletion] Old block reference 75.') + expect(context).toContain('2|p|New text') + expect(context).not.toContain('old tail') + expect(context).toContain(`Full-text stats: words ${countWords('Keep this.New text ')}`) + expect(context).toContain('Tracked changes:') + }) + + it('read_blocks omits deleted revision text', async () => { + const r = await executeTool( + createEditor(), + { id: 't', name: 'read_blocks', input: { startBlockIndex: 0, endBlockIndex: 3 } }, + NUM_IDS, + ) + expect(r.output).toContain('Keep this.') + expect(r.output).toContain('New text') + expect(r.output).not.toContain('Old reference') + expect(r.output).not.toContain('old tail') + expect(r.output).not.toContain('Old block reference') + }) + + it('read_blocks on a deleted-only range says so instead of "(range is empty)"', async () => { + const r = await executeTool( + createEditor(), + { id: 't', name: 'read_blocks', input: { startBlockIndex: 1, endBlockIndex: 1 } }, + NUM_IDS, + ) + expect(r.output).toContain('pending tracked deletions') + expect(r.isError).not.toBe(true) + }) + + it('atom-only blocks (formula/ruby) are not mis-tagged as deleted', () => { + const math = (marks?: JsonNode['marks']): JsonNode => ({ + type: 'docInlineMath', + attrs: { omml: '', mathml: '', latex: 'E=mc^2', text: 'E = mc 2' }, + ...(marks ? { marks } : {}), + }) + const editor = new Editor({ + element: document.createElement('div'), + extensions: editorExtensions, + content: { + type: 'doc', + content: [ + para(math()), + para(delText('old caption '), math()), + para(math([{ type: 'del', attrs: REV }])), + ], + }, + }) + liveEditors.push(editor) + const context = buildDocumentContext(editor) + // live formula (alone or next to a deleted run) stays live content + expect(context).toContain('0|p|') + expect(context).not.toContain('0|p|[tracked deletion]') + expect(context).not.toContain('1|p|[tracked deletion]') + // del-marked formula is a pending deletion like any other content + expect(context).toContain('2|p|[tracked deletion]') + }) + + it('protected blocks with a block-level deletion are tagged and hidden too', async () => { + const protectedBlock = (label: string, deleted: boolean): JsonNode => ({ + type: 'docProtected', + attrs: { + docxIndex: null, + blockType: 'image', + label, + previewText: `${label} preview`, + ...(deleted ? { blockRevision: { kind: 'del', ...REV } } : {}), + }, + }) + const editor = new Editor({ + element: document.createElement('div'), + extensions: editorExtensions, + content: { + type: 'doc', + content: [protectedBlock('Old figure', true), protectedBlock('New figure', false)], + }, + }) + liveEditors.push(editor) + const context = buildDocumentContext(editor) + expect(context).toContain('0|Old figure|[tracked deletion] Old figure preview') + expect(context).toContain('1|New figure|New figure preview') + expect(context).not.toContain('1|New figure|[tracked deletion]') + expect(context).toContain('Tracked changes:') + const r = await executeTool( + editor, + { id: 't', name: 'read_blocks', input: { startBlockIndex: 0, endBlockIndex: 0 } }, + NUM_IDS, + ) + expect(r.output).toContain('pending tracked deletions') + }) + + it('a deleted block between two lists keeps them separate in read_blocks', async () => { + const li = (t: string): JsonNode => ({ + type: 'docListItem', + attrs: { docxIndex: null, kind: 'bullet', numId: null, ilvl: 0 }, + content: [text(t)], + }) + const editor = new Editor({ + element: document.createElement('div'), + extensions: editorExtensions, + content: { type: 'doc', content: [li('alpha'), para(delText('gone')), li('beta')] }, + }) + liveEditors.push(editor) + const r = await executeTool( + editor, + { id: 't', name: 'read_blocks', input: { startBlockIndex: 0, endBlockIndex: 2 } }, + NUM_IDS, + ) + expect((r.output.match(/
    /g) ?? []).length).toBe(2) + expect(r.output).not.toContain('gone') + }) + + it('a clean document gets no tracked-changes notice', () => { + const editor = new Editor({ + element: document.createElement('div'), + extensions: editorExtensions, + content: { type: 'doc', content: [para(text('Plain paragraph.'))] }, + }) + liveEditors.push(editor) + const context = buildDocumentContext(editor) + expect(context).not.toContain('[tracked deletion]') + expect(context).not.toContain('Tracked changes:') + }) +}) + +describe('edit tools vs tracked deletions', () => { + it('deleteBlocks on deleted blocks skips them and tells the model why', async () => { + const editor = createEditor() + const r = await executeTool( + editor, + { + id: 't', + name: 'apply_commands', + input: { commands: [{ deleteBlocks: { target: { blockIndexes: [1, 3] } } }] }, + }, + NUM_IDS, + ) + expect(r.mutated).toBe(false) + expect(r.output).toContain('pending tracked deletion') + expect(editor.state.doc.childCount).toBe(4) + }) + + it('containsText only matches live text, so deleted-only text matches nothing', async () => { + const editor = createEditor() + const r = await executeTool( + editor, + { + id: 't', + name: 'apply_commands', + input: { commands: [{ deleteBlocks: { target: { containsText: 'Old reference' } } }] }, + }, + NUM_IDS, + ) + expect(r.mutated).toBe(false) + expect(editor.state.doc.childCount).toBe(4) + }) + + it('replaceAllText leaves deleted revision text alone and reports the skip', async () => { + const editor = createEditor() + const r = await executeTool( + editor, + { + id: 't', + name: 'apply_commands', + input: { + commands: [{ replaceAllText: { containsText: 'Old reference 74.', replaceText: '[9]' } }], + }, + }, + NUM_IDS, + ) + expect(r.mutated).toBe(false) + expect(r.output).toContain('pending tracked deletion') + expect(editor.state.doc.textContent).toContain('Old reference 74.') + }) + + it('live targets still work: deleteBlocks by containsText removes the live block', async () => { + const editor = createEditor() + const r = await executeTool( + editor, + { + id: 't', + name: 'apply_commands', + input: { commands: [{ deleteBlocks: { target: { containsText: 'Keep this' } } }] }, + }, + NUM_IDS, + ) + expect(r.mutated).toBe(true) + expect(editor.state.doc.childCount).toBe(3) + }) + + it('tracked replace_blocks leaves a struck copy the next snapshot tags as deleted', async () => { + const editor = createEditor() + await executeTool( + editor, + { + id: 't', + name: 'replace_blocks', + input: { startBlockIndex: 0, endBlockIndex: 0, html: '

    Rewritten opening.

    ' }, + }, + NUM_IDS, + { author: 'AI Assistant' }, + ) + const context = buildDocumentContext(editor) + expect(context).toContain('[tracked deletion] Keep this.') + expect(context).toContain('Rewritten opening.') + }) +}) diff --git a/apps/docs/tests/commands.test.ts b/apps/docs/tests/commands.test.ts index ede4278..e661db5 100644 --- a/apps/docs/tests/commands.test.ts +++ b/apps/docs/tests/commands.test.ts @@ -86,7 +86,9 @@ function fixtureDoc(): JsonNode[] { docxIndex: 0, }, ), - para([text('GenSpark intro,'), text('GenSpark is great', [{ type: 'bold' }])], { docxIndex: 1 }), + para([text('GenSpark intro,'), text('GenSpark is great', [{ type: 'bold' }])], { + docxIndex: 1, + }), heading([text('Risk Notes')], 2, { docxIndex: 2 }), para([text('Body paragraph')], { docxIndex: 3, align: 'center' }), listItem([text('List item')], { docxIndex: 4, numId: '1' }), @@ -133,7 +135,9 @@ describe('updateTextStyle', () => { it('null clears one attr, keeping the others; mark removed when all attrs empty', () => { const editor = createEditor([ para([ - text('red text', [{ type: 'docTextStyle', attrs: { color: 'FF0000', sizeHalfPoints: 24 } }]), + text('red text', [ + { type: 'docTextStyle', attrs: { color: 'FF0000', sizeHalfPoints: 24 } }, + ]), ]), para([text('color only', [{ type: 'docTextStyle', attrs: { color: '00FF00' } }])]), ]) @@ -153,6 +157,40 @@ describe('updateTextStyle', () => { expect(textStyleOf(editor, 1)).toBeNull() }) + it('font routes to its script slot: CJK keeps the Latin font, Latin keeps the CJK font', () => { + const mixed = () => + createEditor([ + para([ + text('合同 Contract', [ + { type: 'docTextStyle', attrs: { font: 'SimSun', fontAscii: 'Times New Roman' } }, + ]), + ]), + ]) + const style = (font: string | null) => ({ + commands: [ + { + updateTextStyle: { + target: { nodeType: 'docParagraph' as const }, + style: { font }, + fields: ['font' as const], + }, + }, + ], + }) + + const cjk = mixed() + expect(executeCommands(cjk, style('KaiTi')).ok).toBe(true) + expect(textStyleOf(cjk, 0)).toMatchObject({ font: 'KaiTi', fontAscii: 'Times New Roman' }) + + const latin = mixed() + expect(executeCommands(latin, style('Arial')).ok).toBe(true) + expect(textStyleOf(latin, 0)).toMatchObject({ font: 'SimSun', fontAscii: 'Arial' }) + + const cleared = mixed() + expect(executeCommands(cleared, style(null)).ok).toBe(true) + expect(textStyleOf(cleared, 0)).toBeNull() + }) + it('boolean fields add and remove basic marks', () => { const editor = createEditor([para([text('plain'), text('bold', [{ type: 'bold' }])])]) executeCommands(editor, { diff --git a/apps/docs/tests/font-classify.test.ts b/apps/docs/tests/font-classify.test.ts new file mode 100644 index 0000000..f001f51 --- /dev/null +++ b/apps/docs/tests/font-classify.test.ts @@ -0,0 +1,45 @@ +import { describe, expect, it } from 'vitest' +import { isEastAsianFontName } from '../src/renderer/font-list' + +describe('isEastAsianFontName', () => { + it('classifies CJK families across naming conventions', () => { + for (const f of [ + 'KaiTi', + 'SimSun', + '宋体', + '楷体_GB2312', + '仿宋', + '微软雅黑', + '等线', + '方正小标宋简体', + 'PingFang SC', + 'Microsoft YaHei', + 'Yu Mincho', + 'MS Gothic', + 'Malgun Gothic', + 'Batang', + 'Microsoft JhengHei', + 'PMingLiU', + 'Noto Sans CJK SC', + 'Source Han Serif', + ]) { + expect(isEastAsianFontName(f), f).toBe(true) + } + }) + + it('classifies Latin families as non-East-Asian', () => { + for (const f of [ + 'Times New Roman', + 'Arial', + 'Calibri', + 'Cambria', + 'Georgia', + 'Courier New', + 'Segoe UI', + 'Consolas', + 'Garamond', + ]) { + expect(isEastAsianFontName(f), f).toBe(false) + } + }) +}) diff --git a/apps/docs/tests/font-paste-roundtrip.test.ts b/apps/docs/tests/font-paste-roundtrip.test.ts new file mode 100644 index 0000000..d8c6aa1 --- /dev/null +++ b/apps/docs/tests/font-paste-roundtrip.test.ts @@ -0,0 +1,88 @@ +/** + * HTML clipboard round-trip for dual-slot fonts: renderHTML encodes the slots as a + * font-family chain; parsing that chain back must restore the same font/fontAscii. + */ +import { describe, expect, it } from 'vitest' +import { Editor } from '@tiptap/core' +import { editorExtensions } from '../src/renderer/editor/extensions' +import { fontAttrsFromFamilyChain } from '../src/renderer/editor/marks' +import { cssDualFontFamily, cssFontFamily } from '../src/renderer/line-metrics' + +function roundtrip(attrs: Record): Record | undefined { + const editor = new Editor({ + element: document.createElement('div'), + extensions: editorExtensions, + content: { + type: 'doc', + content: [ + { + type: 'docParagraph', + attrs: { docxIndex: null }, + content: [ + { type: 'text', text: '合同 Contract', marks: [{ type: 'docTextStyle', attrs }] }, + ], + }, + ], + }, + }) + const html = editor.getHTML() + editor.commands.setContent(html) + const mark = editor.state.doc + .child(0) + .child(0) + .marks.find((m) => m.type.name === 'docTextStyle') + const out = mark ? { ...mark.attrs } : undefined + editor.destroy() + return out +} + +describe('dual-slot font HTML round-trip', () => { + it('mixed run keeps both slots', () => { + expect(roundtrip({ font: 'SimSun', fontAscii: 'Times New Roman' })).toMatchObject({ + font: 'SimSun', + fontAscii: 'Times New Roman', + }) + }) + + it('CJK-only run keeps the primary slot and no Latin slot', () => { + expect(roundtrip({ font: 'KaiTi' })).toMatchObject({ font: 'KaiTi', fontAscii: null }) + }) + + it('Latin-only run keeps both slots equal (parse.ts convention)', () => { + expect(roundtrip({ font: 'Arial', fontAscii: 'Arial' })).toMatchObject({ + font: 'Arial', + fontAscii: 'Arial', + }) + }) +}) + +describe('fontAttrsFromFamilyChain', () => { + it('inverts the encoded chains', () => { + expect(fontAttrsFromFamilyChain(cssDualFontFamily('Times New Roman', 'SimSun'))).toEqual({ + font: 'SimSun', + fontAscii: 'Times New Roman', + }) + expect(fontAttrsFromFamilyChain(cssFontFamily('KaiTi'))).toEqual({ font: 'KaiTi' }) + expect(fontAttrsFromFamilyChain(cssFontFamily('Times New Roman'))).toEqual({ + font: 'Times New Roman', + fontAscii: 'Times New Roman', + }) + }) + + it('never mistakes the bundled CJK tofu-fallback for a user font', () => { + expect(fontAttrsFromFamilyChain("'Georgia','Noto Serif CJK SC',serif")).toEqual({ + font: 'Georgia', + fontAscii: 'Georgia', + }) + // genuinely picked as first family it still counts + expect(fontAttrsFromFamilyChain("'Noto Sans CJK SC',sans-serif")).toEqual({ + font: 'Noto Sans CJK SC', + }) + }) + + it('handles foreign single-family styles', () => { + expect(fontAttrsFromFamilyChain('SimSun')).toEqual({ font: 'SimSun' }) + expect(fontAttrsFromFamilyChain('Calibri')).toEqual({ font: 'Calibri', fontAscii: 'Calibri' }) + expect(fontAttrsFromFamilyChain(undefined)).toEqual({}) + }) +}) diff --git a/apps/docs/tests/native-table.test.ts b/apps/docs/tests/native-table.test.ts index 725aa5c..614e2ea 100644 --- a/apps/docs/tests/native-table.test.ts +++ b/apps/docs/tests/native-table.test.ts @@ -84,6 +84,7 @@ describe('native editable tables', () => { color: '1F4E78', sizeHalfPoints: null, font: 'Calibri', + fontAscii: 'Calibri', charSpacingTwips: null, charScaleEm: null, highlight: null, diff --git a/apps/docs/tests/revisions.test.ts b/apps/docs/tests/revisions.test.ts index 9d30751..87254d0 100644 --- a/apps/docs/tests/revisions.test.ts +++ b/apps/docs/tests/revisions.test.ts @@ -932,6 +932,52 @@ describe('IME composition deferral', () => { expect(editor.state.doc.textContent).toBe('aXd') editor.destroy() }) + + // Chromium dispatches the pinyin→hanzi commit after view.composing flips + // false; it must fold into the composition, not strike the provisional text + it('does not strike the provisional pinyin removed by the commit transaction', () => { + const { editor, end } = composingEditor([para(text('ab'))]) + editor.view.dispatch(editor.state.tr.insertText('ni', 3, 3)) + end() + editor.view.dispatch(editor.state.tr.insertText('你', 3, 5).setMeta('composition', 1)) + editor.view.dispatch(editor.state.tr) // the compositionend poke + expect(editor.state.doc.textContent).toBe('ab你') + const ranges = collectRevisions(editor.state.doc) + expect(ranges).toHaveLength(1) + expect(ranges[0].kind).toBe('ins') + expect(editor.state.doc.textBetween(ranges[0].from, ranges[0].to)).toBe('你') + editor.destroy() + }) + + it('marks only the typed character when the IME re-read rewrites the whole run', () => { + const { editor, end } = composingEditor([para(text('Hello world'))]) + // PM's DOM re-parse can replace the entire run around the composed char + editor.view.dispatch(editor.state.tr.insertText('Hello 中world', 1, 12)) + end() + editor.view.dispatch(editor.state.tr) + expect(editor.state.doc.textContent).toBe('Hello 中world') + const ranges = collectRevisions(editor.state.doc) + expect(ranges).toHaveLength(1) + expect(ranges[0].kind).toBe('ins') + expect(editor.state.doc.textBetween(ranges[0].from, ranges[0].to)).toBe('中') + editor.destroy() + }) + + it('marks only the committed character when the commit rewrites the whole paragraph', () => { + const { editor, end } = composingEditor([para(text('ab'))]) + editor.view.dispatch(editor.state.tr.insertText('ni', 3, 3)) + end() + editor.view.dispatch(editor.state.tr.insertText('ab你', 1, 5).setMeta('composition', 1)) + editor.view.dispatch(editor.state.tr) + expect(editor.state.doc.textContent).toBe('ab你') + const ranges = collectRevisions(editor.state.doc) + expect(ranges).toHaveLength(1) + expect(ranges[0]).toMatchObject({ kind: 'ins', author: 'Tester' }) + expect(editor.state.doc.textBetween(ranges[0].from, ranges[0].to)).toBe('你') + acceptAllRevisions(editor) + expect(editor.state.doc.textContent).toBe('ab你') + editor.destroy() + }) }) describe('repeated backspace under track changes', () => { diff --git a/apps/docs/tests/shape-gallery.test.ts b/apps/docs/tests/shape-gallery.test.ts new file mode 100644 index 0000000..93baaa5 --- /dev/null +++ b/apps/docs/tests/shape-gallery.test.ts @@ -0,0 +1,29 @@ +import { describe, expect, it } from 'vitest' + +import { SHAPE_GALLERY } from '../src/renderer/components/shape-gallery' +import { shapeBackgroundCss, shapePreviewPathD } from '../src/renderer/editor/shape-svg' + +const galleryPrsts = SHAPE_GALLERY.flatMap((group) => group.shapes.map((shape) => shape.prst)) + +describe('shape gallery', () => { + it('every gallery prst has preview and background geometry', () => { + const missing = galleryPrsts.filter( + (prst) => + !shapePreviewPathD(prst, 20, 20) || !shapeBackgroundCss(prst, 189, 113, '4472C4', '2F5496'), + ) + expect(missing).toEqual([]) + }) + + it('has no duplicate prsts', () => { + expect(new Set(galleryPrsts).size).toBe(galleryPrsts.length) + }) + + it('background css is a data-uri svg with fill and stroke', () => { + const css = shapeBackgroundCss('heart', 189, 113, '4472C4', '2F5496')! + const encoded = /data:image\/svg\+xml,([^"]+)"/.exec(css)?.[1] + expect(encoded).toBeTruthy() + const svg = decodeURIComponent(encoded!) + expect(svg).toContain('#4472C4') + expect(svg).toContain('#2F5496') + }) +}) diff --git a/apps/docs/tests/style-gallery-overflow.test.ts b/apps/docs/tests/style-gallery-overflow.test.ts new file mode 100644 index 0000000..44a6775 --- /dev/null +++ b/apps/docs/tests/style-gallery-overflow.test.ts @@ -0,0 +1,196 @@ +// Regression (feedback row 53): the home-tab style gallery clipped overflowing +// cards with no way to reach them. The gallery must show a "more styles" +// expander whenever cards are cut off, and the expander grid must list every style. +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest' +import { act, createElement } from 'react' +import { createRoot, type Root } from 'react-dom/client' +import { Editor } from '@tiptap/core' +import { editorExtensions } from '../src/renderer/editor/extensions' +import { computeFormatState } from '../src/renderer/components/ribbon-format-state' +import { Ribbon } from '../src/renderer/components/Ribbon' + +class FakeResizeObserver { + static instances: FakeResizeObserver[] = [] + targets = new Set() + constructor(private cb: ResizeObserverCallback) { + FakeResizeObserver.instances.push(this) + } + observe(el: Element) { + this.targets.add(el) + } + unobserve(el: Element) { + this.targets.delete(el) + } + disconnect() { + this.targets.clear() + } + static fire(el: Element) { + for (const inst of FakeResizeObserver.instances) { + if (inst.targets.has(el)) { + inst.cb([{ target: el } as ResizeObserverEntry], inst as unknown as ResizeObserver) + } + } + } +} + +function makeEditor(): Editor { + return new Editor({ + element: document.createElement('div'), + extensions: editorExtensions, + content: { + type: 'doc', + content: [{ type: 'docParagraph', content: [{ type: 'text', text: 'hello world' }] }], + }, + }) +} + +const noop = () => {} + +function ribbonProps(editor: Editor) { + return { + editor, + formatState: computeFormatState(editor), + hasDoc: true, + blocks: [], + onOpen: noop, + onSave: noop, + onSaveAs: noop, + showAi: false, + onToggleAi: noop, + section: null, + onSection: noop, + activeSection: null, + onInsertSectionBreak: noop, + pageColor: null, + onPageColor: noop, + watermark: null, + onWatermark: noop, + themeFonts: null, + onThemeFonts: noop, + themeColors: null, + onThemeColors: noop, + inkTool: 'select' as const, + onInkTool: noop, + inkPen: { color: 'C00000', width: 2 }, + onInkPen: noop, + inkHighlighter: { color: 'FFFF00', width: 10 }, + onInkHighlighter: noop, + inkCount: 0, + onInkClearAll: noop, + onInsertNote: noop, + sources: [], + onAddSource: noop, + zoom: 100, + onZoom: noop, + onZoomFit: noop, + darkCanvas: false, + onDarkCanvas: noop, + onAiPreset: noop, + header: null, + onHeader: noop, + onPageNumFormat: noop, + onInsertField: noop, + footer: null, + onFooter: noop, + titlePg: false, + onTitlePg: noop, + evenOddHf: false, + onEvenOddHf: noop, + showMarks: false, + onShowMarks: noop, + showRuler: false, + onShowRuler: noop, + showNav: false, + onShowNav: noop, + commentCount: 0, + onShowComments: noop, + canComment: false, + onNewComment: noop, + trackChanges: false, + onTrackChanges: noop, + revisionDisplay: 'all' as const, + onRevisionDisplay: noop, + revisionCount: 0, + onAcceptRevision: noop, + onRejectRevision: noop, + onGotoRevision: noop, + isProtected: false, + onToggleProtection: noop, + onCompare: noop, + filePath: null, + viewMode: 'print' as const, + onViewMode: noop, + readMode: false, + onReadMode: noop, + showGrid: false, + onShowGrid: noop, + splitView: false, + onSplitView: noop, + onPagePreview: noop, + } +} + +function setWidths(el: Element, scrollWidth: number, clientWidth: number) { + Object.defineProperty(el, 'scrollWidth', { configurable: true, value: scrollWidth }) + Object.defineProperty(el, 'clientWidth', { configurable: true, value: clientWidth }) +} + +describe('style gallery overflow', () => { + let editor: Editor + let root: Root + let container: HTMLElement + + beforeEach(() => { + vi.stubGlobal('ResizeObserver', FakeResizeObserver) + editor = makeEditor() + container = document.createElement('div') + document.body.appendChild(container) + root = createRoot(container) + act(() => root.render(createElement(Ribbon, ribbonProps(editor)))) + }) + + afterEach(() => { + act(() => root.unmount()) + container.remove() + editor.destroy() + FakeResizeObserver.instances.length = 0 + vi.unstubAllGlobals() + }) + + it('shows no expander while every card fits', () => { + expect(container.querySelector('.style-gallery')).not.toBeNull() + expect(container.querySelectorAll('.style-gallery .style-card').length).toBe(6) + expect(container.querySelector('.style-gallery-more')).toBeNull() + }) + + it('shows the expander when cards are clipped and hides it when they fit again', () => { + const gallery = container.querySelector('.style-gallery')! + setWidths(gallery, 460, 200) + act(() => FakeResizeObserver.fire(gallery)) + expect(container.querySelector('.style-gallery-more')).not.toBeNull() + + setWidths(gallery, 460, 460) + act(() => FakeResizeObserver.fire(gallery)) + expect(container.querySelector('.style-gallery-more')).toBeNull() + }) + + it('expander opens a grid with every style, and picking one applies it and closes', () => { + const gallery = container.querySelector('.style-gallery')! + setWidths(gallery, 460, 200) + act(() => FakeResizeObserver.fire(gallery)) + + const more = container.querySelector('.style-gallery-more')! + expect(more.getAttribute('aria-label')).toBeTruthy() + act(() => more.click()) + + const menu = container.querySelector('.style-gallery-menu')! + const cards = menu.querySelectorAll('.style-card') + // 4 paragraph styles + 2 preset character styles: nothing is dropped + expect(cards.length).toBe(6) + + editor.commands.setTextSelection(3) + act(() => cards[1].click()) // Heading 1 + expect(editor.isActive('docHeading', { level: 1 })).toBe(true) + expect(container.querySelector('.style-gallery-menu')).toBeNull() + }) +}) diff --git a/apps/docs/tests/textbox-edit.test.ts b/apps/docs/tests/textbox-edit.test.ts index 0f6fa2c..5f0a1ca 100644 --- a/apps/docs/tests/textbox-edit.test.ts +++ b/apps/docs/tests/textbox-edit.test.ts @@ -128,6 +128,39 @@ describe('text box rich-text edit and save', () => { editor.destroy() }) + it('persists a resize of an auto-fit textbox as a fixed height', async () => { + const autoFitXml = TEXTBOX_PARAGRAPH.replace( + '', + '', + ) + const parsed = await parseDocx( + await buildDocx({ bodyXml: `Leading text${autoFitXml}` }), + ) + const editor = new Editor({ + element: document.createElement('div'), + extensions: editorExtensions, + }) + editor.commands.setContent(blocksToPmDoc(parsed.blocks) as never) + const pos = textboxNodePos(editor) + const node = editor.state.doc.nodeAt(pos)! + const boxes = node.attrs.textboxes as TextboxDisplay[] + expect(boxes[0].heightPx).toBeUndefined() // autofit carries no fixed height + editor.view.dispatch( + editor.state.tr.setNodeMarkup(pos, undefined, { + ...node.attrs, + textboxes: [{ ...boxes[0], heightPx: 240, minHeightPx: 240 }], + }), + ) + + const plan = pmDocToSavePlan(editor.getJSON() as PmNode, parsed.blocks) + expect(plan.changedCount).toBe(1) + const reparsed = await parseDocx(await saveDocx(parsed, plan.saveBlocks)) + const resized = reparsed.blocks.find((block) => block.textboxes)?.textboxes?.[0] + expect(resized?.heightPx).toBe(240) + expect(resized?.widthPx).toBe(boxes[0].widthPx) + editor.destroy() + }) + it('edited textbox paragraph saves as a patched XML block and re-parses with the new text', async () => { const { editor, parsed } = await openTextboxDoc() editTextboxPara(editor, 0, [ diff --git a/apps/pdf/package.json b/apps/pdf/package.json index 8963153..f72f58c 100644 --- a/apps/pdf/package.json +++ b/apps/pdf/package.json @@ -22,7 +22,7 @@ "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^5.0.4", - "electron": "^41.0.3", + "electron": "^43.3.0", "electron-vite": "^5.0.0", "jsdom": "^28.0.0", "pdf-lib": "^1.17.1", diff --git a/apps/pdf/src/main/pdf-main.ts b/apps/pdf/src/main/pdf-main.ts index 186b534..fada0d6 100644 --- a/apps/pdf/src/main/pdf-main.ts +++ b/apps/pdf/src/main/pdf-main.ts @@ -8,6 +8,8 @@ import { installContextMenu, installNavigationGuard, safeExternalUrl, + showOpenDialogWithMemory, + showSaveDialogWithMemory, } from '@genoffice/electron-utils' import { createI18n, getUiLang } from '@genoffice/i18n' import { PDF_CHANNELS } from '../shared/ipc' @@ -407,7 +409,7 @@ function registerPdfIpc(): void { } const win = BrowserWindow.fromWebContents(e.sender) ?? BrowserWindow.getFocusedWindow() ?? undefined - const picked = await dialog.showSaveDialog(win!, { + const picked = await showSaveDialogWithMemory(dialog, win, { title: tm('dlgExtract'), defaultPath: join(dirname(path), String(suggestedName || 'pages.pdf')), filters: [{ name: tm('filterPdf'), extensions: ['pdf'] }], @@ -432,7 +434,7 @@ function registerPdfIpc(): void { } const win = BrowserWindow.fromWebContents(e.sender) ?? BrowserWindow.getFocusedWindow() ?? undefined - const picked = await dialog.showOpenDialog(win!, { + const picked = await showOpenDialogWithMemory(dialog, win, { title: tm('dlgInsert'), filters: [{ name: tm('filterPdf'), extensions: ['pdf'] }], properties: ['openFile'], @@ -463,7 +465,7 @@ function registerPdfIpc(): void { return { ok: false, error: 'pdf: no images' } const win = BrowserWindow.fromWebContents(e.sender) ?? BrowserWindow.getFocusedWindow() ?? undefined - const picked = await dialog.showOpenDialog(win!, { + const picked = await showOpenDialogWithMemory(dialog, win, { title: tm('dlgExportImages'), properties: ['openDirectory', 'createDirectory'], }) diff --git a/apps/sheets/package.json b/apps/sheets/package.json index 82d6a11..3711ebb 100644 --- a/apps/sheets/package.json +++ b/apps/sheets/package.json @@ -22,6 +22,7 @@ "gate": "npm run typecheck && npm run fixtures && npm test && npm run compat" }, "dependencies": { + "@fluentui/react-icons": "^2.0.333", "@genoffice/agent-core": "*", "@genoffice/ai-provider": "*", "@genoffice/ai-search": "*", @@ -29,7 +30,6 @@ "@genoffice/file-parse": "*", "@genoffice/i18n": "*", "@genoffice/ui": "*", - "@fluentui/react-icons": "^2.0.333", "@univerjs/core": "^0.25.1", "@univerjs/preset-sheets-conditional-formatting": "^0.25.1", "@univerjs/preset-sheets-core": "^0.25.1", @@ -54,7 +54,7 @@ "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^5.0.4", - "electron": "^41.0.3", + "electron": "^43.3.0", "electron-vite": "^5.0.0", "tsx": "^4.21.0", "typescript": "^5.9.3", diff --git a/apps/sheets/src/domain/chart-recommend.ts b/apps/sheets/src/domain/chart-recommend.ts new file mode 100644 index 0000000..2b1b8ab --- /dev/null +++ b/apps/sheets/src/domain/chart-recommend.ts @@ -0,0 +1,123 @@ +import { chartDataFromValues, type ChartGridValue, type ParsedChartData } from './chart-visual' + +/// Excel's Insert → Recommended Charts, heuristic edition: rank chart kinds +/// by the shape of the selected data. Pure so it unit-tests without Univer. + +export type RecommendedKind = + 'column' | 'bar' | 'line' | 'area' | 'pie' | 'doughnut' | 'scatter' | 'radar' | 'combo' + +export type RecommendReason = + 'time' | 'proportion' | 'correlation' | 'comparison' | 'manyPoints' | 'longLabels' | 'mixedScales' + +export interface ChartRecommendations { + parsed: ParsedChartData + items: { kind: RecommendedKind; reason: RecommendReason }[] +} + +const MONTH_NAMES = new Set( + 'jan feb mar apr may jun jul aug sep oct nov dec january february march april june july august september october november december'.split( + ' ', + ), +) + +function isTimeLike(categories: readonly string[]): boolean { + if (categories.length < 3) return false + let dated = 0 + let numeric = 0 + let lastNumber = Number.NEGATIVE_INFINITY + let increasing = true + for (const raw of categories) { + const label = raw.trim() + if (label === '') return false + const lower = label.toLowerCase().replace(/[.月]$/u, '') + if (MONTH_NAMES.has(lower) || /^\d{1,2}月$/u.test(label) || /^[qQ][1-4]$/.test(label)) { + dated += 1 + continue + } + if (!Number.isNaN(Date.parse(label)) && /[-/年]/u.test(label)) { + dated += 1 + continue + } + const asNumber = Number(label) + if (Number.isInteger(asNumber) && asNumber >= 1900 && asNumber <= 2200) { + numeric += 1 + if (asNumber <= lastNumber) increasing = false + lastNumber = asNumber + continue + } + return false + } + return dated === categories.length || (numeric === categories.length && increasing) +} + +/// Year/Value tables parse with the year column as a bare numeric series +/// (hasCategoryColumn false), which would read as x/y scatter pairs. Detect +/// that shape so the year vector can become the category axis instead. +export function hasNumericYearAxis(parsed: ParsedChartData): boolean { + const firstSeries = parsed.series[0] + return ( + !parsed.hasCategoryColumn && + parsed.series.length >= 2 && + firstSeries !== undefined && + isTimeLike(firstSeries.values.map((value) => String(value))) + ) +} + +export function recommendCharts( + values: readonly (readonly ChartGridValue[])[], +): ChartRecommendations | null { + let parsed = chartDataFromValues(values) + if (!parsed) return null + if (hasNumericYearAxis(parsed)) { + parsed = chartDataFromValues(values, { numericCategoryColumn: true }) ?? parsed + } + const rows = parsed.categories.length + const seriesCount = parsed.series.length + const firstSeries = parsed.series[0] + if (!firstSeries || rows === 0) return null + + const time = parsed.hasCategoryColumn && isTimeLike(parsed.categories) + const allPositive = parsed.series.every((series) => series.values.every((value) => value >= 0)) + const longLabels = + parsed.hasCategoryColumn && + parsed.categories.reduce((sum, label) => sum + label.length, 0) / rows > 12 + // Two numeric vectors with no label column reads as x/y pairs. + const scatterCandidate = !parsed.hasCategoryColumn && seriesCount >= 2 && rows >= 5 + const spread = (series: { values: number[] }): number => + Math.max(...series.values.map(Math.abs), 0) + const secondSeries = parsed.series[1] + const mixedScales = + seriesCount === 2 && + secondSeries !== undefined && + spread(firstSeries) > 0 && + spread(secondSeries) > 0 && + (spread(firstSeries) / spread(secondSeries) > 10 || + spread(secondSeries) / spread(firstSeries) > 10) + + const items: ChartRecommendations['items'] = [] + const add = (kind: RecommendedKind, reason: RecommendReason): void => { + if (!items.some((item) => item.kind === kind)) items.push({ kind, reason }) + } + + if (scatterCandidate) add('scatter', 'correlation') + if (time) { + add('line', 'time') + if (seriesCount > 1 && allPositive) add('area', 'time') + if (rows <= 12) add('column', 'time') + } + if (seriesCount === 1 && rows >= 2 && rows <= 8 && allPositive) { + add('pie', 'proportion') + add('doughnut', 'proportion') + } + if (mixedScales) add('combo', 'mixedScales') + if (longLabels) add('bar', 'longLabels') + if (rows > 20 || seriesCount >= 4) add('line', 'manyPoints') + add('column', 'comparison') + add('bar', 'comparison') + if (!time && rows >= 3 && rows <= 8 && seriesCount >= 2 && seriesCount <= 3) { + add('radar', 'comparison') + } + add('line', 'comparison') + + return { parsed, items: items.slice(0, 5) } +} diff --git a/apps/sheets/src/domain/workbook-dsl.ts b/apps/sheets/src/domain/workbook-dsl.ts index aceecc1..2488498 100644 --- a/apps/sheets/src/domain/workbook-dsl.ts +++ b/apps/sheets/src/domain/workbook-dsl.ts @@ -1,4 +1,5 @@ import { z } from 'zod' +import { ADDABLE_SHAPE_TYPES } from '../shared/shape-types' import { columnIndex, columnLabel, formatAddress, parseRange, rangeCellCount } from './cell-address' import { computeSortChanges } from './sort-range' @@ -166,18 +167,7 @@ const addChartSchema = z.object({ const addShapeSchema = z.object({ op: z.literal('add_shape'), sheetId: z.string().min(1), - shapeType: z.enum([ - 'rect', - 'roundRect', - 'ellipse', - 'triangle', - 'diamond', - 'rightArrow', - 'leftArrow', - 'pentagon', - 'hexagon', - 'textbox', - ]), + shapeType: z.enum([...ADDABLE_SHAPE_TYPES, 'textbox']), anchorCell: cellAddressSchema, fillColor: hexColorSchema.optional(), text: z.string().max(1000).optional(), diff --git a/apps/sheets/src/main/pdf-export.ts b/apps/sheets/src/main/pdf-export.ts index 1ca5212..b69b8c3 100644 --- a/apps/sheets/src/main/pdf-export.ts +++ b/apps/sheets/src/main/pdf-export.ts @@ -8,11 +8,10 @@ import { join } from 'node:path' import { BrowserWindow, dialog } from 'electron' +import { showSaveDialogWithMemory } from '@genoffice/electron-utils' + import type { IpcMainInvokeEvent } from 'electron' -import type { - WorkbookExportPdfRequest, - WorkbookExportPdfResult, -} from '../shared/desktop-api' +import type { WorkbookExportPdfRequest, WorkbookExportPdfResult } from '../shared/desktop-api' export async function exportPdf( event: IpcMainInvokeEvent, @@ -23,9 +22,7 @@ export async function exportPdf( defaultPath: request.fileName, filters: [{ name: 'PDF', extensions: ['pdf'] }], } - const selection = parent - ? await dialog.showSaveDialog(parent, dialogOptions) - : await dialog.showSaveDialog(dialogOptions) + const selection = await showSaveDialogWithMemory(dialog, parent, dialogOptions) if (selection.canceled || !selection.filePath) return { canceled: true } const workDir = await mkdtemp(join(tmpdir(), 'ai-excel-pdf-')) diff --git a/apps/sheets/src/main/sheets-main.ts b/apps/sheets/src/main/sheets-main.ts index d9e791f..a453be8 100644 --- a/apps/sheets/src/main/sheets-main.ts +++ b/apps/sheets/src/main/sheets-main.ts @@ -16,11 +16,14 @@ import { basename, dirname, isAbsolute, join } from 'node:path' import { app, BrowserWindow, + desktopCapturer, dialog, ipcMain, Menu, + screen, session as electronSession, shell, + systemPreferences, WebContentsView, } from 'electron' import type { @@ -37,6 +40,8 @@ import { installContextMenu, installNavigationGuard, safeExternalUrl, + showOpenDialogWithMemory, + showSaveDialogWithMemory, viewMenuTemplate, windowMenuTemplate, } from '@genoffice/electron-utils' @@ -93,6 +98,9 @@ import { workbookPivotRequestSchema, localImageRequestSchema, localImageResultSchema, + screenCaptureRequestSchema, + screenCaptureResultSchema, + screenSourcesResultSchema, workbookPivotDefinitionSchema, workbookExportPdfRequestSchema, workbookRangeRequestSchema, @@ -1064,13 +1072,11 @@ function dialogParent(event: IpcMainInvokeEvent): BrowserWindow | undefined { } async function openFileDialog(event: IpcMainInvokeEvent, options: OpenDialogOptions) { - const parent = dialogParent(event) - return parent ? dialog.showOpenDialog(parent, options) : dialog.showOpenDialog(options) + return showOpenDialogWithMemory(dialog, dialogParent(event), options) } async function saveFileDialog(event: IpcMainInvokeEvent, options: SaveDialogOptions) { - const parent = dialogParent(event) - return parent ? dialog.showSaveDialog(parent, options) : dialog.showSaveDialog(options) + return showSaveDialogWithMemory(dialog, dialogParent(event), options) } /** register a tab's webContents/client pair and wire up cleanup on teardown */ @@ -1791,6 +1797,82 @@ export function registerSheetsIpc(): void { return localImageResultSchema.parse({ mediaType, base64: bytes.toString('base64') }) }) + ipcMain.handle(IPC_CHANNELS.captureScreenSources, async (event) => { + sessionFor(event) + // macOS gates desktopCapturer behind the Screen Recording permission and + // returns black frames instead of failing; surface a real denied state. + if (process.platform === 'darwin') { + const status = systemPreferences.getMediaAccessStatus('screen') + if (status !== 'granted' && status !== 'not-determined') { + return screenSourcesResultSchema.parse({ status: 'denied', sources: [] }) + } + } + const sources = await desktopCapturer.getSources({ + types: ['screen', 'window'], + thumbnailSize: { width: 320, height: 200 }, + fetchWindowIcons: false, + }) + if ( + process.platform === 'darwin' && + systemPreferences.getMediaAccessStatus('screen') !== 'granted' + ) { + return screenSourcesResultSchema.parse({ status: 'denied', sources: [] }) + } + // In tab mode the sheets renderer is a WebContentsView, so fromWebContents + // on the sender is null; the shell window is the one to exclude. + const selfWindow = sheetsShellWindow ?? BrowserWindow.fromWebContents(event.sender) + const selfId = selfWindow?.getMediaSourceId() + return screenSourcesResultSchema.parse({ + status: 'ok', + sources: sources + .filter((source) => source.id !== selfId) + .map((source) => ({ + id: source.id, + name: source.name, + kind: source.id.startsWith('screen') ? 'screen' : 'window', + thumbnail: source.thumbnail.isEmpty() ? '' : source.thumbnail.toDataURL(), + })), + }) + }) + + ipcMain.handle(IPC_CHANNELS.captureScreenSource, async (event, input: unknown) => { + sessionFor(event) + const request = screenCaptureRequestSchema.parse(input) + // desktopCapturer only ever returns thumbnails, so a full-res capture is + // a re-listing with the thumbnail sized to the largest physical display. + const displays = screen.getAllDisplays() + const captureSize = { + width: Math.min( + 4096, + Math.max(1920, ...displays.map((d) => Math.ceil(d.size.width * d.scaleFactor))), + ), + height: Math.min( + 4096, + Math.max(1080, ...displays.map((d) => Math.ceil(d.size.height * d.scaleFactor))), + ), + } + const sources = await desktopCapturer.getSources({ + types: ['screen', 'window'], + thumbnailSize: captureSize, + fetchWindowIcons: false, + }) + const source = sources.find((candidate) => candidate.id === request.id) + if (!source || source.thumbnail.isEmpty()) return null + let image = source.thumbnail + let png = image.toPNG() + if (png.length > 20 * 1024 * 1024) { + image = image.resize({ width: Math.round(image.getSize().width / 2) }) + png = image.toPNG() + } + const { width, height } = image.getSize() + return screenCaptureResultSchema.parse({ + mediaType: 'image/png', + base64: png.toString('base64'), + width, + height, + }) + }) + ipcMain.handle(IPC_CHANNELS.readPivotDefinition, async (event, input: unknown) => { const entry = sessionFor(event) const request = workbookPivotRequestSchema.parse(input) @@ -2739,7 +2821,9 @@ async function applyMainProcessProxy(): Promise { } try { await app.whenReady() - const resolved = await electronSession.defaultSession.resolveProxy('https://api.anthropic.com') + // PAC/rule proxies answer per-host: probe the host the login flow, the + // Genspark LLM proxy and the gsk CLI actually target + const resolved = await electronSession.defaultSession.resolveProxy('https://www.genspark.ai/') const m = /PROXY\s+([^;]+)/i.exec(resolved || '') if (m?.[1]) { await setDispatcher(`http://${m[1].trim()}`) diff --git a/apps/sheets/src/preload/index.ts b/apps/sheets/src/preload/index.ts index a651628..ba95bef 100644 --- a/apps/sheets/src/preload/index.ts +++ b/apps/sheets/src/preload/index.ts @@ -13,6 +13,8 @@ import type { AttachmentMeta, AttachmentReadResult, DesktopApi, + ScreenCaptureResult, + ScreenSourcesResult, WorkbookCellStyle, WorkbookConditionalRule, WorkbookFile, @@ -98,6 +100,37 @@ const desktopApi: DesktopApi = { } return result as { mediaType: 'image/png' | 'image/jpeg' | 'image/gif'; base64: string } }, + async captureScreenSources() { + const result: unknown = await ipcRenderer.invoke(IPC_CHANNELS.captureScreenSources) + if ( + !isRecord(result) || + (result.status !== 'ok' && result.status !== 'denied') || + !Array.isArray(result.sources) + ) { + throw new Error('Invalid screen sources response.') + } + return result as ScreenSourcesResult + }, + async captureScreenSource(request) { + if (!isRecord(request) || typeof request.id !== 'string' || request.id.length === 0) { + throw new Error('Invalid screen capture request.') + } + const result: unknown = await ipcRenderer.invoke(IPC_CHANNELS.captureScreenSource, { + id: request.id, + }) + if (result === null) return null + if ( + !isRecord(result) || + result.mediaType !== 'image/png' || + typeof result.base64 !== 'string' || + result.base64.length === 0 || + typeof result.width !== 'number' || + typeof result.height !== 'number' + ) { + throw new Error('Invalid screen capture response.') + } + return result as ScreenCaptureResult + }, async readPivotDefinition(request) { const validatedRequest = parsePivotRequest(request) const result: unknown = await ipcRenderer.invoke( diff --git a/apps/sheets/src/renderer/App.tsx b/apps/sheets/src/renderer/App.tsx index d65c466..96a0f76 100644 --- a/apps/sheets/src/renderer/App.tsx +++ b/apps/sheets/src/renderer/App.tsx @@ -188,9 +188,14 @@ import { type PivotEditContext, type SlicerPickerState, } from './pivot-actions' +import type { ChartRecommendations } from '../domain/chart-recommend' import { applyAiShapeEdit as applyAiShapeEditImpl, buildAiChartEdit as buildAiChartEditImpl, + handleInsertChart as handleInsertChartImpl, + handleInsertIcon as handleInsertIconImpl, + handleInsertScreenshot, + handleRecommendedCharts as handleRecommendedChartsImpl, insertAiChartVisual as insertAiChartVisualImpl, insertAiImageVisual as insertAiImageVisualImpl, insertAiShapeVisual as insertAiShapeVisualImpl, @@ -278,6 +283,9 @@ import { selectionFormatEquals, toSelectionFormat, type SelectionFormat } from ' import { ExcelShell } from './ExcelShell' import { ToastHost } from './toast' import { AdvancedFilterDialog, type AdvancedFilterColumn } from './AdvancedFilterDialog' +import { IconsDialog } from './IconsDialog' +import { RecommendedChartsDialog } from './RecommendedChartsDialog' +import { ScreenshotDialog } from './ScreenshotDialog' import { SymbolDialog } from './SymbolDialog' import { SlicerFieldPicker, SlicerPanels, type SlicerUiState } from './SlicerPanel' import type { DefinedNameAction, DefinedNameRow } from './NameManagerDialog' @@ -422,6 +430,9 @@ export function App(): React.JSX.Element { >(null) /// True while the Insert → Symbol dialog is open. const [symbolDialogOpen, setSymbolDialogOpen] = useState(false) + const [screenshotDialogOpen, setScreenshotDialogOpen] = useState(false) + const [iconsDialogOpen, setIconsDialogOpen] = useState(false) + const [recommendedCharts, setRecommendedCharts] = useState(null) /// The focused floating visual (chart/shape/image); charts surface a /// contextual Chart Design ribbon tab while selected. const [selectedVisual, setSelectedVisual] = useState(null) @@ -2543,6 +2554,13 @@ export function App(): React.JSX.Element { setMessage, setChartDialog, setSymbolDialogOpen, + setScreenshotDialogOpen, + setIconsDialogOpen, + openRecommendedCharts: () => { + void handleRecommendedChartsImpl(visualContext()).then((result) => { + if (result) setRecommendedCharts(result) + }) + }, setPendingEdits, visualContext, dataToolsContext, @@ -3047,6 +3065,29 @@ export function App(): React.JSX.Element { onClose={() => setSymbolDialogOpen(false)} /> )} + {screenshotDialogOpen && ( + + handleInsertScreenshot(visualContext(), dataUrl, width, height) + } + onClose={() => setScreenshotDialogOpen(false)} + /> + )} + {iconsDialogOpen && ( + + handleInsertIconImpl(visualContext(), dataUrl, size, name) + } + onClose={() => setIconsDialogOpen(false)} + /> + )} + {recommendedCharts !== null && ( + void handleInsertChartImpl(visualContext(), kind)} + onClose={() => setRecommendedCharts(null)} + /> + )} {slicerPicker !== null && ( {t('appShapes')} - onCommand(`insert-shape:${value}`)} + onPick={(prst) => onCommand(`insert-shape:${prst}`)} /> - + {t('app3dModels')} @@ -1297,18 +1286,23 @@ function Ribbon({ SmartArt - +
- + onCommand('recommended-charts-open')} + />
+
+ {trimmed === '' && ( + + )} +
+
+ {shown.map((entry) => ( + + ))} +
+ {shown.length === 0 &&

{t('dlgIconsNoResults')}

} +
+
+ +
+
+ + ) +} diff --git a/apps/sheets/src/renderer/RecommendedChartsDialog.tsx b/apps/sheets/src/renderer/RecommendedChartsDialog.tsx new file mode 100644 index 0000000..a13ad9c --- /dev/null +++ b/apps/sheets/src/renderer/RecommendedChartsDialog.tsx @@ -0,0 +1,314 @@ +import type { ChartRecommendations, RecommendedKind } from '../domain/chart-recommend' +import { useI18n, type StringKey } from './i18n/locale' + +/// Excel's Insert → Recommended Charts: ranked suggestions with a mini +/// preview sketched from the actual selection, one click to insert. + +const PALETTE = ['#4472c4', '#ed7d31', '#a5a5a5', '#ffc000', '#5b9bd5', '#70ad47'] +const W = 180 +const H = 104 +const PAD = 8 + +const KIND_LABEL: Record = { + column: 'appChartColumn', + bar: 'appChartBar', + line: 'appChartLine', + area: 'appChartTypeArea', + pie: 'appChartPie', + doughnut: 'appChartDoughnut', + scatter: 'appChartScatter', + radar: 'appChartRadar', + combo: 'appChartCombo', +} + +const REASON_LABEL: Record = { + time: 'dlgRecoReasonTime', + proportion: 'dlgRecoReasonProportion', + correlation: 'dlgRecoReasonCorrelation', + comparison: 'dlgRecoReasonComparison', + manyPoints: 'dlgRecoReasonManyPoints', + longLabels: 'dlgRecoReasonLongLabels', + mixedScales: 'dlgRecoReasonMixedScales', +} + +interface PreviewSeries { + color: string + points: number[] +} + +/// Values normalized to 0..1 with a shared scale, capped for legibility. +function previewSeries(parsed: ChartRecommendations['parsed'], maxPoints: number): PreviewSeries[] { + const series = parsed.series.slice(0, 3) + const sliced = series.map((entry) => entry.values.slice(0, maxPoints)) + const flat = sliced.flat() + const top = Math.max(...flat, 0) + const bottom = Math.min(...flat, 0) + const span = top - bottom || 1 + return sliced.map((values, index) => ({ + color: PALETTE[index % PALETTE.length] ?? '#4472c4', + points: values.map((value) => (value - bottom) / span), + })) +} + +function linePath(points: number[], plotWidth: number): string { + const step = points.length > 1 ? plotWidth / (points.length - 1) : 0 + return points + .map( + (value, index) => + `${index === 0 ? 'M' : 'L'}${(PAD + index * step).toFixed(1)},${(H - PAD - value * (H - PAD * 2)).toFixed(1)}`, + ) + .join(' ') +} + +function pieSlices(values: number[]): { d: string; color: string }[] { + const total = values.reduce((sum, value) => sum + Math.max(value, 0), 0) || 1 + const cx = W / 2 + const cy = H / 2 + const r = H / 2 - PAD + let angle = -Math.PI / 2 + return values.slice(0, 8).map((value, index) => { + const sweep = (Math.max(value, 0) / total) * Math.PI * 2 + const from = angle + angle += sweep + const x1 = cx + r * Math.cos(from) + const y1 = cy + r * Math.sin(from) + const x2 = cx + r * Math.cos(angle) + const y2 = cy + r * Math.sin(angle) + return { + d: `M${cx},${cy} L${x1.toFixed(1)},${y1.toFixed(1)} A${r},${r} 0 ${sweep > Math.PI ? 1 : 0} 1 ${x2.toFixed(1)},${y2.toFixed(1)} Z`, + color: PALETTE[index % PALETTE.length] ?? '#4472c4', + } + }) +} + +function ChartPreview({ + kind, + parsed, +}: { + readonly kind: RecommendedKind + readonly parsed: ChartRecommendations['parsed'] +}): React.JSX.Element { + const plotWidth = W - PAD * 2 + const plotHeight = H - PAD * 2 + const content = (): React.JSX.Element => { + switch (kind) { + case 'pie': + case 'doughnut': { + const first = parsed.series[0] + return ( + <> + {pieSlices(first?.values ?? []).map((slice, index) => ( + + ))} + {kind === 'doughnut' && ( + + )} + + ) + } + case 'bar': { + const series = previewSeries(parsed, 6) + const groups = series[0]?.points.length ?? 0 + const band = plotHeight / Math.max(groups, 1) + const barHeight = Math.min(10, (band * 0.7) / series.length) + return ( + <> + {series.map((entry, seriesIndex) => + entry.points.map((value, index) => ( + + )), + )} + + ) + } + case 'line': + case 'area': { + const series = previewSeries(parsed, 12) + return ( + <> + {series.map((entry, index) => ( + + {kind === 'area' && ( + + )} + + + ))} + + ) + } + case 'scatter': { + const [xs, ys] = previewSeries(parsed, 24) + const points = ys ?? xs + const xPoints = ys ? (xs?.points ?? []) : [] + return ( + <> + {(points?.points ?? []).map((value, index) => ( + + ))} + + ) + } + case 'radar': { + const series = previewSeries(parsed, 8) + const count = series[0]?.points.length ?? 3 + const cx = W / 2 + const cy = H / 2 + const radius = H / 2 - PAD + const vertex = (value: number, index: number): string => { + const angle = -Math.PI / 2 + (index / count) * Math.PI * 2 + return `${(cx + radius * value * Math.cos(angle)).toFixed(1)},${(cy + radius * value * Math.sin(angle)).toFixed(1)}` + } + return ( + <> + vertex(1, index)).join(' ')} + fill="none" + stroke="var(--border, #ccc)" + /> + {series.map((entry, seriesIndex) => ( + vertex(value, index)).join(' ')} + fill={entry.color} + opacity={0.4} + stroke={entry.color} + /> + ))} + + ) + } + case 'combo': { + const series = previewSeries(parsed, 8) + const bars = series[0] + const line = series[1] ?? series[0] + const groups = bars?.points.length ?? 0 + const band = plotWidth / Math.max(groups, 1) + return ( + <> + {(bars?.points ?? []).map((value, index) => ( + + ))} + {line && ( + + )} + + ) + } + default: { + const series = previewSeries(parsed, 8) + const groups = series[0]?.points.length ?? 0 + const band = plotWidth / Math.max(groups, 1) + const barWidth = Math.min(14, (band * 0.7) / series.length) + return ( + <> + {series.map((entry, seriesIndex) => + entry.points.map((value, index) => ( + + )), + )} + + ) + } + } + } + return ( + + ) +} + +export function RecommendedChartsDialog({ + recommendations, + onPick, + onClose, +}: { + readonly recommendations: ChartRecommendations + readonly onPick: (kind: RecommendedKind) => void + readonly onClose: () => void +}): React.JSX.Element { + const { t } = useI18n() + return ( +
+
event.stopPropagation()} + > +
{t('dlgRecoTitle')}
+
+

{t('dlgRecoNote')}

+
+ {recommendations.items.map((item) => ( + + ))} +
+
+
+ +
+
+
+ ) +} diff --git a/apps/sheets/src/renderer/ScreenshotDialog.tsx b/apps/sheets/src/renderer/ScreenshotDialog.tsx new file mode 100644 index 0000000..bad6f3e --- /dev/null +++ b/apps/sheets/src/renderer/ScreenshotDialog.tsx @@ -0,0 +1,141 @@ +import { useEffect, useState } from 'react' + +import type { ScreenSourcesResult } from '../shared/desktop-api' +import { useI18n } from './i18n/locale' + +/// Excel's Insert → Screenshot: a picker over the OS's capturable surfaces. +/// Screens first, then other windows (our own window is excluded by the main +/// process). Picking one grabs a full-resolution frame and inserts it as a +/// floating picture at the selection. + +type LoadState = + | { phase: 'loading' } + | { phase: 'denied' } + | { phase: 'ready'; sources: ScreenSourcesResult['sources'] } + +export function ScreenshotDialog({ + onInsert, + onClose, +}: { + readonly onInsert: (dataUrl: string, width: number, height: number) => void + readonly onClose: () => void +}): React.JSX.Element { + const { t } = useI18n() + const [state, setState] = useState({ phase: 'loading' }) + const [refreshTick, setRefreshTick] = useState(0) + const [capturingId, setCapturingId] = useState(null) + const [failed, setFailed] = useState(false) + + useEffect(() => { + let stale = false + setState({ phase: 'loading' }) + setFailed(false) + window.desktopApi + .captureScreenSources() + .then((result) => { + if (stale) return + if (result.status === 'denied') setState({ phase: 'denied' }) + else setState({ phase: 'ready', sources: result.sources }) + }) + .catch(() => { + if (stale) return + setFailed(true) + setState({ phase: 'ready', sources: [] }) + }) + return () => { + stale = true + } + }, [refreshTick]) + + const capture = (id: string): void => { + if (capturingId !== null) return + setCapturingId(id) + setFailed(false) + window.desktopApi + .captureScreenSource({ id }) + .then((result) => { + if (!result) { + setFailed(true) + setCapturingId(null) + setRefreshTick((tick) => tick + 1) + return + } + onInsert(`data:${result.mediaType};base64,${result.base64}`, result.width, result.height) + onClose() + }) + .catch(() => { + setFailed(true) + setCapturingId(null) + }) + } + + const section = ( + label: string, + sources: ScreenSourcesResult['sources'], + ): React.JSX.Element | null => + sources.length === 0 ? null : ( + <> +

{label}

+
+ {sources.map((source) => ( + + ))} +
+ + ) + + return ( +
+
event.stopPropagation()} + > +
{t('dlgScreenshotTitle')}
+
+ {state.phase === 'loading' &&

{t('dlgScreenshotLoading')}

} + {state.phase === 'denied' &&

{t('dlgScreenshotDenied')}

} + {state.phase === 'ready' && ( + <> + {section( + t('dlgScreenshotScreens'), + state.sources.filter((source) => source.kind === 'screen'), + )} + {section( + t('dlgScreenshotWindows'), + state.sources.filter((source) => source.kind === 'window'), + )} + {state.sources.length === 0 && !failed && ( +

{t('dlgScreenshotEmpty')}

+ )} + + )} + {failed &&

{t('dlgScreenshotFailed')}

} +
+
+ + +
+
+
+ ) +} diff --git a/apps/sheets/src/renderer/WorkbookVisuals.tsx b/apps/sheets/src/renderer/WorkbookVisuals.tsx index 818f7aa..2aef938 100644 --- a/apps/sheets/src/renderer/WorkbookVisuals.tsx +++ b/apps/sheets/src/renderer/WorkbookVisuals.tsx @@ -12,6 +12,11 @@ import { splitSheetRef, } from '../domain/chart-visual' import { parseAddress } from '../domain/cell-address' +import { + isPillPreset, + presetPath, + presetPolygon, +} from '../../../../packages/pptx-render/src/preset-geometry' import { t } from './i18n/locale' import type { WorkbookChartEdit, WorkbookFile, WorkbookVisualObject } from '../shared/desktop-api' @@ -962,24 +967,17 @@ function EditableShapeVisual({ ) } -const SHAPE_POLYGONS: Record = { - triangle: '50,4 96,96 4,96', - diamond: '50,2 98,50 50,98 2,50', - rightArrow: '2,35 60,35 60,15 98,50 60,85 60,65 2,65', - leftArrow: '98,35 40,35 40,15 2,50 40,85 40,65 98,65', - pentagon: '50,2 98,38 79,98 21,98 2,38', - hexagon: '25,4 75,4 98,50 75,96 25,96 2,50', -} - function ShapeVisual({ visual }: { readonly visual: WorkbookVisualObject }): React.JSX.Element { const type = visual.shapeType ?? '' const fill = visual.fillColor ?? '#DDEBF7' - const isRect = ['rect', 'roundRect', 'flowChartProcess', 'snip1Rect', 'snip2SameRect'].includes( - type, - ) + const isRect = type === 'rect' || type === 'flowChartProcess' + // Alternate Process draws as a rounded rectangle, not a pill like Terminator + const isRounded = type === 'roundRect' || type === 'flowChartAlternateProcess' + const isPill = isPillPreset(type) && !isRounded const isEllipse = type === 'ellipse' - const polygon = SHAPE_POLYGONS[type] - if (!isRect && !isEllipse && !polygon) { + const polygon = presetPolygon(type, 100, 100) + const path = polygon ? null : presetPath(type, 100, 100) + if (!isRect && !isPill && !isRounded && !isEllipse && !polygon && !path) { return (
{visual.text ?? visual.name ?? t('appDrawingObject')} @@ -992,19 +990,30 @@ function ShapeVisual({ visual }: { readonly visual: WorkbookVisualObject }): Rea style={visual.rotation ? { transform: `rotate(${visual.rotation}deg)` } : undefined} > {visual.text && {visual.text}}
diff --git a/apps/sheets/src/renderer/ai/prompts/guides/charts.md b/apps/sheets/src/renderer/ai/prompts/guides/charts.md index 07a63e7..092c8c0 100644 --- a/apps/sheets/src/renderer/ai/prompts/guides/charts.md +++ b/apps/sheets/src/renderer/ai/prompts/guides/charts.md @@ -34,7 +34,7 @@ `{op:"add_shape", sheetId, shapeType, anchorCell:"E2", fillColor?, text?}` -- shapeType: "rect" | "roundRect" | "ellipse" | "triangle" | "diamond" | "rightArrow" | "leftArrow" | "pentagon" | "hexagon" | "textbox" +- shapeType: any OOXML prstGeom name from the insert gallery ("rect", "roundRect", "ellipse", "heart", "star5", "flowChartProcess", "wedgeRectCallout", …; see the shape-image guide) or "textbox" - textbox defaults to a white background with the text "Text"; other shapes default to a light-blue fill. text can carry the annotation directly. - Likewise only works for imported xlsx files; written into the file on save. @@ -51,12 +51,12 @@ ## Chart type selection (by data intent) -| Data intent | Recommended type | Notes | -|---|---|---| -| Time trend / continuous change | `line` / `area` | line for multi-period trends; area to emphasize cumulative amount/volume | -| Category comparison | `column` (vertical) / `bar` (horizontal) | use bar when category names are long or numerous (easier to read horizontally) | -| Share of total (≤ 6 items) | `pie` | uses only the first numeric column; switch to bar when there are many items | -| Relationship between two variables | scatter | first column as X (must be numeric), remaining columns as Y | +| Data intent | Recommended type | Notes | +| ---------------------------------- | ---------------------------------------- | ------------------------------------------------------------------------------ | +| Time trend / continuous change | `line` / `area` | line for multi-period trends; area to emphasize cumulative amount/volume | +| Category comparison | `column` (vertical) / `bar` (horizontal) | use bar when category names are long or numerous (easier to read horizontally) | +| Share of total (≤ 6 items) | `pie` | uses only the first numeric column; switch to bar when there are many items | +| Relationship between two variables | scatter | first column as X (must be numeric), remaining columns as Y | Selection principle: one chart answers one question; for multiple comparison dimensions, prefer column (detail) + pie (share) as complements. diff --git a/apps/sheets/src/renderer/ai/prompts/guides/shape-image.md b/apps/sheets/src/renderer/ai/prompts/guides/shape-image.md index e21a7c8..a2e5822 100644 --- a/apps/sheets/src/renderer/ai/prompts/guides/shape-image.md +++ b/apps/sheets/src/renderer/ai/prompts/guides/shape-image.md @@ -4,7 +4,7 @@ `{op:"add_shape", sheetId, shapeType, anchorCell:"E2", fillColor?, text?}` -- shapeType: "rect" | "roundRect" | "ellipse" | "triangle" | "diamond" | "rightArrow" | "leftArrow" | "pentagon" | "hexagon" | "textbox" +- shapeType: any OOXML prstGeom name from the insert gallery — rectangles ("rect", "roundRect", snip/round corner variants), basic shapes ("ellipse", "triangle", "diamond", "hexagon", "heart", "cloud", "donut", "smileyFace", …), block arrows ("rightArrow", "quadArrow", "chevron", …), stars/banners ("star5", "star12", "ribbon", "wave", …), flowchart nodes ("flowChartProcess", "flowChartDecision", "flowChartDocument", …), callouts ("wedgeRectCallout", "cloudCallout", …), or "textbox" - textbox defaults to a white background with "Text"; other shapes default to a light-blue fill. text can carry the annotation directly. - Layout-class: can share a batch with content/format, not with structural operations; only works on imported xlsx, written with ⌘S. @@ -25,7 +25,12 @@ No chart object needed — draw a mini trend chart inside a cell with a formula: Great for a "Trend" column at the end of each summary row — the trend is visible at a glance and is lighter than inserting many charts. ```json -{"op":"set_formula","sheetId":"s1","address":"N2","formula":"=SPARKLINE(B2:M2,{\"charttype\",\"column\"})"} +{ + "op": "set_formula", + "sheetId": "s1", + "address": "N2", + "formula": "=SPARKLINE(B2:M2,{\"charttype\",\"column\"})" +} ``` ## In-cell images / links (supported) diff --git a/apps/sheets/src/renderer/edit-journal.ts b/apps/sheets/src/renderer/edit-journal.ts index 5e4f78e..82c5b28 100644 --- a/apps/sheets/src/renderer/edit-journal.ts +++ b/apps/sheets/src/renderer/edit-journal.ts @@ -14,6 +14,7 @@ import type { } from '../shared/desktop-api' import { columnLabel, parseRange } from '../domain/cell-address' import { splitSheetRef } from '../domain/chart-visual' +import { ADDABLE_SHAPE_TYPES } from '../shared/shape-types' import { INDENT_STEP_PX } from './selection-format' /// Tracks the user's cell edits on a streamed external workbook. Streaming @@ -664,18 +665,6 @@ export function updateVisualAdd( return true } -const ADDABLE_SHAPE_TYPES = [ - 'rect', - 'roundRect', - 'ellipse', - 'triangle', - 'diamond', - 'rightArrow', - 'leftArrow', - 'pentagon', - 'hexagon', -] as const - /// Session table adds for the save request; tables on removed sheets drop. export function toSaveTableAdds(journal: EditJournal): WorkbookTableAdd[] { return journal.tableAdds.filter((table) => !isSheetRemoved(journal, table.sheetId)) diff --git a/apps/sheets/src/renderer/i18n/strings-app.ts b/apps/sheets/src/renderer/i18n/strings-app.ts index 52ef7cf..9581ed8 100644 --- a/apps/sheets/src/renderer/i18n/strings-app.ts +++ b/apps/sheets/src/renderer/i18n/strings-app.ts @@ -602,15 +602,116 @@ export const appStrings = defineStrings({ appPictureTypes: 'PNG、JPEG、GIF', appShapes: '形状', appInsertShapeTitle: '在当前选区插入图形', + appShapeGroupRects: '矩形', + appShapeGroupBasic: '基本形状', + appShapeGroupArrows: '箭头', + appShapeGroupStars: '星与旗帜', + appShapeGroupFlowchart: '流程图', + appShapeGroupCallouts: '标注', appShapeRect: '矩形', appShapeRoundRect: '圆角矩形', + appShapeSnip1Rect: '剪去单角的矩形', + appShapeSnip2SameRect: '剪去同侧角的矩形', + appShapeSnip2DiagRect: '剪去对角的矩形', + appShapeSnipRoundRect: '剪去一个圆角的矩形', + appShapeRound1Rect: '圆化单角的矩形', + appShapeRound2SameRect: '圆化同侧角的矩形', + appShapeRound2DiagRect: '圆化对角的矩形', appShapeEllipse: '椭圆', - appShapeTriangle: '三角形', + appShapeTriangle: '等腰三角形', + appShapeRtTriangle: '直角三角形', + appShapeParallelogram: '平行四边形', + appShapeTrapezoid: '梯形', appShapeDiamond: '菱形', + appShapePentagon: '正五边形', + appShapeHexagon: '六边形', + appShapeOctagon: '八边形', + appShapePlus: '十字形', + appShapeMathPlus: '加号', + appShapePie: '饼形', + appShapeChord: '弦形', + appShapeTeardrop: '泪滴形', + appShapeFrame: '框架', + appShapeHalfFrame: '半闭框', + appShapeCorner: 'L 形', + appShapeDiagStripe: '斜纹', + appShapeDonut: '圆环', + appShapeNoSmoking: '禁止符', + appShapeBlockArc: '空心弧', + appShapeFoldedCorner: '折角形', + appShapeBevel: '棱台', + appShapeCube: '立方体', + appShapeCan: '圆柱形', + appShapeLightningBolt: '闪电形', + appShapeHeart: '心形', + appShapeSun: '太阳形', + appShapeMoon: '新月形', + appShapeCloud: '云形', + appShapeArc: '弧形', + appShapePlaque: '铭牌', + appShapeSmileyFace: '笑脸', + appShapeLeftBracket: '左中括号', + appShapeRightBracket: '右中括号', + appShapeLeftBrace: '左大括号', + appShapeRightBrace: '右大括号', appShapeRightArrow: '右箭头', appShapeLeftArrow: '左箭头', - appShapePentagon: '五边形', - appShapeHexagon: '六边形', + appShapeUpArrow: '上箭头', + appShapeDownArrow: '下箭头', + appShapeLeftRightArrow: '左右箭头', + appShapeUpDownArrow: '上下箭头', + appShapeQuadArrow: '十字箭头', + appShapeBentArrow: '圆角右箭头', + appShapeUturnArrow: '手杖形箭头', + appShapeCurvedRightArrow: '弧形右箭头', + appShapeStripedRightArrow: '虚尾箭头', + appShapeNotchedRightArrow: '燕尾形箭头', + appShapeChevron: 'V 形箭头', + appShapeHomePlate: '五边形箭头', + appShapeStar4: '四角星', + appShapeStar5: '五角星', + appShapeStar6: '六角星', + appShapeStar7: '七角星', + appShapeStar8: '八角星', + appShapeStar10: '十角星', + appShapeStar12: '十二角星', + appShapeStar16: '十六角星', + appShapeStar24: '二十四角星', + appShapeStar32: '三十二角星', + appShapeIrregularSeal1: '爆炸形 1', + appShapeIrregularSeal2: '爆炸形 2', + appShapeRibbon: '前凸带形', + appShapeRibbon2: '上凸带形', + appShapeWave: '波形', + appShapeDoubleWave: '双波形', + appShapeFlowProcess: '流程图: 过程', + appShapeFlowAlternateProcess: '流程图: 可选过程', + appShapeFlowDecision: '流程图: 决策', + appShapeFlowPredefinedProcess: '流程图: 预定义过程', + appShapeFlowInternalStorage: '流程图: 内部贮存', + appShapeFlowDocument: '流程图: 文档', + appShapeFlowMultidocument: '流程图: 多文档', + appShapeFlowTerminator: '流程图: 终止', + appShapeFlowPreparation: '流程图: 准备', + appShapeFlowManualInput: '流程图: 手动输入', + appShapeFlowManualOperation: '流程图: 手动操作', + appShapeFlowConnector: '流程图: 接点', + appShapeFlowOffpageConnector: '流程图: 离页连接符', + appShapeFlowMagneticDisk: '流程图: 磁盘', + appShapeFlowMagneticDrum: '流程图: 直接访问存储器', + appShapeFlowDisplay: '流程图: 显示', + appShapeFlowDelay: '流程图: 延期', + appShapeFlowOr: '流程图: 或者', + appShapeFlowCollate: '流程图: 对照', + appShapeFlowSort: '流程图: 排序', + appShapeFlowExtract: '流程图: 摘录', + appShapeFlowMerge: '流程图: 合并', + appShapeFlowSummingJunction: '流程图: 汇总连接', + appShapeFlowPunchedTape: '流程图: 资料带', + appShapeWedgeRectCallout: '矩形标注', + appShapeWedgeRoundRectCallout: '圆角矩形标注', + appShapeWedgeEllipseCallout: '椭圆形标注', + appShapeCloudCallout: '云形标注', appIcons: '图标', app3dModels: '3D 模型', appScreenshot: '屏幕截图', @@ -1550,15 +1651,116 @@ export const appStrings = defineStrings({ appPictureTypes: 'PNG, JPEG, GIF', appShapes: 'Shapes', appInsertShapeTitle: 'Insert a shape at the selection', + appShapeGroupRects: 'Rectangles', + appShapeGroupBasic: 'Basic Shapes', + appShapeGroupArrows: 'Arrows', + appShapeGroupStars: 'Stars', + appShapeGroupFlowchart: 'Flowchart', + appShapeGroupCallouts: 'Callouts', appShapeRect: 'Rectangle', - appShapeRoundRect: 'Rounded rectangle', - appShapeEllipse: 'Ellipse', - appShapeTriangle: 'Triangle', + appShapeRoundRect: 'Rounded Rectangle', + appShapeSnip1Rect: 'Snip Single Corner Rectangle', + appShapeSnip2SameRect: 'Snip Same Side Corner Rectangle', + appShapeSnip2DiagRect: 'Snip Diagonal Corner Rectangle', + appShapeSnipRoundRect: 'Snip and Round Single Corner Rectangle', + appShapeRound1Rect: 'Round Single Corner Rectangle', + appShapeRound2SameRect: 'Round Same Side Corner Rectangle', + appShapeRound2DiagRect: 'Round Diagonal Corner Rectangle', + appShapeEllipse: 'Oval', + appShapeTriangle: 'Isosceles Triangle', + appShapeRtTriangle: 'Right Triangle', + appShapeParallelogram: 'Parallelogram', + appShapeTrapezoid: 'Trapezoid', appShapeDiamond: 'Diamond', - appShapeRightArrow: 'Right arrow', - appShapeLeftArrow: 'Left arrow', - appShapePentagon: 'Pentagon', + appShapePentagon: 'Regular Pentagon', appShapeHexagon: 'Hexagon', + appShapeOctagon: 'Octagon', + appShapePlus: 'Cross', + appShapeMathPlus: 'Plus Sign', + appShapePie: 'Pie', + appShapeChord: 'Chord', + appShapeTeardrop: 'Teardrop', + appShapeFrame: 'Frame', + appShapeHalfFrame: 'Half Frame', + appShapeCorner: 'L-Shape', + appShapeDiagStripe: 'Diagonal Stripe', + appShapeDonut: 'Donut', + appShapeNoSmoking: '"No" Symbol', + appShapeBlockArc: 'Block Arc', + appShapeFoldedCorner: 'Folded Corner', + appShapeBevel: 'Bevel', + appShapeCube: 'Cube', + appShapeCan: 'Can', + appShapeLightningBolt: 'Lightning Bolt', + appShapeHeart: 'Heart', + appShapeSun: 'Sun', + appShapeMoon: 'Moon', + appShapeCloud: 'Cloud', + appShapeArc: 'Arc', + appShapePlaque: 'Plaque', + appShapeSmileyFace: 'Smiley Face', + appShapeLeftBracket: 'Left Bracket', + appShapeRightBracket: 'Right Bracket', + appShapeLeftBrace: 'Left Brace', + appShapeRightBrace: 'Right Brace', + appShapeRightArrow: 'Right Arrow', + appShapeLeftArrow: 'Left Arrow', + appShapeUpArrow: 'Up Arrow', + appShapeDownArrow: 'Down Arrow', + appShapeLeftRightArrow: 'Left-Right Arrow', + appShapeUpDownArrow: 'Up-Down Arrow', + appShapeQuadArrow: 'Quad Arrow', + appShapeBentArrow: 'Bent Arrow', + appShapeUturnArrow: 'U-Turn Arrow', + appShapeCurvedRightArrow: 'Curved Right Arrow', + appShapeStripedRightArrow: 'Striped Right Arrow', + appShapeNotchedRightArrow: 'Notched Right Arrow', + appShapeChevron: 'Chevron', + appShapeHomePlate: 'Pentagon Arrow', + appShapeStar4: 'Star: 4 Points', + appShapeStar5: 'Star: 5 Points', + appShapeStar6: 'Star: 6 Points', + appShapeStar7: 'Star: 7 Points', + appShapeStar8: 'Star: 8 Points', + appShapeStar10: 'Star: 10 Points', + appShapeStar12: 'Star: 12 Points', + appShapeStar16: 'Star: 16 Points', + appShapeStar24: 'Star: 24 Points', + appShapeStar32: 'Star: 32 Points', + appShapeIrregularSeal1: 'Explosion 1', + appShapeIrregularSeal2: 'Explosion 2', + appShapeRibbon: 'Down Ribbon', + appShapeRibbon2: 'Up Ribbon', + appShapeWave: 'Wave', + appShapeDoubleWave: 'Double Wave', + appShapeFlowProcess: 'Flowchart: Process', + appShapeFlowAlternateProcess: 'Flowchart: Alternate Process', + appShapeFlowDecision: 'Flowchart: Decision', + appShapeFlowPredefinedProcess: 'Flowchart: Predefined Process', + appShapeFlowInternalStorage: 'Flowchart: Internal Storage', + appShapeFlowDocument: 'Flowchart: Document', + appShapeFlowMultidocument: 'Flowchart: Multidocument', + appShapeFlowTerminator: 'Flowchart: Terminator', + appShapeFlowPreparation: 'Flowchart: Preparation', + appShapeFlowManualInput: 'Flowchart: Manual Input', + appShapeFlowManualOperation: 'Flowchart: Manual Operation', + appShapeFlowConnector: 'Flowchart: Connector', + appShapeFlowOffpageConnector: 'Flowchart: Off-page Connector', + appShapeFlowMagneticDisk: 'Flowchart: Magnetic Disk', + appShapeFlowMagneticDrum: 'Flowchart: Direct Access Storage', + appShapeFlowDisplay: 'Flowchart: Display', + appShapeFlowDelay: 'Flowchart: Delay', + appShapeFlowOr: 'Flowchart: Or', + appShapeFlowCollate: 'Flowchart: Collate', + appShapeFlowSort: 'Flowchart: Sort', + appShapeFlowExtract: 'Flowchart: Extract', + appShapeFlowMerge: 'Flowchart: Merge', + appShapeFlowSummingJunction: 'Flowchart: Summing Junction', + appShapeFlowPunchedTape: 'Flowchart: Punched Tape', + appShapeWedgeRectCallout: 'Rectangular Callout', + appShapeWedgeRoundRectCallout: 'Rounded Rectangular Callout', + appShapeWedgeEllipseCallout: 'Oval Callout', + appShapeCloudCallout: 'Cloud Callout', appIcons: 'Icons', app3dModels: '3D Models', appScreenshot: 'Screenshot', @@ -2555,15 +2757,116 @@ export const appStrings = defineStrings({ appPictureTypes: 'PNG、JPEG、GIF', appShapes: '図形', appInsertShapeTitle: '現在の選択位置に図形を挿入', - appShapeRect: '長方形', - appShapeRoundRect: '角丸四角形', + appShapeGroupRects: '四角形', + appShapeGroupBasic: '基本図形', + appShapeGroupArrows: 'ブロック矢印', + appShapeGroupStars: '星', + appShapeGroupFlowchart: 'フローチャート', + appShapeGroupCallouts: '吹き出し', + appShapeRect: '正方形/長方形', + appShapeRoundRect: '四角形: 角を丸くする', + appShapeSnip1Rect: '四角形: 1 つの角を切り取る', + appShapeSnip2SameRect: '四角形: 上の 2 つの角を切り取る', + appShapeSnip2DiagRect: '四角形: 対角を切り取る', + appShapeSnipRoundRect: '四角形: 1 つの角を切り取り 1 つの角を丸める', + appShapeRound1Rect: '四角形: 1 つの角を丸める', + appShapeRound2SameRect: '四角形: 上の 2 つの角を丸める', + appShapeRound2DiagRect: '四角形: 対角を丸める', appShapeEllipse: '楕円', - appShapeTriangle: '三角形', + appShapeTriangle: '二等辺三角形', + appShapeRtTriangle: '直角三角形', + appShapeParallelogram: '平行四辺形', + appShapeTrapezoid: '台形', appShapeDiamond: 'ひし形', - appShapeRightArrow: '右矢印', - appShapeLeftArrow: '左矢印', appShapePentagon: '五角形', appShapeHexagon: '六角形', + appShapeOctagon: '八角形', + appShapePlus: '十字形', + appShapeMathPlus: '加算記号', + appShapePie: '部分円', + appShapeChord: '弦', + appShapeTeardrop: '涙形', + appShapeFrame: 'フレーム', + appShapeHalfFrame: '半フレーム', + appShapeCorner: 'L字', + appShapeDiagStripe: '斜め縞', + appShapeDonut: 'ドーナツ', + appShapeNoSmoking: '禁止マーク', + appShapeBlockArc: 'アーチ', + appShapeFoldedCorner: 'メモ', + appShapeBevel: '額縁', + appShapeCube: '直方体', + appShapeCan: '円柱', + appShapeLightningBolt: '稲妻', + appShapeHeart: 'ハート', + appShapeSun: '太陽', + appShapeMoon: '月', + appShapeCloud: '雲', + appShapeArc: '円弧', + appShapePlaque: 'ブローチ', + appShapeSmileyFace: 'スマイル', + appShapeLeftBracket: '左大かっこ', + appShapeRightBracket: '右大かっこ', + appShapeLeftBrace: '左中かっこ', + appShapeRightBrace: '右中かっこ', + appShapeRightArrow: '矢印: 右', + appShapeLeftArrow: '矢印: 左', + appShapeUpArrow: '矢印: 上', + appShapeDownArrow: '矢印: 下', + appShapeLeftRightArrow: '矢印: 左右', + appShapeUpDownArrow: '矢印: 上下', + appShapeQuadArrow: '十字矢印', + appShapeBentArrow: '屈折矢印', + appShapeUturnArrow: 'Uターン矢印', + appShapeCurvedRightArrow: '右カーブ矢印', + appShapeStripedRightArrow: 'ストライプ矢印', + appShapeNotchedRightArrow: '矢印: V字型', + appShapeChevron: '矢印: 山形', + appShapeHomePlate: '矢印: 五方向', + appShapeStar4: '星: 4 pt', + appShapeStar5: '星: 5 pt', + appShapeStar6: '星: 6 pt', + appShapeStar7: '星: 7 pt', + appShapeStar8: '星: 8 pt', + appShapeStar10: '星: 10 pt', + appShapeStar12: '星: 12 pt', + appShapeStar16: '星: 16 pt', + appShapeStar24: '星: 24 pt', + appShapeStar32: '星: 32 pt', + appShapeIrregularSeal1: '爆発: 8 pt', + appShapeIrregularSeal2: '爆発: 14 pt', + appShapeRibbon: 'リボン: 下に曲がる', + appShapeRibbon2: 'リボン: 上に曲がる', + appShapeWave: '小波', + appShapeDoubleWave: '大波', + appShapeFlowProcess: 'フローチャート: 処理', + appShapeFlowAlternateProcess: 'フローチャート: 代替処理', + appShapeFlowDecision: 'フローチャート: 判断', + appShapeFlowPredefinedProcess: 'フローチャート: 定義済み処理', + appShapeFlowInternalStorage: 'フローチャート: 内部記憶', + appShapeFlowDocument: 'フローチャート: 書類', + appShapeFlowMultidocument: 'フローチャート: 複数書類', + appShapeFlowTerminator: 'フローチャート: 端子', + appShapeFlowPreparation: 'フローチャート: 準備', + appShapeFlowManualInput: 'フローチャート: 手操作入力', + appShapeFlowManualOperation: 'フローチャート: 手作業', + appShapeFlowConnector: 'フローチャート: 結合子', + appShapeFlowOffpageConnector: 'フローチャート: 他ページ結合子', + appShapeFlowMagneticDisk: 'フローチャート: 磁気ディスク', + appShapeFlowMagneticDrum: 'フローチャート: 直接アクセス記憶', + appShapeFlowDisplay: 'フローチャート: 表示', + appShapeFlowDelay: 'フローチャート: 遅延', + appShapeFlowOr: 'フローチャート: 論理和', + appShapeFlowCollate: 'フローチャート: 照合', + appShapeFlowSort: 'フローチャート: 分類', + appShapeFlowExtract: 'フローチャート: 抽出', + appShapeFlowMerge: 'フローチャート: 統合', + appShapeFlowSummingJunction: 'フローチャート: 和接合', + appShapeFlowPunchedTape: 'フローチャート: せん孔テープ', + appShapeWedgeRectCallout: '四角形吹き出し', + appShapeWedgeRoundRectCallout: '角丸四角形吹き出し', + appShapeWedgeEllipseCallout: '円形吹き出し', + appShapeCloudCallout: '雲形吹き出し', appIcons: 'アイコン', app3dModels: '3D モデル', appScreenshot: 'スクリーンショット', @@ -3536,15 +3839,116 @@ export const appStrings = defineStrings({ appPictureTypes: 'PNG, JPEG, GIF', appShapes: '도형', appInsertShapeTitle: '현재 선택 영역에 도형 삽입', + appShapeGroupRects: '사각형', + appShapeGroupBasic: '기본 도형', + appShapeGroupArrows: '블록 화살표', + appShapeGroupStars: '별', + appShapeGroupFlowchart: '순서도', + appShapeGroupCallouts: '설명선', appShapeRect: '직사각형', - appShapeRoundRect: '모서리가 둥근 직사각형', + appShapeRoundRect: '사각형: 둥근 모서리', + appShapeSnip1Rect: '사각형: 잘린 한쪽 모서리', + appShapeSnip2SameRect: '사각형: 잘린 같은 쪽 모서리', + appShapeSnip2DiagRect: '사각형: 잘린 대각선 방향 모서리', + appShapeSnipRoundRect: '사각형: 잘리고 둥근 한쪽 모서리', + appShapeRound1Rect: '사각형: 둥근 한쪽 모서리', + appShapeRound2SameRect: '사각형: 둥근 같은 쪽 모서리', + appShapeRound2DiagRect: '사각형: 둥근 대각선 방향 모서리', appShapeEllipse: '타원', - appShapeTriangle: '삼각형', - appShapeDiamond: '마름모', - appShapeRightArrow: '오른쪽 화살표', - appShapeLeftArrow: '왼쪽 화살표', - appShapePentagon: '오각형', + appShapeTriangle: '이등변 삼각형', + appShapeRtTriangle: '직각 삼각형', + appShapeParallelogram: '평행 사변형', + appShapeTrapezoid: '사다리꼴', + appShapeDiamond: '다이아몬드', + appShapePentagon: '정오각형', appShapeHexagon: '육각형', + appShapeOctagon: '팔각형', + appShapePlus: '십자형', + appShapeMathPlus: '더하기 기호', + appShapePie: '원형', + appShapeChord: '현', + appShapeTeardrop: '눈물 방울', + appShapeFrame: '액자', + appShapeHalfFrame: '반액자', + appShapeCorner: 'L 도형', + appShapeDiagStripe: '대각선 줄무늬', + appShapeDonut: '도넛', + appShapeNoSmoking: '금지 기호', + appShapeBlockArc: '막힌 원호', + appShapeFoldedCorner: '모서리가 접힌 도형', + appShapeBevel: '빗면', + appShapeCube: '정육면체', + appShapeCan: '원통', + appShapeLightningBolt: '번개', + appShapeHeart: '하트', + appShapeSun: '해', + appShapeMoon: '달', + appShapeCloud: '구름', + appShapeArc: '호', + appShapePlaque: '명판', + appShapeSmileyFace: '웃는 얼굴', + appShapeLeftBracket: '왼쪽 대괄호', + appShapeRightBracket: '오른쪽 대괄호', + appShapeLeftBrace: '왼쪽 중괄호', + appShapeRightBrace: '오른쪽 중괄호', + appShapeRightArrow: '화살표: 오른쪽', + appShapeLeftArrow: '화살표: 왼쪽', + appShapeUpArrow: '화살표: 위쪽', + appShapeDownArrow: '화살표: 아래쪽', + appShapeLeftRightArrow: '화살표: 왼쪽/오른쪽', + appShapeUpDownArrow: '화살표: 위/아래', + appShapeQuadArrow: '십자형 화살표', + appShapeBentArrow: '굽은 화살표', + appShapeUturnArrow: 'U자형 화살표', + appShapeCurvedRightArrow: '오른쪽으로 구부러진 화살표', + appShapeStripedRightArrow: '줄무늬가 있는 오른쪽 화살표', + appShapeNotchedRightArrow: '화살표: 톱니 모양 오른쪽', + appShapeChevron: '화살표: 갈매기형 수장', + appShapeHomePlate: '화살표: 오각형', + appShapeStar4: '별: 꼭짓점 4개', + appShapeStar5: '별: 꼭짓점 5개', + appShapeStar6: '별: 꼭짓점 6개', + appShapeStar7: '별: 꼭짓점 7개', + appShapeStar8: '별: 꼭짓점 8개', + appShapeStar10: '별: 꼭짓점 10개', + appShapeStar12: '별: 꼭짓점 12개', + appShapeStar16: '별: 꼭짓점 16개', + appShapeStar24: '별: 꼭짓점 24개', + appShapeStar32: '별: 꼭짓점 32개', + appShapeIrregularSeal1: '폭발: 8pt', + appShapeIrregularSeal2: '폭발: 14pt', + appShapeRibbon: '아래쪽 리본', + appShapeRibbon2: '위쪽 리본', + appShapeWave: '물결', + appShapeDoubleWave: '이중 물결', + appShapeFlowProcess: '순서도: 처리', + appShapeFlowAlternateProcess: '순서도: 대체 처리', + appShapeFlowDecision: '순서도: 판단', + appShapeFlowPredefinedProcess: '순서도: 미리 정의된 처리', + appShapeFlowInternalStorage: '순서도: 내부 저장소', + appShapeFlowDocument: '순서도: 문서', + appShapeFlowMultidocument: '순서도: 다중 문서', + appShapeFlowTerminator: '순서도: 종결자', + appShapeFlowPreparation: '순서도: 준비', + appShapeFlowManualInput: '순서도: 수동 입력', + appShapeFlowManualOperation: '순서도: 수동 작업', + appShapeFlowConnector: '순서도: 연결자', + appShapeFlowOffpageConnector: '순서도: 페이지 연결자', + appShapeFlowMagneticDisk: '순서도: 자기 디스크', + appShapeFlowMagneticDrum: '순서도: 직접 액세스 저장소', + appShapeFlowDisplay: '순서도: 화면 표시', + appShapeFlowDelay: '순서도: 지연', + appShapeFlowOr: '순서도: 논리합', + appShapeFlowCollate: '순서도: 대조', + appShapeFlowSort: '순서도: 정렬', + appShapeFlowExtract: '순서도: 추출', + appShapeFlowMerge: '순서도: 병합', + appShapeFlowSummingJunction: '순서도: 합 접합', + appShapeFlowPunchedTape: '순서도: 천공 테이프', + appShapeWedgeRectCallout: '사각형 설명선', + appShapeWedgeRoundRectCallout: '모서리가 둥근 사각형 설명선', + appShapeWedgeEllipseCallout: '타원형 설명선', + appShapeCloudCallout: '구름 모양 설명선', appIcons: '아이콘', app3dModels: '3D 모델', appScreenshot: '스크린샷', @@ -4553,15 +4957,116 @@ export const appStrings = defineStrings({ appPictureTypes: 'PNG, JPEG, GIF', appShapes: 'Formes', appInsertShapeTitle: 'Insérer une forme à la sélection', + appShapeGroupRects: 'Rectangles', + appShapeGroupBasic: 'Formes de base', + appShapeGroupArrows: 'Flèches pleines', + appShapeGroupStars: 'Étoiles', + appShapeGroupFlowchart: 'Organigrammes', + appShapeGroupCallouts: 'Bulles', appShapeRect: 'Rectangle', - appShapeRoundRect: 'Rectangle arrondi', + appShapeRoundRect: 'Rectangle : coins arrondis', + appShapeSnip1Rect: 'Rectangle : un seul coin coupé', + appShapeSnip2SameRect: 'Rectangle : coins du même côté coupés', + appShapeSnip2DiagRect: 'Rectangle : coins en diagonale coupés', + appShapeSnipRoundRect: 'Rectangle : un coin coupé, un coin arrondi', + appShapeRound1Rect: 'Rectangle : un seul coin arrondi', + appShapeRound2SameRect: 'Rectangle : coins du même côté arrondis', + appShapeRound2DiagRect: 'Rectangle : coins en diagonale arrondis', appShapeEllipse: 'Ellipse', - appShapeTriangle: 'Triangle', + appShapeTriangle: 'Triangle isocèle', + appShapeRtTriangle: 'Triangle rectangle', + appShapeParallelogram: 'Parallélogramme', + appShapeTrapezoid: 'Trapèze', appShapeDiamond: 'Losange', - appShapeRightArrow: 'Flèche droite', - appShapeLeftArrow: 'Flèche gauche', - appShapePentagon: 'Pentagone', + appShapePentagon: 'Pentagone régulier', appShapeHexagon: 'Hexagone', + appShapeOctagon: 'Octogone', + appShapePlus: 'Croix', + appShapeMathPlus: 'Signe plus', + appShapePie: 'Secteur', + appShapeChord: 'Corde', + appShapeTeardrop: 'Larme', + appShapeFrame: 'Cadre', + appShapeHalfFrame: 'Demi-cadre', + appShapeCorner: 'Forme en L', + appShapeDiagStripe: 'Bande diagonale', + appShapeDonut: 'Anneau', + appShapeNoSmoking: 'Symbole « Interdit »', + appShapeBlockArc: 'Arc plein', + appShapeFoldedCorner: 'Coin plié', + appShapeBevel: 'Biseau', + appShapeCube: 'Cube', + appShapeCan: 'Cylindre', + appShapeLightningBolt: 'Éclair', + appShapeHeart: 'Cœur', + appShapeSun: 'Soleil', + appShapeMoon: 'Lune', + appShapeCloud: 'Nuage', + appShapeArc: 'Arc', + appShapePlaque: 'Plaque', + appShapeSmileyFace: 'Visage souriant', + appShapeLeftBracket: 'Crochet gauche', + appShapeRightBracket: 'Crochet droit', + appShapeLeftBrace: 'Accolade gauche', + appShapeRightBrace: 'Accolade droite', + appShapeRightArrow: 'Flèche : droite', + appShapeLeftArrow: 'Flèche : gauche', + appShapeUpArrow: 'Flèche : haut', + appShapeDownArrow: 'Flèche : bas', + appShapeLeftRightArrow: 'Flèche : gauche-droite', + appShapeUpDownArrow: 'Flèche : haut-bas', + appShapeQuadArrow: 'Flèche : quadruple', + appShapeBentArrow: 'Flèche : pliée', + appShapeUturnArrow: 'Flèche : demi-tour', + appShapeCurvedRightArrow: 'Flèche : courbée vers la droite', + appShapeStripedRightArrow: 'Flèche : rayée vers la droite', + appShapeNotchedRightArrow: 'Flèche : droite avec encoche', + appShapeChevron: 'Chevron', + appShapeHomePlate: 'Flèche : pentagone', + appShapeStar4: 'Étoile : 4 branches', + appShapeStar5: 'Étoile : 5 branches', + appShapeStar6: 'Étoile : 6 branches', + appShapeStar7: 'Étoile : 7 branches', + appShapeStar8: 'Étoile : 8 branches', + appShapeStar10: 'Étoile : 10 branches', + appShapeStar12: 'Étoile : 12 branches', + appShapeStar16: 'Étoile : 16 branches', + appShapeStar24: 'Étoile : 24 branches', + appShapeStar32: 'Étoile : 32 branches', + appShapeIrregularSeal1: 'Explosion 1', + appShapeIrregularSeal2: 'Explosion 2', + appShapeRibbon: 'Ruban : incliné vers le bas', + appShapeRibbon2: 'Ruban : incliné vers le haut', + appShapeWave: 'Vague', + appShapeDoubleWave: 'Double vague', + appShapeFlowProcess: 'Organigramme : processus', + appShapeFlowAlternateProcess: 'Organigramme : autre processus', + appShapeFlowDecision: 'Organigramme : décision', + appShapeFlowPredefinedProcess: 'Organigramme : processus prédéfini', + appShapeFlowInternalStorage: 'Organigramme : stockage interne', + appShapeFlowDocument: 'Organigramme : document', + appShapeFlowMultidocument: 'Organigramme : multidocument', + appShapeFlowTerminator: 'Organigramme : terminaison', + appShapeFlowPreparation: 'Organigramme : préparation', + appShapeFlowManualInput: 'Organigramme : entrée manuelle', + appShapeFlowManualOperation: 'Organigramme : opération manuelle', + appShapeFlowConnector: 'Organigramme : connecteur', + appShapeFlowOffpageConnector: 'Organigramme : renvoi à une autre page', + appShapeFlowMagneticDisk: 'Organigramme : disque magnétique', + appShapeFlowMagneticDrum: 'Organigramme : stockage à accès direct', + appShapeFlowDisplay: 'Organigramme : affichage', + appShapeFlowDelay: 'Organigramme : délai', + appShapeFlowOr: 'Organigramme : ou', + appShapeFlowCollate: 'Organigramme : assemblage', + appShapeFlowSort: 'Organigramme : tri', + appShapeFlowExtract: 'Organigramme : extraction', + appShapeFlowMerge: 'Organigramme : fusion', + appShapeFlowSummingJunction: 'Organigramme : jonction de sommation', + appShapeFlowPunchedTape: 'Organigramme : bande perforée', + appShapeWedgeRectCallout: 'Bulle rectangulaire', + appShapeWedgeRoundRectCallout: 'Bulle rectangulaire arrondie', + appShapeWedgeEllipseCallout: 'Bulle ovale', + appShapeCloudCallout: 'Bulle en forme de nuage', appIcons: 'Icônes', app3dModels: 'Modèles 3D', appScreenshot: "Capture d'écran", @@ -5553,15 +6058,116 @@ export const appStrings = defineStrings({ appPictureTypes: 'PNG, JPEG, GIF', appShapes: 'Formen', appInsertShapeTitle: 'Eine Form an der Auswahl einfügen', + appShapeGroupRects: 'Rechtecke', + appShapeGroupBasic: 'Standardformen', + appShapeGroupArrows: 'Blockpfeile', + appShapeGroupStars: 'Sterne', + appShapeGroupFlowchart: 'Flussdiagramm', + appShapeGroupCallouts: 'Legenden', appShapeRect: 'Rechteck', - appShapeRoundRect: 'Abgerundetes Rechteck', + appShapeRoundRect: 'Rechteck: abgerundete Ecken', + appShapeSnip1Rect: 'Rechteck: einzelne Ecke abgeschnitten', + appShapeSnip2SameRect: 'Rechteck: Ecken auf derselben Seite abgeschnitten', + appShapeSnip2DiagRect: 'Rechteck: diagonale Ecken abgeschnitten', + appShapeSnipRoundRect: 'Rechteck: einzelne Ecke abgeschnitten und abgerundet', + appShapeRound1Rect: 'Rechteck: einzelne Ecke abgerundet', + appShapeRound2SameRect: 'Rechteck: Ecken auf derselben Seite abgerundet', + appShapeRound2DiagRect: 'Rechteck: diagonale Ecken abgerundet', appShapeEllipse: 'Ellipse', - appShapeTriangle: 'Dreieck', + appShapeTriangle: 'Gleichschenkliges Dreieck', + appShapeRtTriangle: 'Rechtwinkliges Dreieck', + appShapeParallelogram: 'Parallelogramm', + appShapeTrapezoid: 'Trapez', appShapeDiamond: 'Raute', - appShapeRightArrow: 'Pfeil nach rechts', - appShapeLeftArrow: 'Pfeil nach links', - appShapePentagon: 'Fünfeck', + appShapePentagon: 'Regelmäßiges Fünfeck', appShapeHexagon: 'Sechseck', + appShapeOctagon: 'Achteck', + appShapePlus: 'Kreuz', + appShapeMathPlus: 'Pluszeichen', + appShapePie: 'Kreissegment', + appShapeChord: 'Sehne', + appShapeTeardrop: 'Träne', + appShapeFrame: 'Rahmen', + appShapeHalfFrame: 'Halber Rahmen', + appShapeCorner: 'L-Form', + appShapeDiagStripe: 'Diagonaler Streifen', + appShapeDonut: 'Ring', + appShapeNoSmoking: 'Verbotssymbol', + appShapeBlockArc: 'Blockbogen', + appShapeFoldedCorner: 'Gefaltete Ecke', + appShapeBevel: 'Fase', + appShapeCube: 'Würfel', + appShapeCan: 'Zylinder', + appShapeLightningBolt: 'Blitz', + appShapeHeart: 'Herz', + appShapeSun: 'Sonne', + appShapeMoon: 'Mond', + appShapeCloud: 'Wolke', + appShapeArc: 'Bogen', + appShapePlaque: 'Plakette', + appShapeSmileyFace: 'Smiley', + appShapeLeftBracket: 'Linke eckige Klammer', + appShapeRightBracket: 'Rechte eckige Klammer', + appShapeLeftBrace: 'Geschweifte Klammer links', + appShapeRightBrace: 'Geschweifte Klammer rechts', + appShapeRightArrow: 'Pfeil: nach rechts', + appShapeLeftArrow: 'Pfeil: nach links', + appShapeUpArrow: 'Pfeil: nach oben', + appShapeDownArrow: 'Pfeil: nach unten', + appShapeLeftRightArrow: 'Pfeil: nach links und rechts', + appShapeUpDownArrow: 'Pfeil: nach oben und unten', + appShapeQuadArrow: 'Vierfachpfeil', + appShapeBentArrow: 'Gebogener Pfeil', + appShapeUturnArrow: 'U-förmiger Pfeil', + appShapeCurvedRightArrow: 'Nach rechts gekrümmter Pfeil', + appShapeStripedRightArrow: 'Gestreifter Pfeil nach rechts', + appShapeNotchedRightArrow: 'Pfeil: eingekerbt nach rechts', + appShapeChevron: 'Chevron', + appShapeHomePlate: 'Pfeil: Fünfeck', + appShapeStar4: 'Stern: 4 Zacken', + appShapeStar5: 'Stern: 5 Zacken', + appShapeStar6: 'Stern: 6 Zacken', + appShapeStar7: 'Stern: 7 Zacken', + appShapeStar8: 'Stern: 8 Zacken', + appShapeStar10: 'Stern: 10 Zacken', + appShapeStar12: 'Stern: 12 Zacken', + appShapeStar16: 'Stern: 16 Zacken', + appShapeStar24: 'Stern: 24 Zacken', + appShapeStar32: 'Stern: 32 Zacken', + appShapeIrregularSeal1: 'Explosion 1', + appShapeIrregularSeal2: 'Explosion 2', + appShapeRibbon: 'Band nach unten', + appShapeRibbon2: 'Band nach oben', + appShapeWave: 'Welle', + appShapeDoubleWave: 'Doppelwelle', + appShapeFlowProcess: 'Flussdiagramm: Prozess', + appShapeFlowAlternateProcess: 'Flussdiagramm: Alternativer Prozess', + appShapeFlowDecision: 'Flussdiagramm: Entscheidung', + appShapeFlowPredefinedProcess: 'Flussdiagramm: Vordefinierter Prozess', + appShapeFlowInternalStorage: 'Flussdiagramm: Interner Speicher', + appShapeFlowDocument: 'Flussdiagramm: Dokument', + appShapeFlowMultidocument: 'Flussdiagramm: Mehrere Dokumente', + appShapeFlowTerminator: 'Flussdiagramm: Grenzstelle', + appShapeFlowPreparation: 'Flussdiagramm: Vorbereitung', + appShapeFlowManualInput: 'Flussdiagramm: Manuelle Eingabe', + appShapeFlowManualOperation: 'Flussdiagramm: Manueller Vorgang', + appShapeFlowConnector: 'Flussdiagramm: Verbindungsstelle', + appShapeFlowOffpageConnector: 'Flussdiagramm: Verbindung zu anderer Seite', + appShapeFlowMagneticDisk: 'Flussdiagramm: Magnetplatte', + appShapeFlowMagneticDrum: 'Flussdiagramm: Direktzugriffsspeicher', + appShapeFlowDisplay: 'Flussdiagramm: Anzeige', + appShapeFlowDelay: 'Flussdiagramm: Verzögerung', + appShapeFlowOr: 'Flussdiagramm: Oder', + appShapeFlowCollate: 'Flussdiagramm: Zusammenstellen', + appShapeFlowSort: 'Flussdiagramm: Sortieren', + appShapeFlowExtract: 'Flussdiagramm: Auszug', + appShapeFlowMerge: 'Flussdiagramm: Zusammenführen', + appShapeFlowSummingJunction: 'Flussdiagramm: Summierungspunkt', + appShapeFlowPunchedTape: 'Flussdiagramm: Lochstreifen', + appShapeWedgeRectCallout: 'Rechteckige Legende', + appShapeWedgeRoundRectCallout: 'Abgerundete rechteckige Legende', + appShapeWedgeEllipseCallout: 'Ovale Legende', + appShapeCloudCallout: 'Wolkenförmige Legende', appIcons: 'Symbole', app3dModels: '3D-Modelle', appScreenshot: 'Bildschirmfoto', @@ -6542,15 +7148,116 @@ export const appStrings = defineStrings({ appPictureTypes: 'PNG, JPEG, GIF', appShapes: 'Formas', appInsertShapeTitle: 'Insertar una forma en la selección', + appShapeGroupRects: 'Rectángulos', + appShapeGroupBasic: 'Formas básicas', + appShapeGroupArrows: 'Flechas de bloque', + appShapeGroupStars: 'Estrellas', + appShapeGroupFlowchart: 'Diagrama de flujo', + appShapeGroupCallouts: 'Llamadas', appShapeRect: 'Rectángulo', - appShapeRoundRect: 'Rectángulo redondeado', + appShapeRoundRect: 'Rectángulo: esquinas redondeadas', + appShapeSnip1Rect: 'Rectángulo: una esquina recortada', + appShapeSnip2SameRect: 'Rectángulo: esquinas del mismo lado recortadas', + appShapeSnip2DiagRect: 'Rectángulo: esquinas en diagonal recortadas', + appShapeSnipRoundRect: 'Rectángulo: una esquina recortada y otra redondeada', + appShapeRound1Rect: 'Rectángulo: una esquina redondeada', + appShapeRound2SameRect: 'Rectángulo: esquinas del mismo lado redondeadas', + appShapeRound2DiagRect: 'Rectángulo: esquinas en diagonal redondeadas', appShapeEllipse: 'Elipse', - appShapeTriangle: 'Triángulo', + appShapeTriangle: 'Triángulo isósceles', + appShapeRtTriangle: 'Triángulo rectángulo', + appShapeParallelogram: 'Paralelogramo', + appShapeTrapezoid: 'Trapecio', appShapeDiamond: 'Rombo', - appShapeRightArrow: 'Flecha derecha', - appShapeLeftArrow: 'Flecha izquierda', - appShapePentagon: 'Pentágono', + appShapePentagon: 'Pentágono regular', appShapeHexagon: 'Hexágono', + appShapeOctagon: 'Octágono', + appShapePlus: 'Cruz', + appShapeMathPlus: 'Signo más', + appShapePie: 'Sector circular', + appShapeChord: 'Cuerda', + appShapeTeardrop: 'Lágrima', + appShapeFrame: 'Marco', + appShapeHalfFrame: 'Medio marco', + appShapeCorner: 'Forma de L', + appShapeDiagStripe: 'Franja diagonal', + appShapeDonut: 'Anillo', + appShapeNoSmoking: 'Símbolo de prohibido', + appShapeBlockArc: 'Arco de bloque', + appShapeFoldedCorner: 'Esquina doblada', + appShapeBevel: 'Bisel', + appShapeCube: 'Cubo', + appShapeCan: 'Cilindro', + appShapeLightningBolt: 'Rayo', + appShapeHeart: 'Corazón', + appShapeSun: 'Sol', + appShapeMoon: 'Luna', + appShapeCloud: 'Nube', + appShapeArc: 'Arco', + appShapePlaque: 'Placa', + appShapeSmileyFace: 'Cara sonriente', + appShapeLeftBracket: 'Corchete izquierdo', + appShapeRightBracket: 'Corchete derecho', + appShapeLeftBrace: 'Llave izquierda', + appShapeRightBrace: 'Llave derecha', + appShapeRightArrow: 'Flecha: derecha', + appShapeLeftArrow: 'Flecha: izquierda', + appShapeUpArrow: 'Flecha: arriba', + appShapeDownArrow: 'Flecha: abajo', + appShapeLeftRightArrow: 'Flecha: izquierda y derecha', + appShapeUpDownArrow: 'Flecha: arriba y abajo', + appShapeQuadArrow: 'Flecha de cuatro puntas', + appShapeBentArrow: 'Flecha doblada', + appShapeUturnArrow: 'Flecha en U', + appShapeCurvedRightArrow: 'Flecha curvada hacia la derecha', + appShapeStripedRightArrow: 'Flecha a rayas hacia la derecha', + appShapeNotchedRightArrow: 'Flecha: derecha con muesca', + appShapeChevron: 'Cheurón', + appShapeHomePlate: 'Flecha: pentágono', + appShapeStar4: 'Estrella: 4 puntas', + appShapeStar5: 'Estrella: 5 puntas', + appShapeStar6: 'Estrella: 6 puntas', + appShapeStar7: 'Estrella: 7 puntas', + appShapeStar8: 'Estrella: 8 puntas', + appShapeStar10: 'Estrella: 10 puntas', + appShapeStar12: 'Estrella: 12 puntas', + appShapeStar16: 'Estrella: 16 puntas', + appShapeStar24: 'Estrella: 24 puntas', + appShapeStar32: 'Estrella: 32 puntas', + appShapeIrregularSeal1: 'Explosión 1', + appShapeIrregularSeal2: 'Explosión 2', + appShapeRibbon: 'Cinta hacia abajo', + appShapeRibbon2: 'Cinta hacia arriba', + appShapeWave: 'Onda', + appShapeDoubleWave: 'Doble onda', + appShapeFlowProcess: 'Diagrama de flujo: proceso', + appShapeFlowAlternateProcess: 'Diagrama de flujo: proceso alternativo', + appShapeFlowDecision: 'Diagrama de flujo: decisión', + appShapeFlowPredefinedProcess: 'Diagrama de flujo: proceso predefinido', + appShapeFlowInternalStorage: 'Diagrama de flujo: almacenamiento interno', + appShapeFlowDocument: 'Diagrama de flujo: documento', + appShapeFlowMultidocument: 'Diagrama de flujo: multidocumento', + appShapeFlowTerminator: 'Diagrama de flujo: terminador', + appShapeFlowPreparation: 'Diagrama de flujo: preparación', + appShapeFlowManualInput: 'Diagrama de flujo: entrada manual', + appShapeFlowManualOperation: 'Diagrama de flujo: operación manual', + appShapeFlowConnector: 'Diagrama de flujo: conector', + appShapeFlowOffpageConnector: 'Diagrama de flujo: conector fuera de página', + appShapeFlowMagneticDisk: 'Diagrama de flujo: disco magnético', + appShapeFlowMagneticDrum: 'Diagrama de flujo: almacenamiento de acceso directo', + appShapeFlowDisplay: 'Diagrama de flujo: pantalla', + appShapeFlowDelay: 'Diagrama de flujo: retraso', + appShapeFlowOr: 'Diagrama de flujo: o', + appShapeFlowCollate: 'Diagrama de flujo: intercalar', + appShapeFlowSort: 'Diagrama de flujo: ordenar', + appShapeFlowExtract: 'Diagrama de flujo: extraer', + appShapeFlowMerge: 'Diagrama de flujo: combinar', + appShapeFlowSummingJunction: 'Diagrama de flujo: unión de suma', + appShapeFlowPunchedTape: 'Diagrama de flujo: cinta perforada', + appShapeWedgeRectCallout: 'Llamada rectangular', + appShapeWedgeRoundRectCallout: 'Llamada rectangular redondeada', + appShapeWedgeEllipseCallout: 'Llamada ovalada', + appShapeCloudCallout: 'Llamada de nube', appIcons: 'Iconos', app3dModels: 'Modelos 3D', appScreenshot: 'Captura de pantalla', @@ -7476,15 +8183,116 @@ export const appStrings = defineStrings({ appPictureTypes: 'PNG, JPEG, GIF', appShapes: 'รูปร่าง', appInsertShapeTitle: 'แทรกรูปร่างที่ตำแหน่งที่เลือก', + appShapeGroupRects: 'สี่เหลี่ยมผืนผ้า', + appShapeGroupBasic: 'รูปร่างพื้นฐาน', + appShapeGroupArrows: 'ลูกศร', + appShapeGroupStars: 'ดาว', + appShapeGroupFlowchart: 'ผังงาน', + appShapeGroupCallouts: 'คำบรรยายภาพ', appShapeRect: 'สี่เหลี่ยมผืนผ้า', appShapeRoundRect: 'สี่เหลี่ยมมุมมน', + appShapeSnip1Rect: 'สี่เหลี่ยมตัดมุมเดียว', + appShapeSnip2SameRect: 'สี่เหลี่ยมตัดมุมด้านเดียวกัน', + appShapeSnip2DiagRect: 'สี่เหลี่ยมตัดมุมทแยง', + appShapeSnipRoundRect: 'สี่เหลี่ยมตัดมุมและมุมมนอย่างละมุม', + appShapeRound1Rect: 'สี่เหลี่ยมมุมมนหนึ่งมุม', + appShapeRound2SameRect: 'สี่เหลี่ยมมุมมนด้านเดียวกัน', + appShapeRound2DiagRect: 'สี่เหลี่ยมมุมมนทแยง', appShapeEllipse: 'วงรี', - appShapeTriangle: 'สามเหลี่ยม', - appShapeDiamond: 'สี่เหลี่ยมข้าวหลามตัด', - appShapeRightArrow: 'ลูกศรขวา', - appShapeLeftArrow: 'ลูกศรซ้าย', + appShapeTriangle: 'สามเหลี่ยมหน้าจั่ว', + appShapeRtTriangle: 'สามเหลี่ยมมุมฉาก', + appShapeParallelogram: 'สี่เหลี่ยมด้านขนาน', + appShapeTrapezoid: 'สี่เหลี่ยมคางหมู', + appShapeDiamond: 'สี่เหลี่ยมขนมเปียกปูน', appShapePentagon: 'ห้าเหลี่ยม', appShapeHexagon: 'หกเหลี่ยม', + appShapeOctagon: 'แปดเหลี่ยม', + appShapePlus: 'กากบาท', + appShapeMathPlus: 'เครื่องหมายบวก', + appShapePie: 'รูปพาย', + appShapeChord: 'คอร์ด', + appShapeTeardrop: 'หยดน้ำ', + appShapeFrame: 'กรอบ', + appShapeHalfFrame: 'ครึ่งกรอบ', + appShapeCorner: 'รูปตัว L', + appShapeDiagStripe: 'แถบทแยง', + appShapeDonut: 'โดนัท', + appShapeNoSmoking: 'สัญลักษณ์ห้าม', + appShapeBlockArc: 'ส่วนโค้งทึบ', + appShapeFoldedCorner: 'มุมพับ', + appShapeBevel: 'ขอบเอียง', + appShapeCube: 'ลูกบาศก์', + appShapeCan: 'ทรงกระบอก', + appShapeLightningBolt: 'สายฟ้า', + appShapeHeart: 'หัวใจ', + appShapeSun: 'ดวงอาทิตย์', + appShapeMoon: 'ดวงจันทร์', + appShapeCloud: 'เมฆ', + appShapeArc: 'ส่วนโค้ง', + appShapePlaque: 'แผ่นป้าย', + appShapeSmileyFace: 'หน้ายิ้ม', + appShapeLeftBracket: 'วงเล็บเหลี่ยมซ้าย', + appShapeRightBracket: 'วงเล็บเหลี่ยมขวา', + appShapeLeftBrace: 'วงเล็บปีกกาซ้าย', + appShapeRightBrace: 'วงเล็บปีกกาขวา', + appShapeRightArrow: 'ลูกศรชี้ขวา', + appShapeLeftArrow: 'ลูกศรชี้ซ้าย', + appShapeUpArrow: 'ลูกศรชี้ขึ้น', + appShapeDownArrow: 'ลูกศรชี้ลง', + appShapeLeftRightArrow: 'ลูกศรซ้ายขวา', + appShapeUpDownArrow: 'ลูกศรขึ้นลง', + appShapeQuadArrow: 'ลูกศรสี่ทิศทาง', + appShapeBentArrow: 'ลูกศรโค้งงอ', + appShapeUturnArrow: 'ลูกศรยูเทิร์น', + appShapeCurvedRightArrow: 'ลูกศรโค้งไปทางขวา', + appShapeStripedRightArrow: 'ลูกศรลายทางชี้ขวา', + appShapeNotchedRightArrow: 'ลูกศรชี้ขวาแบบบาก', + appShapeChevron: 'บั้ง', + appShapeHomePlate: 'ลูกศรห้าเหลี่ยม', + appShapeStar4: 'ดาว 4 แฉก', + appShapeStar5: 'ดาว 5 แฉก', + appShapeStar6: 'ดาว 6 แฉก', + appShapeStar7: 'ดาว 7 แฉก', + appShapeStar8: 'ดาว 8 แฉก', + appShapeStar10: 'ดาว 10 แฉก', + appShapeStar12: 'ดาว 12 แฉก', + appShapeStar16: 'ดาว 16 แฉก', + appShapeStar24: 'ดาว 24 แฉก', + appShapeStar32: 'ดาว 32 แฉก', + appShapeIrregularSeal1: 'ระเบิด 1', + appShapeIrregularSeal2: 'ระเบิด 2', + appShapeRibbon: 'ริบบิ้นโค้งลง', + appShapeRibbon2: 'ริบบิ้นโค้งขึ้น', + appShapeWave: 'คลื่น', + appShapeDoubleWave: 'คลื่นคู่', + appShapeFlowProcess: 'ผังงาน: กระบวนการ', + appShapeFlowAlternateProcess: 'ผังงาน: กระบวนการทางเลือก', + appShapeFlowDecision: 'ผังงาน: การตัดสินใจ', + appShapeFlowPredefinedProcess: 'ผังงาน: กระบวนการที่กำหนดไว้ล่วงหน้า', + appShapeFlowInternalStorage: 'ผังงาน: ที่เก็บข้อมูลภายใน', + appShapeFlowDocument: 'ผังงาน: เอกสาร', + appShapeFlowMultidocument: 'ผังงาน: หลายเอกสาร', + appShapeFlowTerminator: 'ผังงาน: จุดสิ้นสุด', + appShapeFlowPreparation: 'ผังงาน: การเตรียมการ', + appShapeFlowManualInput: 'ผังงาน: การป้อนข้อมูลด้วยตนเอง', + appShapeFlowManualOperation: 'ผังงาน: การดำเนินการด้วยตนเอง', + appShapeFlowConnector: 'ผังงาน: จุดเชื่อมต่อ', + appShapeFlowOffpageConnector: 'ผังงาน: จุดเชื่อมต่อนอกหน้า', + appShapeFlowMagneticDisk: 'ผังงาน: จานแม่เหล็ก', + appShapeFlowMagneticDrum: 'ผังงาน: ที่เก็บข้อมูลแบบเข้าถึงโดยตรง', + appShapeFlowDisplay: 'ผังงาน: การแสดงผล', + appShapeFlowDelay: 'ผังงาน: การหน่วงเวลา', + appShapeFlowOr: 'ผังงาน: หรือ', + appShapeFlowCollate: 'ผังงาน: การเทียบเคียง', + appShapeFlowSort: 'ผังงาน: การเรียงลำดับ', + appShapeFlowExtract: 'ผังงาน: การแยกข้อมูล', + appShapeFlowMerge: 'ผังงาน: การผสาน', + appShapeFlowSummingJunction: 'ผังงาน: จุดรวม', + appShapeFlowPunchedTape: 'ผังงาน: เทปเจาะรู', + appShapeWedgeRectCallout: 'คำบรรยายสี่เหลี่ยม', + appShapeWedgeRoundRectCallout: 'คำบรรยายสี่เหลี่ยมมุมมน', + appShapeWedgeEllipseCallout: 'คำบรรยายวงรี', + appShapeCloudCallout: 'คำบรรยายรูปเมฆ', appIcons: 'ไอคอน', app3dModels: 'โมเดล 3 มิติ', appScreenshot: 'ภาพหน้าจอ', @@ -8429,15 +9237,116 @@ export const appStrings = defineStrings({ appPictureTypes: 'PNG, JPEG, GIF', appShapes: 'Bentuk', appInsertShapeTitle: 'Sisipkan bentuk pada pilihan', - appShapeRect: 'Persegi panjang', - appShapeRoundRect: 'Persegi panjang membulat', - appShapeEllipse: 'Elips', - appShapeTriangle: 'Segitiga', - appShapeDiamond: 'Belah ketupat', - appShapeRightArrow: 'Panah kanan', - appShapeLeftArrow: 'Panah kiri', - appShapePentagon: 'Segi lima', - appShapeHexagon: 'Segi enam', + appShapeGroupRects: 'Persegi Panjang', + appShapeGroupBasic: 'Bentuk Dasar', + appShapeGroupArrows: 'Panah Blok', + appShapeGroupStars: 'Bintang', + appShapeGroupFlowchart: 'Bagan Alur', + appShapeGroupCallouts: 'Balon keterangan', + appShapeRect: 'Persegi Panjang', + appShapeRoundRect: 'Persegi Panjang: Sudut Membulat', + appShapeSnip1Rect: 'Persegi Panjang: Satu Sudut Terpotong', + appShapeSnip2SameRect: 'Persegi Panjang: Sudut Sisi Sama Terpotong', + appShapeSnip2DiagRect: 'Persegi Panjang: Sudut Diagonal Terpotong', + appShapeSnipRoundRect: 'Persegi Panjang: Satu Sudut Terpotong dan Membulat', + appShapeRound1Rect: 'Persegi Panjang: Satu Sudut Membulat', + appShapeRound2SameRect: 'Persegi Panjang: Sudut Sisi Sama Membulat', + appShapeRound2DiagRect: 'Persegi Panjang: Sudut Diagonal Membulat', + appShapeEllipse: 'Oval', + appShapeTriangle: 'Segitiga Sama Kaki', + appShapeRtTriangle: 'Segitiga Siku-siku', + appShapeParallelogram: 'Jajaran Genjang', + appShapeTrapezoid: 'Trapesium', + appShapeDiamond: 'Belah Ketupat', + appShapePentagon: 'Segi Lima Beraturan', + appShapeHexagon: 'Segi Enam', + appShapeOctagon: 'Segi Delapan', + appShapePlus: 'Palang', + appShapeMathPlus: 'Tanda tambah', + appShapePie: 'Pai', + appShapeChord: 'Tali Busur', + appShapeTeardrop: 'Tetesan Air Mata', + appShapeFrame: 'Bingkai', + appShapeHalfFrame: 'Setengah Bingkai', + appShapeCorner: 'Bentuk L', + appShapeDiagStripe: 'Garis Diagonal', + appShapeDonut: 'Donat', + appShapeNoSmoking: 'Simbol "Dilarang"', + appShapeBlockArc: 'Busur blok', + appShapeFoldedCorner: 'Sudut Terlipat', + appShapeBevel: 'Bevel', + appShapeCube: 'Kubus', + appShapeCan: 'Tabung', + appShapeLightningBolt: 'Petir', + appShapeHeart: 'Hati', + appShapeSun: 'Matahari', + appShapeMoon: 'Bulan', + appShapeCloud: 'Awan', + appShapeArc: 'Busur', + appShapePlaque: 'Plakat', + appShapeSmileyFace: 'Wajah Tersenyum', + appShapeLeftBracket: 'Kurung Siku Kiri', + appShapeRightBracket: 'Kurung Siku Kanan', + appShapeLeftBrace: 'Kurung kurawal kiri', + appShapeRightBrace: 'Kurung kurawal kanan', + appShapeRightArrow: 'Panah: Kanan', + appShapeLeftArrow: 'Panah: Kiri', + appShapeUpArrow: 'Panah: Atas', + appShapeDownArrow: 'Panah: Bawah', + appShapeLeftRightArrow: 'Panah: Kiri-Kanan', + appShapeUpDownArrow: 'Panah: Atas-Bawah', + appShapeQuadArrow: 'Panah Empat Arah', + appShapeBentArrow: 'Panah Menekuk', + appShapeUturnArrow: 'Panah Putar Balik', + appShapeCurvedRightArrow: 'Panah Melengkung ke Kanan', + appShapeStripedRightArrow: 'Panah Bergaris ke Kanan', + appShapeNotchedRightArrow: 'Panah: Kanan Bertakik', + appShapeChevron: 'Chevron', + appShapeHomePlate: 'Panah: Segi Lima', + appShapeStar4: 'Bintang: 4 Titik', + appShapeStar5: 'Bintang: 5 Titik', + appShapeStar6: 'Bintang: 6 Titik', + appShapeStar7: 'Bintang: 7 Titik', + appShapeStar8: 'Bintang: 8 Titik', + appShapeStar10: 'Bintang: 10 Titik', + appShapeStar12: 'Bintang: 12 Titik', + appShapeStar16: 'Bintang: 16 Titik', + appShapeStar24: 'Bintang: 24 Titik', + appShapeStar32: 'Bintang: 32 Titik', + appShapeIrregularSeal1: 'Ledakan 1', + appShapeIrregularSeal2: 'Ledakan 2', + appShapeRibbon: 'Pita Bawah', + appShapeRibbon2: 'Pita Atas', + appShapeWave: 'Gelombang', + appShapeDoubleWave: 'Gelombang Ganda', + appShapeFlowProcess: 'Bagan Alur: Proses', + appShapeFlowAlternateProcess: 'Bagan Alur: Proses Alternatif', + appShapeFlowDecision: 'Bagan Alur: Keputusan', + appShapeFlowPredefinedProcess: 'Bagan Alur: Proses yang Ditentukan Sebelumnya', + appShapeFlowInternalStorage: 'Bagan Alur: Penyimpanan Internal', + appShapeFlowDocument: 'Bagan Alur: Dokumen', + appShapeFlowMultidocument: 'Bagan Alur: Multidokumen', + appShapeFlowTerminator: 'Bagan Alur: Terminator', + appShapeFlowPreparation: 'Bagan Alur: Persiapan', + appShapeFlowManualInput: 'Bagan Alur: Input Manual', + appShapeFlowManualOperation: 'Bagan Alur: Operasi Manual', + appShapeFlowConnector: 'Bagan Alur: Konektor', + appShapeFlowOffpageConnector: 'Bagan Alur: Konektor Luar Halaman', + appShapeFlowMagneticDisk: 'Bagan Alur: Disk Magnetik', + appShapeFlowMagneticDrum: 'Bagan Alur: Penyimpanan Akses Langsung', + appShapeFlowDisplay: 'Bagan Alur: Tampilan', + appShapeFlowDelay: 'Bagan Alur: Penundaan', + appShapeFlowOr: 'Bagan Alur: Atau', + appShapeFlowCollate: 'Bagan Alur: Kolasi', + appShapeFlowSort: 'Bagan Alur: Urutkan', + appShapeFlowExtract: 'Bagan Alur: Ekstrak', + appShapeFlowMerge: 'Bagan Alur: Gabung', + appShapeFlowSummingJunction: 'Bagan Alur: Persimpangan Penjumlahan', + appShapeFlowPunchedTape: 'Bagan Alur: Pita Berlubang', + appShapeWedgeRectCallout: 'Keterangan persegi', + appShapeWedgeRoundRectCallout: 'Keterangan persegi membulat', + appShapeWedgeEllipseCallout: 'Keterangan oval', + appShapeCloudCallout: 'Keterangan awan', appIcons: 'Ikon', app3dModels: 'Model 3D', appScreenshot: 'Cuplikan layar', @@ -9403,15 +10312,116 @@ export const appStrings = defineStrings({ appPictureTypes: 'PNG, JPEG, GIF', appShapes: 'Фигуры', appInsertShapeTitle: 'Вставить фигуру в текущее выделение', + appShapeGroupRects: 'Прямоугольники', + appShapeGroupBasic: 'Основные фигуры', + appShapeGroupArrows: 'Фигурные стрелки', + appShapeGroupStars: 'Звёзды', + appShapeGroupFlowchart: 'Блок-схема', + appShapeGroupCallouts: 'Выноски', appShapeRect: 'Прямоугольник', - appShapeRoundRect: 'Скруглённый прямоугольник', - appShapeEllipse: 'Эллипс', - appShapeTriangle: 'Треугольник', + appShapeRoundRect: 'Прямоугольник: скруглённые углы', + appShapeSnip1Rect: 'Прямоугольник: один срезанный угол', + appShapeSnip2SameRect: 'Прямоугольник: два срезанных угла с одной стороны', + appShapeSnip2DiagRect: 'Прямоугольник: срезанные углы по диагонали', + appShapeSnipRoundRect: 'Прямоугольник: один угол срезан, один скруглён', + appShapeRound1Rect: 'Прямоугольник: один скруглённый угол', + appShapeRound2SameRect: 'Прямоугольник: два скруглённых угла с одной стороны', + appShapeRound2DiagRect: 'Прямоугольник: скруглённые углы по диагонали', + appShapeEllipse: 'Овал', + appShapeTriangle: 'Равнобедренный треугольник', + appShapeRtTriangle: 'Прямоугольный треугольник', + appShapeParallelogram: 'Параллелограмм', + appShapeTrapezoid: 'Трапеция', appShapeDiamond: 'Ромб', - appShapeRightArrow: 'Стрелка вправо', - appShapeLeftArrow: 'Стрелка влево', - appShapePentagon: 'Пятиугольник', + appShapePentagon: 'Правильный пятиугольник', appShapeHexagon: 'Шестиугольник', + appShapeOctagon: 'Восьмиугольник', + appShapePlus: 'Крест', + appShapeMathPlus: 'Знак плюс', + appShapePie: 'Сектор', + appShapeChord: 'Хорда', + appShapeTeardrop: 'Капля', + appShapeFrame: 'Рамка', + appShapeHalfFrame: 'Половина рамки', + appShapeCorner: 'L-образная фигура', + appShapeDiagStripe: 'Диагональная полоса', + appShapeDonut: 'Кольцо', + appShapeNoSmoking: 'Знак запрета', + appShapeBlockArc: 'Арка', + appShapeFoldedCorner: 'Загнутый угол', + appShapeBevel: 'Багетная рамка', + appShapeCube: 'Куб', + appShapeCan: 'Цилиндр', + appShapeLightningBolt: 'Молния', + appShapeHeart: 'Сердце', + appShapeSun: 'Солнце', + appShapeMoon: 'Месяц', + appShapeCloud: 'Облако', + appShapeArc: 'Дуга', + appShapePlaque: 'Табличка', + appShapeSmileyFace: 'Улыбающееся лицо', + appShapeLeftBracket: 'Левая квадратная скобка', + appShapeRightBracket: 'Правая квадратная скобка', + appShapeLeftBrace: 'Левая фигурная скобка', + appShapeRightBrace: 'Правая фигурная скобка', + appShapeRightArrow: 'Стрелка: вправо', + appShapeLeftArrow: 'Стрелка: влево', + appShapeUpArrow: 'Стрелка: вверх', + appShapeDownArrow: 'Стрелка: вниз', + appShapeLeftRightArrow: 'Стрелка: влево-вправо', + appShapeUpDownArrow: 'Стрелка: вверх-вниз', + appShapeQuadArrow: 'Четырёхсторонняя стрелка', + appShapeBentArrow: 'Изогнутая стрелка', + appShapeUturnArrow: 'Стрелка разворота', + appShapeCurvedRightArrow: 'Стрелка, изогнутая вправо', + appShapeStripedRightArrow: 'Штриховая стрелка вправо', + appShapeNotchedRightArrow: 'Стрелка: вправо с вырезом', + appShapeChevron: 'Шеврон', + appShapeHomePlate: 'Стрелка: пятиугольник', + appShapeStar4: 'Звезда: 4 луча', + appShapeStar5: 'Звезда: 5 лучей', + appShapeStar6: 'Звезда: 6 лучей', + appShapeStar7: 'Звезда: 7 лучей', + appShapeStar8: 'Звезда: 8 лучей', + appShapeStar10: 'Звезда: 10 лучей', + appShapeStar12: 'Звезда: 12 лучей', + appShapeStar16: 'Звезда: 16 лучей', + appShapeStar24: 'Звезда: 24 луча', + appShapeStar32: 'Звезда: 32 луча', + appShapeIrregularSeal1: 'Взрыв 1', + appShapeIrregularSeal2: 'Взрыв 2', + appShapeRibbon: 'Лента лицом вниз', + appShapeRibbon2: 'Лента лицом вверх', + appShapeWave: 'Волна', + appShapeDoubleWave: 'Двойная волна', + appShapeFlowProcess: 'Блок-схема: процесс', + appShapeFlowAlternateProcess: 'Блок-схема: альтернативный процесс', + appShapeFlowDecision: 'Блок-схема: решение', + appShapeFlowPredefinedProcess: 'Блок-схема: типовой процесс', + appShapeFlowInternalStorage: 'Блок-схема: внутренняя память', + appShapeFlowDocument: 'Блок-схема: документ', + appShapeFlowMultidocument: 'Блок-схема: несколько документов', + appShapeFlowTerminator: 'Блок-схема: знак завершения', + appShapeFlowPreparation: 'Блок-схема: подготовка', + appShapeFlowManualInput: 'Блок-схема: ручной ввод', + appShapeFlowManualOperation: 'Блок-схема: ручное управление', + appShapeFlowConnector: 'Блок-схема: соединитель', + appShapeFlowOffpageConnector: 'Блок-схема: ссылка на другую страницу', + appShapeFlowMagneticDisk: 'Блок-схема: магнитный диск', + appShapeFlowMagneticDrum: 'Блок-схема: память с прямым доступом', + appShapeFlowDisplay: 'Блок-схема: дисплей', + appShapeFlowDelay: 'Блок-схема: задержка', + appShapeFlowOr: 'Блок-схема: или', + appShapeFlowCollate: 'Блок-схема: сопоставление', + appShapeFlowSort: 'Блок-схема: сортировка', + appShapeFlowExtract: 'Блок-схема: извлечение', + appShapeFlowMerge: 'Блок-схема: слияние', + appShapeFlowSummingJunction: 'Блок-схема: узел суммирования', + appShapeFlowPunchedTape: 'Блок-схема: перфолента', + appShapeWedgeRectCallout: 'Прямоугольная выноска', + appShapeWedgeRoundRectCallout: 'Скругленная прямоугольная выноска', + appShapeWedgeEllipseCallout: 'Овальная выноска', + appShapeCloudCallout: 'Выноска-облако', appIcons: 'Значки', app3dModels: '3D-модели', appScreenshot: 'Снимок экрана', @@ -10340,15 +11350,116 @@ export const appStrings = defineStrings({ appPictureTypes: 'PNG وJPEG وGIF', appShapes: 'أشكال', appInsertShapeTitle: 'إدراج شكل في التحديد الحالي', + appShapeGroupRects: 'مستطيلات', + appShapeGroupBasic: 'أشكال أساسية', + appShapeGroupArrows: 'أسهم عريضة', + appShapeGroupStars: 'نجوم', + appShapeGroupFlowchart: 'مخطط انسيابي', + appShapeGroupCallouts: 'وسائل شرح', appShapeRect: 'مستطيل', - appShapeRoundRect: 'مستطيل مستدير الزوايا', + appShapeRoundRect: 'مستطيل: زوايا مستديرة', + appShapeSnip1Rect: 'مستطيل: زاوية واحدة مقصوصة', + appShapeSnip2SameRect: 'مستطيل: زاويتان مقصوصتان من نفس الجانب', + appShapeSnip2DiagRect: 'مستطيل: زاويتان مقصوصتان قطريًا', + appShapeSnipRoundRect: 'مستطيل: زاوية مقصوصة وزاوية مستديرة', + appShapeRound1Rect: 'مستطيل: زاوية واحدة مستديرة', + appShapeRound2SameRect: 'مستطيل: زاويتان مستديرتان من نفس الجانب', + appShapeRound2DiagRect: 'مستطيل: زاويتان مستديرتان قطريًا', appShapeEllipse: 'شكل بيضاوي', - appShapeTriangle: 'مثلث', + appShapeTriangle: 'مثلث متساوي الساقين', + appShapeRtTriangle: 'مثلث قائم الزاوية', + appShapeParallelogram: 'متوازي أضلاع', + appShapeTrapezoid: 'شبه منحرف', appShapeDiamond: 'معيّن', - appShapeRightArrow: 'سهم لليمين', - appShapeLeftArrow: 'سهم لليسار', - appShapePentagon: 'خماسي', + appShapePentagon: 'خماسي منتظم', appShapeHexagon: 'سداسي', + appShapeOctagon: 'ثماني', + appShapePlus: 'صليب', + appShapeMathPlus: 'علامة الجمع', + appShapePie: 'قطاع دائري', + appShapeChord: 'وتر', + appShapeTeardrop: 'دمعة', + appShapeFrame: 'إطار', + appShapeHalfFrame: 'نصف إطار', + appShapeCorner: 'شكل L', + appShapeDiagStripe: 'شريط قطري', + appShapeDonut: 'حلقة', + appShapeNoSmoking: 'رمز "ممنوع"', + appShapeBlockArc: 'قوس مصمت', + appShapeFoldedCorner: 'زاوية مطوية', + appShapeBevel: 'حافة مشطوفة', + appShapeCube: 'مكعب', + appShapeCan: 'أسطوانة', + appShapeLightningBolt: 'برق', + appShapeHeart: 'قلب', + appShapeSun: 'شمس', + appShapeMoon: 'قمر', + appShapeCloud: 'سحابة', + appShapeArc: 'قوس', + appShapePlaque: 'لوحة', + appShapeSmileyFace: 'وجه مبتسم', + appShapeLeftBracket: 'قوس أيسر', + appShapeRightBracket: 'قوس أيمن', + appShapeLeftBrace: 'قوس متعرج أيسر', + appShapeRightBrace: 'قوس متعرج أيمن', + appShapeRightArrow: 'سهم: لليمين', + appShapeLeftArrow: 'سهم: لليسار', + appShapeUpArrow: 'سهم: لأعلى', + appShapeDownArrow: 'سهم: لأسفل', + appShapeLeftRightArrow: 'سهم: لليسار واليمين', + appShapeUpDownArrow: 'سهم: لأعلى ولأسفل', + appShapeQuadArrow: 'سهم رباعي الاتجاهات', + appShapeBentArrow: 'سهم منعطف', + appShapeUturnArrow: 'سهم على شكل حرف U', + appShapeCurvedRightArrow: 'سهم منحنٍ لليمين', + appShapeStripedRightArrow: 'سهم مخطط لليمين', + appShapeNotchedRightArrow: 'سهم: لليمين بحزّ', + appShapeChevron: 'شيفرون', + appShapeHomePlate: 'سهم: خماسي', + appShapeStar4: 'نجمة: 4 رؤوس', + appShapeStar5: 'نجمة: 5 رؤوس', + appShapeStar6: 'نجمة: 6 رؤوس', + appShapeStar7: 'نجمة: 7 رؤوس', + appShapeStar8: 'نجمة: 8 رؤوس', + appShapeStar10: 'نجمة: 10 رؤوس', + appShapeStar12: 'نجمة: 12 رأسًا', + appShapeStar16: 'نجمة: 16 رأسًا', + appShapeStar24: 'نجمة: 24 رأسًا', + appShapeStar32: 'نجمة: 32 رأسًا', + appShapeIrregularSeal1: 'انفجار 1', + appShapeIrregularSeal2: 'انفجار 2', + appShapeRibbon: 'شريط لأسفل', + appShapeRibbon2: 'شريط لأعلى', + appShapeWave: 'موجة', + appShapeDoubleWave: 'موجة مزدوجة', + appShapeFlowProcess: 'مخطط انسيابي: عملية', + appShapeFlowAlternateProcess: 'مخطط انسيابي: عملية بديلة', + appShapeFlowDecision: 'مخطط انسيابي: قرار', + appShapeFlowPredefinedProcess: 'مخطط انسيابي: عملية معرفة مسبقًا', + appShapeFlowInternalStorage: 'مخطط انسيابي: تخزين داخلي', + appShapeFlowDocument: 'مخطط انسيابي: مستند', + appShapeFlowMultidocument: 'مخطط انسيابي: مستندات متعددة', + appShapeFlowTerminator: 'مخطط انسيابي: نقطة إنهاء', + appShapeFlowPreparation: 'مخطط انسيابي: تحضير', + appShapeFlowManualInput: 'مخطط انسيابي: إدخال يدوي', + appShapeFlowManualOperation: 'مخطط انسيابي: عملية يدوية', + appShapeFlowConnector: 'مخطط انسيابي: رابط', + appShapeFlowOffpageConnector: 'مخطط انسيابي: رابط خارج الصفحة', + appShapeFlowMagneticDisk: 'مخطط انسيابي: قرص مغناطيسي', + appShapeFlowMagneticDrum: 'مخطط انسيابي: تخزين وصول مباشر', + appShapeFlowDisplay: 'مخطط انسيابي: عرض', + appShapeFlowDelay: 'مخطط انسيابي: تأخير', + appShapeFlowOr: 'مخطط انسيابي: أو', + appShapeFlowCollate: 'مخطط انسيابي: مقارنة', + appShapeFlowSort: 'مخطط انسيابي: فرز', + appShapeFlowExtract: 'مخطط انسيابي: استخراج', + appShapeFlowMerge: 'مخطط انسيابي: دمج', + appShapeFlowSummingJunction: 'مخطط انسيابي: نقطة تجميع', + appShapeFlowPunchedTape: 'مخطط انسيابي: شريط مثقب', + appShapeWedgeRectCallout: 'وسيلة شرح مستطيلة', + appShapeWedgeRoundRectCallout: 'وسيلة شرح مستطيلة مستديرة الزوايا', + appShapeWedgeEllipseCallout: 'وسيلة شرح بيضاوية', + appShapeCloudCallout: 'وسيلة شرح سحابية', appIcons: 'أيقونات', app3dModels: 'نماذج ثلاثية الأبعاد', appScreenshot: 'لقطة شاشة', @@ -11323,15 +12434,116 @@ export const appStrings = defineStrings({ appPictureTypes: 'PNG, JPEG, GIF', appShapes: 'Formas', appInsertShapeTitle: 'Inserir uma forma na seleção', + appShapeGroupRects: 'Retângulos', + appShapeGroupBasic: 'Formas Básicas', + appShapeGroupArrows: 'Setas', + appShapeGroupStars: 'Estrelas', + appShapeGroupFlowchart: 'Fluxograma', + appShapeGroupCallouts: 'Textos explicativos', appShapeRect: 'Retângulo', - appShapeRoundRect: 'Retângulo arredondado', - appShapeEllipse: 'Elipse', - appShapeTriangle: 'Triângulo', + appShapeRoundRect: 'Retângulo Arredondado', + appShapeSnip1Rect: 'Retângulo com Um Canto Recortado', + appShapeSnip2SameRect: 'Retângulo com Cantos do Mesmo Lado Recortados', + appShapeSnip2DiagRect: 'Retângulo com Cantos Diagonais Recortados', + appShapeSnipRoundRect: 'Retângulo com Um Canto Recortado e Um Arredondado', + appShapeRound1Rect: 'Retângulo com Um Canto Arredondado', + appShapeRound2SameRect: 'Retângulo com Cantos do Mesmo Lado Arredondados', + appShapeRound2DiagRect: 'Retângulo com Cantos Diagonais Arredondados', + appShapeEllipse: 'Oval', + appShapeTriangle: 'Triângulo Isósceles', + appShapeRtTriangle: 'Triângulo Retângulo', + appShapeParallelogram: 'Paralelogramo', + appShapeTrapezoid: 'Trapézio', appShapeDiamond: 'Losango', - appShapeRightArrow: 'Seta para a direita', - appShapeLeftArrow: 'Seta para a esquerda', - appShapePentagon: 'Pentágono', + appShapePentagon: 'Pentágono Regular', appShapeHexagon: 'Hexágono', + appShapeOctagon: 'Octógono', + appShapePlus: 'Cruz', + appShapeMathPlus: 'Sinal de adição', + appShapePie: 'Pizza', + appShapeChord: 'Corda', + appShapeTeardrop: 'Lágrima', + appShapeFrame: 'Moldura', + appShapeHalfFrame: 'Meia Moldura', + appShapeCorner: 'Forma de L', + appShapeDiagStripe: 'Faixa Diagonal', + appShapeDonut: 'Rosca', + appShapeNoSmoking: 'Símbolo de "Proibido"', + appShapeBlockArc: 'Arco de bloco', + appShapeFoldedCorner: 'Canto Dobrado', + appShapeBevel: 'Chanfro', + appShapeCube: 'Cubo', + appShapeCan: 'Lata', + appShapeLightningBolt: 'Raio', + appShapeHeart: 'Coração', + appShapeSun: 'Sol', + appShapeMoon: 'Lua', + appShapeCloud: 'Nuvem', + appShapeArc: 'Arco', + appShapePlaque: 'Placa', + appShapeSmileyFace: 'Rosto Sorridente', + appShapeLeftBracket: 'Colchete Esquerdo', + appShapeRightBracket: 'Colchete Direito', + appShapeLeftBrace: 'Chave esquerda', + appShapeRightBrace: 'Chave direita', + appShapeRightArrow: 'Seta para a Direita', + appShapeLeftArrow: 'Seta para a Esquerda', + appShapeUpArrow: 'Seta para Cima', + appShapeDownArrow: 'Seta para Baixo', + appShapeLeftRightArrow: 'Seta Esquerda-Direita', + appShapeUpDownArrow: 'Seta para Cima e para Baixo', + appShapeQuadArrow: 'Seta Quádrupla', + appShapeBentArrow: 'Seta Dobrada', + appShapeUturnArrow: 'Seta em U', + appShapeCurvedRightArrow: 'Seta Curva para a Direita', + appShapeStripedRightArrow: 'Seta Listrada para a Direita', + appShapeNotchedRightArrow: 'Seta para a Direita com Entalhe', + appShapeChevron: 'Divisa', + appShapeHomePlate: 'Seta Pentagonal', + appShapeStar4: 'Estrela de 4 Pontas', + appShapeStar5: 'Estrela de 5 Pontas', + appShapeStar6: 'Estrela de 6 Pontas', + appShapeStar7: 'Estrela de 7 Pontas', + appShapeStar8: 'Estrela de 8 Pontas', + appShapeStar10: 'Estrela de 10 Pontas', + appShapeStar12: 'Estrela de 12 Pontas', + appShapeStar16: 'Estrela de 16 Pontas', + appShapeStar24: 'Estrela de 24 Pontas', + appShapeStar32: 'Estrela de 32 Pontas', + appShapeIrregularSeal1: 'Explosão 1', + appShapeIrregularSeal2: 'Explosão 2', + appShapeRibbon: 'Faixa para Baixo', + appShapeRibbon2: 'Faixa para Cima', + appShapeWave: 'Onda', + appShapeDoubleWave: 'Onda Dupla', + appShapeFlowProcess: 'Fluxograma: Processo', + appShapeFlowAlternateProcess: 'Fluxograma: Processo Alternativo', + appShapeFlowDecision: 'Fluxograma: Decisão', + appShapeFlowPredefinedProcess: 'Fluxograma: Processo Predefinido', + appShapeFlowInternalStorage: 'Fluxograma: Armazenamento Interno', + appShapeFlowDocument: 'Fluxograma: Documento', + appShapeFlowMultidocument: 'Fluxograma: Vários Documentos', + appShapeFlowTerminator: 'Fluxograma: Terminação', + appShapeFlowPreparation: 'Fluxograma: Preparação', + appShapeFlowManualInput: 'Fluxograma: Entrada Manual', + appShapeFlowManualOperation: 'Fluxograma: Operação Manual', + appShapeFlowConnector: 'Fluxograma: Conector', + appShapeFlowOffpageConnector: 'Fluxograma: Conector Fora da Página', + appShapeFlowMagneticDisk: 'Fluxograma: Disco Magnético', + appShapeFlowMagneticDrum: 'Fluxograma: Armazenamento de Acesso Direto', + appShapeFlowDisplay: 'Fluxograma: Exibição', + appShapeFlowDelay: 'Fluxograma: Atraso', + appShapeFlowOr: 'Fluxograma: Ou', + appShapeFlowCollate: 'Fluxograma: Agrupar', + appShapeFlowSort: 'Fluxograma: Classificar', + appShapeFlowExtract: 'Fluxograma: Extrair', + appShapeFlowMerge: 'Fluxograma: Mesclar', + appShapeFlowSummingJunction: 'Fluxograma: Junção de Soma', + appShapeFlowPunchedTape: 'Fluxograma: Fita Perfurada', + appShapeWedgeRectCallout: 'Texto explicativo retangular', + appShapeWedgeRoundRectCallout: 'Texto explicativo retangular arredondado', + appShapeWedgeEllipseCallout: 'Texto explicativo oval', + appShapeCloudCallout: 'Texto explicativo em nuvem', appIcons: 'Ícones', app3dModels: 'Modelos 3D', appScreenshot: 'Captura de tela', @@ -12307,15 +13519,116 @@ export const appStrings = defineStrings({ appPictureTypes: 'PNG, JPEG, GIF', appShapes: 'Forme', appInsertShapeTitle: 'Inserisci una forma in corrispondenza della selezione', + appShapeGroupRects: 'Rettangoli', + appShapeGroupBasic: 'Forme di Base', + appShapeGroupArrows: 'Frecce', + appShapeGroupStars: 'Stelle', + appShapeGroupFlowchart: 'Diagrammi di Flusso', + appShapeGroupCallouts: 'Callout', appShapeRect: 'Rettangolo', - appShapeRoundRect: 'Rettangolo arrotondato', - appShapeEllipse: 'Ellisse', - appShapeTriangle: 'Triangolo', + appShapeRoundRect: 'Rettangolo Arrotondato', + appShapeSnip1Rect: 'Rettangolo con Un Angolo Tagliato', + appShapeSnip2SameRect: 'Rettangolo con Angoli sullo Stesso Lato Tagliati', + appShapeSnip2DiagRect: 'Rettangolo con Angoli in Diagonale Tagliati', + appShapeSnipRoundRect: 'Rettangolo con Un Angolo Tagliato e Uno Arrotondato', + appShapeRound1Rect: 'Rettangolo con Un Angolo Arrotondato', + appShapeRound2SameRect: 'Rettangolo con Angoli sullo Stesso Lato Arrotondati', + appShapeRound2DiagRect: 'Rettangolo con Angoli in Diagonale Arrotondati', + appShapeEllipse: 'Ovale', + appShapeTriangle: 'Triangolo Isoscele', + appShapeRtTriangle: 'Triangolo Rettangolo', + appShapeParallelogram: 'Parallelogramma', + appShapeTrapezoid: 'Trapezio', appShapeDiamond: 'Rombo', - appShapeRightArrow: 'Freccia a destra', - appShapeLeftArrow: 'Freccia a sinistra', - appShapePentagon: 'Pentagono', + appShapePentagon: 'Pentagono Regolare', appShapeHexagon: 'Esagono', + appShapeOctagon: 'Ottagono', + appShapePlus: 'Croce', + appShapeMathPlus: 'Segno più', + appShapePie: 'Torta', + appShapeChord: 'Corda', + appShapeTeardrop: 'Goccia', + appShapeFrame: 'Cornice', + appShapeHalfFrame: 'Mezza Cornice', + appShapeCorner: 'Forma a L', + appShapeDiagStripe: 'Striscia Diagonale', + appShapeDonut: 'Anello', + appShapeNoSmoking: 'Simbolo di Divieto', + appShapeBlockArc: 'Arco pieno', + appShapeFoldedCorner: 'Angolo Ripiegato', + appShapeBevel: 'Smusso', + appShapeCube: 'Cubo', + appShapeCan: 'Cilindro', + appShapeLightningBolt: 'Fulmine', + appShapeHeart: 'Cuore', + appShapeSun: 'Sole', + appShapeMoon: 'Luna', + appShapeCloud: 'Nuvola', + appShapeArc: 'Arco', + appShapePlaque: 'Targa', + appShapeSmileyFace: 'Faccina Sorridente', + appShapeLeftBracket: 'Parentesi Quadra Aperta', + appShapeRightBracket: 'Parentesi Quadra Chiusa', + appShapeLeftBrace: 'Parentesi graffa aperta', + appShapeRightBrace: 'Parentesi graffa chiusa', + appShapeRightArrow: 'Freccia a Destra', + appShapeLeftArrow: 'Freccia a Sinistra', + appShapeUpArrow: 'Freccia in Su', + appShapeDownArrow: 'Freccia in Giù', + appShapeLeftRightArrow: 'Freccia Sinistra-Destra', + appShapeUpDownArrow: 'Freccia Su-Giù', + appShapeQuadArrow: 'Freccia Quadrupla', + appShapeBentArrow: 'Freccia Piegata', + appShapeUturnArrow: 'Freccia a U', + appShapeCurvedRightArrow: 'Freccia Curva a Destra', + appShapeStripedRightArrow: 'Freccia a Strisce verso Destra', + appShapeNotchedRightArrow: 'Freccia a Destra con Tacca', + appShapeChevron: 'Gallone', + appShapeHomePlate: 'Freccia a Pentagono', + appShapeStar4: 'Stella a 4 Punte', + appShapeStar5: 'Stella a 5 Punte', + appShapeStar6: 'Stella a 6 Punte', + appShapeStar7: 'Stella a 7 Punte', + appShapeStar8: 'Stella a 8 Punte', + appShapeStar10: 'Stella a 10 Punte', + appShapeStar12: 'Stella a 12 Punte', + appShapeStar16: 'Stella a 16 Punte', + appShapeStar24: 'Stella a 24 Punte', + appShapeStar32: 'Stella a 32 Punte', + appShapeIrregularSeal1: 'Esplosione 1', + appShapeIrregularSeal2: 'Esplosione 2', + appShapeRibbon: 'Nastro verso il Basso', + appShapeRibbon2: "Nastro verso l'Alto", + appShapeWave: 'Onda', + appShapeDoubleWave: 'Onda Doppia', + appShapeFlowProcess: 'Diagramma di Flusso: Processo', + appShapeFlowAlternateProcess: 'Diagramma di Flusso: Processo Alternativo', + appShapeFlowDecision: 'Diagramma di Flusso: Decisione', + appShapeFlowPredefinedProcess: 'Diagramma di Flusso: Processo Predefinito', + appShapeFlowInternalStorage: 'Diagramma di Flusso: Memoria Interna', + appShapeFlowDocument: 'Diagramma di Flusso: Documento', + appShapeFlowMultidocument: 'Diagramma di Flusso: Documenti Multipli', + appShapeFlowTerminator: 'Diagramma di Flusso: Terminatore', + appShapeFlowPreparation: 'Diagramma di Flusso: Preparazione', + appShapeFlowManualInput: 'Diagramma di Flusso: Input Manuale', + appShapeFlowManualOperation: 'Diagramma di Flusso: Operazione Manuale', + appShapeFlowConnector: 'Diagramma di Flusso: Connettore', + appShapeFlowOffpageConnector: 'Diagramma di Flusso: Connettore Fuori Pagina', + appShapeFlowMagneticDisk: 'Diagramma di Flusso: Disco Magnetico', + appShapeFlowMagneticDrum: 'Diagramma di Flusso: Memoria ad Accesso Diretto', + appShapeFlowDisplay: 'Diagramma di Flusso: Visualizzazione', + appShapeFlowDelay: 'Diagramma di Flusso: Ritardo', + appShapeFlowOr: 'Diagramma di Flusso: Oppure', + appShapeFlowCollate: 'Diagramma di Flusso: Confronto', + appShapeFlowSort: 'Diagramma di Flusso: Ordinamento', + appShapeFlowExtract: 'Diagramma di Flusso: Estrazione', + appShapeFlowMerge: 'Diagramma di Flusso: Unione', + appShapeFlowSummingJunction: 'Diagramma di Flusso: Giunzione di Somma', + appShapeFlowPunchedTape: 'Diagramma di Flusso: Nastro Perforato', + appShapeWedgeRectCallout: 'Callout rettangolare', + appShapeWedgeRoundRectCallout: 'Callout rettangolare arrotondato', + appShapeWedgeEllipseCallout: 'Callout ovale', + appShapeCloudCallout: 'Callout a nuvola', appIcons: 'Icone', app3dModels: 'Modelli 3D', appScreenshot: 'Schermata', @@ -13292,15 +14605,116 @@ export const appStrings = defineStrings({ appPictureTypes: 'PNG, JPEG, GIF', appShapes: 'Kształty', appInsertShapeTitle: 'Wstaw kształt w miejscu zaznaczenia', + appShapeGroupRects: 'Prostokąty', + appShapeGroupBasic: 'Kształty podstawowe', + appShapeGroupArrows: 'Strzałki', + appShapeGroupStars: 'Gwiazdy', + appShapeGroupFlowchart: 'Schemat blokowy', + appShapeGroupCallouts: 'Objaśnienia', appShapeRect: 'Prostokąt', appShapeRoundRect: 'Prostokąt zaokrąglony', - appShapeEllipse: 'Elipsa', - appShapeTriangle: 'Trójkąt', + appShapeSnip1Rect: 'Prostokąt z jednym ściętym rogiem', + appShapeSnip2SameRect: 'Prostokąt ze ściętymi rogami z jednej strony', + appShapeSnip2DiagRect: 'Prostokąt ze ściętymi rogami po przekątnej', + appShapeSnipRoundRect: 'Prostokąt z jednym rogiem ściętym i jednym zaokrąglonym', + appShapeRound1Rect: 'Prostokąt z jednym zaokrąglonym rogiem', + appShapeRound2SameRect: 'Prostokąt z zaokrąglonymi rogami z jednej strony', + appShapeRound2DiagRect: 'Prostokąt z zaokrąglonymi rogami po przekątnej', + appShapeEllipse: 'Owal', + appShapeTriangle: 'Trójkąt równoramienny', + appShapeRtTriangle: 'Trójkąt prostokątny', + appShapeParallelogram: 'Równoległobok', + appShapeTrapezoid: 'Trapez', appShapeDiamond: 'Romb', + appShapePentagon: 'Pięciokąt foremny', + appShapeHexagon: 'Sześciokąt', + appShapeOctagon: 'Ośmiokąt', + appShapePlus: 'Krzyż', + appShapeMathPlus: 'Znak plus', + appShapePie: 'Wycinek koła', + appShapeChord: 'Cięciwa', + appShapeTeardrop: 'Łza', + appShapeFrame: 'Ramka', + appShapeHalfFrame: 'Połowa ramki', + appShapeCorner: 'Kształt litery L', + appShapeDiagStripe: 'Ukośny pasek', + appShapeDonut: 'Pierścień', + appShapeNoSmoking: 'Symbol zakazu', + appShapeBlockArc: 'Łuk blokowy', + appShapeFoldedCorner: 'Zagięty róg', + appShapeBevel: 'Skos', + appShapeCube: 'Sześcian', + appShapeCan: 'Walec', + appShapeLightningBolt: 'Błyskawica', + appShapeHeart: 'Serce', + appShapeSun: 'Słońce', + appShapeMoon: 'Księżyc', + appShapeCloud: 'Chmura', + appShapeArc: 'Łuk', + appShapePlaque: 'Plakietka', + appShapeSmileyFace: 'Uśmiechnięta buźka', + appShapeLeftBracket: 'Lewy nawias kwadratowy', + appShapeRightBracket: 'Prawy nawias kwadratowy', + appShapeLeftBrace: 'Lewy nawias klamrowy', + appShapeRightBrace: 'Prawy nawias klamrowy', appShapeRightArrow: 'Strzałka w prawo', appShapeLeftArrow: 'Strzałka w lewo', - appShapePentagon: 'Pięciokąt', - appShapeHexagon: 'Sześciokąt', + appShapeUpArrow: 'Strzałka w górę', + appShapeDownArrow: 'Strzałka w dół', + appShapeLeftRightArrow: 'Strzałka w lewo i w prawo', + appShapeUpDownArrow: 'Strzałka w górę i w dół', + appShapeQuadArrow: 'Strzałka poczwórna', + appShapeBentArrow: 'Strzałka zagięta', + appShapeUturnArrow: 'Strzałka zawracająca', + appShapeCurvedRightArrow: 'Strzałka zakrzywiona w prawo', + appShapeStripedRightArrow: 'Strzałka w prawo w paski', + appShapeNotchedRightArrow: 'Strzałka w prawo z wcięciem', + appShapeChevron: 'Szewron', + appShapeHomePlate: 'Strzałka pięciokątna', + appShapeStar4: 'Gwiazda 4-ramienna', + appShapeStar5: 'Gwiazda 5-ramienna', + appShapeStar6: 'Gwiazda 6-ramienna', + appShapeStar7: 'Gwiazda 7-ramienna', + appShapeStar8: 'Gwiazda 8-ramienna', + appShapeStar10: 'Gwiazda 10-ramienna', + appShapeStar12: 'Gwiazda 12-ramienna', + appShapeStar16: 'Gwiazda 16-ramienna', + appShapeStar24: 'Gwiazda 24-ramienna', + appShapeStar32: 'Gwiazda 32-ramienna', + appShapeIrregularSeal1: 'Eksplozja 1', + appShapeIrregularSeal2: 'Eksplozja 2', + appShapeRibbon: 'Wstążka w dół', + appShapeRibbon2: 'Wstążka w górę', + appShapeWave: 'Fala', + appShapeDoubleWave: 'Fala podwójna', + appShapeFlowProcess: 'Schemat blokowy: proces', + appShapeFlowAlternateProcess: 'Schemat blokowy: proces alternatywny', + appShapeFlowDecision: 'Schemat blokowy: decyzja', + appShapeFlowPredefinedProcess: 'Schemat blokowy: proces wstępnie zdefiniowany', + appShapeFlowInternalStorage: 'Schemat blokowy: magazyn wewnętrzny', + appShapeFlowDocument: 'Schemat blokowy: dokument', + appShapeFlowMultidocument: 'Schemat blokowy: wiele dokumentów', + appShapeFlowTerminator: 'Schemat blokowy: zakończenie', + appShapeFlowPreparation: 'Schemat blokowy: przygotowanie', + appShapeFlowManualInput: 'Schemat blokowy: wprowadzanie ręczne', + appShapeFlowManualOperation: 'Schemat blokowy: operacja ręczna', + appShapeFlowConnector: 'Schemat blokowy: łącznik', + appShapeFlowOffpageConnector: 'Schemat blokowy: łącznik międzystronicowy', + appShapeFlowMagneticDisk: 'Schemat blokowy: dysk magnetyczny', + appShapeFlowMagneticDrum: 'Schemat blokowy: pamięć o dostępie bezpośrednim', + appShapeFlowDisplay: 'Schemat blokowy: ekran', + appShapeFlowDelay: 'Schemat blokowy: opóźnienie', + appShapeFlowOr: 'Schemat blokowy: lub', + appShapeFlowCollate: 'Schemat blokowy: zestawianie', + appShapeFlowSort: 'Schemat blokowy: sortowanie', + appShapeFlowExtract: 'Schemat blokowy: wyodrębnianie', + appShapeFlowMerge: 'Schemat blokowy: scalanie', + appShapeFlowSummingJunction: 'Schemat blokowy: węzeł sumacyjny', + appShapeFlowPunchedTape: 'Schemat blokowy: taśma dziurkowana', + appShapeWedgeRectCallout: 'Objaśnienie prostokątne', + appShapeWedgeRoundRectCallout: 'Objaśnienie prostokątne zaokrąglone', + appShapeWedgeEllipseCallout: 'Objaśnienie owalne', + appShapeCloudCallout: 'Objaśnienie w kształcie chmury', appIcons: 'Ikony', app3dModels: 'Modele 3D', appScreenshot: 'Zrzut ekranu', @@ -14284,15 +15698,116 @@ export const appStrings = defineStrings({ appPictureTypes: 'PNG, JPEG, GIF', appShapes: 'Vormen', appInsertShapeTitle: 'Een vorm invoegen bij de selectie', + appShapeGroupRects: 'Rechthoeken', + appShapeGroupBasic: 'Basisvormen', + appShapeGroupArrows: 'Pijlen', + appShapeGroupStars: 'Sterren', + appShapeGroupFlowchart: 'Stroomdiagram', + appShapeGroupCallouts: 'Toelichtingen', appShapeRect: 'Rechthoek', appShapeRoundRect: 'Afgeronde rechthoek', + appShapeSnip1Rect: 'Rechthoek met één afgesneden hoek', + appShapeSnip2SameRect: 'Rechthoek met afgesneden hoeken aan dezelfde zijde', + appShapeSnip2DiagRect: 'Rechthoek met diagonaal afgesneden hoeken', + appShapeSnipRoundRect: 'Rechthoek met één afgesneden en één afgeronde hoek', + appShapeRound1Rect: 'Rechthoek met één afgeronde hoek', + appShapeRound2SameRect: 'Rechthoek met afgeronde hoeken aan dezelfde zijde', + appShapeRound2DiagRect: 'Rechthoek met diagonaal afgeronde hoeken', appShapeEllipse: 'Ovaal', - appShapeTriangle: 'Driehoek', + appShapeTriangle: 'Gelijkbenige driehoek', + appShapeRtTriangle: 'Rechthoekige driehoek', + appShapeParallelogram: 'Parallellogram', + appShapeTrapezoid: 'Trapezium', appShapeDiamond: 'Ruit', + appShapePentagon: 'Regelmatige vijfhoek', + appShapeHexagon: 'Zeshoek', + appShapeOctagon: 'Achthoek', + appShapePlus: 'Kruis', + appShapeMathPlus: 'Plusteken', + appShapePie: 'Taartpunt', + appShapeChord: 'Koorde', + appShapeTeardrop: 'Traan', + appShapeFrame: 'Kader', + appShapeHalfFrame: 'Half kader', + appShapeCorner: 'L-vorm', + appShapeDiagStripe: 'Diagonale streep', + appShapeDonut: 'Ring', + appShapeNoSmoking: 'Verbodsteken', + appShapeBlockArc: 'Blokboog', + appShapeFoldedCorner: 'Omgevouwen hoek', + appShapeBevel: 'Schuine rand', + appShapeCube: 'Kubus', + appShapeCan: 'Cilinder', + appShapeLightningBolt: 'Bliksemschicht', + appShapeHeart: 'Hart', + appShapeSun: 'Zon', + appShapeMoon: 'Maan', + appShapeCloud: 'Wolk', + appShapeArc: 'Boog', + appShapePlaque: 'Plaquette', + appShapeSmileyFace: 'Smiley', + appShapeLeftBracket: 'Linker vierkante haak', + appShapeRightBracket: 'Rechter vierkante haak', + appShapeLeftBrace: 'Accolade links', + appShapeRightBrace: 'Accolade rechts', appShapeRightArrow: 'Pijl naar rechts', appShapeLeftArrow: 'Pijl naar links', - appShapePentagon: 'Vijfhoek', - appShapeHexagon: 'Zeshoek', + appShapeUpArrow: 'Pijl omhoog', + appShapeDownArrow: 'Pijl omlaag', + appShapeLeftRightArrow: 'Pijl links-rechts', + appShapeUpDownArrow: 'Pijl omhoog-omlaag', + appShapeQuadArrow: 'Viervoudige pijl', + appShapeBentArrow: 'Gebogen pijl', + appShapeUturnArrow: 'U-bochtpijl', + appShapeCurvedRightArrow: 'Naar rechts gekromde pijl', + appShapeStripedRightArrow: 'Gestreepte pijl naar rechts', + appShapeNotchedRightArrow: 'Ingekeepte pijl naar rechts', + appShapeChevron: 'Chevron', + appShapeHomePlate: 'Vijfhoekige pijl', + appShapeStar4: 'Ster met 4 punten', + appShapeStar5: 'Ster met 5 punten', + appShapeStar6: 'Ster met 6 punten', + appShapeStar7: 'Ster met 7 punten', + appShapeStar8: 'Ster met 8 punten', + appShapeStar10: 'Ster met 10 punten', + appShapeStar12: 'Ster met 12 punten', + appShapeStar16: 'Ster met 16 punten', + appShapeStar24: 'Ster met 24 punten', + appShapeStar32: 'Ster met 32 punten', + appShapeIrregularSeal1: 'Explosie 1', + appShapeIrregularSeal2: 'Explosie 2', + appShapeRibbon: 'Lint omlaag', + appShapeRibbon2: 'Lint omhoog', + appShapeWave: 'Golf', + appShapeDoubleWave: 'Dubbele golf', + appShapeFlowProcess: 'Stroomdiagram: proces', + appShapeFlowAlternateProcess: 'Stroomdiagram: alternatief proces', + appShapeFlowDecision: 'Stroomdiagram: beslissing', + appShapeFlowPredefinedProcess: 'Stroomdiagram: vooraf gedefinieerd proces', + appShapeFlowInternalStorage: 'Stroomdiagram: interne opslag', + appShapeFlowDocument: 'Stroomdiagram: document', + appShapeFlowMultidocument: 'Stroomdiagram: meerdere documenten', + appShapeFlowTerminator: 'Stroomdiagram: einde', + appShapeFlowPreparation: 'Stroomdiagram: voorbereiding', + appShapeFlowManualInput: 'Stroomdiagram: handmatige invoer', + appShapeFlowManualOperation: 'Stroomdiagram: handmatige bewerking', + appShapeFlowConnector: 'Stroomdiagram: verbinding', + appShapeFlowOffpageConnector: 'Stroomdiagram: verbinding naar andere pagina', + appShapeFlowMagneticDisk: 'Stroomdiagram: magneetschijf', + appShapeFlowMagneticDrum: 'Stroomdiagram: opslag met directe toegang', + appShapeFlowDisplay: 'Stroomdiagram: beeldscherm', + appShapeFlowDelay: 'Stroomdiagram: vertraging', + appShapeFlowOr: 'Stroomdiagram: of', + appShapeFlowCollate: 'Stroomdiagram: collationeren', + appShapeFlowSort: 'Stroomdiagram: sorteren', + appShapeFlowExtract: 'Stroomdiagram: extraheren', + appShapeFlowMerge: 'Stroomdiagram: samenvoegen', + appShapeFlowSummingJunction: 'Stroomdiagram: sommatiepunt', + appShapeFlowPunchedTape: 'Stroomdiagram: ponsband', + appShapeWedgeRectCallout: 'Rechthoekige toelichting', + appShapeWedgeRoundRectCallout: 'Afgeronde rechthoekige toelichting', + appShapeWedgeEllipseCallout: 'Ovale toelichting', + appShapeCloudCallout: 'Wolkvormige toelichting', appIcons: 'Pictogrammen', app3dModels: '3D-modellen', appScreenshot: 'Schermopname', @@ -15240,15 +16755,116 @@ export const appStrings = defineStrings({ appPictureTypes: 'PNG, JPEG, GIF', appShapes: 'Bentuk', appInsertShapeTitle: 'Selitkan bentuk pada pilihan', - appShapeRect: 'Segi empat tepat', - appShapeRoundRect: 'Segi empat tepat bulat', - appShapeEllipse: 'Elips', - appShapeTriangle: 'Segi tiga', + appShapeGroupRects: 'Segi Empat Tepat', + appShapeGroupBasic: 'Bentuk Asas', + appShapeGroupArrows: 'Anak Panah', + appShapeGroupStars: 'Bintang', + appShapeGroupFlowchart: 'Carta Alir', + appShapeGroupCallouts: 'Petak bual', + appShapeRect: 'Segi Empat Tepat', + appShapeRoundRect: 'Segi Empat Tepat Bulat', + appShapeSnip1Rect: 'Segi Empat Tepat Potong Satu Bucu', + appShapeSnip2SameRect: 'Segi Empat Tepat Potong Bucu Sisi Sama', + appShapeSnip2DiagRect: 'Segi Empat Tepat Potong Bucu Pepenjuru', + appShapeSnipRoundRect: 'Segi Empat Tepat Potong dan Bulat Satu Bucu', + appShapeRound1Rect: 'Segi Empat Tepat Bulat Satu Bucu', + appShapeRound2SameRect: 'Segi Empat Tepat Bulat Bucu Sisi Sama', + appShapeRound2DiagRect: 'Segi Empat Tepat Bulat Bucu Pepenjuru', + appShapeEllipse: 'Bujur', + appShapeTriangle: 'Segi Tiga Sama Kaki', + appShapeRtTriangle: 'Segi Tiga Bersudut Tegak', + appShapeParallelogram: 'Segi Empat Selari', + appShapeTrapezoid: 'Trapezium', appShapeDiamond: 'Berlian', - appShapeRightArrow: 'Anak panah kanan', - appShapeLeftArrow: 'Anak panah kiri', - appShapePentagon: 'Pentagon', + appShapePentagon: 'Pentagon Sekata', appShapeHexagon: 'Heksagon', + appShapeOctagon: 'Oktagon', + appShapePlus: 'Palang', + appShapeMathPlus: 'Tanda tambah', + appShapePie: 'Pai', + appShapeChord: 'Perentas', + appShapeTeardrop: 'Titisan Air Mata', + appShapeFrame: 'Bingkai', + appShapeHalfFrame: 'Separuh Bingkai', + appShapeCorner: 'Bentuk L', + appShapeDiagStripe: 'Jalur Pepenjuru', + appShapeDonut: 'Donut', + appShapeNoSmoking: 'Simbol "Dilarang"', + appShapeBlockArc: 'Lengkok blok', + appShapeFoldedCorner: 'Bucu Terlipat', + appShapeBevel: 'Serong', + appShapeCube: 'Kubus', + appShapeCan: 'Silinder', + appShapeLightningBolt: 'Kilat', + appShapeHeart: 'Hati', + appShapeSun: 'Matahari', + appShapeMoon: 'Bulan', + appShapeCloud: 'Awan', + appShapeArc: 'Lengkok', + appShapePlaque: 'Plak', + appShapeSmileyFace: 'Muka Senyum', + appShapeLeftBracket: 'Kurungan Siku Kiri', + appShapeRightBracket: 'Kurungan Siku Kanan', + appShapeLeftBrace: 'Pendakap kiri', + appShapeRightBrace: 'Pendakap kanan', + appShapeRightArrow: 'Anak Panah Kanan', + appShapeLeftArrow: 'Anak Panah Kiri', + appShapeUpArrow: 'Anak Panah Atas', + appShapeDownArrow: 'Anak Panah Bawah', + appShapeLeftRightArrow: 'Anak Panah Kiri-Kanan', + appShapeUpDownArrow: 'Anak Panah Atas-Bawah', + appShapeQuadArrow: 'Anak Panah Empat Arah', + appShapeBentArrow: 'Anak Panah Bengkok', + appShapeUturnArrow: 'Anak Panah Pusing Balik', + appShapeCurvedRightArrow: 'Anak Panah Melengkung ke Kanan', + appShapeStripedRightArrow: 'Anak Panah Berjalur ke Kanan', + appShapeNotchedRightArrow: 'Anak Panah Kanan Bertakuk', + appShapeChevron: 'Cevron', + appShapeHomePlate: 'Anak Panah Pentagon', + appShapeStar4: 'Bintang 4 Bucu', + appShapeStar5: 'Bintang 5 Bucu', + appShapeStar6: 'Bintang 6 Bucu', + appShapeStar7: 'Bintang 7 Bucu', + appShapeStar8: 'Bintang 8 Bucu', + appShapeStar10: 'Bintang 10 Bucu', + appShapeStar12: 'Bintang 12 Bucu', + appShapeStar16: 'Bintang 16 Bucu', + appShapeStar24: 'Bintang 24 Bucu', + appShapeStar32: 'Bintang 32 Bucu', + appShapeIrregularSeal1: 'Letupan 1', + appShapeIrregularSeal2: 'Letupan 2', + appShapeRibbon: 'Reben Bawah', + appShapeRibbon2: 'Reben Atas', + appShapeWave: 'Gelombang', + appShapeDoubleWave: 'Gelombang Berganda', + appShapeFlowProcess: 'Carta Alir: Proses', + appShapeFlowAlternateProcess: 'Carta Alir: Proses Alternatif', + appShapeFlowDecision: 'Carta Alir: Keputusan', + appShapeFlowPredefinedProcess: 'Carta Alir: Proses Pratakrif', + appShapeFlowInternalStorage: 'Carta Alir: Storan Dalaman', + appShapeFlowDocument: 'Carta Alir: Dokumen', + appShapeFlowMultidocument: 'Carta Alir: Multidokumen', + appShapeFlowTerminator: 'Carta Alir: Penamat', + appShapeFlowPreparation: 'Carta Alir: Persediaan', + appShapeFlowManualInput: 'Carta Alir: Input Manual', + appShapeFlowManualOperation: 'Carta Alir: Operasi Manual', + appShapeFlowConnector: 'Carta Alir: Penyambung', + appShapeFlowOffpageConnector: 'Carta Alir: Penyambung Luar Halaman', + appShapeFlowMagneticDisk: 'Carta Alir: Cakera Magnet', + appShapeFlowMagneticDrum: 'Carta Alir: Storan Capaian Terus', + appShapeFlowDisplay: 'Carta Alir: Paparan', + appShapeFlowDelay: 'Carta Alir: Lengah', + appShapeFlowOr: 'Carta Alir: Atau', + appShapeFlowCollate: 'Carta Alir: Susun Semak', + appShapeFlowSort: 'Carta Alir: Isih', + appShapeFlowExtract: 'Carta Alir: Ekstrak', + appShapeFlowMerge: 'Carta Alir: Cantum', + appShapeFlowSummingJunction: 'Carta Alir: Simpang Penjumlahan', + appShapeFlowPunchedTape: 'Carta Alir: Pita Bertebuk', + appShapeWedgeRectCallout: 'Petak bual segi empat', + appShapeWedgeRoundRectCallout: 'Petak bual segi empat bulat', + appShapeWedgeEllipseCallout: 'Petak bual bujur', + appShapeCloudCallout: 'Petak bual awan', appIcons: 'Ikon', app3dModels: 'Model 3D', appScreenshot: 'Tangkapan skrin', @@ -16160,15 +17776,116 @@ export const appStrings = defineStrings({ appPictureTypes: 'PNG,‏ JPEG,‏ GIF', appShapes: 'צורות', appInsertShapeTitle: 'הוסף צורה במיקום הבחירה', + appShapeGroupRects: 'מלבנים', + appShapeGroupBasic: 'צורות בסיסיות', + appShapeGroupArrows: 'חצים', + appShapeGroupStars: 'כוכבים', + appShapeGroupFlowchart: 'תרשים זרימה', + appShapeGroupCallouts: 'הסברים', appShapeRect: 'מלבן', appShapeRoundRect: 'מלבן מעוגל', + appShapeSnip1Rect: 'מלבן עם פינה חתוכה אחת', + appShapeSnip2SameRect: 'מלבן עם פינות חתוכות באותו צד', + appShapeSnip2DiagRect: 'מלבן עם פינות חתוכות באלכסון', + appShapeSnipRoundRect: 'מלבן עם פינה חתוכה ופינה מעוגלת', + appShapeRound1Rect: 'מלבן עם פינה מעוגלת אחת', + appShapeRound2SameRect: 'מלבן עם פינות מעוגלות באותו צד', + appShapeRound2DiagRect: 'מלבן עם פינות מעוגלות באלכסון', appShapeEllipse: 'אליפסה', - appShapeTriangle: 'משולש', + appShapeTriangle: 'משולש שווה-שוקיים', + appShapeRtTriangle: 'משולש ישר-זווית', + appShapeParallelogram: 'מקבילית', + appShapeTrapezoid: 'טרפז', appShapeDiamond: 'מעוין', + appShapePentagon: 'מחומש משוכלל', + appShapeHexagon: 'משושה', + appShapeOctagon: 'מתומן', + appShapePlus: 'צלב', + appShapeMathPlus: 'סימן חיבור', + appShapePie: 'עוגה', + appShapeChord: 'מיתר', + appShapeTeardrop: 'דמעה', + appShapeFrame: 'מסגרת', + appShapeHalfFrame: 'חצי מסגרת', + appShapeCorner: 'צורת L', + appShapeDiagStripe: 'פס אלכסוני', + appShapeDonut: 'טבעת', + appShapeNoSmoking: 'סמל איסור', + appShapeBlockArc: 'קשת מלאה', + appShapeFoldedCorner: 'פינה מקופלת', + appShapeBevel: 'שיפוע', + appShapeCube: 'קובייה', + appShapeCan: 'גליל', + appShapeLightningBolt: 'ברק', + appShapeHeart: 'לב', + appShapeSun: 'שמש', + appShapeMoon: 'ירח', + appShapeCloud: 'ענן', + appShapeArc: 'קשת', + appShapePlaque: 'לוחית', + appShapeSmileyFace: 'פרצוף מחייך', + appShapeLeftBracket: 'סוגר מרובע שמאלי', + appShapeRightBracket: 'סוגר מרובע ימני', + appShapeLeftBrace: 'סוגר מסולסל שמאלי', + appShapeRightBrace: 'סוגר מסולסל ימני', appShapeRightArrow: 'חץ ימינה', appShapeLeftArrow: 'חץ שמאלה', - appShapePentagon: 'מחומש', - appShapeHexagon: 'משושה', + appShapeUpArrow: 'חץ למעלה', + appShapeDownArrow: 'חץ למטה', + appShapeLeftRightArrow: 'חץ ימינה-שמאלה', + appShapeUpDownArrow: 'חץ למעלה-למטה', + appShapeQuadArrow: 'חץ לארבעה כיוונים', + appShapeBentArrow: 'חץ מכופף', + appShapeUturnArrow: 'חץ פניית פרסה', + appShapeCurvedRightArrow: 'חץ מעוקל ימינה', + appShapeStripedRightArrow: 'חץ מפוספס ימינה', + appShapeNotchedRightArrow: 'חץ ימינה עם חריץ', + appShapeChevron: 'שברון', + appShapeHomePlate: 'חץ מחומש', + appShapeStar4: 'כוכב 4 קצוות', + appShapeStar5: 'כוכב 5 קצוות', + appShapeStar6: 'כוכב 6 קצוות', + appShapeStar7: 'כוכב 7 קצוות', + appShapeStar8: 'כוכב 8 קצוות', + appShapeStar10: 'כוכב 10 קצוות', + appShapeStar12: 'כוכב 12 קצוות', + appShapeStar16: 'כוכב 16 קצוות', + appShapeStar24: 'כוכב 24 קצוות', + appShapeStar32: 'כוכב 32 קצוות', + appShapeIrregularSeal1: 'פיצוץ 1', + appShapeIrregularSeal2: 'פיצוץ 2', + appShapeRibbon: 'סרט כלפי מטה', + appShapeRibbon2: 'סרט כלפי מעלה', + appShapeWave: 'גל', + appShapeDoubleWave: 'גל כפול', + appShapeFlowProcess: 'תרשים זרימה: תהליך', + appShapeFlowAlternateProcess: 'תרשים זרימה: תהליך חלופי', + appShapeFlowDecision: 'תרשים זרימה: החלטה', + appShapeFlowPredefinedProcess: 'תרשים זרימה: תהליך מוגדר מראש', + appShapeFlowInternalStorage: 'תרשים זרימה: אחסון פנימי', + appShapeFlowDocument: 'תרשים זרימה: מסמך', + appShapeFlowMultidocument: 'תרשים זרימה: מסמכים מרובים', + appShapeFlowTerminator: 'תרשים זרימה: סיום', + appShapeFlowPreparation: 'תרשים זרימה: הכנה', + appShapeFlowManualInput: 'תרשים זרימה: קלט ידני', + appShapeFlowManualOperation: 'תרשים זרימה: פעולה ידנית', + appShapeFlowConnector: 'תרשים זרימה: מחבר', + appShapeFlowOffpageConnector: 'תרשים זרימה: מחבר מחוץ לעמוד', + appShapeFlowMagneticDisk: 'תרשים זרימה: דיסק מגנטי', + appShapeFlowMagneticDrum: 'תרשים זרימה: אחסון בגישה ישירה', + appShapeFlowDisplay: 'תרשים זרימה: תצוגה', + appShapeFlowDelay: 'תרשים זרימה: השהיה', + appShapeFlowOr: 'תרשים זרימה: או', + appShapeFlowCollate: 'תרשים זרימה: איסוף', + appShapeFlowSort: 'תרשים זרימה: מיון', + appShapeFlowExtract: 'תרשים זרימה: חילוץ', + appShapeFlowMerge: 'תרשים זרימה: מיזוג', + appShapeFlowSummingJunction: 'תרשים זרימה: צומת סיכום', + appShapeFlowPunchedTape: 'תרשים זרימה: סרט מנוקב', + appShapeWedgeRectCallout: 'הסבר מלבני', + appShapeWedgeRoundRectCallout: 'הסבר מלבני מעוגל', + appShapeWedgeEllipseCallout: 'הסבר אליפטי', + appShapeCloudCallout: 'הסבר בצורת ענן', appIcons: 'סמלים', app3dModels: 'מודלים תלת-ממדיים', appScreenshot: 'צילום מסך', @@ -17118,15 +18835,116 @@ export const appStrings = defineStrings({ appPictureTypes: 'PNG, JPEG, GIF', appShapes: 'आकृतियाँ', appInsertShapeTitle: 'चयन पर एक आकृति सम्मिलित करें', + appShapeGroupRects: 'आयत', + appShapeGroupBasic: 'मूल आकृतियाँ', + appShapeGroupArrows: 'तीर', + appShapeGroupStars: 'तारे', + appShapeGroupFlowchart: 'फ़्लोचार्ट', + appShapeGroupCallouts: 'कॉलआउट', appShapeRect: 'आयत', appShapeRoundRect: 'गोल कोनों वाला आयत', - appShapeEllipse: 'दीर्घवृत्त', - appShapeTriangle: 'त्रिभुज', + appShapeSnip1Rect: 'एक कटे कोने वाला आयत', + appShapeSnip2SameRect: 'एक ही ओर कटे कोनों वाला आयत', + appShapeSnip2DiagRect: 'विकर्ण कटे कोनों वाला आयत', + appShapeSnipRoundRect: 'एक कटे और एक गोल कोने वाला आयत', + appShapeRound1Rect: 'एक गोल कोने वाला आयत', + appShapeRound2SameRect: 'एक ही ओर गोल कोनों वाला आयत', + appShapeRound2DiagRect: 'विकर्ण गोल कोनों वाला आयत', + appShapeEllipse: 'अंडाकार', + appShapeTriangle: 'समद्विबाहु त्रिभुज', + appShapeRtTriangle: 'समकोण त्रिभुज', + appShapeParallelogram: 'समांतर चतुर्भुज', + appShapeTrapezoid: 'समलंब', appShapeDiamond: 'समचतुर्भुज', + appShapePentagon: 'सम पंचभुज', + appShapeHexagon: 'षट्भुज', + appShapeOctagon: 'अष्टभुज', + appShapePlus: 'क्रॉस', + appShapeMathPlus: 'जोड़ चिह्न', + appShapePie: 'पाई', + appShapeChord: 'जीवा', + appShapeTeardrop: 'अश्रु बूँद', + appShapeFrame: 'फ़्रेम', + appShapeHalfFrame: 'आधा फ़्रेम', + appShapeCorner: 'L-आकृति', + appShapeDiagStripe: 'विकर्ण पट्टी', + appShapeDonut: 'डोनट', + appShapeNoSmoking: 'निषेध चिह्न', + appShapeBlockArc: 'ब्लॉक चाप', + appShapeFoldedCorner: 'मुड़ा हुआ कोना', + appShapeBevel: 'बेवेल', + appShapeCube: 'घन', + appShapeCan: 'बेलन', + appShapeLightningBolt: 'बिजली', + appShapeHeart: 'हृदय', + appShapeSun: 'सूर्य', + appShapeMoon: 'चंद्रमा', + appShapeCloud: 'बादल', + appShapeArc: 'चाप', + appShapePlaque: 'पट्टिका', + appShapeSmileyFace: 'मुस्कुराता चेहरा', + appShapeLeftBracket: 'बायाँ कोष्ठक', + appShapeRightBracket: 'दायाँ कोष्ठक', + appShapeLeftBrace: 'बायाँ ब्रेस', + appShapeRightBrace: 'दायाँ ब्रेस', appShapeRightArrow: 'दायाँ तीर', appShapeLeftArrow: 'बायाँ तीर', - appShapePentagon: 'पंचभुज', - appShapeHexagon: 'षट्भुज', + appShapeUpArrow: 'ऊपर तीर', + appShapeDownArrow: 'नीचे तीर', + appShapeLeftRightArrow: 'बाएँ-दाएँ तीर', + appShapeUpDownArrow: 'ऊपर-नीचे तीर', + appShapeQuadArrow: 'चार दिशाओं वाला तीर', + appShapeBentArrow: 'मुड़ा हुआ तीर', + appShapeUturnArrow: 'यू-टर्न तीर', + appShapeCurvedRightArrow: 'दाईं ओर वक्र तीर', + appShapeStripedRightArrow: 'धारीदार दायाँ तीर', + appShapeNotchedRightArrow: 'कटा हुआ दायाँ तीर', + appShapeChevron: 'शेवरॉन', + appShapeHomePlate: 'पंचभुज तीर', + appShapeStar4: '4-कोणीय तारा', + appShapeStar5: '5-कोणीय तारा', + appShapeStar6: '6-कोणीय तारा', + appShapeStar7: '7-कोणीय तारा', + appShapeStar8: '8-कोणीय तारा', + appShapeStar10: '10-कोणीय तारा', + appShapeStar12: '12-कोणीय तारा', + appShapeStar16: '16-कोणीय तारा', + appShapeStar24: '24-कोणीय तारा', + appShapeStar32: '32-कोणीय तारा', + appShapeIrregularSeal1: 'विस्फोट 1', + appShapeIrregularSeal2: 'विस्फोट 2', + appShapeRibbon: 'नीचे की ओर रिबन', + appShapeRibbon2: 'ऊपर की ओर रिबन', + appShapeWave: 'तरंग', + appShapeDoubleWave: 'दोहरी तरंग', + appShapeFlowProcess: 'फ़्लोचार्ट: प्रक्रिया', + appShapeFlowAlternateProcess: 'फ़्लोचार्ट: वैकल्पिक प्रक्रिया', + appShapeFlowDecision: 'फ़्लोचार्ट: निर्णय', + appShapeFlowPredefinedProcess: 'फ़्लोचार्ट: पूर्वनिर्धारित प्रक्रिया', + appShapeFlowInternalStorage: 'फ़्लोचार्ट: आंतरिक संग्रहण', + appShapeFlowDocument: 'फ़्लोचार्ट: दस्तावेज़', + appShapeFlowMultidocument: 'फ़्लोचार्ट: बहु-दस्तावेज़', + appShapeFlowTerminator: 'फ़्लोचार्ट: समापन', + appShapeFlowPreparation: 'फ़्लोचार्ट: तैयारी', + appShapeFlowManualInput: 'फ़्लोचार्ट: मैन्युअल इनपुट', + appShapeFlowManualOperation: 'फ़्लोचार्ट: मैन्युअल संचालन', + appShapeFlowConnector: 'फ़्लोचार्ट: संयोजक', + appShapeFlowOffpageConnector: 'फ़्लोचार्ट: पृष्ठ-बाह्य संयोजक', + appShapeFlowMagneticDisk: 'फ़्लोचार्ट: चुंबकीय डिस्क', + appShapeFlowMagneticDrum: 'फ़्लोचार्ट: प्रत्यक्ष पहुँच संग्रहण', + appShapeFlowDisplay: 'फ़्लोचार्ट: प्रदर्शन', + appShapeFlowDelay: 'फ़्लोचार्ट: विलंब', + appShapeFlowOr: 'फ़्लोचार्ट: या', + appShapeFlowCollate: 'फ़्लोचार्ट: मिलान', + appShapeFlowSort: 'फ़्लोचार्ट: छँटाई', + appShapeFlowExtract: 'फ़्लोचार्ट: निष्कर्षण', + appShapeFlowMerge: 'फ़्लोचार्ट: विलय', + appShapeFlowSummingJunction: 'फ़्लोचार्ट: योग जंक्शन', + appShapeFlowPunchedTape: 'फ़्लोचार्ट: छिद्रित टेप', + appShapeWedgeRectCallout: 'आयताकार कॉलआउट', + appShapeWedgeRoundRectCallout: 'गोल आयताकार कॉलआउट', + appShapeWedgeEllipseCallout: 'अंडाकार कॉलआउट', + appShapeCloudCallout: 'बादल कॉलआउट', appIcons: 'आइकन', app3dModels: '3D मॉडल', appScreenshot: 'स्क्रीनशॉट', @@ -18012,15 +19830,116 @@ export const appStrings = defineStrings({ appPictureTypes: 'PNG、JPEG、GIF', appShapes: '圖案', appInsertShapeTitle: '在目前的選取範圍插入圖案', + appShapeGroupRects: '矩形', + appShapeGroupBasic: '基本圖案', + appShapeGroupArrows: '箭頭', + appShapeGroupStars: '星形', + appShapeGroupFlowchart: '流程圖', + appShapeGroupCallouts: '圖說文字', appShapeRect: '矩形', appShapeRoundRect: '圓角矩形', + appShapeSnip1Rect: '剪去單角矩形', + appShapeSnip2SameRect: '剪去同側角矩形', + appShapeSnip2DiagRect: '剪去對角矩形', + appShapeSnipRoundRect: '剪去及圓化單角矩形', + appShapeRound1Rect: '圓化單角矩形', + appShapeRound2SameRect: '圓化同側角矩形', + appShapeRound2DiagRect: '圓化對角矩形', appShapeEllipse: '橢圓', appShapeTriangle: '三角形', + appShapeRtTriangle: '直角三角形', + appShapeParallelogram: '平行四邊形', + appShapeTrapezoid: '梯形', appShapeDiamond: '菱形', - appShapeRightArrow: '右箭號', - appShapeLeftArrow: '左箭號', appShapePentagon: '五邊形', appShapeHexagon: '六邊形', + appShapeOctagon: '八邊形', + appShapePlus: '十字形', + appShapeMathPlus: '加號', + appShapePie: '派形', + appShapeChord: '弦形', + appShapeTeardrop: '淚滴形', + appShapeFrame: '框架', + appShapeHalfFrame: '半框架', + appShapeCorner: 'L 形', + appShapeDiagStripe: '斜紋', + appShapeDonut: '圓環', + appShapeNoSmoking: '禁止符號', + appShapeBlockArc: '實心弧形', + appShapeFoldedCorner: '摺角', + appShapeBevel: '斜角', + appShapeCube: '立方體', + appShapeCan: '圓柱', + appShapeLightningBolt: '閃電', + appShapeHeart: '心形', + appShapeSun: '太陽', + appShapeMoon: '新月形', + appShapeCloud: '雲朵形', + appShapeArc: '弧形', + appShapePlaque: '銘牌', + appShapeSmileyFace: '笑臉', + appShapeLeftBracket: '左中括號', + appShapeRightBracket: '右中括號', + appShapeLeftBrace: '左大括弧', + appShapeRightBrace: '右大括弧', + appShapeRightArrow: '右箭頭', + appShapeLeftArrow: '左箭頭', + appShapeUpArrow: '上箭頭', + appShapeDownArrow: '下箭頭', + appShapeLeftRightArrow: '左右箭頭', + appShapeUpDownArrow: '上下箭頭', + appShapeQuadArrow: '十字箭頭', + appShapeBentArrow: '轉彎箭頭', + appShapeUturnArrow: '迴轉箭頭', + appShapeCurvedRightArrow: '右弧形箭頭', + appShapeStripedRightArrow: '條紋右箭頭', + appShapeNotchedRightArrow: '缺口右箭頭', + appShapeChevron: 'V 形', + appShapeHomePlate: '燕尾形', + appShapeStar4: '四角星', + appShapeStar5: '五角星', + appShapeStar6: '六角星', + appShapeStar7: '七角星', + appShapeStar8: '八角星', + appShapeStar10: '十角星', + appShapeStar12: '十二角星', + appShapeStar16: '十六角星', + appShapeStar24: '二十四角星', + appShapeStar32: '三十二角星', + appShapeIrregularSeal1: '爆炸 1', + appShapeIrregularSeal2: '爆炸 2', + appShapeRibbon: '下彎帶形', + appShapeRibbon2: '上彎帶形', + appShapeWave: '波浪', + appShapeDoubleWave: '雙波浪', + appShapeFlowProcess: '處理程序', + appShapeFlowAlternateProcess: '替代處理程序', + appShapeFlowDecision: '決策', + appShapeFlowPredefinedProcess: '預設處理程序', + appShapeFlowInternalStorage: '內部儲存體', + appShapeFlowDocument: '文件', + appShapeFlowMultidocument: '多重文件', + appShapeFlowTerminator: '終止', + appShapeFlowPreparation: '準備作業', + appShapeFlowManualInput: '手動輸入', + appShapeFlowManualOperation: '手動作業', + appShapeFlowConnector: '接點', + appShapeFlowOffpageConnector: '換頁接點', + appShapeFlowMagneticDisk: '磁碟', + appShapeFlowMagneticDrum: '直接存取儲存體', + appShapeFlowDisplay: '顯示', + appShapeFlowDelay: '延遲', + appShapeFlowOr: '或', + appShapeFlowCollate: '對照', + appShapeFlowSort: '排序', + appShapeFlowExtract: '抽選', + appShapeFlowMerge: '合併', + appShapeFlowSummingJunction: '加總接點', + appShapeFlowPunchedTape: '打孔紙帶', + appShapeWedgeRectCallout: '矩形圖說文字', + appShapeWedgeRoundRectCallout: '圓角矩形圖說文字', + appShapeWedgeEllipseCallout: '橢圓形圖說文字', + appShapeCloudCallout: '雲朵形圖說文字', appIcons: '圖示', app3dModels: '3D 模型', appScreenshot: '螢幕擷取畫面', diff --git a/apps/sheets/src/renderer/i18n/strings-dialogs.ts b/apps/sheets/src/renderer/i18n/strings-dialogs.ts index b4b6fca..3080c82 100644 --- a/apps/sheets/src/renderer/i18n/strings-dialogs.ts +++ b/apps/sheets/src/renderer/i18n/strings-dialogs.ts @@ -121,6 +121,37 @@ export const dialogStrings = defineStrings({ dlgSlicerClear: '清除筛选(全选)', dlgSlicerRemove: '删除切片器(恢复全部成员)', + dlgIconsTitle: '图标', + dlgIconsSearch: '搜索图标(英文)', + dlgIconsColor: '图标颜色', + dlgIconsNoResults: '没有匹配的图标。', + dlgIconsCatArrows: '箭头', + dlgIconsCatShapes: '形状与符号', + dlgIconsCatBusiness: '商务', + dlgIconsCatCommunication: '沟通', + dlgIconsCatFiles: '文件', + dlgIconsCatTech: '科技', + dlgIconsCatPeople: '人物', + dlgIconsCatNature: '自然', + dlgIconsCatTravel: '出行', + dlgRecoTitle: '推荐的图表', + dlgRecoNote: '根据所选数据的形状推荐,点击即插入。', + dlgRecoReasonTime: '时间序列适合用趋势展示', + dlgRecoReasonProportion: '少量类别适合看整体占比', + dlgRecoReasonCorrelation: '两列数值适合看相关性', + dlgRecoReasonComparison: '适合比较各类别的数值', + dlgRecoReasonManyPoints: '数据点较多,折线更清晰', + dlgRecoReasonLongLabels: '类别名较长,条形图更易读', + dlgRecoReasonMixedScales: '两个系列量级差异大,适合组合图', + dlgScreenshotTitle: '屏幕截图', + dlgScreenshotScreens: '屏幕', + dlgScreenshotWindows: '可用窗口', + dlgScreenshotLoading: '正在获取可截取的窗口…', + dlgScreenshotEmpty: '没有可截取的窗口。', + dlgScreenshotDenied: + '需要屏幕录制权限。请在 系统设置 → 隐私与安全性 → 屏幕录制 中允许本应用,然后点击刷新。', + dlgScreenshotRefresh: '刷新', + dlgScreenshotFailed: '截图失败,请重试。', dlgSymbolTitle: '插入符号', dlgSymbolCatCurrency: '货币/常用', dlgSymbolCatMath: '数学', @@ -456,6 +487,37 @@ export const dialogStrings = defineStrings({ dlgSlicerClear: 'Clear filter (select all)', dlgSlicerRemove: 'Remove slicer (restore all members)', + dlgIconsTitle: 'Icons', + dlgIconsSearch: 'Search icons', + dlgIconsColor: 'Icon color', + dlgIconsNoResults: 'No icons match.', + dlgIconsCatArrows: 'Arrows', + dlgIconsCatShapes: 'Shapes & symbols', + dlgIconsCatBusiness: 'Business', + dlgIconsCatCommunication: 'Communication', + dlgIconsCatFiles: 'Files', + dlgIconsCatTech: 'Technology', + dlgIconsCatPeople: 'People', + dlgIconsCatNature: 'Nature', + dlgIconsCatTravel: 'Travel', + dlgRecoTitle: 'Recommended Charts', + dlgRecoNote: 'Ranked by the shape of the selected data — click to insert.', + dlgRecoReasonTime: 'Time series read best as trends', + dlgRecoReasonProportion: 'A few categories read well as shares of a whole', + dlgRecoReasonCorrelation: 'Two numeric columns read well as a correlation', + dlgRecoReasonComparison: 'Good for comparing values across categories', + dlgRecoReasonManyPoints: 'Many data points stay readable as a line', + dlgRecoReasonLongLabels: 'Long labels fit better on a bar chart', + dlgRecoReasonMixedScales: 'Series scales differ a lot — a combo chart fits', + dlgScreenshotTitle: 'Screenshot', + dlgScreenshotScreens: 'Screens', + dlgScreenshotWindows: 'Available windows', + dlgScreenshotLoading: 'Listing capturable windows…', + dlgScreenshotEmpty: 'No windows available to capture.', + dlgScreenshotDenied: + 'Screen Recording permission is required. Allow this app in System Settings → Privacy & Security → Screen Recording, then click Refresh.', + dlgScreenshotRefresh: 'Refresh', + dlgScreenshotFailed: 'Capture failed. Please try again.', dlgSymbolTitle: 'Symbol', dlgSymbolCatCurrency: 'Currency & Common', dlgSymbolCatMath: 'Math', @@ -796,6 +858,37 @@ export const dialogStrings = defineStrings({ dlgSlicerClear: 'フィルターのクリア(すべて選択)', dlgSlicerRemove: 'スライサーの削除(全メンバーを復元)', + dlgIconsTitle: 'アイコン', + dlgIconsSearch: 'アイコンを検索(英語)', + dlgIconsColor: 'アイコンの色', + dlgIconsNoResults: '一致するアイコンがありません。', + dlgIconsCatArrows: '矢印', + dlgIconsCatShapes: '図形と記号', + dlgIconsCatBusiness: 'ビジネス', + dlgIconsCatCommunication: 'コミュニケーション', + dlgIconsCatFiles: 'ファイル', + dlgIconsCatTech: 'テクノロジー', + dlgIconsCatPeople: '人物', + dlgIconsCatNature: '自然', + dlgIconsCatTravel: '移動', + dlgRecoTitle: 'おすすめグラフ', + dlgRecoNote: '選択したデータの形に基づくおすすめです。クリックで挿入します。', + dlgRecoReasonTime: '時系列は折れ線で傾向が見やすい', + dlgRecoReasonProportion: '少数のカテゴリは全体に対する割合が見やすい', + dlgRecoReasonCorrelation: '2つの数値列は相関の把握に適している', + dlgRecoReasonComparison: 'カテゴリごとの値の比較に適している', + dlgRecoReasonManyPoints: 'データ点が多い場合は折れ線が見やすい', + dlgRecoReasonLongLabels: 'ラベルが長い場合は横棒グラフが読みやすい', + dlgRecoReasonMixedScales: '系列の規模差が大きいため複合グラフが適している', + dlgScreenshotTitle: 'スクリーンショット', + dlgScreenshotScreens: '画面', + dlgScreenshotWindows: '使用可能なウィンドウ', + dlgScreenshotLoading: 'キャプチャ可能なウィンドウを取得中…', + dlgScreenshotEmpty: 'キャプチャできるウィンドウがありません。', + dlgScreenshotDenied: + '画面収録の権限が必要です。システム設定 → プライバシーとセキュリティ → 画面収録 でこのアプリを許可し、「更新」をクリックしてください。', + dlgScreenshotRefresh: '更新', + dlgScreenshotFailed: 'キャプチャに失敗しました。もう一度お試しください。', dlgSymbolTitle: '記号と特殊文字', dlgSymbolCatCurrency: '通貨/一般', dlgSymbolCatMath: '数学', @@ -1131,6 +1224,37 @@ export const dialogStrings = defineStrings({ dlgSlicerClear: '필터 지우기(모두 선택)', dlgSlicerRemove: '슬라이서 제거(모든 구성원 복원)', + dlgIconsTitle: '아이콘', + dlgIconsSearch: '아이콘 검색(영어)', + dlgIconsColor: '아이콘 색', + dlgIconsNoResults: '일치하는 아이콘이 없습니다.', + dlgIconsCatArrows: '화살표', + dlgIconsCatShapes: '도형 및 기호', + dlgIconsCatBusiness: '비즈니스', + dlgIconsCatCommunication: '커뮤니케이션', + dlgIconsCatFiles: '파일', + dlgIconsCatTech: '기술', + dlgIconsCatPeople: '사람', + dlgIconsCatNature: '자연', + dlgIconsCatTravel: '여행', + dlgRecoTitle: '추천 차트', + dlgRecoNote: '선택한 데이터의 형태를 기준으로 추천합니다. 클릭하면 삽입됩니다.', + dlgRecoReasonTime: '시계열은 추세로 보기 좋습니다', + dlgRecoReasonProportion: '범주가 적으면 전체 대비 비율로 보기 좋습니다', + dlgRecoReasonCorrelation: '두 숫자 열은 상관관계로 보기 좋습니다', + dlgRecoReasonComparison: '범주별 값 비교에 적합합니다', + dlgRecoReasonManyPoints: '데이터 요소가 많으면 꺾은선이 읽기 좋습니다', + dlgRecoReasonLongLabels: '레이블이 길면 가로 막대형이 읽기 좋습니다', + dlgRecoReasonMixedScales: '계열 규모 차이가 커서 콤보 차트가 적합합니다', + dlgScreenshotTitle: '스크린샷', + dlgScreenshotScreens: '화면', + dlgScreenshotWindows: '사용 가능한 창', + dlgScreenshotLoading: '캡처 가능한 창을 가져오는 중…', + dlgScreenshotEmpty: '캡처할 수 있는 창이 없습니다.', + dlgScreenshotDenied: + '화면 기록 권한이 필요합니다. 시스템 설정 → 개인정보 보호 및 보안 → 화면 기록에서 이 앱을 허용한 후 새로 고침을 클릭하세요.', + dlgScreenshotRefresh: '새로 고침', + dlgScreenshotFailed: '캡처하지 못했습니다. 다시 시도하세요.', dlgSymbolTitle: '기호 삽입', dlgSymbolCatCurrency: '통화/일반', dlgSymbolCatMath: '수학', @@ -1471,6 +1595,37 @@ export const dialogStrings = defineStrings({ dlgSlicerClear: 'Effacer le filtre (tout sélectionner)', dlgSlicerRemove: 'Supprimer le segment (restaurer tous les membres)', + dlgIconsTitle: 'Icônes', + dlgIconsSearch: 'Rechercher des icônes (en anglais)', + dlgIconsColor: 'Couleur de l’icône', + dlgIconsNoResults: 'Aucune icône ne correspond.', + dlgIconsCatArrows: 'Flèches', + dlgIconsCatShapes: 'Formes et symboles', + dlgIconsCatBusiness: 'Affaires', + dlgIconsCatCommunication: 'Communication', + dlgIconsCatFiles: 'Fichiers', + dlgIconsCatTech: 'Technologie', + dlgIconsCatPeople: 'Personnes', + dlgIconsCatNature: 'Nature', + dlgIconsCatTravel: 'Voyages', + dlgRecoTitle: 'Graphiques recommandés', + dlgRecoNote: 'Classés selon la forme des données sélectionnées — cliquez pour insérer.', + dlgRecoReasonTime: 'Les séries temporelles se lisent mieux en tendances', + dlgRecoReasonProportion: 'Peu de catégories se lisent bien en parts d’un tout', + dlgRecoReasonCorrelation: 'Deux colonnes numériques se lisent bien en corrélation', + dlgRecoReasonComparison: 'Idéal pour comparer les valeurs entre catégories', + dlgRecoReasonManyPoints: 'Beaucoup de points restent lisibles en courbe', + dlgRecoReasonLongLabels: 'Les étiquettes longues conviennent mieux aux barres', + dlgRecoReasonMixedScales: 'Les échelles diffèrent beaucoup — un graphique combiné convient', + dlgScreenshotTitle: 'Capture d’écran', + dlgScreenshotScreens: 'Écrans', + dlgScreenshotWindows: 'Fenêtres disponibles', + dlgScreenshotLoading: 'Recherche des fenêtres capturables…', + dlgScreenshotEmpty: 'Aucune fenêtre à capturer.', + dlgScreenshotDenied: + 'L’autorisation d’enregistrement de l’écran est requise. Autorisez cette application dans Réglages Système → Confidentialité et sécurité → Enregistrement de l’écran, puis cliquez sur Actualiser.', + dlgScreenshotRefresh: 'Actualiser', + dlgScreenshotFailed: 'Échec de la capture. Veuillez réessayer.', dlgSymbolTitle: 'Symbole', dlgSymbolCatCurrency: 'Monnaie et courant', dlgSymbolCatMath: 'Mathématiques', @@ -1814,6 +1969,37 @@ export const dialogStrings = defineStrings({ dlgSlicerClear: 'Filter löschen (alles auswählen)', dlgSlicerRemove: 'Datenschnitt entfernen (alle Elemente wiederherstellen)', + dlgIconsTitle: 'Symbole', + dlgIconsSearch: 'Symbole suchen (Englisch)', + dlgIconsColor: 'Symbolfarbe', + dlgIconsNoResults: 'Keine passenden Symbole.', + dlgIconsCatArrows: 'Pfeile', + dlgIconsCatShapes: 'Formen und Zeichen', + dlgIconsCatBusiness: 'Geschäftlich', + dlgIconsCatCommunication: 'Kommunikation', + dlgIconsCatFiles: 'Dateien', + dlgIconsCatTech: 'Technologie', + dlgIconsCatPeople: 'Personen', + dlgIconsCatNature: 'Natur', + dlgIconsCatTravel: 'Reisen', + dlgRecoTitle: 'Empfohlene Diagramme', + dlgRecoNote: 'Nach der Form der ausgewählten Daten sortiert — zum Einfügen klicken.', + dlgRecoReasonTime: 'Zeitreihen liest man am besten als Trend', + dlgRecoReasonProportion: 'Wenige Kategorien wirken gut als Anteile am Ganzen', + dlgRecoReasonCorrelation: 'Zwei Zahlenspalten eignen sich für eine Korrelation', + dlgRecoReasonComparison: 'Gut zum Vergleichen von Werten über Kategorien', + dlgRecoReasonManyPoints: 'Viele Datenpunkte bleiben als Linie lesbar', + dlgRecoReasonLongLabels: 'Lange Beschriftungen passen besser ins Balkendiagramm', + dlgRecoReasonMixedScales: 'Sehr unterschiedliche Skalen — ein Verbunddiagramm passt', + dlgScreenshotTitle: 'Bildschirmfoto', + dlgScreenshotScreens: 'Bildschirme', + dlgScreenshotWindows: 'Verfügbare Fenster', + dlgScreenshotLoading: 'Aufnehmbare Fenster werden ermittelt…', + dlgScreenshotEmpty: 'Keine aufnehmbaren Fenster vorhanden.', + dlgScreenshotDenied: + 'Die Berechtigung zur Bildschirmaufnahme ist erforderlich. Erlauben Sie diese App unter Systemeinstellungen → Datenschutz & Sicherheit → Bildschirmaufnahme und klicken Sie dann auf Aktualisieren.', + dlgScreenshotRefresh: 'Aktualisieren', + dlgScreenshotFailed: 'Aufnahme fehlgeschlagen. Bitte erneut versuchen.', dlgSymbolTitle: 'Symbol', dlgSymbolCatCurrency: 'Währung und Allgemein', dlgSymbolCatMath: 'Mathematik', @@ -2155,6 +2341,37 @@ export const dialogStrings = defineStrings({ dlgSlicerClear: 'Borrar filtro (seleccionar todo)', dlgSlicerRemove: 'Quitar segmentación (restaurar todos los elementos)', + dlgIconsTitle: 'Iconos', + dlgIconsSearch: 'Buscar iconos (en inglés)', + dlgIconsColor: 'Color del icono', + dlgIconsNoResults: 'Ningún icono coincide.', + dlgIconsCatArrows: 'Flechas', + dlgIconsCatShapes: 'Formas y símbolos', + dlgIconsCatBusiness: 'Negocios', + dlgIconsCatCommunication: 'Comunicación', + dlgIconsCatFiles: 'Archivos', + dlgIconsCatTech: 'Tecnología', + dlgIconsCatPeople: 'Personas', + dlgIconsCatNature: 'Naturaleza', + dlgIconsCatTravel: 'Viajes', + dlgRecoTitle: 'Gráficos recomendados', + dlgRecoNote: 'Ordenados según la forma de los datos seleccionados; haz clic para insertar.', + dlgRecoReasonTime: 'Las series temporales se leen mejor como tendencias', + dlgRecoReasonProportion: 'Pocas categorías se leen bien como partes de un todo', + dlgRecoReasonCorrelation: 'Dos columnas numéricas se leen bien como correlación', + dlgRecoReasonComparison: 'Ideal para comparar valores entre categorías', + dlgRecoReasonManyPoints: 'Muchos puntos se mantienen legibles como línea', + dlgRecoReasonLongLabels: 'Las etiquetas largas encajan mejor en barras', + dlgRecoReasonMixedScales: 'Las escalas difieren mucho: encaja un gráfico combinado', + dlgScreenshotTitle: 'Captura de pantalla', + dlgScreenshotScreens: 'Pantallas', + dlgScreenshotWindows: 'Ventanas disponibles', + dlgScreenshotLoading: 'Buscando ventanas capturables…', + dlgScreenshotEmpty: 'No hay ventanas para capturar.', + dlgScreenshotDenied: + 'Se requiere el permiso de grabación de pantalla. Permite esta app en Ajustes del Sistema → Privacidad y seguridad → Grabación de pantalla y luego haz clic en Actualizar.', + dlgScreenshotRefresh: 'Actualizar', + dlgScreenshotFailed: 'Error al capturar. Inténtalo de nuevo.', dlgSymbolTitle: 'Símbolo', dlgSymbolCatCurrency: 'Moneda y comunes', dlgSymbolCatMath: 'Matemáticas', @@ -2493,6 +2710,37 @@ export const dialogStrings = defineStrings({ dlgSlicerClear: 'ล้างตัวกรอง (เลือกทั้งหมด)', dlgSlicerRemove: 'ลบตัวแบ่งส่วนข้อมูล (คืนค่าสมาชิกทั้งหมด)', + dlgIconsTitle: 'ไอคอน', + dlgIconsSearch: 'ค้นหาไอคอน (ภาษาอังกฤษ)', + dlgIconsColor: 'สีไอคอน', + dlgIconsNoResults: 'ไม่มีไอคอนที่ตรงกัน', + dlgIconsCatArrows: 'ลูกศร', + dlgIconsCatShapes: 'รูปร่างและสัญลักษณ์', + dlgIconsCatBusiness: 'ธุรกิจ', + dlgIconsCatCommunication: 'การสื่อสาร', + dlgIconsCatFiles: 'ไฟล์', + dlgIconsCatTech: 'เทคโนโลยี', + dlgIconsCatPeople: 'ผู้คน', + dlgIconsCatNature: 'ธรรมชาติ', + dlgIconsCatTravel: 'การเดินทาง', + dlgRecoTitle: 'แผนภูมิที่แนะนำ', + dlgRecoNote: 'จัดอันดับตามรูปแบบของข้อมูลที่เลือก คลิกเพื่อแทรก', + dlgRecoReasonTime: 'อนุกรมเวลาอ่านง่ายเมื่อแสดงเป็นแนวโน้ม', + dlgRecoReasonProportion: 'หมวดหมู่จำนวนน้อยอ่านง่ายเมื่อแสดงเป็นสัดส่วน', + dlgRecoReasonCorrelation: 'ตัวเลขสองคอลัมน์เหมาะกับการดูสหสัมพันธ์', + dlgRecoReasonComparison: 'เหมาะสำหรับเปรียบเทียบค่าระหว่างหมวดหมู่', + dlgRecoReasonManyPoints: 'จุดข้อมูลจำนวนมากอ่านง่ายเมื่อเป็นเส้น', + dlgRecoReasonLongLabels: 'ป้ายชื่อยาวเหมาะกับแผนภูมิแท่งแนวนอน', + dlgRecoReasonMixedScales: 'สเกลต่างกันมาก เหมาะกับแผนภูมิผสม', + dlgScreenshotTitle: 'ภาพหน้าจอ', + dlgScreenshotScreens: 'หน้าจอ', + dlgScreenshotWindows: 'หน้าต่างที่ใช้ได้', + dlgScreenshotLoading: 'กำลังค้นหาหน้าต่างที่จับภาพได้…', + dlgScreenshotEmpty: 'ไม่มีหน้าต่างให้จับภาพ', + dlgScreenshotDenied: + 'ต้องการสิทธิ์บันทึกหน้าจอ โปรดอนุญาตแอปนี้ใน การตั้งค่าระบบ → ความเป็นส่วนตัวและความปลอดภัย → การบันทึกหน้าจอ แล้วคลิกรีเฟรช', + dlgScreenshotRefresh: 'รีเฟรช', + dlgScreenshotFailed: 'จับภาพไม่สำเร็จ โปรดลองอีกครั้ง', dlgSymbolTitle: 'แทรกสัญลักษณ์', dlgSymbolCatCurrency: 'สกุลเงิน/ทั่วไป', dlgSymbolCatMath: 'คณิตศาสตร์', @@ -2832,6 +3080,37 @@ export const dialogStrings = defineStrings({ dlgSlicerClear: 'Hapus filter (pilih semua)', dlgSlicerRemove: 'Hapus pemotong (pulihkan semua anggota)', + dlgIconsTitle: 'Ikon', + dlgIconsSearch: 'Cari ikon (bahasa Inggris)', + dlgIconsColor: 'Warna ikon', + dlgIconsNoResults: 'Tidak ada ikon yang cocok.', + dlgIconsCatArrows: 'Panah', + dlgIconsCatShapes: 'Bentuk & simbol', + dlgIconsCatBusiness: 'Bisnis', + dlgIconsCatCommunication: 'Komunikasi', + dlgIconsCatFiles: 'Berkas', + dlgIconsCatTech: 'Teknologi', + dlgIconsCatPeople: 'Orang', + dlgIconsCatNature: 'Alam', + dlgIconsCatTravel: 'Perjalanan', + dlgRecoTitle: 'Bagan yang Disarankan', + dlgRecoNote: 'Diurutkan menurut bentuk data yang dipilih — klik untuk menyisipkan.', + dlgRecoReasonTime: 'Deret waktu paling jelas sebagai tren', + dlgRecoReasonProportion: 'Sedikit kategori jelas sebagai bagian dari keseluruhan', + dlgRecoReasonCorrelation: 'Dua kolom angka cocok untuk melihat korelasi', + dlgRecoReasonComparison: 'Cocok untuk membandingkan nilai antar kategori', + dlgRecoReasonManyPoints: 'Banyak titik data tetap terbaca sebagai garis', + dlgRecoReasonLongLabels: 'Label panjang lebih pas pada bagan batang', + dlgRecoReasonMixedScales: 'Skala seri sangat berbeda — bagan kombo cocok', + dlgScreenshotTitle: 'Tangkapan Layar', + dlgScreenshotScreens: 'Layar', + dlgScreenshotWindows: 'Jendela yang tersedia', + dlgScreenshotLoading: 'Mencari jendela yang dapat ditangkap…', + dlgScreenshotEmpty: 'Tidak ada jendela yang dapat ditangkap.', + dlgScreenshotDenied: + 'Izin perekaman layar diperlukan. Izinkan aplikasi ini di Pengaturan Sistem → Privasi & Keamanan → Perekaman Layar, lalu klik Segarkan.', + dlgScreenshotRefresh: 'Segarkan', + dlgScreenshotFailed: 'Gagal menangkap. Silakan coba lagi.', dlgSymbolTitle: 'Simbol', dlgSymbolCatCurrency: 'Mata uang & umum', dlgSymbolCatMath: 'Matematika', @@ -3172,6 +3451,37 @@ export const dialogStrings = defineStrings({ dlgSlicerClear: 'Очистить фильтр (выбрать всё)', dlgSlicerRemove: 'Удалить срез (восстановить все элементы)', + dlgIconsTitle: 'Значки', + dlgIconsSearch: 'Поиск значков (на английском)', + dlgIconsColor: 'Цвет значка', + dlgIconsNoResults: 'Нет подходящих значков.', + dlgIconsCatArrows: 'Стрелки', + dlgIconsCatShapes: 'Фигуры и символы', + dlgIconsCatBusiness: 'Бизнес', + dlgIconsCatCommunication: 'Общение', + dlgIconsCatFiles: 'Файлы', + dlgIconsCatTech: 'Технологии', + dlgIconsCatPeople: 'Люди', + dlgIconsCatNature: 'Природа', + dlgIconsCatTravel: 'Путешествия', + dlgRecoTitle: 'Рекомендуемые диаграммы', + dlgRecoNote: 'Отсортировано по форме выделенных данных — щёлкните, чтобы вставить.', + dlgRecoReasonTime: 'Временные ряды лучше читаются как тренды', + dlgRecoReasonProportion: 'Немного категорий хорошо читаются как доли целого', + dlgRecoReasonCorrelation: 'Два числовых столбца хорошо читаются как корреляция', + dlgRecoReasonComparison: 'Подходит для сравнения значений по категориям', + dlgRecoReasonManyPoints: 'Много точек лучше читаются линией', + dlgRecoReasonLongLabels: 'Длинные подписи лучше смотрятся на линейчатой', + dlgRecoReasonMixedScales: 'Масштабы рядов сильно различаются — подойдёт комбинированная', + dlgScreenshotTitle: 'Снимок экрана', + dlgScreenshotScreens: 'Экраны', + dlgScreenshotWindows: 'Доступные окна', + dlgScreenshotLoading: 'Поиск доступных окон…', + dlgScreenshotEmpty: 'Нет окон для захвата.', + dlgScreenshotDenied: + 'Требуется разрешение на запись экрана. Разрешите это приложение в Системных настройках → Конфиденциальность и безопасность → Запись экрана, затем нажмите «Обновить».', + dlgScreenshotRefresh: 'Обновить', + dlgScreenshotFailed: 'Не удалось сделать снимок. Повторите попытку.', dlgSymbolTitle: 'Символ', dlgSymbolCatCurrency: 'Валюта и общие', dlgSymbolCatMath: 'Математика', @@ -3512,6 +3822,37 @@ export const dialogStrings = defineStrings({ dlgSlicerClear: 'مسح التصفية (تحديد الكل)', dlgSlicerRemove: 'إزالة مقسم طريقة العرض (استعادة كل العناصر)', + dlgIconsTitle: 'الأيقونات', + dlgIconsSearch: 'البحث عن الأيقونات (بالإنجليزية)', + dlgIconsColor: 'لون الأيقونة', + dlgIconsNoResults: 'لا توجد أيقونات مطابقة.', + dlgIconsCatArrows: 'الأسهم', + dlgIconsCatShapes: 'الأشكال والرموز', + dlgIconsCatBusiness: 'الأعمال', + dlgIconsCatCommunication: 'التواصل', + dlgIconsCatFiles: 'الملفات', + dlgIconsCatTech: 'التقنية', + dlgIconsCatPeople: 'الأشخاص', + dlgIconsCatNature: 'الطبيعة', + dlgIconsCatTravel: 'السفر', + dlgRecoTitle: 'المخططات الموصى بها', + dlgRecoNote: 'مرتبة حسب شكل البيانات المحددة — انقر للإدراج.', + dlgRecoReasonTime: 'السلاسل الزمنية تُقرأ أفضل كاتجاهات', + dlgRecoReasonProportion: 'الفئات القليلة تُقرأ جيدًا كنسب من الكل', + dlgRecoReasonCorrelation: 'عمودان رقميان يناسبان عرض الارتباط', + dlgRecoReasonComparison: 'مناسب لمقارنة القيم بين الفئات', + dlgRecoReasonManyPoints: 'النقاط الكثيرة تبقى مقروءة كخط', + dlgRecoReasonLongLabels: 'التسميات الطويلة تناسب المخطط الشريطي', + dlgRecoReasonMixedScales: 'تختلف المقاييس كثيرًا — يناسبها مخطط مركب', + dlgScreenshotTitle: 'لقطة شاشة', + dlgScreenshotScreens: 'الشاشات', + dlgScreenshotWindows: 'النوافذ المتاحة', + dlgScreenshotLoading: 'جارٍ البحث عن النوافذ القابلة للالتقاط…', + dlgScreenshotEmpty: 'لا توجد نوافذ متاحة للالتقاط.', + dlgScreenshotDenied: + 'مطلوب إذن تسجيل الشاشة. اسمح لهذا التطبيق في إعدادات النظام ← الخصوصية والأمان ← تسجيل الشاشة، ثم انقر على تحديث.', + dlgScreenshotRefresh: 'تحديث', + dlgScreenshotFailed: 'فشل الالتقاط. حاول مرة أخرى.', dlgSymbolTitle: 'إدراج رمز', dlgSymbolCatCurrency: 'العملات والشائعة', dlgSymbolCatMath: 'رياضيات', @@ -3850,6 +4191,37 @@ export const dialogStrings = defineStrings({ dlgSlicerClear: 'Limpar filtro (selecionar tudo)', dlgSlicerRemove: 'Remover segmentação (restaurar todos os membros)', + dlgIconsTitle: 'Ícones', + dlgIconsSearch: 'Pesquisar ícones (em inglês)', + dlgIconsColor: 'Cor do ícone', + dlgIconsNoResults: 'Nenhum ícone corresponde.', + dlgIconsCatArrows: 'Setas', + dlgIconsCatShapes: 'Formas e símbolos', + dlgIconsCatBusiness: 'Negócios', + dlgIconsCatCommunication: 'Comunicação', + dlgIconsCatFiles: 'Arquivos', + dlgIconsCatTech: 'Tecnologia', + dlgIconsCatPeople: 'Pessoas', + dlgIconsCatNature: 'Natureza', + dlgIconsCatTravel: 'Viagens', + dlgRecoTitle: 'Gráficos recomendados', + dlgRecoNote: 'Classificados pela forma dos dados selecionados — clique para inserir.', + dlgRecoReasonTime: 'Séries temporais leem-se melhor como tendências', + dlgRecoReasonProportion: 'Poucas categorias leem-se bem como partes de um todo', + dlgRecoReasonCorrelation: 'Duas colunas numéricas leem-se bem como correlação', + dlgRecoReasonComparison: 'Bom para comparar valores entre categorias', + dlgRecoReasonManyPoints: 'Muitos pontos continuam legíveis como linha', + dlgRecoReasonLongLabels: 'Rótulos longos cabem melhor em barras', + dlgRecoReasonMixedScales: 'As escalas diferem muito — um gráfico combinado se encaixa', + dlgScreenshotTitle: 'Captura de tela', + dlgScreenshotScreens: 'Telas', + dlgScreenshotWindows: 'Janelas disponíveis', + dlgScreenshotLoading: 'Procurando janelas capturáveis…', + dlgScreenshotEmpty: 'Nenhuma janela para capturar.', + dlgScreenshotDenied: + 'É necessária a permissão de gravação de tela. Permita este app em Ajustes do Sistema → Privacidade e Segurança → Gravação de Tela e clique em Atualizar.', + dlgScreenshotRefresh: 'Atualizar', + dlgScreenshotFailed: 'Falha na captura. Tente novamente.', dlgSymbolTitle: 'Símbolo', dlgSymbolCatCurrency: 'Moeda e comuns', dlgSymbolCatMath: 'Matemática', @@ -4191,6 +4563,37 @@ export const dialogStrings = defineStrings({ dlgSlicerClear: 'Cancella filtro (seleziona tutto)', dlgSlicerRemove: 'Rimuovi filtro dati (ripristina tutti i membri)', + dlgIconsTitle: 'Icone', + dlgIconsSearch: 'Cerca icone (in inglese)', + dlgIconsColor: 'Colore dell’icona', + dlgIconsNoResults: 'Nessuna icona corrisponde.', + dlgIconsCatArrows: 'Frecce', + dlgIconsCatShapes: 'Forme e simboli', + dlgIconsCatBusiness: 'Business', + dlgIconsCatCommunication: 'Comunicazione', + dlgIconsCatFiles: 'File', + dlgIconsCatTech: 'Tecnologia', + dlgIconsCatPeople: 'Persone', + dlgIconsCatNature: 'Natura', + dlgIconsCatTravel: 'Viaggi', + dlgRecoTitle: 'Grafici consigliati', + dlgRecoNote: 'Ordinati in base alla forma dei dati selezionati — fai clic per inserire.', + dlgRecoReasonTime: 'Le serie temporali si leggono meglio come tendenze', + dlgRecoReasonProportion: 'Poche categorie si leggono bene come quote del totale', + dlgRecoReasonCorrelation: 'Due colonne numeriche si leggono bene come correlazione', + dlgRecoReasonComparison: 'Adatto a confrontare i valori tra categorie', + dlgRecoReasonManyPoints: 'Molti punti restano leggibili come linea', + dlgRecoReasonLongLabels: 'Le etichette lunghe stanno meglio nel grafico a barre', + dlgRecoReasonMixedScales: 'Le scale differiscono molto: si adatta un grafico combinato', + dlgScreenshotTitle: 'Schermata', + dlgScreenshotScreens: 'Schermi', + dlgScreenshotWindows: 'Finestre disponibili', + dlgScreenshotLoading: 'Ricerca delle finestre acquisibili…', + dlgScreenshotEmpty: 'Nessuna finestra da acquisire.', + dlgScreenshotDenied: + 'È richiesta l’autorizzazione alla registrazione dello schermo. Consenti questa app in Impostazioni di Sistema → Privacy e sicurezza → Registrazione schermo, quindi fai clic su Aggiorna.', + dlgScreenshotRefresh: 'Aggiorna', + dlgScreenshotFailed: 'Acquisizione non riuscita. Riprova.', dlgSymbolTitle: 'Simbolo', dlgSymbolCatCurrency: 'Valute e comuni', dlgSymbolCatMath: 'Matematica', @@ -4532,6 +4935,37 @@ export const dialogStrings = defineStrings({ dlgSlicerClear: 'Wyczyść filtr (zaznacz wszystko)', dlgSlicerRemove: 'Usuń fragmentator (przywróć wszystkie elementy)', + dlgIconsTitle: 'Ikony', + dlgIconsSearch: 'Szukaj ikon (po angielsku)', + dlgIconsColor: 'Kolor ikony', + dlgIconsNoResults: 'Brak pasujących ikon.', + dlgIconsCatArrows: 'Strzałki', + dlgIconsCatShapes: 'Kształty i symbole', + dlgIconsCatBusiness: 'Biznes', + dlgIconsCatCommunication: 'Komunikacja', + dlgIconsCatFiles: 'Pliki', + dlgIconsCatTech: 'Technologia', + dlgIconsCatPeople: 'Ludzie', + dlgIconsCatNature: 'Przyroda', + dlgIconsCatTravel: 'Podróże', + dlgRecoTitle: 'Polecane wykresy', + dlgRecoNote: 'Uporządkowane według kształtu zaznaczonych danych — kliknij, aby wstawić.', + dlgRecoReasonTime: 'Szeregi czasowe najlepiej czyta się jako trendy', + dlgRecoReasonProportion: 'Kilka kategorii dobrze czyta się jako udziały w całości', + dlgRecoReasonCorrelation: 'Dwie kolumny liczb dobrze pokazują korelację', + dlgRecoReasonComparison: 'Dobre do porównywania wartości między kategoriami', + dlgRecoReasonManyPoints: 'Wiele punktów pozostaje czytelnych jako linia', + dlgRecoReasonLongLabels: 'Długie etykiety lepiej pasują do wykresu słupkowego', + dlgRecoReasonMixedScales: 'Skale serii bardzo się różnią — pasuje wykres kombi', + dlgScreenshotTitle: 'Zrzut ekranu', + dlgScreenshotScreens: 'Ekrany', + dlgScreenshotWindows: 'Dostępne okna', + dlgScreenshotLoading: 'Wyszukiwanie okien do przechwycenia…', + dlgScreenshotEmpty: 'Brak okien do przechwycenia.', + dlgScreenshotDenied: + 'Wymagane jest uprawnienie do nagrywania ekranu. Zezwól tej aplikacji w Ustawieniach systemowych → Prywatność i bezpieczeństwo → Nagrywanie ekranu, a następnie kliknij Odśwież.', + dlgScreenshotRefresh: 'Odśwież', + dlgScreenshotFailed: 'Przechwytywanie nie powiodło się. Spróbuj ponownie.', dlgSymbolTitle: 'Symbol', dlgSymbolCatCurrency: 'Waluty i popularne', dlgSymbolCatMath: 'Matematyka', @@ -4871,6 +5305,37 @@ export const dialogStrings = defineStrings({ dlgSlicerClear: 'Filter wissen (alles selecteren)', dlgSlicerRemove: 'Slicer verwijderen (alle leden herstellen)', + dlgIconsTitle: 'Pictogrammen', + dlgIconsSearch: 'Pictogrammen zoeken (Engels)', + dlgIconsColor: 'Pictogramkleur', + dlgIconsNoResults: 'Geen pictogrammen gevonden.', + dlgIconsCatArrows: 'Pijlen', + dlgIconsCatShapes: 'Vormen en symbolen', + dlgIconsCatBusiness: 'Zakelijk', + dlgIconsCatCommunication: 'Communicatie', + dlgIconsCatFiles: 'Bestanden', + dlgIconsCatTech: 'Technologie', + dlgIconsCatPeople: 'Mensen', + dlgIconsCatNature: 'Natuur', + dlgIconsCatTravel: 'Reizen', + dlgRecoTitle: 'Aanbevolen grafieken', + dlgRecoNote: 'Gerangschikt op de vorm van de geselecteerde gegevens — klik om in te voegen.', + dlgRecoReasonTime: 'Tijdreeksen lezen het best als trends', + dlgRecoReasonProportion: 'Weinig categorieën lezen goed als delen van een geheel', + dlgRecoReasonCorrelation: 'Twee numerieke kolommen lezen goed als correlatie', + dlgRecoReasonComparison: 'Goed om waarden tussen categorieën te vergelijken', + dlgRecoReasonManyPoints: 'Veel punten blijven leesbaar als lijn', + dlgRecoReasonLongLabels: 'Lange labels passen beter bij een staafdiagram', + dlgRecoReasonMixedScales: 'Sterk verschillende schalen — een combinatiegrafiek past', + dlgScreenshotTitle: 'Schermafbeelding', + dlgScreenshotScreens: 'Schermen', + dlgScreenshotWindows: 'Beschikbare vensters', + dlgScreenshotLoading: 'Vastlegbare vensters zoeken…', + dlgScreenshotEmpty: 'Geen vensters om vast te leggen.', + dlgScreenshotDenied: + 'Toestemming voor schermopname is vereist. Sta deze app toe in Systeeminstellingen → Privacy en beveiliging → Schermopname en klik daarna op Vernieuwen.', + dlgScreenshotRefresh: 'Vernieuwen', + dlgScreenshotFailed: 'Vastleggen mislukt. Probeer het opnieuw.', dlgSymbolTitle: 'Symbool', dlgSymbolCatCurrency: 'Valuta en algemeen', dlgSymbolCatMath: 'Wiskunde', @@ -5210,6 +5675,37 @@ export const dialogStrings = defineStrings({ dlgSlicerClear: 'Kosongkan penapis (pilih semua)', dlgSlicerRemove: 'Alih keluar penghiris (pulihkan semua ahli)', + dlgIconsTitle: 'Ikon', + dlgIconsSearch: 'Cari ikon (bahasa Inggeris)', + dlgIconsColor: 'Warna ikon', + dlgIconsNoResults: 'Tiada ikon yang sepadan.', + dlgIconsCatArrows: 'Anak panah', + dlgIconsCatShapes: 'Bentuk & simbol', + dlgIconsCatBusiness: 'Perniagaan', + dlgIconsCatCommunication: 'Komunikasi', + dlgIconsCatFiles: 'Fail', + dlgIconsCatTech: 'Teknologi', + dlgIconsCatPeople: 'Orang', + dlgIconsCatNature: 'Alam', + dlgIconsCatTravel: 'Perjalanan', + dlgRecoTitle: 'Carta Disyorkan', + dlgRecoNote: 'Disusun mengikut bentuk data yang dipilih — klik untuk menyisipkan.', + dlgRecoReasonTime: 'Siri masa paling jelas sebagai arah aliran', + dlgRecoReasonProportion: 'Kategori yang sedikit jelas sebagai bahagian keseluruhan', + dlgRecoReasonCorrelation: 'Dua lajur nombor sesuai untuk melihat korelasi', + dlgRecoReasonComparison: 'Sesuai untuk membandingkan nilai antara kategori', + dlgRecoReasonManyPoints: 'Banyak titik data kekal jelas sebagai garisan', + dlgRecoReasonLongLabels: 'Label panjang lebih sesuai pada carta bar', + dlgRecoReasonMixedScales: 'Skala siri jauh berbeza — carta kombo sesuai', + dlgScreenshotTitle: 'Tangkapan Skrin', + dlgScreenshotScreens: 'Skrin', + dlgScreenshotWindows: 'Tetingkap tersedia', + dlgScreenshotLoading: 'Mencari tetingkap yang boleh ditangkap…', + dlgScreenshotEmpty: 'Tiada tetingkap untuk ditangkap.', + dlgScreenshotDenied: + 'Kebenaran rakaman skrin diperlukan. Benarkan aplikasi ini dalam Tetapan Sistem → Privasi & Keselamatan → Rakaman Skrin, kemudian klik Segar Semula.', + dlgScreenshotRefresh: 'Segar Semula', + dlgScreenshotFailed: 'Tangkapan gagal. Sila cuba lagi.', dlgSymbolTitle: 'Simbol', dlgSymbolCatCurrency: 'Mata wang & lazim', dlgSymbolCatMath: 'Matematik', @@ -5543,6 +6039,37 @@ export const dialogStrings = defineStrings({ dlgSlicerClear: 'ניקוי מסנן (בחירת הכול)', dlgSlicerRemove: 'הסרת כלי הפריסה (שחזור כל החברים)', + dlgIconsTitle: 'סמלים', + dlgIconsSearch: 'חיפוש סמלים (באנגלית)', + dlgIconsColor: 'צבע הסמל', + dlgIconsNoResults: 'אין סמלים תואמים.', + dlgIconsCatArrows: 'חצים', + dlgIconsCatShapes: 'צורות וסמלים', + dlgIconsCatBusiness: 'עסקים', + dlgIconsCatCommunication: 'תקשורת', + dlgIconsCatFiles: 'קבצים', + dlgIconsCatTech: 'טכנולוגיה', + dlgIconsCatPeople: 'אנשים', + dlgIconsCatNature: 'טבע', + dlgIconsCatTravel: 'נסיעות', + dlgRecoTitle: 'תרשימים מומלצים', + dlgRecoNote: 'מדורגים לפי צורת הנתונים שנבחרו — לחצו כדי להוסיף.', + dlgRecoReasonTime: 'סדרות זמן נקראות הכי טוב כמגמות', + dlgRecoReasonProportion: 'מעט קטגוריות נקראות היטב כחלקים משלם', + dlgRecoReasonCorrelation: 'שתי עמודות מספריות מתאימות להצגת מתאם', + dlgRecoReasonComparison: 'מתאים להשוואת ערכים בין קטגוריות', + dlgRecoReasonManyPoints: 'נקודות רבות נשארות קריאות כקו', + dlgRecoReasonLongLabels: 'תוויות ארוכות מתאימות יותר לתרשים עמודות אופקי', + dlgRecoReasonMixedScales: 'קני המידה שונים מאוד — תרשים משולב מתאים', + dlgScreenshotTitle: 'צילום מסך', + dlgScreenshotScreens: 'מסכים', + dlgScreenshotWindows: 'חלונות זמינים', + dlgScreenshotLoading: 'מחפש חלונות הניתנים ללכידה…', + dlgScreenshotEmpty: 'אין חלונות ללכידה.', + dlgScreenshotDenied: + 'נדרשת הרשאת הקלטת מסך. אפשרו לאפליקציה זו בהגדרות המערכת ← פרטיות ואבטחה ← הקלטת מסך, ואז לחצו על רענון.', + dlgScreenshotRefresh: 'רענון', + dlgScreenshotFailed: 'הלכידה נכשלה. נסו שוב.', dlgSymbolTitle: 'סמל', dlgSymbolCatCurrency: 'מטבע ונפוצים', dlgSymbolCatMath: 'מתמטיקה', @@ -5880,6 +6407,37 @@ export const dialogStrings = defineStrings({ dlgSlicerClear: 'फ़िल्टर साफ़ करें (सभी चुनें)', dlgSlicerRemove: 'स्लाइसर हटाएं (सभी सदस्य पुनर्स्थापित करें)', + dlgIconsTitle: 'आइकॉन', + dlgIconsSearch: 'आइकॉन खोजें (अंग्रेज़ी में)', + dlgIconsColor: 'आइकॉन का रंग', + dlgIconsNoResults: 'कोई मेल खाता आइकॉन नहीं।', + dlgIconsCatArrows: 'तीर', + dlgIconsCatShapes: 'आकृतियाँ और प्रतीक', + dlgIconsCatBusiness: 'व्यवसाय', + dlgIconsCatCommunication: 'संचार', + dlgIconsCatFiles: 'फ़ाइलें', + dlgIconsCatTech: 'प्रौद्योगिकी', + dlgIconsCatPeople: 'लोग', + dlgIconsCatNature: 'प्रकृति', + dlgIconsCatTravel: 'यात्रा', + dlgRecoTitle: 'अनुशंसित चार्ट', + dlgRecoNote: 'चयनित डेटा के स्वरूप के आधार पर क्रमित — सम्मिलित करने के लिए क्लिक करें।', + dlgRecoReasonTime: 'समय शृंखला रुझान के रूप में सबसे अच्छी दिखती है', + dlgRecoReasonProportion: 'कम श्रेणियाँ पूर्ण के अंश के रूप में अच्छी दिखती हैं', + dlgRecoReasonCorrelation: 'दो संख्यात्मक स्तंभ सहसंबंध के रूप में अच्छे दिखते हैं', + dlgRecoReasonComparison: 'श्रेणियों के बीच मान तुलना के लिए उपयुक्त', + dlgRecoReasonManyPoints: 'कई बिंदु रेखा के रूप में पठनीय रहते हैं', + dlgRecoReasonLongLabels: 'लंबे लेबल क्षैतिज दंड चार्ट में बेहतर बैठते हैं', + dlgRecoReasonMixedScales: 'शृंखलाओं के पैमाने बहुत भिन्न हैं — कॉम्बो चार्ट उपयुक्त है', + dlgScreenshotTitle: 'स्क्रीनशॉट', + dlgScreenshotScreens: 'स्क्रीन', + dlgScreenshotWindows: 'उपलब्ध विंडो', + dlgScreenshotLoading: 'कैप्चर योग्य विंडो खोजी जा रही हैं…', + dlgScreenshotEmpty: 'कैप्चर करने के लिए कोई विंडो नहीं है।', + dlgScreenshotDenied: + 'स्क्रीन रिकॉर्डिंग की अनुमति आवश्यक है। सिस्टम सेटिंग्स → गोपनीयता और सुरक्षा → स्क्रीन रिकॉर्डिंग में इस ऐप को अनुमति दें, फिर रिफ़्रेश पर क्लिक करें।', + dlgScreenshotRefresh: 'रिफ़्रेश', + dlgScreenshotFailed: 'कैप्चर विफल रहा। पुनः प्रयास करें।', dlgSymbolTitle: 'प्रतीक सम्मिलित करें', dlgSymbolCatCurrency: 'मुद्रा/सामान्य', dlgSymbolCatMath: 'गणित', @@ -6213,6 +6771,37 @@ export const dialogStrings = defineStrings({ dlgSlicerClear: '清除篩選(全選)', dlgSlicerRemove: '刪除交叉分析篩選器(還原全部成員)', + dlgIconsTitle: '圖示', + dlgIconsSearch: '搜尋圖示(英文)', + dlgIconsColor: '圖示色彩', + dlgIconsNoResults: '沒有符合的圖示。', + dlgIconsCatArrows: '箭頭', + dlgIconsCatShapes: '形狀與符號', + dlgIconsCatBusiness: '商務', + dlgIconsCatCommunication: '溝通', + dlgIconsCatFiles: '檔案', + dlgIconsCatTech: '科技', + dlgIconsCatPeople: '人物', + dlgIconsCatNature: '自然', + dlgIconsCatTravel: '出行', + dlgRecoTitle: '建議的圖表', + dlgRecoNote: '依所選資料的形狀排序,點一下即可插入。', + dlgRecoReasonTime: '時間序列適合以趨勢呈現', + dlgRecoReasonProportion: '少量類別適合檢視整體占比', + dlgRecoReasonCorrelation: '兩欄數值適合檢視相關性', + dlgRecoReasonComparison: '適合比較各類別的數值', + dlgRecoReasonManyPoints: '資料點較多時折線圖較清晰', + dlgRecoReasonLongLabels: '類別名稱較長時橫條圖較易讀', + dlgRecoReasonMixedScales: '兩個數列量級差異大,適合組合圖', + dlgScreenshotTitle: '螢幕截圖', + dlgScreenshotScreens: '螢幕', + dlgScreenshotWindows: '可用視窗', + dlgScreenshotLoading: '正在取得可擷取的視窗…', + dlgScreenshotEmpty: '沒有可擷取的視窗。', + dlgScreenshotDenied: + '需要螢幕錄製權限。請在 系統設定 → 隱私權與安全性 → 螢幕錄製 中允許本應用程式,然後按一下重新整理。', + dlgScreenshotRefresh: '重新整理', + dlgScreenshotFailed: '截圖失敗,請再試一次。', dlgSymbolTitle: '插入符號', dlgSymbolCatCurrency: '貨幣/常用', dlgSymbolCatMath: '數學', diff --git a/apps/sheets/src/renderer/icon-catalog.ts b/apps/sheets/src/renderer/icon-catalog.ts new file mode 100644 index 0000000..d78575e --- /dev/null +++ b/apps/sheets/src/renderer/icon-catalog.ts @@ -0,0 +1,534 @@ +import type { FluentIcon } from '@fluentui/react-icons' +import { + AccessibilityRegular, + AddRegular, + AddCircleRegular, + AirplaneRegular, + AirplaneTakeOffRegular, + AnimalCatRegular, + AnimalDogRegular, + AnimalPawPrintRegular, + AnimalRabbitRegular, + AnimalTurtleRegular, + ArchiveRegular, + ArrowClockwiseRegular, + ArrowCounterclockwiseRegular, + ArrowDownRegular, + ArrowDownLeftRegular, + ArrowLeftRegular, + ArrowMaximizeRegular, + ArrowMinimizeRegular, + ArrowRedoRegular, + ArrowRepeatAllRegular, + ArrowRightRegular, + ArrowSortRegular, + ArrowSwapRegular, + ArrowSyncRegular, + ArrowTrendingRegular, + ArrowTrendingDownRegular, + ArrowUndoRegular, + ArrowUpRegular, + ArrowUpRightRegular, + AttachRegular, + BackpackRegular, + BalloonRegular, + Battery9Regular, + BatteryChargeRegular, + BeachRegular, + BeakerRegular, + BluetoothRegular, + BookRegular, + BookOpenRegular, + BookmarkRegular, + BotRegular, + BoxRegular, + BoxMultipleRegular, + BriefcaseRegular, + BugRegular, + BuildingRegular, + BuildingBankRegular, + BuildingFactoryRegular, + BuildingMultipleRegular, + BuildingRetailRegular, + BuildingSkyscraperRegular, + CalculatorRegular, + CalendarRegular, + CalendarLtrRegular, + CallRegular, + CameraRegular, + CartRegular, + ChartMultipleRegular, + ChatRegular, + ChatMultipleRegular, + CheckmarkRegular, + CheckmarkCircleRegular, + ChevronDoubleRightRegular, + ChevronRightRegular, + CircleRegular, + ClipboardRegular, + ClipboardPasteRegular, + ClipboardTaskRegular, + ClockRegular, + CloudRegular, + CloudArrowDownRegular, + CloudArrowUpRegular, + CodeRegular, + CommentRegular, + CommentMultipleRegular, + CompassNorthwestRegular, + CopyRegular, + CreditCardPersonRegular, + CurrencyDollarEuroRegular, + CursorRegular, + CutRegular, + DataBarVerticalRegular, + DataLineRegular, + DataPieRegular, + DataScatterRegular, + DatabaseRegular, + DeleteRegular, + DesktopRegular, + DiamondRegular, + DismissRegular, + DismissCircleRegular, + DoctorRegular, + DocumentRegular, + DocumentPdfRegular, + DocumentTableRegular, + DocumentTextRegular, + DrinkCoffeeRegular, + DrinkWineRegular, + DropRegular, + DumbbellRegular, + EarthRegular, + EditRegular, + EmojiRegular, + EmojiMehRegular, + EmojiSadRegular, + EraserRegular, + ErrorCircleRegular, + FireRegular, + FlagRegular, + FlashRegular, + FolderRegular, + FolderAddRegular, + FolderOpenRegular, + FoodRegular, + FoodAppleRegular, + FoodCakeRegular, + GavelRegular, + GiftRegular, + GlobeRegular, + GuestRegular, + HandLeftRegular, + HandRightRegular, + HandshakeRegular, + HatGraduationRegular, + HeadphonesRegular, + HeartRegular, + HeartPulseRegular, + HexagonRegular, + HighlightRegular, + HistoryRegular, + HomeRegular, + InfoRegular, + KeyRegular, + KeyboardRegular, + LaptopRegular, + LeafOneRegular, + LeafTwoRegular, + LightbulbRegular, + LinkRegular, + LocationRegular, + LockClosedRegular, + LockOpenRegular, + LuggageRegular, + MailRegular, + MailReadRegular, + MapRegular, + MegaphoneLoudRegular, + MicRegular, + MoneyRegular, + MoneyHandRegular, + MountainTrailRegular, + MusicNote1Regular, + NavigationRegular, + NewsRegular, + NotebookRegular, + OptionsRegular, + PaintBrushRegular, + PentagonRegular, + PeopleRegular, + PeopleTeamRegular, + PersonRegular, + PersonAddRegular, + PersonCallRegular, + PersonFeedbackRegular, + PersonHeartRegular, + PhoneRegular, + PillRegular, + PinRegular, + PlanetRegular, + PlugConnectedRegular, + PollRegular, + PowerRegular, + PrintRegular, + QuestionCircleRegular, + ReceiptRegular, + RibbonRegular, + RocketRegular, + RssRegular, + RunRegular, + SaveRegular, + ScalesRegular, + ScanRegular, + SendRegular, + ServerRegular, + SettingsRegular, + ShareRegular, + ShieldRegular, + ShieldCheckmarkRegular, + ShoppingBagRegular, + SparkleRegular, + Speaker2Regular, + SportRegular, + SquareRegular, + StarRegular, + StethoscopeRegular, + SubtractRegular, + SubtractCircleRegular, + TabletRegular, + TagRegular, + TargetRegular, + TargetArrowRegular, + TemperatureRegular, + ThumbDislikeRegular, + ThumbLikeRegular, + TicketDiagonalRegular, + TimerRegular, + TranslateRegular, + TreeDeciduousRegular, + TreeEvergreenRegular, + TriangleRegular, + TrophyRegular, + TvRegular, + UmbrellaRegular, + UsbStickRegular, + VehicleBicycleRegular, + VehicleBusRegular, + VehicleCarRegular, + VehicleShipRegular, + VehicleSubwayRegular, + VehicleTruckRegular, + VideoRegular, + VoicemailRegular, + WalletRegular, + WarningRegular, + WeatherFogRegular, + WeatherMoonRegular, + WeatherPartlyCloudyDayRegular, + WeatherRainRegular, + WeatherSnowRegular, + WeatherSunnyRegular, + WeatherThunderstormRegular, + Wifi1Regular, + WrenchRegular, +} from '@fluentui/react-icons' + +/// Insert → Icons catalog: a curated slice of Fluent UI's icon set (MIT, +/// Microsoft) grouped Excel-style. Names double as search terms. + +export interface IconCatalogCategory { + readonly labelKey: + | 'dlgIconsCatArrows' + | 'dlgIconsCatShapes' + | 'dlgIconsCatBusiness' + | 'dlgIconsCatCommunication' + | 'dlgIconsCatFiles' + | 'dlgIconsCatTech' + | 'dlgIconsCatPeople' + | 'dlgIconsCatNature' + | 'dlgIconsCatTravel' + readonly icons: readonly { readonly name: string; readonly icon: FluentIcon }[] +} + +export const ICON_CATALOG: readonly IconCatalogCategory[] = [ + { + labelKey: 'dlgIconsCatArrows' as const, + icons: [ + { name: 'arrow right', icon: ArrowRightRegular }, + { name: 'arrow left', icon: ArrowLeftRegular }, + { name: 'arrow up', icon: ArrowUpRegular }, + { name: 'arrow down', icon: ArrowDownRegular }, + { name: 'arrow up right', icon: ArrowUpRightRegular }, + { name: 'arrow down left', icon: ArrowDownLeftRegular }, + { name: 'arrow clockwise', icon: ArrowClockwiseRegular }, + { name: 'arrow counterclockwise', icon: ArrowCounterclockwiseRegular }, + { name: 'arrow sync', icon: ArrowSyncRegular }, + { name: 'arrow repeat all', icon: ArrowRepeatAllRegular }, + { name: 'arrow trending', icon: ArrowTrendingRegular }, + { name: 'arrow trending down', icon: ArrowTrendingDownRegular }, + { name: 'arrow undo', icon: ArrowUndoRegular }, + { name: 'arrow redo', icon: ArrowRedoRegular }, + { name: 'arrow swap', icon: ArrowSwapRegular }, + { name: 'arrow sort', icon: ArrowSortRegular }, + { name: 'arrow maximize', icon: ArrowMaximizeRegular }, + { name: 'arrow minimize', icon: ArrowMinimizeRegular }, + { name: 'chevron right', icon: ChevronRightRegular }, + { name: 'chevron double right', icon: ChevronDoubleRightRegular }, + ], + }, + { + labelKey: 'dlgIconsCatShapes' as const, + icons: [ + { name: 'circle', icon: CircleRegular }, + { name: 'square', icon: SquareRegular }, + { name: 'triangle', icon: TriangleRegular }, + { name: 'diamond', icon: DiamondRegular }, + { name: 'pentagon', icon: PentagonRegular }, + { name: 'hexagon', icon: HexagonRegular }, + { name: 'star', icon: StarRegular }, + { name: 'heart', icon: HeartRegular }, + { name: 'checkmark circle', icon: CheckmarkCircleRegular }, + { name: 'dismiss circle', icon: DismissCircleRegular }, + { name: 'add circle', icon: AddCircleRegular }, + { name: 'subtract circle', icon: SubtractCircleRegular }, + { name: 'question circle', icon: QuestionCircleRegular }, + { name: 'info', icon: InfoRegular }, + { name: 'warning', icon: WarningRegular }, + { name: 'error circle', icon: ErrorCircleRegular }, + { name: 'checkmark', icon: CheckmarkRegular }, + { name: 'dismiss', icon: DismissRegular }, + { name: 'add', icon: AddRegular }, + { name: 'subtract', icon: SubtractRegular }, + { name: 'flag', icon: FlagRegular }, + { name: 'bookmark', icon: BookmarkRegular }, + { name: 'pin', icon: PinRegular }, + { name: 'tag', icon: TagRegular }, + { name: 'key', icon: KeyRegular }, + { name: 'lock closed', icon: LockClosedRegular }, + { name: 'lock open', icon: LockOpenRegular }, + { name: 'shield', icon: ShieldRegular }, + { name: 'shield checkmark', icon: ShieldCheckmarkRegular }, + { name: 'trophy', icon: TrophyRegular }, + { name: 'ribbon', icon: RibbonRegular }, + { name: 'sparkle', icon: SparkleRegular }, + ], + }, + { + labelKey: 'dlgIconsCatBusiness' as const, + icons: [ + { name: 'briefcase', icon: BriefcaseRegular }, + { name: 'building', icon: BuildingRegular }, + { name: 'building bank', icon: BuildingBankRegular }, + { name: 'building factory', icon: BuildingFactoryRegular }, + { name: 'building retail', icon: BuildingRetailRegular }, + { name: 'building skyscraper', icon: BuildingSkyscraperRegular }, + { name: 'home', icon: HomeRegular }, + { name: 'chart multiple', icon: ChartMultipleRegular }, + { name: 'data pie', icon: DataPieRegular }, + { name: 'data bar vertical', icon: DataBarVerticalRegular }, + { name: 'data line', icon: DataLineRegular }, + { name: 'data scatter', icon: DataScatterRegular }, + { name: 'poll', icon: PollRegular }, + { name: 'target', icon: TargetRegular }, + { name: 'target arrow', icon: TargetArrowRegular }, + { name: 'calculator', icon: CalculatorRegular }, + { name: 'money', icon: MoneyRegular }, + { name: 'money hand', icon: MoneyHandRegular }, + { name: 'currency dollar euro', icon: CurrencyDollarEuroRegular }, + { name: 'wallet', icon: WalletRegular }, + { name: 'credit card person', icon: CreditCardPersonRegular }, + { name: 'receipt', icon: ReceiptRegular }, + { name: 'shopping bag', icon: ShoppingBagRegular }, + { name: 'cart', icon: CartRegular }, + { name: 'gift', icon: GiftRegular }, + { name: 'box', icon: BoxRegular }, + { name: 'box multiple', icon: BoxMultipleRegular }, + { name: 'scales', icon: ScalesRegular }, + { name: 'gavel', icon: GavelRegular }, + ], + }, + { + labelKey: 'dlgIconsCatCommunication' as const, + icons: [ + { name: 'mail', icon: MailRegular }, + { name: 'mail read', icon: MailReadRegular }, + { name: 'send', icon: SendRegular }, + { name: 'chat', icon: ChatRegular }, + { name: 'chat multiple', icon: ChatMultipleRegular }, + { name: 'comment', icon: CommentRegular }, + { name: 'comment multiple', icon: CommentMultipleRegular }, + { name: 'call', icon: CallRegular }, + { name: 'voicemail', icon: VoicemailRegular }, + { name: 'video', icon: VideoRegular }, + { name: 'mic', icon: MicRegular }, + { name: 'speaker2', icon: Speaker2Regular }, + { name: 'megaphone loud', icon: MegaphoneLoudRegular }, + { name: 'share', icon: ShareRegular }, + { name: 'link', icon: LinkRegular }, + { name: 'globe', icon: GlobeRegular }, + { name: 'wifi1', icon: Wifi1Regular }, + { name: 'rss', icon: RssRegular }, + { name: 'translate', icon: TranslateRegular }, + { name: 'person feedback', icon: PersonFeedbackRegular }, + ], + }, + { + labelKey: 'dlgIconsCatFiles' as const, + icons: [ + { name: 'document', icon: DocumentRegular }, + { name: 'document text', icon: DocumentTextRegular }, + { name: 'document pdf', icon: DocumentPdfRegular }, + { name: 'document table', icon: DocumentTableRegular }, + { name: 'folder', icon: FolderRegular }, + { name: 'folder open', icon: FolderOpenRegular }, + { name: 'folder add', icon: FolderAddRegular }, + { name: 'clipboard', icon: ClipboardRegular }, + { name: 'clipboard task', icon: ClipboardTaskRegular }, + { name: 'notebook', icon: NotebookRegular }, + { name: 'book', icon: BookRegular }, + { name: 'book open', icon: BookOpenRegular }, + { name: 'news', icon: NewsRegular }, + { name: 'calendar', icon: CalendarRegular }, + { name: 'calendar ltr', icon: CalendarLtrRegular }, + { name: 'clock', icon: ClockRegular }, + { name: 'timer', icon: TimerRegular }, + { name: 'history', icon: HistoryRegular }, + { name: 'archive', icon: ArchiveRegular }, + { name: 'attach', icon: AttachRegular }, + { name: 'copy', icon: CopyRegular }, + { name: 'cut', icon: CutRegular }, + { name: 'clipboard paste', icon: ClipboardPasteRegular }, + { name: 'delete', icon: DeleteRegular }, + { name: 'edit', icon: EditRegular }, + { name: 'eraser', icon: EraserRegular }, + { name: 'highlight', icon: HighlightRegular }, + { name: 'save', icon: SaveRegular }, + { name: 'print', icon: PrintRegular }, + { name: 'scan', icon: ScanRegular }, + ], + }, + { + labelKey: 'dlgIconsCatTech' as const, + icons: [ + { name: 'desktop', icon: DesktopRegular }, + { name: 'laptop', icon: LaptopRegular }, + { name: 'tablet', icon: TabletRegular }, + { name: 'phone', icon: PhoneRegular }, + { name: 'keyboard', icon: KeyboardRegular }, + { name: 'cursor', icon: CursorRegular }, + { name: 'headphones', icon: HeadphonesRegular }, + { name: 'camera', icon: CameraRegular }, + { name: 'tv', icon: TvRegular }, + { name: 'server', icon: ServerRegular }, + { name: 'database', icon: DatabaseRegular }, + { name: 'cloud arrow up', icon: CloudArrowUpRegular }, + { name: 'cloud arrow down', icon: CloudArrowDownRegular }, + { name: 'cloud', icon: CloudRegular }, + { name: 'code', icon: CodeRegular }, + { name: 'bug', icon: BugRegular }, + { name: 'beaker', icon: BeakerRegular }, + { name: 'rocket', icon: RocketRegular }, + { name: 'bot', icon: BotRegular }, + { name: 'settings', icon: SettingsRegular }, + { name: 'wrench', icon: WrenchRegular }, + { name: 'options', icon: OptionsRegular }, + { name: 'power', icon: PowerRegular }, + { name: 'battery9', icon: Battery9Regular }, + { name: 'battery charge', icon: BatteryChargeRegular }, + { name: 'plug connected', icon: PlugConnectedRegular }, + { name: 'lightbulb', icon: LightbulbRegular }, + { name: 'flash', icon: FlashRegular }, + { name: 'bluetooth', icon: BluetoothRegular }, + { name: 'usb stick', icon: UsbStickRegular }, + ], + }, + { + labelKey: 'dlgIconsCatPeople' as const, + icons: [ + { name: 'person', icon: PersonRegular }, + { name: 'people', icon: PeopleRegular }, + { name: 'people team', icon: PeopleTeamRegular }, + { name: 'person add', icon: PersonAddRegular }, + { name: 'person call', icon: PersonCallRegular }, + { name: 'person heart', icon: PersonHeartRegular }, + { name: 'guest', icon: GuestRegular }, + { name: 'emoji', icon: EmojiRegular }, + { name: 'emoji sad', icon: EmojiSadRegular }, + { name: 'emoji meh', icon: EmojiMehRegular }, + { name: 'thumb like', icon: ThumbLikeRegular }, + { name: 'thumb dislike', icon: ThumbDislikeRegular }, + { name: 'hand right', icon: HandRightRegular }, + { name: 'hand left', icon: HandLeftRegular }, + { name: 'handshake', icon: HandshakeRegular }, + { name: 'accessibility', icon: AccessibilityRegular }, + { name: 'food', icon: FoodRegular }, + { name: 'food apple', icon: FoodAppleRegular }, + { name: 'food cake', icon: FoodCakeRegular }, + { name: 'drink wine', icon: DrinkWineRegular }, + { name: 'drink coffee', icon: DrinkCoffeeRegular }, + { name: 'sport', icon: SportRegular }, + { name: 'run', icon: RunRegular }, + { name: 'dumbbell', icon: DumbbellRegular }, + { name: 'doctor', icon: DoctorRegular }, + { name: 'stethoscope', icon: StethoscopeRegular }, + { name: 'pill', icon: PillRegular }, + { name: 'heart pulse', icon: HeartPulseRegular }, + { name: 'hat graduation', icon: HatGraduationRegular }, + ], + }, + { + labelKey: 'dlgIconsCatNature' as const, + icons: [ + { name: 'weather sunny', icon: WeatherSunnyRegular }, + { name: 'weather moon', icon: WeatherMoonRegular }, + { name: 'weather partly cloudy day', icon: WeatherPartlyCloudyDayRegular }, + { name: 'weather rain', icon: WeatherRainRegular }, + { name: 'weather snow', icon: WeatherSnowRegular }, + { name: 'weather thunderstorm', icon: WeatherThunderstormRegular }, + { name: 'weather fog', icon: WeatherFogRegular }, + { name: 'temperature', icon: TemperatureRegular }, + { name: 'drop', icon: DropRegular }, + { name: 'fire', icon: FireRegular }, + { name: 'leaf one', icon: LeafOneRegular }, + { name: 'leaf two', icon: LeafTwoRegular }, + { name: 'tree evergreen', icon: TreeEvergreenRegular }, + { name: 'tree deciduous', icon: TreeDeciduousRegular }, + { name: 'animal paw print', icon: AnimalPawPrintRegular }, + { name: 'animal cat', icon: AnimalCatRegular }, + { name: 'animal dog', icon: AnimalDogRegular }, + { name: 'animal rabbit', icon: AnimalRabbitRegular }, + { name: 'animal turtle', icon: AnimalTurtleRegular }, + { name: 'earth', icon: EarthRegular }, + { name: 'planet', icon: PlanetRegular }, + { name: 'balloon', icon: BalloonRegular }, + { name: 'music note1', icon: MusicNote1Regular }, + { name: 'paint brush', icon: PaintBrushRegular }, + ], + }, + { + labelKey: 'dlgIconsCatTravel' as const, + icons: [ + { name: 'vehicle car', icon: VehicleCarRegular }, + { name: 'vehicle truck', icon: VehicleTruckRegular }, + { name: 'vehicle bus', icon: VehicleBusRegular }, + { name: 'vehicle subway', icon: VehicleSubwayRegular }, + { name: 'vehicle ship', icon: VehicleShipRegular }, + { name: 'vehicle bicycle', icon: VehicleBicycleRegular }, + { name: 'airplane', icon: AirplaneRegular }, + { name: 'airplane take off', icon: AirplaneTakeOffRegular }, + { name: 'map', icon: MapRegular }, + { name: 'location', icon: LocationRegular }, + { name: 'compass northwest', icon: CompassNorthwestRegular }, + { name: 'navigation', icon: NavigationRegular }, + { name: 'luggage', icon: LuggageRegular }, + { name: 'backpack', icon: BackpackRegular }, + { name: 'umbrella', icon: UmbrellaRegular }, + { name: 'beach', icon: BeachRegular }, + { name: 'mountain trail', icon: MountainTrailRegular }, + { name: 'building multiple', icon: BuildingMultipleRegular }, + { name: 'ticket diagonal', icon: TicketDiagonalRegular }, + ], + }, +] diff --git a/apps/sheets/src/renderer/ribbon-actions.ts b/apps/sheets/src/renderer/ribbon-actions.ts index 6f285b9..b50b7be 100644 --- a/apps/sheets/src/renderer/ribbon-actions.ts +++ b/apps/sheets/src/renderer/ribbon-actions.ts @@ -93,6 +93,9 @@ export interface RibbonCommandContext { setMessage: (message: string) => void setChartDialog: (dialog: { kind: ChartDialogKind; editKey: string }) => void setSymbolDialogOpen: (open: boolean) => void + setScreenshotDialogOpen: (open: boolean) => void + setIconsDialogOpen: (open: boolean) => void + openRecommendedCharts: () => void setPendingEdits: (count: number) => void visualContext: () => VisualActionContext dataToolsContext: () => DataToolsContext @@ -405,6 +408,15 @@ export function handleRibbonCommand(ctx: RibbonCommandContext, command: string): case 'insert-symbol': ctx.setSymbolDialogOpen(true) return + case 'insert-screenshot': + ctx.setScreenshotDialogOpen(true) + return + case 'recommended-charts-open': + ctx.openRecommendedCharts() + return + case 'insert-icons': + ctx.setIconsDialogOpen(true) + return case 'note-open': // Opens the note editor popup at the primary selected cell; the // journal snapshots the sheet's notes and ⌘S writes legacy comments. diff --git a/apps/sheets/src/renderer/shape-gallery.tsx b/apps/sheets/src/renderer/shape-gallery.tsx new file mode 100644 index 0000000..7285c72 --- /dev/null +++ b/apps/sheets/src/renderer/shape-gallery.tsx @@ -0,0 +1,277 @@ +/** + * Insert-tab shape gallery: grouped presets + geometry-driven previews. + * Preview cells trace the same preset geometry as the canvas renderer and the + * saved OOXML prstGeom, so the picked cell matches the inserted shape. + */ +import { useEffect, useRef, useState } from 'react' + +import { + isPillPreset, + presetPath, + presetPolygon, +} from '../../../../packages/pptx-render/src/preset-geometry' +import { t, type StringKey } from './i18n/locale' + +export interface ShapeDef { + /** OOXML prstGeom name (persisted verbatim, also drives the preview) */ + prst: string + label: string +} + +const shape = (prst: string, key: StringKey): ShapeDef => ({ + prst, + get label() { + return t(key) + }, +}) + +const shapeGroup = (key: StringKey, shapes: ShapeDef[]): { group: string; shapes: ShapeDef[] } => ({ + get group() { + return t(key) + }, + shapes, +}) + +export const SHAPE_GALLERY: Array<{ group: string; shapes: ShapeDef[] }> = [ + shapeGroup('appShapeGroupRects', [ + shape('rect', 'appShapeRect'), + shape('roundRect', 'appShapeRoundRect'), + shape('snip1Rect', 'appShapeSnip1Rect'), + shape('snip2SameRect', 'appShapeSnip2SameRect'), + shape('snip2DiagRect', 'appShapeSnip2DiagRect'), + shape('snipRoundRect', 'appShapeSnipRoundRect'), + shape('round1Rect', 'appShapeRound1Rect'), + shape('round2SameRect', 'appShapeRound2SameRect'), + shape('round2DiagRect', 'appShapeRound2DiagRect'), + ]), + shapeGroup('appShapeGroupBasic', [ + shape('ellipse', 'appShapeEllipse'), + shape('triangle', 'appShapeTriangle'), + shape('rtTriangle', 'appShapeRtTriangle'), + shape('parallelogram', 'appShapeParallelogram'), + shape('trapezoid', 'appShapeTrapezoid'), + shape('diamond', 'appShapeDiamond'), + shape('pentagon', 'appShapePentagon'), + shape('hexagon', 'appShapeHexagon'), + shape('octagon', 'appShapeOctagon'), + shape('plus', 'appShapePlus'), + shape('mathPlus', 'appShapeMathPlus'), + shape('pie', 'appShapePie'), + shape('chord', 'appShapeChord'), + shape('teardrop', 'appShapeTeardrop'), + shape('frame', 'appShapeFrame'), + shape('halfFrame', 'appShapeHalfFrame'), + shape('corner', 'appShapeCorner'), + shape('diagStripe', 'appShapeDiagStripe'), + shape('donut', 'appShapeDonut'), + shape('noSmoking', 'appShapeNoSmoking'), + shape('blockArc', 'appShapeBlockArc'), + shape('foldedCorner', 'appShapeFoldedCorner'), + shape('bevel', 'appShapeBevel'), + shape('cube', 'appShapeCube'), + shape('can', 'appShapeCan'), + shape('lightningBolt', 'appShapeLightningBolt'), + shape('heart', 'appShapeHeart'), + shape('sun', 'appShapeSun'), + shape('moon', 'appShapeMoon'), + shape('cloud', 'appShapeCloud'), + shape('arc', 'appShapeArc'), + shape('plaque', 'appShapePlaque'), + shape('smileyFace', 'appShapeSmileyFace'), + shape('leftBracket', 'appShapeLeftBracket'), + shape('rightBracket', 'appShapeRightBracket'), + shape('leftBrace', 'appShapeLeftBrace'), + shape('rightBrace', 'appShapeRightBrace'), + ]), + shapeGroup('appShapeGroupArrows', [ + shape('rightArrow', 'appShapeRightArrow'), + shape('leftArrow', 'appShapeLeftArrow'), + shape('upArrow', 'appShapeUpArrow'), + shape('downArrow', 'appShapeDownArrow'), + shape('leftRightArrow', 'appShapeLeftRightArrow'), + shape('upDownArrow', 'appShapeUpDownArrow'), + shape('quadArrow', 'appShapeQuadArrow'), + shape('bentArrow', 'appShapeBentArrow'), + shape('uturnArrow', 'appShapeUturnArrow'), + shape('curvedRightArrow', 'appShapeCurvedRightArrow'), + shape('stripedRightArrow', 'appShapeStripedRightArrow'), + shape('notchedRightArrow', 'appShapeNotchedRightArrow'), + shape('chevron', 'appShapeChevron'), + shape('homePlate', 'appShapeHomePlate'), + ]), + shapeGroup('appShapeGroupStars', [ + shape('star4', 'appShapeStar4'), + shape('star5', 'appShapeStar5'), + shape('star6', 'appShapeStar6'), + shape('star7', 'appShapeStar7'), + shape('star8', 'appShapeStar8'), + shape('star10', 'appShapeStar10'), + shape('star12', 'appShapeStar12'), + shape('star16', 'appShapeStar16'), + shape('star24', 'appShapeStar24'), + shape('star32', 'appShapeStar32'), + shape('irregularSeal1', 'appShapeIrregularSeal1'), + shape('irregularSeal2', 'appShapeIrregularSeal2'), + shape('ribbon', 'appShapeRibbon'), + shape('ribbon2', 'appShapeRibbon2'), + shape('wave', 'appShapeWave'), + shape('doubleWave', 'appShapeDoubleWave'), + ]), + shapeGroup('appShapeGroupFlowchart', [ + shape('flowChartProcess', 'appShapeFlowProcess'), + shape('flowChartAlternateProcess', 'appShapeFlowAlternateProcess'), + shape('flowChartDecision', 'appShapeFlowDecision'), + shape('flowChartPredefinedProcess', 'appShapeFlowPredefinedProcess'), + shape('flowChartInternalStorage', 'appShapeFlowInternalStorage'), + shape('flowChartDocument', 'appShapeFlowDocument'), + shape('flowChartMultidocument', 'appShapeFlowMultidocument'), + shape('flowChartTerminator', 'appShapeFlowTerminator'), + shape('flowChartPreparation', 'appShapeFlowPreparation'), + shape('flowChartManualInput', 'appShapeFlowManualInput'), + shape('flowChartManualOperation', 'appShapeFlowManualOperation'), + shape('flowChartConnector', 'appShapeFlowConnector'), + shape('flowChartOffpageConnector', 'appShapeFlowOffpageConnector'), + shape('flowChartMagneticDisk', 'appShapeFlowMagneticDisk'), + shape('flowChartMagneticDrum', 'appShapeFlowMagneticDrum'), + shape('flowChartDisplay', 'appShapeFlowDisplay'), + shape('flowChartDelay', 'appShapeFlowDelay'), + shape('flowChartOr', 'appShapeFlowOr'), + shape('flowChartCollate', 'appShapeFlowCollate'), + shape('flowChartSort', 'appShapeFlowSort'), + shape('flowChartExtract', 'appShapeFlowExtract'), + shape('flowChartMerge', 'appShapeFlowMerge'), + shape('flowChartSummingJunction', 'appShapeFlowSummingJunction'), + shape('flowChartPunchedTape', 'appShapeFlowPunchedTape'), + ]), + shapeGroup('appShapeGroupCallouts', [ + shape('wedgeRectCallout', 'appShapeWedgeRectCallout'), + shape('wedgeRoundRectCallout', 'appShapeWedgeRoundRectCallout'), + shape('wedgeEllipseCallout', 'appShapeWedgeEllipseCallout'), + shape('cloudCallout', 'appShapeCloudCallout'), + ]), +] + +const R = (v: number) => Math.round(v * 100) / 100 + +function polygonPathD(pts: number[]): string { + const parts: string[] = [] + for (let i = 0; i < pts.length; i += 2) { + parts.push(`${i === 0 ? 'M' : 'L'} ${R(pts[i]!)} ${R(pts[i + 1]!)}`) + } + return parts.join(' ') + ' Z' +} + +function roundRectPathD(w: number, h: number, r: number): string { + return ( + `M ${R(r)} 0 L ${R(w - r)} 0 A ${R(r)} ${R(r)} 0 0 1 ${R(w)} ${R(r)} L ${R(w)} ${R(h - r)} ` + + `A ${R(r)} ${R(r)} 0 0 1 ${R(w - r)} ${R(h)} L ${R(r)} ${R(h)} A ${R(r)} ${R(r)} 0 0 1 0 ${R(h - r)} ` + + `L 0 ${R(r)} A ${R(r)} ${R(r)} 0 0 1 ${R(r)} 0 Z` + ) +} + +/** Preset name → stroke-only preview path (same channel order as the canvas). */ +function shapePreviewPath(prst: string, w: number, h: number): string | null { + const poly = presetPolygon(prst, w, h) + if (poly) return polygonPathD(poly) + const path = presetPath(prst, w, h) + if (path) return [path.path, path.fillPath, path.strokePath].filter(Boolean).join(' ') + // Alternate Process is a rounded rectangle, not a pill like Terminator + if (prst === 'roundRect' || prst === 'flowChartAlternateProcess') + return roundRectPathD(w, h, Math.min(w, h) * 0.16667) + if (isPillPreset(prst)) return roundRectPathD(w, h, Math.min(w, h) / 2) + if (prst === 'ellipse') { + const rx = w / 2 + const ry = h / 2 + return `M 0 ${R(ry)} A ${R(rx)} ${R(ry)} 0 1 1 ${R(w)} ${R(ry)} A ${R(rx)} ${R(ry)} 0 1 1 0 ${R(ry)} Z` + } + if (prst === 'rect' || prst === 'flowChartProcess') + return `M 0 0 L ${R(w)} 0 L ${R(w)} ${R(h)} L 0 ${R(h)} Z` + return null +} + +/** Flowchart nodes preview flat (also disambiguates them from diamond/ellipse). */ +function previewBox(prst: string, size: number): { w: number; h: number } { + return prst.startsWith('flowChart') ? { w: size, h: size * 0.62 } : { w: size, h: size } +} + +export function ShapePreview({ prst, size = 20 }: { prst: string; size?: number }) { + const { w, h } = previewBox(prst, size) + const d = shapePreviewPath(prst, w, h) + return ( + + {d ? ( + + ) : null} + + ) +} + +/** Cover-trigger dropdown with the grouped shape grid (Insert tab). */ +export function ShapeGalleryMenu({ + label, + onPick, +}: { + readonly label: string + readonly onPick: (prst: string) => void +}): React.JSX.Element { + const [open, setOpen] = useState(false) + const wrapRef = useRef(null) + useEffect(() => { + if (!open) return + const onDown = (event: MouseEvent): void => { + if (!wrapRef.current?.contains(event.target as Node)) setOpen(false) + } + const onKey = (event: KeyboardEvent): void => { + if (event.key === 'Escape') setOpen(false) + } + window.addEventListener('mousedown', onDown) + window.addEventListener('keydown', onKey) + return () => { + window.removeEventListener('mousedown', onDown) + window.removeEventListener('keydown', onKey) + } + }, [open]) + return ( +
+ + ))} +
+ + ))} + + )} + + ) +} diff --git a/apps/sheets/src/renderer/styles.css b/apps/sheets/src/renderer/styles.css index 2a2271a..89baeeb 100644 --- a/apps/sheets/src/renderer/styles.css +++ b/apps/sheets/src/renderer/styles.css @@ -1114,6 +1114,32 @@ textarea:disabled { font-weight: 600; } +/* Insert tab shape gallery: grouped preview grid inside the dropdown */ +.shape-gallery-drop { + width: 322px; + max-height: 420px; +} + +.shape-gallery-title { + padding: 6px 6px 2px; + font-size: 11px; + color: var(--text-dim, #797775); +} + +.shape-gallery-grid { + display: grid; + grid-template-columns: repeat(9, 1fr); +} + +.menu-select-drop .shape-gallery-grid button { + display: flex; + align-items: center; + justify-content: center; + width: auto; + padding: 5px 0; + color: var(--text, #444); +} + /* Insert tab's small chart-type buttons, arranged as an icon cluster. */ .chart-grid { display: grid; @@ -2705,6 +2731,154 @@ textarea:focus { border-color: var(--border-strong); } +/* Insert Screenshot dialog */ +.screenshot-dialog { + width: 520px; +} + +.screenshot-grid { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 8px; + max-height: 300px; + overflow-y: auto; + margin-bottom: 8px; +} + +.screenshot-grid button { + display: flex; + flex-direction: column; + gap: 4px; + padding: 6px; + border: 1px solid var(--border); + border-radius: var(--radius-small); + background: var(--surface); + font-size: 11px; +} + +.screenshot-grid button:hover:not(:disabled) { + background: var(--surface-hover); + border-color: var(--border-strong); +} + +.screenshot-grid button.capturing { + opacity: 0.6; +} + +.screenshot-grid img { + width: 100%; + height: 84px; + object-fit: contain; +} + +.screenshot-grid span { + width: 100%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +/* Insert Icons dialog */ +.icons-dialog { + width: 560px; +} + +.icons-toolbar { + display: flex; + gap: 10px; + align-items: center; + padding: 8px 14px 0; +} + +.icons-toolbar input { + flex: 1; + padding: 5px 8px; + border: 1px solid var(--border); + border-radius: var(--radius-small); + background: var(--surface); + font-size: 12px; +} + +.icons-colors { + display: flex; + gap: 4px; +} + +.icons-colors button { + width: 18px; + height: 18px; + border: 1px solid var(--border); + border-radius: 50%; +} + +.icons-colors button.active { + outline: 2px solid var(--accent, #217346); + outline-offset: 1px; +} + +.icons-grid { + display: grid; + grid-template-columns: repeat(10, 1fr); + gap: 4px; + max-height: 300px; + overflow-y: auto; +} + +.icons-grid button { + display: grid; + place-items: center; + height: 40px; + border: 1px solid transparent; + border-radius: var(--radius-small); + background: none; + font-size: 24px; +} + +.icons-grid button:hover:not(:disabled) { + background: var(--surface-hover); + border-color: var(--border-strong); +} + +/* Recommended Charts dialog */ +.recommended-charts-dialog { + width: 640px; +} + +.recommended-charts-grid { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 10px; + max-height: 340px; + overflow-y: auto; +} + +.recommended-charts-grid button { + display: flex; + flex-direction: column; + gap: 4px; + padding: 8px; + border: 1px solid var(--border); + border-radius: var(--radius-small); + background: var(--surface); + text-align: left; + font-size: 11px; +} + +.recommended-charts-grid button:hover { + background: var(--surface-hover); + border-color: var(--border-strong); +} + +.recommended-charts-grid svg { + width: 100%; + height: auto; + background: var(--surface); +} + +.recommended-charts-grid span { + color: var(--text-secondary, #666); +} + /* Insert/Edit Link dialog */ .link-dialog { width: 420px; @@ -3685,7 +3859,11 @@ textarea:focus { doubles as the bottom padding, so overflowing never grows the strip and shifts its content up */ overflow-x: scroll; - padding: 13px 14px 0; + /* side insets are transparent borders, not padding: overflow clips at the + padding edge, so side padding would let scrolled items slide flush against + the box edges — borders keep the 14px gaps while scrolling */ + padding: 13px 0 0; + border-inline: 14px solid transparent; margin-bottom: -6px; } diff --git a/apps/sheets/src/renderer/visual-actions.ts b/apps/sheets/src/renderer/visual-actions.ts index 0398a8e..79e865a 100644 --- a/apps/sheets/src/renderer/visual-actions.ts +++ b/apps/sheets/src/renderer/visual-actions.ts @@ -4,6 +4,11 @@ * refs and state never go stale. */ import { columnLabel, parseAddress, parseRange } from '../domain/cell-address' +import { + hasNumericYearAxis, + recommendCharts, + type ChartRecommendations, +} from '../domain/chart-recommend' import { buildChartVisual, chartDataFromValues } from '../domain/chart-visual' import type { InMemoryWorkbookAdapter } from '../domain/in-memory-workbook' import { buildPivotChartData } from '../domain/pivot-chart' @@ -196,7 +201,7 @@ export async function handleInsertChart( return } // Scatter reads its X values from the first data vector. - const parsed = chartDataFromValues( + let parsed = chartDataFromValues( values, chartKind === 'scatter' ? { numericCategoryColumn: true } : undefined, ) @@ -204,6 +209,11 @@ export async function handleInsertChart( ctx.setMessage(t('appChartNeedsNumericColumn')) return } + // Keep Year/Value selections consistent with the recommendation previews: + // the year vector is the category axis, not a plotted series. + if (chartKind !== 'scatter' && hasNumericYearAxis(parsed)) { + parsed = chartDataFromValues(values, { numericCategoryColumn: true }) ?? parsed + } const sheetName = worksheet.getSheetName() const dataStartRow = startRow + (parsed.hasHeaderRow && !parsed.byRow ? 1 : 0) // by-row orientation: series names come from the first column, categories @@ -652,6 +662,66 @@ export function handleInsertPicture(ctx: VisualActionContext): void { input.click() } +/// Reads the selection the same way handleInsertChart does and ranks chart +/// kinds for it; null (with a status message) when there is nothing to chart. +export async function handleRecommendedCharts( + ctx: VisualActionContext, +): Promise { + const runtime = ctx.univerRef.current + const state = ctx.lazyWorkbookRef.current + if (!runtime || !state) { + ctx.setMessage(t('appSelectDataRangeFirst')) + return null + } + const workbook = runtime.univerAPI.getActiveWorkbook() + const worksheet = workbook?.getActiveSheet() + const range = workbook?.getActiveRange() + if (!workbook || !worksheet || !range) { + ctx.setMessage(t('appSelectDataRangeFirst')) + return null + } + const startRow = range.getRow() + const startColumn = range.getColumn() + const endColumn = startColumn + range.getWidth() - 1 + const endRow = startRow + range.getHeight() - 1 + let values: (string | number | boolean | null | undefined)[][] + try { + values = await readChartGridValues( + state, + runtime, + worksheet.getSheetId(), + `${columnLabel(startColumn)}${startRow + 1}:${columnLabel(endColumn)}${endRow + 1}`, + ) + } catch (error) { + ctx.setMessage(error instanceof Error ? error.message : t('appChartNeedsNumericColumn')) + return null + } + const recommendations = recommendCharts(values) + if (!recommendations) { + ctx.setMessage(t('appChartNeedsNumericColumn')) + return null + } + return recommendations +} + +export function handleInsertScreenshot( + ctx: VisualActionContext, + dataUrl: string, + width: number, + height: number, +): void { + insertPictureVisual(ctx, dataUrl, 'image/png', 'Screenshot.png', width, height) +} + +export function handleInsertIcon( + ctx: VisualActionContext, + dataUrl: string, + size: number, + name: string, +): void { + insertPictureVisual(ctx, dataUrl, 'image/png', `${name.replace(/\s+/g, '-')}.png`, size, size) +} + function insertPictureVisual( ctx: VisualActionContext, dataUrl: string, diff --git a/apps/sheets/src/shared/desktop-api.ts b/apps/sheets/src/shared/desktop-api.ts index 62ffd55..0ac8b54 100644 --- a/apps/sheets/src/shared/desktop-api.ts +++ b/apps/sheets/src/shared/desktop-api.ts @@ -1,5 +1,6 @@ import { z } from 'zod' +import { ADDABLE_SHAPE_TYPES } from './shape-types' import type { AiChatRequest, AiChatResponse, @@ -1095,17 +1096,7 @@ export const workbookVisualAddSchema = z .optional(), shape: z .object({ - shapeType: z.enum([ - 'rect', - 'roundRect', - 'ellipse', - 'triangle', - 'diamond', - 'rightArrow', - 'leftArrow', - 'pentagon', - 'hexagon', - ]), + shapeType: z.enum(ADDABLE_SHAPE_TYPES), fillColor: z .string() .regex(/^#[0-9a-fA-F]{6}$/) @@ -1496,6 +1487,42 @@ export const localImageResultSchema = z }) .strict() +/// Insert → Screenshot: enumerate capturable windows/screens for the picker +/// grid, then grab the chosen source at full resolution. 'denied' means the +/// OS blocks capture (macOS Screen Recording permission) — the picker shows +/// guidance instead of an empty grid. +export const screenSourcesResultSchema = z + .object({ + status: z.enum(['ok', 'denied']), + sources: z.array( + z + .object({ + id: z.string().min(1), + name: z.string(), + kind: z.enum(['screen', 'window']), + /// Small preview as a data URL; empty when the OS returned none. + thumbnail: z.string(), + }) + .strict(), + ), + }) + .strict() + +export const screenCaptureRequestSchema = z + .object({ + id: z.string().min(1).max(256), + }) + .strict() + +export const screenCaptureResultSchema = z + .object({ + mediaType: z.literal('image/png'), + base64: z.string().min(1).max(28_000_000), + width: z.number().int().positive(), + height: z.number().int().positive(), + }) + .strict() + export const workbookPivotRequestSchema = z .object({ sessionId: z.string().uuid(), @@ -1666,6 +1693,9 @@ export type WorkbookPivotRequest = z.infer export type WorkbookPivotDefinition = z.infer export type LocalImageRequest = z.infer export type LocalImageResult = z.infer +export type ScreenSourcesResult = z.infer +export type ScreenCaptureRequest = z.infer +export type ScreenCaptureResult = z.infer export type WorkbookVisualObject = z.infer export type WorkbookVisualAdd = z.infer export type WorkbookTableAdd = z.infer @@ -1868,6 +1898,9 @@ export interface DesktopApi { readWorkbookMedia(request: WorkbookMediaRequest): Promise readPivotDefinition(request: WorkbookPivotRequest): Promise readLocalImage(request: LocalImageRequest): Promise + captureScreenSources(): Promise + /// null when the source vanished between listing and capture. + captureScreenSource(request: ScreenCaptureRequest): Promise saveWorkbookEdits(request: WorkbookSaveRequest): Promise /// Crash-recovery copy of the pending edits, written under userData. /// Best-effort: never prompts, never touches the opened file. diff --git a/apps/sheets/src/shared/ipc-channels.ts b/apps/sheets/src/shared/ipc-channels.ts index e963761..c45c416 100644 --- a/apps/sheets/src/shared/ipc-channels.ts +++ b/apps/sheets/src/shared/ipc-channels.ts @@ -28,6 +28,8 @@ export const IPC_CHANNELS = { aiGskLogin: 'ai:gsk-login', // Chat attachments (sheets: prefix — docs already registers global files:* in // the shell; avoids collisions) + captureScreenSources: 'sheets:capture-screen-sources', + captureScreenSource: 'sheets:capture-screen-source', filesPick: 'sheets:files-pick', filesAdd: 'sheets:files-add', filesAddPastedImage: 'sheets:files-add-pasted-image', diff --git a/apps/sheets/src/shared/shape-types.ts b/apps/sheets/src/shared/shape-types.ts new file mode 100644 index 0000000..a4216b5 --- /dev/null +++ b/apps/sheets/src/shared/shape-types.ts @@ -0,0 +1,119 @@ +/** + * prstGeom names insertable via the ribbon gallery and the AI add_shape op. + * Single source for the save-request schema, the AI DSL, and the journal + * filter; the drawing gateway writes these verbatim into . + */ +export const ADDABLE_SHAPE_TYPES = [ + // rectangles + 'rect', + 'roundRect', + 'snip1Rect', + 'snip2SameRect', + 'snip2DiagRect', + 'snipRoundRect', + 'round1Rect', + 'round2SameRect', + 'round2DiagRect', + // basic shapes + 'ellipse', + 'triangle', + 'rtTriangle', + 'parallelogram', + 'trapezoid', + 'diamond', + 'pentagon', + 'hexagon', + 'octagon', + 'plus', + 'mathPlus', + 'pie', + 'chord', + 'teardrop', + 'frame', + 'halfFrame', + 'corner', + 'diagStripe', + 'donut', + 'noSmoking', + 'blockArc', + 'foldedCorner', + 'bevel', + 'cube', + 'can', + 'lightningBolt', + 'heart', + 'sun', + 'moon', + 'cloud', + 'arc', + 'plaque', + 'smileyFace', + 'leftBracket', + 'rightBracket', + 'leftBrace', + 'rightBrace', + // block arrows + 'rightArrow', + 'leftArrow', + 'upArrow', + 'downArrow', + 'leftRightArrow', + 'upDownArrow', + 'quadArrow', + 'bentArrow', + 'uturnArrow', + 'curvedRightArrow', + 'stripedRightArrow', + 'notchedRightArrow', + 'chevron', + 'homePlate', + // stars and banners + 'star4', + 'star5', + 'star6', + 'star7', + 'star8', + 'star10', + 'star12', + 'star16', + 'star24', + 'star32', + 'irregularSeal1', + 'irregularSeal2', + 'ribbon', + 'ribbon2', + 'wave', + 'doubleWave', + // flowchart + 'flowChartProcess', + 'flowChartAlternateProcess', + 'flowChartDecision', + 'flowChartPredefinedProcess', + 'flowChartInternalStorage', + 'flowChartDocument', + 'flowChartMultidocument', + 'flowChartTerminator', + 'flowChartPreparation', + 'flowChartManualInput', + 'flowChartManualOperation', + 'flowChartConnector', + 'flowChartOffpageConnector', + 'flowChartMagneticDisk', + 'flowChartMagneticDrum', + 'flowChartDisplay', + 'flowChartDelay', + 'flowChartOr', + 'flowChartCollate', + 'flowChartSort', + 'flowChartExtract', + 'flowChartMerge', + 'flowChartSummingJunction', + 'flowChartPunchedTape', + // callouts + 'wedgeRectCallout', + 'wedgeRoundRectCallout', + 'wedgeEllipseCallout', + 'cloudCallout', +] as const + +export type AddableShapeType = (typeof ADDABLE_SHAPE_TYPES)[number] diff --git a/apps/sheets/tests/chart-recommend.test.ts b/apps/sheets/tests/chart-recommend.test.ts new file mode 100644 index 0000000..a25a47f --- /dev/null +++ b/apps/sheets/tests/chart-recommend.test.ts @@ -0,0 +1,108 @@ +import { describe, expect, it } from 'vitest' + +import { recommendCharts } from '../src/domain/chart-recommend' + +describe('recommendCharts', () => { + it('puts line first for a time series', () => { + const result = recommendCharts([ + ['Month', 'Sales'], + ['Jan', 10], + ['Feb', 12], + ['Mar', 9], + ['Apr', 15], + ]) + expect(result?.items[0]).toEqual({ kind: 'line', reason: 'time' }) + }) + + it('recommends pie for a few positive categories', () => { + const result = recommendCharts([ + ['Region', 'Share'], + ['North', 40], + ['South', 25], + ['East', 20], + ['West', 15], + ]) + expect(result?.items.map((item) => item.kind)).toContain('pie') + }) + + it('skips pie when values go negative', () => { + const result = recommendCharts([ + ['Item', 'Delta'], + ['A', 5], + ['B', -3], + ['C', 2], + ]) + expect(result?.items.map((item) => item.kind)).not.toContain('pie') + }) + + it('puts line first for a Year/Value table with numeric years', () => { + const result = recommendCharts([ + ['Year', 'Sales'], + [2019, 10], + [2020, 12], + [2021, 9], + [2022, 15], + [2023, 18], + ]) + expect(result?.items[0]).toEqual({ kind: 'line', reason: 'time' }) + expect(result?.parsed.hasCategoryColumn).toBe(true) + expect(result?.parsed.categories).toEqual(['2019', '2020', '2021', '2022', '2023']) + }) + + it('puts scatter first for two bare numeric columns', () => { + const rows: (string | number)[][] = [['X', 'Y']] + for (let index = 0; index < 10; index++) rows.push([index * 2, index * index]) + const result = recommendCharts(rows) + expect(result?.items[0]).toEqual({ kind: 'scatter', reason: 'correlation' }) + }) + + it('prefers bar over column for long category labels', () => { + const result = recommendCharts([ + ['Department', 'Headcount'], + ['Customer Success and Support', 12], + ['Engineering Infrastructure Team', 30], + ['Product Design and Research Org', 9], + ['International Sales Operations', 14], + ['Legal and Regulatory Compliance', 4], + ['Enterprise Marketing Division', 7], + ['Talent Acquisition Partners', 5], + ['Financial Planning and Analysis', 6], + ['Corporate Development Office', 3], + ]) + const kinds = result?.items.map((item) => item.kind) ?? [] + expect(kinds.indexOf('bar')).toBeGreaterThanOrEqual(0) + expect(kinds.indexOf('bar')).toBeLessThan(kinds.indexOf('column')) + }) + + it('recommends combo when the two series scales differ wildly', () => { + const result = recommendCharts([ + ['Month', 'Revenue', 'Margin %'], + ['Jan', 120000, 12], + ['Feb', 135000, 14], + ['Mar', 110000, 9], + ['Apr', 150000, 16], + ]) + expect(result?.items.map((item) => item.kind)).toContain('combo') + }) + + it('caps recommendations at five and always offers a fallback', () => { + const result = recommendCharts([ + ['Cat', 'V'], + ['a', 1], + ['b', 2], + ]) + expect(result).not.toBeNull() + expect(result!.items.length).toBeGreaterThan(0) + expect(result!.items.length).toBeLessThanOrEqual(5) + expect(result!.items.map((item) => item.kind)).toContain('column') + }) + + it('returns null for text-only selections', () => { + expect( + recommendCharts([ + ['a', 'b'], + ['c', 'd'], + ]), + ).toBeNull() + }) +}) diff --git a/apps/sheets/tests/shape-gallery.test.ts b/apps/sheets/tests/shape-gallery.test.ts new file mode 100644 index 0000000..e4430e0 --- /dev/null +++ b/apps/sheets/tests/shape-gallery.test.ts @@ -0,0 +1,34 @@ +import { describe, expect, it } from 'vitest' + +import { + isPillPreset, + presetPath, + presetPolygon, +} from '../../../packages/pptx-render/src/preset-geometry' +import { SHAPE_GALLERY } from '../src/renderer/shape-gallery' +import { ADDABLE_SHAPE_TYPES } from '../src/shared/shape-types' + +const galleryPrsts = SHAPE_GALLERY.flatMap((group) => group.shapes.map((shape) => shape.prst)) + +describe('shape gallery', () => { + it('every gallery prst is saveable (in ADDABLE_SHAPE_TYPES)', () => { + const addable = new Set(ADDABLE_SHAPE_TYPES) + expect(galleryPrsts.filter((prst) => !addable.has(prst))).toEqual([]) + }) + + it('every gallery prst has render geometry (no fallback chips)', () => { + const covered = (prst: string): boolean => + prst === 'rect' || + prst === 'roundRect' || + prst === 'ellipse' || + prst === 'flowChartProcess' || + isPillPreset(prst) || + presetPolygon(prst, 100, 100) !== null || + presetPath(prst, 100, 100) !== null + expect(galleryPrsts.filter((prst) => !covered(prst))).toEqual([]) + }) + + it('has no duplicate prsts', () => { + expect(new Set(galleryPrsts).size).toBe(galleryPrsts.length) + }) +}) diff --git a/apps/shell/electron-builder.cjs b/apps/shell/electron-builder.cjs index 83778a6..0fefc52 100644 --- a/apps/shell/electron-builder.cjs +++ b/apps/shell/electron-builder.cjs @@ -23,10 +23,16 @@ const updateUrl = process.env.GENOFFICE_UPDATE_URL // nested commander path depends on npm's current hoisting layout — fail the // build with a clear message if an install ever changes it, instead of // shipping an installer with a broken gsk runtime. +// LICENSES.chromium.html only exists after the Electron binary download — +// since Electron 42 that no longer happens during `npm ci` (the postinstall +// script was replaced by the lazy `install-electron` bin), and electron-builder +// exits 0 on a missing extraResources source, so without this check the +// installer would silently ship without the Chromium license. for (const rel of [ '../../node_modules/@genspark/cli', '../../node_modules/@genspark/cli/node_modules/commander', '../../node_modules/ws', + '../../node_modules/electron/dist/LICENSES.chromium.html', ]) { if (!existsSync(join(__dirname, rel))) { throw new Error( @@ -58,7 +64,10 @@ function assertModuleTreesPresent() { const config = { appId: 'com.genoffice.app', productName: 'GenOffice', - electronVersion: '41.7.1', + // Resolved from the installed electron package so dependency bumps can + // never leave a stale hard-coded pin behind (packaging would silently ship + // the old runtime). + electronVersion: require('electron/package.json').version, directories: { output: 'release', }, diff --git a/apps/shell/package.json b/apps/shell/package.json index 39cc9b0..6dea9e4 100644 --- a/apps/shell/package.json +++ b/apps/shell/package.json @@ -32,7 +32,7 @@ "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^5.0.4", - "electron": "^41.0.3", + "electron": "^43.3.0", "electron-builder": "^26.0.12", "electron-updater": "^6.8.9", "electron-vite": "^5.0.0", diff --git a/apps/shell/src/main/cloud-projects.ts b/apps/shell/src/main/cloud-projects.ts new file mode 100644 index 0000000..56b1b55 --- /dev/null +++ b/apps/shell/src/main/cloud-projects.ts @@ -0,0 +1,162 @@ +import { readFileSync, unlinkSync, writeFileSync } from 'node:fs' +import { createHash } from 'node:crypto' +import { gskApiKey, gskListPastProjects, hasGskAuth } from '@genoffice/ai-search' +import type { CloudProjectEntry, CloudProjectKind, CloudProjectsSnapshot } from '../shared/home-api' + +const SYNC_PAGE = 100 +/** bound on sync cost for huge accounts (10 requests) */ +const MAX_PROJECTS = 1000 + +const KINDS: readonly CloudProjectKind[] = ['docs', 'sheets', 'slides'] + +/** 'slides_agent_git' / 'docs_agent' / 'sheets_agent_new' → module kind */ +export function kindFromType(type: string): CloudProjectKind | 'other' { + return KINDS.find((k) => type.startsWith(k)) ?? 'other' +} + +export const GENSPARK_ORIGIN = 'https://www.genspark.ai' + +/** API ctime carries no timezone marker and is UTC; append Z before parsing */ +function ctimeToMs(ctime: string): number { + if (!ctime) return 0 + const iso = /[zZ]$|[+-]\d\d:?\d\d$/.test(ctime) ? ctime : `${ctime}Z` + const ms = Date.parse(iso) + return Number.isFinite(ms) ? ms : 0 +} + +/** + * Account tag the store is bound to: a salted hash of the API key (never the + * key itself). A key change — logout, account switch, even rotation — makes + * the stored list unreadable so one account can never see another's projects. + * (exported for tests) + */ +export function cloudStoreOwner(): string { + const key = gskApiKey() + if (!key) return '' + return createHash('sha256').update(`genoffice-cloud-store:${key}`).digest('hex').slice(0, 16) +} + +/** disk shape: the snapshot plus the owner tag (stripped before it reaches the renderer) */ +type StoredSnapshot = CloudProjectsSnapshot & { owner?: string } + +export function clearCloudProjectsStore(storePath: string): void { + try { + unlinkSync(storePath) + } catch { + // nothing cached; fine + } +} + +/** Locally stored full project list; filtering/paging happen in the renderer. */ +export function readCloudProjectsStore(storePath: string): CloudProjectsSnapshot | null { + if (!hasGskAuth()) return null + try { + const raw = JSON.parse(readFileSync(storePath, 'utf-8')) as StoredSnapshot + if (!Array.isArray(raw.projects)) return null + if (raw.owner !== cloudStoreOwner()) { + // another account's cache; drop it from disk rather than leave it around + clearCloudProjectsStore(storePath) + return null + } + return { + available: true, + projects: raw.projects.map((p) => ({ ...p, kind: p.kind ?? 'other' })), + syncedAt: Number(raw.syncedAt) || 0, + } + } catch { + return null + } +} + +let syncInFlight: Promise | null = null +let syncInFlightOwner = '' + +/** + * Full-list sync, deduped so concurrent callers on the SAME account share one + * run. A caller under a different key never gets the other account's promise; + * it starts its own run (the orphaned one aborts at its next owner check). + */ +export function syncCloudProjects(storePath: string): Promise { + if (!hasGskAuth()) { + return Promise.resolve({ available: false, projects: [], syncedAt: 0 }) + } + const owner = cloudStoreOwner() + if (!syncInFlight || syncInFlightOwner !== owner) { + const run = doSync(storePath, owner).finally(() => { + if (syncInFlight === run) syncInFlight = null + }) + syncInFlight = run + syncInFlightOwner = owner + } + return syncInFlight +} + +/** + * Pages are newest-first and ctime is immutable, so when the FIRST page is + * entirely known (ids + titles) and the API total matches the store size, + * nothing changed and the store is kept as-is (one request). Any difference + * triggers a full sweep, which also picks up renames and drops deletions. + * + * `owner` is the account the sync was started for. Each page is fetched with + * the LIVE key, so if the account switches (or logs out) mid-sync the pages + * would belong to someone else; the check after every fetch aborts the run + * before mixed data can be returned or written to disk. The rejection reaches + * the renderer as a failed sync (null), which keeps whatever it had. + */ +async function doSync(storePath: string, owner: string): Promise { + const stored = readCloudProjectsStore(storePath) + const known = new Map((stored?.projects ?? []).map((p) => [p.projectId, p])) + const collected: CloudProjectEntry[] = [] + const seen = new Set() + let offset = 0 + for (;;) { + const page = await gskListPastProjects({ + artifactTypes: [...KINDS], + limit: SYNC_PAGE, + offset, + }) + if (cloudStoreOwner() !== owner) { + throw new Error('cloud projects sync aborted: account changed mid-sync') + } + const entries: CloudProjectEntry[] = page.projects + .map((p) => ({ + projectId: p.projectId, + title: p.title, + kind: kindFromType(p.type), + ctimeMs: ctimeToMs(p.ctime), + projectUrl: p.projectUrl, + })) + .filter((e) => !seen.has(e.projectId)) + for (const e of entries) seen.add(e.projectId) + collected.push(...entries) + if (offset === 0 && known.size === page.total) { + const unchanged = entries.every((e) => { + const k = known.get(e.projectId) + return k && k.title === e.title && k.kind === e.kind + }) + if (unchanged && stored) return stored + } + offset += page.projects.length + if (!page.hasMore || page.projects.length === 0 || collected.length >= MAX_PROJECTS) break + } + collected.sort((a, b) => b.ctimeMs - a.ctimeMs) + const snapshot: CloudProjectsSnapshot = { + available: true, + projects: collected, + syncedAt: Date.now(), + } + try { + const stored: StoredSnapshot = { ...snapshot, owner } + writeFileSync(storePath, JSON.stringify(stored)) + } catch { + // store is best-effort; the fresh list still goes back to the renderer + } + return snapshot +} + +/** Only relative genspark paths may be opened externally (renderer input is untrusted). */ +export function cloudProjectExternalUrl(projectUrl: unknown): string | null { + if (typeof projectUrl !== 'string') return null + if (!projectUrl.startsWith('/') || projectUrl.startsWith('//')) return null + return `${GENSPARK_ORIGIN}${projectUrl}` +} diff --git a/apps/shell/src/main/error-dialog.ts b/apps/shell/src/main/error-dialog.ts new file mode 100644 index 0000000..6d87ca4 --- /dev/null +++ b/apps/shell/src/main/error-dialog.ts @@ -0,0 +1,24 @@ +import { dialog } from 'electron' +import type { BrowserWindow } from 'electron' + +let showing = false + +/** + * Never dialog.showErrorBox here: on Windows it blocks main-process JS in a + * nested native pump and, parentless, can hide behind the window — a wedged + * UI with no "(Not Responding)". Async + parented avoids both. + */ +export function showErrorDialog(win: BrowserWindow | null, message: string, err: unknown): void { + if (showing) return + showing = true + const options = { + type: 'error' as const, + message, + detail: err instanceof Error ? err.message : String(err), + } + const shown = + win && !win.isDestroyed() ? dialog.showMessageBox(win, options) : dialog.showMessageBox(options) + void shown.finally(() => { + showing = false + }) +} diff --git a/apps/shell/src/main/index.ts b/apps/shell/src/main/index.ts index 1f81af4..3f753d2 100644 --- a/apps/shell/src/main/index.ts +++ b/apps/shell/src/main/index.ts @@ -38,9 +38,17 @@ import { editMenuTemplate, installContextMenu, installNavigationGuard, + showOpenDialogWithMemory, + showSaveDialogWithMemory, windowMenuTemplate, } from '@genoffice/electron-utils' import { readAppSettings, writeAppSetting } from './app-settings' +import { + clearCloudProjectsStore, + cloudProjectExternalUrl, + readCloudProjectsStore, + syncCloudProjects, +} from './cloud-projects' import { ProjectStore } from '@genoffice/project-store' import { ensureGenofficeLogin, @@ -121,6 +129,7 @@ import type { AccountLoginEvent, RecentEntry, RecentPage, RenameResult } from '. import { HOME_CHANNELS } from '../shared/home-api' import type { TabKind } from '../shared/tabs-api' import { TABS_CHANNELS } from '../shared/tabs-api' +import { showErrorDialog } from './error-dialog' import { normalizeRecentQuery, pageRecentPaths, statExistingPaths } from './recent-files' import { TabManager } from './tab-manager' import { applyUpdateChannel, initAutoUpdater } from './updater' @@ -1463,7 +1472,7 @@ async function newSheetTab(): Promise { */ function surfaceNewTabError(err: unknown): void { console.error('[shell] new tab failed:', err) - dialog.showErrorBox(tm('errNewTabFailed'), err instanceof Error ? err.message : String(err)) + showErrorDialog(shellWindow, tm('errNewTabFailed'), err) } function newDocTab(): void { @@ -1515,6 +1524,7 @@ function registerHomeIpc(): void { // is only a silent fallback, deliberately not shown here to nudge users onto our key ipcMain.handle(HOME_CHANNELS.accountStatus, async () => { if (!loadGenofficeAuth()) return { loggedIn: false } + await proxyBootstrap const info = await gskLoginInfo() return info ? { loggedIn: true, email: info.email } : { loggedIn: true } }) @@ -1522,9 +1532,10 @@ function registerHomeIpc(): void { // login progress is streamed to the requesting renderer; the auth URL is // kept main-side so the "open manually" rescue never opens a renderer-supplied URL let pendingLoginUrl = '' - ipcMain.handle(HOME_CHANNELS.accountLogin, (event) => { + ipcMain.handle(HOME_CHANNELS.accountLogin, async (event) => { const sender = event.sender pendingLoginUrl = '' + await proxyBootstrap const send = (payload: AccountLoginEvent) => { if (!sender.isDestroyed()) sender.send(HOME_CHANNELS.accountLoginEvent, payload) } @@ -1550,6 +1561,8 @@ function registerHomeIpc(): void { ipcMain.handle(HOME_CHANNELS.accountLogout, async () => { await genofficeLogout() + // the cloud projects cache belongs to the account that just signed out + clearCloudProjectsStore(cloudProjectsStorePath()) }) ipcMain.handle(HOME_CHANNELS.getAppVersion, (): string => app.getVersion()) @@ -1585,7 +1598,7 @@ function registerHomeIpc(): void { ipcMain.handle(HOME_CHANNELS.browse, async (event) => { const win = BrowserWindow.fromWebContents(event.sender) ?? shellWindow if (!win) return - const result = await dialog.showOpenDialog(win, { + const result = await showOpenDialogWithMemory(dialog, win, { title: tm('dlgOpenTitle'), filters: [ { name: tm('filterSupported'), extensions: OPEN_DIALOG_EXTENSIONS }, @@ -1730,6 +1743,19 @@ function registerHomeIpc(): void { // no browser handler available; nothing actionable for the user here }) }) + + const cloudProjectsStorePath = () => join(app.getPath('userData'), 'cloud-projects.json') + + ipcMain.handle(HOME_CHANNELS.cloudProjectsCached, () => + readCloudProjectsStore(cloudProjectsStorePath()), + ) + + ipcMain.handle(HOME_CHANNELS.cloudProjects, () => syncCloudProjects(cloudProjectsStorePath())) + + ipcMain.handle(HOME_CHANNELS.openCloudProject, (_event, projectUrl: unknown) => { + const url = cloudProjectExternalUrl(projectUrl) + if (url) void shell.openExternal(url) + }) } function stringPaths(value: unknown): string[] { @@ -1838,7 +1864,7 @@ function registerTabsIpc(): void { async function openFileViaDialog(): Promise { const win = shellWindow ?? BrowserWindow.getFocusedWindow() if (!win) return - const result = await dialog.showOpenDialog(win, { + const result = await showOpenDialogWithMemory(dialog, win, { filters: [{ name: tm('filterSupported'), extensions: OPEN_DIALOG_EXTENSIONS }], properties: ['openFile'], }) @@ -1960,7 +1986,7 @@ async function savePdfAs(): Promise { // blur-triggered autosave would write the pending edits into the original file setPdfSaveAsInFlight(tab.webContents, true) try { - const picked = await dialog.showSaveDialog(shellWindow, { + const picked = await showSaveDialogWithMemory(dialog, shellWindow, { defaultPath: tab.filePath, filters: [{ name: tm('filterPdf'), extensions: ['pdf'] }], }) @@ -2046,7 +2072,7 @@ async function exportPdfAsDocx(): Promise { noLink: true, }) if (confirm.response !== 0) return - const picked = await dialog.showSaveDialog(shellWindow, { + const picked = await showSaveDialogWithMemory(dialog, shellWindow, { defaultPath: tab.filePath.replace(/\.pdf$/i, '.docx'), filters: [{ name: tm('filterWord'), extensions: ['docx'] }], }) @@ -2124,6 +2150,9 @@ function installDockMenu(): void { // Prefer proxy env vars (terminal launch); a packaged app launched from Finder inherits no shell // env vars, so fall back to the system HTTP proxy. The renderer uses Chromium's system proxy and // is unaffected. Same bootstrap as slides-main startSlidesStandalone. +// awaited by login IPC so the first status probe / login click cannot race the proxy resolution +let proxyBootstrap: Promise = Promise.resolve() + async function installMainProcessProxy(): Promise { let proxyUrl = [ process.env.HTTPS_PROXY, @@ -2135,7 +2164,9 @@ async function installMainProcessProxy(): Promise { ].find((v) => v && /^https?:\/\//.test(v)) if (!proxyUrl) { try { - const resolved = await session.defaultSession.resolveProxy('https://api.anthropic.com/') + // PAC/rule proxies answer per-host: probe the host the login flow, the + // Genspark LLM proxy and the gsk CLI actually target + const resolved = await session.defaultSession.resolveProxy('https://www.genspark.ai/') const m = /PROXY\s+([^;\s]+)/.exec(resolved) if (m) proxyUrl = `http://${m[1]}` } catch { @@ -2212,7 +2243,7 @@ app.whenReady().then(() => { return } - void installMainProcessProxy() + proxyBootstrap = installMainProcessProxy() app.setAccessibilitySupportEnabled(true) // Settle the shared uiLang from saved settings BEFORE any tab renderer can // ask 'app:get-language': the editor handlers return the i18n module's diff --git a/apps/shell/src/preload/index.ts b/apps/shell/src/preload/index.ts index 88f7047..626ee50 100644 --- a/apps/shell/src/preload/index.ts +++ b/apps/shell/src/preload/index.ts @@ -3,6 +3,7 @@ import type { IpcRendererEvent } from 'electron' import type { AccountLoginEvent, AccountStatus, + CloudProjectsSnapshot, HomeApi, RecentEntry, RecentPage, @@ -157,6 +158,34 @@ const homeApi: HomeApi = { async openGenTeam() { await ipcRenderer.invoke(HOME_CHANNELS.openGenTeam) }, + async cloudProjectsCached() { + const result: unknown = await ipcRenderer.invoke(HOME_CHANNELS.cloudProjectsCached) + return asCloudProjectsSnapshot(result) + }, + async cloudProjectsSync() { + // failures (network / CLI) resolve to null so the renderer keeps whatever it has + try { + const result: unknown = await ipcRenderer.invoke(HOME_CHANNELS.cloudProjects) + return asCloudProjectsSnapshot(result) + } catch { + return null + } + }, + async openCloudProject(projectUrl) { + if (typeof projectUrl !== 'string' || !projectUrl) throw new Error('Invalid project URL.') + await ipcRenderer.invoke(HOME_CHANNELS.openCloudProject, projectUrl) + }, +} + +function asCloudProjectsSnapshot(result: unknown): CloudProjectsSnapshot | null { + if ( + result && + typeof result === 'object' && + Array.isArray((result as CloudProjectsSnapshot).projects) + ) { + return result as CloudProjectsSnapshot + } + return null } contextBridge.exposeInMainWorld('aiOffice', homeApi) diff --git a/apps/shell/src/renderer/src/Home.tsx b/apps/shell/src/renderer/src/Home.tsx index 64ac066..7f2c3d6 100644 --- a/apps/shell/src/renderer/src/Home.tsx +++ b/apps/shell/src/renderer/src/Home.tsx @@ -1,4 +1,5 @@ -import { useEffect, useRef, useState } from 'react' +import { useCallback, useEffect, useRef, useState } from 'react' +import type { ReactElement } from 'react' import logoLockup from './assets/genoffice-logo.svg' import iconDocx from './assets/file-docx.svg' import iconXlsx from './assets/file-xlsx.svg' @@ -6,6 +7,8 @@ import iconPptx from './assets/file-pptx.svg' import iconPdf from './assets/file-pdf.svg' import type { AccountStatus, + CloudProjectKind, + CloudProjectsSnapshot, HomeApi, ProjectHomeApi, ProjectSummaryEntry, @@ -422,9 +425,17 @@ const CHANNEL_OPTIONS = [ { value: 'beta', labelKey: 'channelBeta' }, ] as const -function AccountEntry() { +function AccountEntry({ + onStatusChange, +}: { + onStatusChange?: (status: AccountStatus | null) => void +}) { const { lang, setLang, t } = useI18n() const [status, setStatus] = useState(null) + + useEffect(() => { + onStatusChange?.(status) + }, [status, onStatusChange]) const [waiting, setWaiting] = useState(false) // incremented on login retry, resetting the polling timer const [loginNonce, setLoginNonce] = useState(0) @@ -973,6 +984,346 @@ function AccountEntry() { ) } +// ── Cloud (Genspark web) projects view ────────────────── + +/** kind filter segments; labels shared with the recents type filter */ +const CLOUD_FILTERS = [ + { key: 'all', label: 'filterAll' }, + { key: 'docs', label: 'filterDocs' }, + { key: 'sheets', label: 'filterSheets' }, + { key: 'slides', label: 'filterSlides' }, +] as const satisfies readonly { key: 'all' | CloudProjectKind; label: StringKey }[] + +/** module kind → file icon extension */ +const CLOUD_KIND_EXT: Record = { docs: 'docx', sheets: 'xlsx', slides: 'pptx' } + +/** rows revealed per "load more" step; purely client-side over the local snapshot */ +const CLOUD_REVEAL_STEP = 100 + +function CloudProjectsView() { + const i18n = useI18n() + const { t } = i18n + const [snapshot, setSnapshot] = useState(null) + const [loading, setLoading] = useState(true) + const [syncing, setSyncing] = useState(false) + const [loginWaiting, setLoginWaiting] = useState(false) + const [kind, setKind] = useState<'all' | CloudProjectKind>('all') + const [query, setQuery] = useState('') + const [sort, setSort] = useState<'recent' | 'oldest'>('recent') + const [sortMenuOpen, setSortMenuOpen] = useState(false) + const [revealed, setRevealed] = useState(CLOUD_REVEAL_STEP) + const sortRef = useRef(null) + + // the local store paints instantly; a background sync replaces it when done. + // a failed sync keeps whatever is shown; with nothing shown the + // !snapshot && !loading branch below renders the retry state + const startSync = () => { + setSyncing(true) + void window.aiOffice.cloudProjectsSync?.().then((synced) => { + setSyncing(false) + setLoading(false) + if (synced) setSnapshot(synced) + }) + } + const startSyncRef = useRef(startSync) + startSyncRef.current = startSync + + useEffect(() => { + let cancelled = false + void window.aiOffice.cloudProjectsCached?.().then((stored) => { + if (cancelled || !stored) return + setSnapshot((prev) => prev ?? stored) + setLoading(false) + }) + startSyncRef.current() + return () => { + cancelled = true + } + }, []) + + // the sign-in button reuses the account login flow; sync once it lands + useEffect(() => { + const off = window.aiOffice.onAccountLogin?.((ev) => { + if (ev.phase === 'success') { + setLoginWaiting(false) + startSyncRef.current() + } else if (ev.phase === 'error') { + setLoginWaiting(false) + } + }) + return off + }, []) + + useEffect(() => { + if (!sortMenuOpen) return + const handler = (e: PointerEvent) => { + if (!sortRef.current?.contains(e.target as Node)) setSortMenuOpen(false) + } + window.addEventListener('pointerdown', handler) + return () => window.removeEventListener('pointerdown', handler) + }, [sortMenuOpen]) + + const startLogin = () => { + setLoginWaiting(true) + void window.aiOffice.accountLogin?.().then((ok) => { + if (!ok) setLoginWaiting(false) + }) + } + + const changeKind = (k: 'all' | CloudProjectKind) => { + if (k === kind) return + setKind(k) + setRevealed(CLOUD_REVEAL_STEP) + } + + const openProject = (projectUrl: string) => { + void window.aiOffice.openCloudProject?.(projectUrl) + } + + // filter / search / sort are all local over the snapshot — no requests + const q = query.trim().toLowerCase() + let list = snapshot?.projects.filter((proj) => kind === 'all' || proj.kind === kind) ?? [] + if (q) list = list.filter((proj) => proj.title.toLowerCase().includes(q)) + if (sort === 'oldest') list = [...list].reverse() + const visible = list.slice(0, revealed) + + /** time-bucket header: this week → earlier this month → month → month + year */ + const groupLabel = (ctimeMs: number): string => { + if (!ctimeMs) return '' + const now = Date.now() + if (now - ctimeMs < 7 * 86_400_000 && ctimeMs < now + 86_400_000) { + return t('cloudGroupThisWeek') + } + const d = new Date(ctimeMs) + const n = new Date() + if (d.getFullYear() === n.getFullYear()) { + if (d.getMonth() === n.getMonth()) return t('cloudGroupThisMonth') + return new Intl.DateTimeFormat(i18n.dateLocale, { month: 'long' }).format(d) + } + return new Intl.DateTimeFormat(i18n.dateLocale, { year: 'numeric', month: 'long' }).format(d) + } + + const renderRows = () => { + const items: ReactElement[] = [] + let prevLabel = '' + for (const proj of visible) { + const label = groupLabel(proj.ctimeMs) + if (label && label !== prevLabel) { + prevLabel = label + items.push( + , + ) + } + items.push( +
  • + +
  • , + ) + } + return items + } + + const renderBody = () => { + if (snapshot && !snapshot.available) { + return ( +

    + {t('cloudLoginHint')} + +

    + ) + } + if (!snapshot) { + if (loading || syncing) { + return ( + + ) + } + return ( +

    + {t('cloudError')} + +

    + ) + } + if (list.length === 0) { + return ( +

    + + {t(q ? 'cloudNoResults' : kind === 'all' ? 'cloudEmpty' : 'emptyFiltered')} + +

    + ) + } + return ( +
    +
      {renderRows()}
    + {list.length > revealed && ( +
    + +
    + )} +
    + ) + } + + const sortValueKey = sort === 'recent' ? 'cloudSortRecent' : 'cloudSortOldest' + return ( +
    +
    +
    +
    +

    + {t('navCloud')} + + + {t('cloudOpenInBrowser')} + +

    + {snapshot?.available && ( +
    + +
    + + {sortMenuOpen && ( +
    + {(['recent', 'oldest'] as const).map((key) => ( + + ))} +
    + )} +
    +
    + )} +
    +

    {t('cloudSubtitle')}

    + {snapshot?.available && ( +
    +
    + + { + setQuery(e.target.value) + setRevealed(CLOUD_REVEAL_STEP) + }} + /> +
    +
    + {CLOUD_FILTERS.map((f) => ( + + ))} +
    +
    + )} +
    + {renderBody()} +
    +
    + ) +} + // ── Main component ────────────────────────────────────── export function Home() { @@ -986,6 +1337,8 @@ export function Home() { const [navCounts, setNavCounts] = useState({ recent: 0, starred: 0 }) const [loadingMore, setLoadingMore] = useState(false) const [view, setView] = useState<'recent' | 'starred'>('recent') + // Genspark web projects take over the content area (like a selected project) + const [cloudMode, setCloudMode] = useState(false) const [filter, setFilter] = useState('all') const [rowMenu, setRowMenu] = useState(null) const [selected, setSelected] = useState>(new Set()) @@ -993,17 +1346,21 @@ export function Home() { const [confirmDelete, setConfirmDelete] = useState(null) // name in the greeting; omitted when logged out const [accountName, setAccountName] = useState('') + // Genspark Projects is web-account data, so its nav entry only shows when logged in + const [loggedIn, setLoggedIn] = useState(false) + // single source of account state: AccountEntry reports every change (initial + // load, login, logout), keeping the greeting name and the nav entry in sync + const handleAccountStatus = useCallback((s: AccountStatus | null) => { + const on = s?.loggedIn ?? false + setLoggedIn(on) + if (!on) setCloudMode(false) + const name = on ? (s?.email ?? '').split('@')[0] : '' + setAccountName(name ? name[0].toUpperCase() + name.slice(1) : '') + }, []) const [greetAskKey] = useState( () => GREET_ASK_KEYS[Math.floor(Math.random() * GREET_ASK_KEYS.length)]!, ) - useEffect(() => { - void window.aiOffice.accountStatus?.().then((s) => { - const name = s?.loggedIn ? (s.email ?? '').split('@')[0] : '' - if (name) setAccountName(name[0].toUpperCase() + name.slice(1)) - }) - }, []) - // ── Project state ── const [projects, setProjects] = useState([]) const [selectedProjectId, setSelectedProjectId] = useState(null) @@ -1853,10 +2210,11 @@ export function Home() { {/* project sidebar */} @@ -1910,10 +2306,16 @@ export function Home() { )} - + - {selectedProjectId ? renderProjectContent() : renderGlobalContent()} + {selectedProjectId ? ( + renderProjectContent() + ) : cloudMode ? ( + + ) : ( + renderGlobalContent() + )} {confirmDelete && (
    setConfirmDelete(null)}> diff --git a/apps/shell/src/renderer/src/home.css b/apps/shell/src/renderer/src/home.css index 8c39f70..3129853 100644 --- a/apps/shell/src/renderer/src/home.css +++ b/apps/shell/src/renderer/src/home.css @@ -1548,3 +1548,322 @@ body.vib .home { font-variant-numeric: tabular-nums; padding-top: 1px; } + +/* ── Cloud (Genspark web) projects ── */ + +/* fixed header: the content column never scrolls; only .cloud-scroll does */ +.content:has(.cloud-projects) { + display: flex; + flex-direction: column; + overflow: hidden; + padding: 26px 36px 24px; +} + +.cloud-projects { + flex: 1; + min-height: 0; + display: flex; + flex-direction: column; +} + +.cloud-projects .proj-empty { + flex: 1; +} + +.cloud-hero { + flex-shrink: 0; +} + +.cloud-hero-top { + display: flex; + align-items: center; + justify-content: space-between; + gap: 16px; +} + +.cloud-title { + display: flex; + align-items: center; + gap: 12px; + margin: 0; + font-size: 26px; + font-weight: 700; + letter-spacing: -0.01em; + color: var(--text); +} + +.cloud-chip { + display: inline-flex; + align-items: center; + gap: 6px; + font-size: 12px; + font-weight: 500; + color: var(--text-secondary); + background: #eef0f2; + border-radius: 999px; + padding: 5px 11px; + white-space: nowrap; +} + +.cloud-subtitle { + margin: 8px 0 0; + font-size: 14px; + color: var(--text-muted); +} + +.cloud-sort { + position: relative; + flex-shrink: 0; +} + +.cloud-sort-btn { + display: flex; + align-items: center; + gap: 7px; + border: 1px solid var(--border); + background: var(--surface); + border-radius: 10px; + padding: 8px 13px; + font-size: 13px; + color: var(--text); + cursor: pointer; + white-space: nowrap; +} + +.cloud-sort-btn:hover { + background: var(--surface-subtle); +} + +.cloud-sort-menu { + position: absolute; + right: 0; + top: calc(100% + 6px); + min-width: 150px; + background: var(--surface); + border: 1px solid var(--border); + border-radius: 10px; + box-shadow: 0 8px 24px rgb(0 0 0 / 10%); + padding: 4px; + z-index: 5; +} + +.cloud-sort-menu button { + display: block; + width: 100%; + text-align: left; + border: none; + background: none; + padding: 8px 11px; + font-size: 13px; + border-radius: 7px; + cursor: pointer; + color: var(--text); +} + +.cloud-sort-menu button:hover { + background: var(--surface-subtle); +} + +.cloud-sort-menu button.active { + font-weight: 600; +} + +.cloud-controls { + display: flex; + align-items: center; + gap: 14px; + margin-top: 18px; +} + +.cloud-search { + flex: 1; + max-width: 520px; + display: flex; + align-items: center; + gap: 9px; + height: 40px; + padding: 0 13px; + border: 1px solid var(--border); + border-radius: 10px; + background: var(--surface); + color: var(--text-muted); +} + +.cloud-search:focus-within { + border-color: var(--accent); +} + +.cloud-search input { + flex: 1; + min-width: 0; + border: none; + outline: none; + background: transparent; + font-size: 14px; + color: var(--text); +} + +.cloud-seg { + display: flex; + background: #f0f1f3; + border-radius: 10px; + padding: 3px; + flex-shrink: 0; +} + +.cloud-seg button { + border: none; + background: none; + padding: 7px 15px; + font-size: 13px; + color: var(--text-secondary); + border-radius: 8px; + cursor: pointer; + white-space: nowrap; +} + +.cloud-seg button.active { + background: var(--surface); + color: var(--text); + font-weight: 600; + box-shadow: 0 1px 2px rgb(0 0 0 / 8%); +} + +.cloud-scroll { + flex: 1; + min-height: 0; + overflow-y: auto; + margin-top: 4px; +} + +.cloud-list { + list-style: none; + margin: 0; + padding: 0; +} + +.cloud-group-label { + font-size: 12px; + font-weight: 600; + letter-spacing: 0.08em; + text-transform: uppercase; + color: var(--text-muted); + padding: 24px 12px 10px; +} + +.cloud-list li:first-child.cloud-group-label { + padding-top: 14px; +} + +.cloud-list li + li:not(.cloud-group-label) .cloud-row { + border-top: 1px solid #f1f2f4; +} + +.cloud-row { + display: flex; + align-items: center; + gap: 13px; + width: 100%; + padding: 15px 12px; + border: none; + background: none; + cursor: pointer; + text-align: left; + font: inherit; + color: var(--text); + border-radius: 10px; +} + +.cloud-row:hover { + background: var(--surface-subtle); + border-color: transparent; +} + +.cloud-row:hover + li .cloud-row { + border-top-color: transparent; +} + +.cloud-row:focus-visible { + outline: 2px solid var(--accent); + outline-offset: -2px; +} + +/* title + trailing external icon; the icon hugs the text and survives truncation */ +.cloud-row-main { + flex: 1; + min-width: 0; + display: flex; + align-items: center; + gap: 11px; +} + +.cloud-row-title { + flex: 0 1 auto; + min-width: 0; + font-size: 14px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.cloud-row-time { + flex-shrink: 0; + font-size: 12px; + color: var(--text-muted); + white-space: nowrap; + font-variant-numeric: tabular-nums; +} + +/* always visible so rows read as external links; darkens on hover */ +.cloud-row-external { + flex-shrink: 0; + color: #c9ced4; +} + +.cloud-row:hover .cloud-row-external, +.cloud-row:focus-visible .cloud-row-external { + color: var(--text-secondary); +} + +/* right-aligned to match the sidebar count column (22px, centered digits) */ +.nav-external { + flex-shrink: 0; + margin-left: auto; + margin-right: 4px; + color: var(--text-muted); +} + +.cloud-actions { + display: flex; + align-items: center; + gap: 10px; + flex-shrink: 0; +} + +.cloud-refresh-btn { + display: flex; + align-items: center; + justify-content: center; + width: 34px; + height: 34px; + border: 1px solid var(--border); + background: var(--surface); + border-radius: 10px; + color: var(--text); + cursor: pointer; +} + +.cloud-refresh-btn:hover:not(:disabled) { + background: var(--surface-subtle); +} + +.cloud-refresh-btn.syncing svg { + animation: cloud-refresh-spin 0.9s linear infinite; + color: var(--text-muted); +} + +@keyframes cloud-refresh-spin { + to { + transform: rotate(360deg); + } +} diff --git a/apps/shell/src/renderer/src/strings.ts b/apps/shell/src/renderer/src/strings.ts index d5312e3..4589b0c 100644 --- a/apps/shell/src/renderer/src/strings.ts +++ b/apps/shell/src/renderer/src/strings.ts @@ -4,6 +4,22 @@ export const strings = { // Sidebar navigation navRecent: '最近', navStarred: '收藏', + navCloud: 'Genspark Projects', + cloudSubtitle: '在网页端用 Genspark AI 创建的项目。编辑在浏览器中继续——点击任意项目即可打开。', + cloudSearchPlaceholder: '搜索 {n} 个项目…', + cloudNoResults: '没有匹配的项目。', + cloudGroupThisWeek: '本周', + cloudGroupThisMonth: '本月', + cloudSortLabel: '排序:{v}', + cloudSortRecent: '最近', + cloudSortOldest: '最早', + cloudRefresh: '刷新', + cloudLoginHint: '登录 Genspark 账号,查看你在网页端创建的项目。', + cloudEmpty: '还没有网页端项目。', + cloudError: '加载失败,请稍后重试。', + cloudRetry: '重试', + cloudLoadMore: '加载更多', + cloudOpenInBrowser: '在浏览器中打开', navTrash: '回收站', navTrashTip: '删除的文件在系统废纸篓中,可从那里还原', secQuickStart: '快速开始', @@ -134,6 +150,23 @@ export const strings = { en: { navRecent: 'Recent', navStarred: 'Starred', + navCloud: 'Genspark Projects', + cloudSubtitle: + 'Projects created on the web with Genspark AI. Editing continues in your browser — click any project to open it.', + cloudSearchPlaceholder: 'Search {n} projects…', + cloudNoResults: 'No matching projects.', + cloudGroupThisWeek: 'This week', + cloudGroupThisMonth: 'Earlier this month', + cloudSortLabel: 'Sort: {v}', + cloudSortRecent: 'Recent', + cloudSortOldest: 'Oldest', + cloudRefresh: 'Refresh', + cloudLoginHint: 'Sign in to your Genspark account to see projects you created on the web.', + cloudEmpty: 'No web projects yet.', + cloudError: 'Failed to load. Try again later.', + cloudRetry: 'Retry', + cloudLoadMore: 'Load more', + cloudOpenInBrowser: 'Open in browser', navTrash: 'Trash', navTrashTip: 'Deleted files go to the system Trash and can be restored there', secQuickStart: 'QUICK START', @@ -260,6 +293,24 @@ export const strings = { // Sidebar navigation navRecent: '最近使用', navStarred: 'お気に入り', + navCloud: 'Genspark Projects', + cloudSubtitle: + 'Web で Genspark AI を使って作成したプロジェクト。編集はブラウザで続行します。クリックで開きます。', + cloudSearchPlaceholder: '{n} 件のプロジェクトを検索…', + cloudNoResults: '一致するプロジェクトはありません。', + cloudGroupThisWeek: '今週', + cloudGroupThisMonth: '今月', + cloudSortLabel: '並び替え: {v}', + cloudSortRecent: '新しい順', + cloudSortOldest: '古い順', + cloudRefresh: '更新', + cloudLoginHint: + 'Genspark アカウントにサインインすると、Web で作成したプロジェクトを表示できます。', + cloudEmpty: 'Web のプロジェクトはまだありません。', + cloudError: '読み込みに失敗しました。後でもう一度お試しください。', + cloudRetry: '再試行', + cloudLoadMore: 'もっと見る', + cloudOpenInBrowser: 'ブラウザで開く', navTrash: 'ゴミ箱', navTrashTip: '削除したファイルはシステムのゴミ箱に移動され、そこから復元できます', // Section headings @@ -400,6 +451,23 @@ export const strings = { // Sidebar navigation navRecent: '최근 사용', navStarred: '즐겨찾기', + navCloud: 'Genspark Projects', + cloudSubtitle: + 'Genspark AI로 웹에서 만든 프로젝트입니다. 편집은 브라우저에서 계속됩니다. 프로젝트를 클릭하면 열립니다.', + cloudSearchPlaceholder: '프로젝트 {n}개 검색…', + cloudNoResults: '일치하는 프로젝트가 없습니다.', + cloudGroupThisWeek: '이번 주', + cloudGroupThisMonth: '이번 달', + cloudSortLabel: '정렬: {v}', + cloudSortRecent: '최신순', + cloudSortOldest: '오래된순', + cloudRefresh: '새로고침', + cloudLoginHint: 'Genspark 계정에 로그인하면 웹에서 만든 프로젝트를 볼 수 있습니다.', + cloudEmpty: '아직 웹 프로젝트가 없습니다.', + cloudError: '불러오지 못했습니다. 나중에 다시 시도해 주세요.', + cloudRetry: '다시 시도', + cloudLoadMore: '더 보기', + cloudOpenInBrowser: '브라우저에서 열기', navTrash: '휴지통', navTrashTip: '삭제된 파일은 시스템 휴지통으로 이동되며 그곳에서 복원할 수 있습니다', // Section headings @@ -536,6 +604,24 @@ export const strings = { // Sidebar navigation navRecent: 'Récents', navStarred: 'Favoris', + navCloud: 'Genspark Projects', + cloudSubtitle: + "Projets créés sur le web avec Genspark AI. L'édition continue dans votre navigateur — cliquez sur un projet pour l'ouvrir.", + cloudSearchPlaceholder: 'Rechercher parmi {n} projets…', + cloudNoResults: 'Aucun projet correspondant.', + cloudGroupThisWeek: 'Cette semaine', + cloudGroupThisMonth: 'Plus tôt ce mois-ci', + cloudSortLabel: 'Tri : {v}', + cloudSortRecent: 'Récents', + cloudSortOldest: 'Plus anciens', + cloudRefresh: 'Actualiser', + cloudLoginHint: + 'Connectez-vous à votre compte Genspark pour voir les projets créés sur le web.', + cloudEmpty: 'Aucun projet web pour le moment.', + cloudError: 'Échec du chargement. Réessayez plus tard.', + cloudRetry: 'Réessayer', + cloudLoadMore: 'Charger plus', + cloudOpenInBrowser: 'Ouvrir dans le navigateur', navTrash: 'Corbeille', navTrashTip: 'Les fichiers supprimés sont placés dans la corbeille du système et peuvent y être restaurés', @@ -676,6 +762,24 @@ export const strings = { // Sidebar navigation navRecent: 'Zuletzt verwendet', navStarred: 'Favoriten', + navCloud: 'Genspark Projects', + cloudSubtitle: + 'Mit Genspark AI im Web erstellte Projekte. Die Bearbeitung läuft im Browser weiter – klicken Sie auf ein Projekt, um es zu öffnen.', + cloudSearchPlaceholder: '{n} Projekte durchsuchen…', + cloudNoResults: 'Keine passenden Projekte.', + cloudGroupThisWeek: 'Diese Woche', + cloudGroupThisMonth: 'Früher in diesem Monat', + cloudSortLabel: 'Sortierung: {v}', + cloudSortRecent: 'Neueste', + cloudSortOldest: 'Älteste', + cloudRefresh: 'Aktualisieren', + cloudLoginHint: + 'Melden Sie sich bei Ihrem Genspark-Konto an, um Ihre im Web erstellten Projekte zu sehen.', + cloudEmpty: 'Noch keine Web-Projekte.', + cloudError: 'Laden fehlgeschlagen. Bitte später erneut versuchen.', + cloudRetry: 'Erneut versuchen', + cloudLoadMore: 'Mehr laden', + cloudOpenInBrowser: 'Im Browser öffnen', navTrash: 'Papierkorb', navTrashTip: 'Gelöschte Dateien werden in den System-Papierkorb verschoben und können dort wiederhergestellt werden', @@ -818,6 +922,24 @@ export const strings = { // Sidebar navigation navRecent: 'Recientes', navStarred: 'Destacados', + navCloud: 'Genspark Projects', + cloudSubtitle: + 'Proyectos creados en la web con Genspark AI. La edición continúa en tu navegador: haz clic en un proyecto para abrirlo.', + cloudSearchPlaceholder: 'Buscar entre {n} proyectos…', + cloudNoResults: 'No hay proyectos coincidentes.', + cloudGroupThisWeek: 'Esta semana', + cloudGroupThisMonth: 'Este mes', + cloudSortLabel: 'Orden: {v}', + cloudSortRecent: 'Recientes', + cloudSortOldest: 'Más antiguos', + cloudRefresh: 'Actualizar', + cloudLoginHint: + 'Inicia sesión en tu cuenta de Genspark para ver los proyectos creados en la web.', + cloudEmpty: 'Aún no hay proyectos en la web.', + cloudError: 'Error al cargar. Inténtalo más tarde.', + cloudRetry: 'Reintentar', + cloudLoadMore: 'Cargar más', + cloudOpenInBrowser: 'Abrir en el navegador', navTrash: 'Papelera', navTrashTip: 'Los archivos eliminados van a la papelera del sistema y pueden restaurarse desde allí', @@ -959,6 +1081,23 @@ export const strings = { // Sidebar navigation navRecent: 'ล่าสุด', navStarred: 'รายการโปรด', + navCloud: 'Genspark Projects', + cloudSubtitle: + 'โปรเจกต์ที่สร้างบนเว็บด้วย Genspark AI แก้ไขต่อได้ในเบราว์เซอร์ — คลิกโปรเจกต์เพื่อเปิด', + cloudSearchPlaceholder: 'ค้นหา {n} โปรเจกต์…', + cloudNoResults: 'ไม่มีโปรเจกต์ที่ตรงกัน', + cloudGroupThisWeek: 'สัปดาห์นี้', + cloudGroupThisMonth: 'เดือนนี้', + cloudSortLabel: 'เรียง: {v}', + cloudSortRecent: 'ล่าสุด', + cloudSortOldest: 'เก่าสุด', + cloudRefresh: 'รีเฟรช', + cloudLoginHint: 'ลงชื่อเข้าใช้บัญชี Genspark เพื่อดูโปรเจกต์ที่คุณสร้างบนเว็บ', + cloudEmpty: 'ยังไม่มีโปรเจกต์บนเว็บ', + cloudError: 'โหลดไม่สำเร็จ โปรดลองอีกครั้งภายหลัง', + cloudRetry: 'ลองอีกครั้ง', + cloudLoadMore: 'โหลดเพิ่มเติม', + cloudOpenInBrowser: 'เปิดในเบราว์เซอร์', navTrash: 'ถังขยะ', navTrashTip: 'ไฟล์ที่ถูกลบจะถูกย้ายไปยังถังขยะของระบบ และสามารถกู้คืนได้จากที่นั่น', // Section headings @@ -1094,6 +1233,23 @@ export const strings = { // Sidebar navigation navRecent: 'Terbaru', navStarred: 'Berbintang', + navCloud: 'Genspark Projects', + cloudSubtitle: + 'Proyek yang dibuat di web dengan Genspark AI. Pengeditan berlanjut di browser — klik proyek untuk membukanya.', + cloudSearchPlaceholder: 'Cari {n} proyek…', + cloudNoResults: 'Tidak ada proyek yang cocok.', + cloudGroupThisWeek: 'Minggu ini', + cloudGroupThisMonth: 'Bulan ini', + cloudSortLabel: 'Urutkan: {v}', + cloudSortRecent: 'Terbaru', + cloudSortOldest: 'Terlama', + cloudRefresh: 'Segarkan', + cloudLoginHint: 'Masuk ke akun Genspark untuk melihat proyek yang Anda buat di web.', + cloudEmpty: 'Belum ada proyek web.', + cloudError: 'Gagal memuat. Coba lagi nanti.', + cloudRetry: 'Coba lagi', + cloudLoadMore: 'Muat lebih banyak', + cloudOpenInBrowser: 'Buka di browser', navTrash: 'Sampah', navTrashTip: 'File yang dihapus akan dipindahkan ke tempat sampah sistem dan dapat dipulihkan dari sana', @@ -1232,6 +1388,23 @@ export const strings = { // Sidebar navigation navRecent: 'Недавние', navStarred: 'Избранное', + navCloud: 'Genspark Projects', + cloudSubtitle: + 'Проекты, созданные в вебе с Genspark AI. Редактирование продолжается в браузере — нажмите на проект, чтобы открыть его.', + cloudSearchPlaceholder: 'Поиск среди {n} проектов…', + cloudNoResults: 'Нет подходящих проектов.', + cloudGroupThisWeek: 'На этой неделе', + cloudGroupThisMonth: 'Ранее в этом месяце', + cloudSortLabel: 'Сортировка: {v}', + cloudSortRecent: 'Сначала новые', + cloudSortOldest: 'Сначала старые', + cloudRefresh: 'Обновить', + cloudLoginHint: 'Войдите в аккаунт Genspark, чтобы увидеть проекты, созданные в вебе.', + cloudEmpty: 'Пока нет веб-проектов.', + cloudError: 'Не удалось загрузить. Повторите попытку позже.', + cloudRetry: 'Повторить', + cloudLoadMore: 'Загрузить ещё', + cloudOpenInBrowser: 'Открыть в браузере', navTrash: 'Корзина', navTrashTip: 'Удалённые файлы перемещаются в системную корзину, откуда их можно восстановить', // Section headings @@ -1370,6 +1543,23 @@ export const strings = { // Sidebar navigation navRecent: 'الأخيرة', navStarred: 'المفضلة', + navCloud: 'Genspark Projects', + cloudSubtitle: + 'مشاريع أُنشئت على الويب باستخدام Genspark AI. يستمر التحرير في المتصفح — انقر على أي مشروع لفتحه.', + cloudSearchPlaceholder: 'ابحث في {n} مشروعًا…', + cloudNoResults: 'لا توجد مشاريع مطابقة.', + cloudGroupThisWeek: 'هذا الأسبوع', + cloudGroupThisMonth: 'في وقت سابق من هذا الشهر', + cloudSortLabel: 'الترتيب: {v}', + cloudSortRecent: 'الأحدث', + cloudSortOldest: 'الأقدم', + cloudRefresh: 'تحديث', + cloudLoginHint: 'سجّل الدخول إلى حساب Genspark لعرض المشاريع التي أنشأتها على الويب.', + cloudEmpty: 'لا توجد مشاريع على الويب بعد.', + cloudError: 'فشل التحميل. حاول مرة أخرى لاحقًا.', + cloudRetry: 'إعادة المحاولة', + cloudLoadMore: 'تحميل المزيد', + cloudOpenInBrowser: 'فتح في المتصفح', navTrash: 'سلة المهملات', navTrashTip: 'تُنقل الملفات المحذوفة إلى سلة مهملات النظام ويمكن استعادتها من هناك', // Section headings @@ -1505,6 +1695,23 @@ export const strings = { pt: { navRecent: 'Recentes', navStarred: 'Favoritos', + navCloud: 'Genspark Projects', + cloudSubtitle: + 'Projetos criados na web com o Genspark AI. A edição continua no navegador — clique em um projeto para abri-lo.', + cloudSearchPlaceholder: 'Pesquisar {n} projetos…', + cloudNoResults: 'Nenhum projeto correspondente.', + cloudGroupThisWeek: 'Esta semana', + cloudGroupThisMonth: 'Este mês', + cloudSortLabel: 'Ordenar: {v}', + cloudSortRecent: 'Recentes', + cloudSortOldest: 'Mais antigos', + cloudRefresh: 'Atualizar', + cloudLoginHint: 'Entre na sua conta Genspark para ver os projetos criados na web.', + cloudEmpty: 'Ainda não há projetos na web.', + cloudError: 'Falha ao carregar. Tente novamente mais tarde.', + cloudRetry: 'Tentar novamente', + cloudLoadMore: 'Carregar mais', + cloudOpenInBrowser: 'Abrir no navegador', navTrash: 'Lixeira', navTrashTip: 'Os arquivos excluídos vão para a lixeira do sistema e podem ser restaurados de lá', @@ -1634,6 +1841,23 @@ export const strings = { it: { navRecent: 'Recenti', navStarred: 'Preferiti', + navCloud: 'Genspark Projects', + cloudSubtitle: + 'Progetti creati sul web con Genspark AI. La modifica continua nel browser: fai clic su un progetto per aprirlo.', + cloudSearchPlaceholder: 'Cerca tra {n} progetti…', + cloudNoResults: 'Nessun progetto corrispondente.', + cloudGroupThisWeek: 'Questa settimana', + cloudGroupThisMonth: 'Questo mese', + cloudSortLabel: 'Ordina: {v}', + cloudSortRecent: 'Recenti', + cloudSortOldest: 'Meno recenti', + cloudRefresh: 'Aggiorna', + cloudLoginHint: 'Accedi al tuo account Genspark per vedere i progetti creati sul web.', + cloudEmpty: 'Ancora nessun progetto web.', + cloudError: 'Caricamento non riuscito. Riprova più tardi.', + cloudRetry: 'Riprova', + cloudLoadMore: 'Carica altri', + cloudOpenInBrowser: 'Apri nel browser', navTrash: 'Cestino', navTrashTip: 'I file eliminati vengono spostati nel cestino di sistema e possono essere ripristinati da lì', @@ -1763,6 +1987,23 @@ export const strings = { pl: { navRecent: 'Ostatnie', navStarred: 'Ulubione', + navCloud: 'Genspark Projects', + cloudSubtitle: + 'Projekty utworzone w sieci za pomocą Genspark AI. Edycja jest kontynuowana w przeglądarce — kliknij projekt, aby go otworzyć.', + cloudSearchPlaceholder: 'Szukaj wśród {n} projektów…', + cloudNoResults: 'Brak pasujących projektów.', + cloudGroupThisWeek: 'W tym tygodniu', + cloudGroupThisMonth: 'Wcześniej w tym miesiącu', + cloudSortLabel: 'Sortuj: {v}', + cloudSortRecent: 'Najnowsze', + cloudSortOldest: 'Najstarsze', + cloudRefresh: 'Odśwież', + cloudLoginHint: 'Zaloguj się na konto Genspark, aby zobaczyć projekty utworzone w sieci.', + cloudEmpty: 'Brak projektów w sieci.', + cloudError: 'Nie udało się wczytać. Spróbuj ponownie później.', + cloudRetry: 'Spróbuj ponownie', + cloudLoadMore: 'Wczytaj więcej', + cloudOpenInBrowser: 'Otwórz w przeglądarce', navTrash: 'Kosz', navTrashTip: 'Usunięte pliki trafiają do systemowego kosza i można je stamtąd przywrócić', secQuickStart: 'SZYBKI START', @@ -1891,6 +2132,24 @@ export const strings = { nl: { navRecent: 'Recent', navStarred: 'Favorieten', + navCloud: 'Genspark Projects', + cloudSubtitle: + 'Projecten gemaakt op het web met Genspark AI. Bewerken gaat verder in je browser — klik op een project om het te openen.', + cloudSearchPlaceholder: 'Zoek in {n} projecten…', + cloudNoResults: 'Geen overeenkomende projecten.', + cloudGroupThisWeek: 'Deze week', + cloudGroupThisMonth: 'Eerder deze maand', + cloudSortLabel: 'Sorteren: {v}', + cloudSortRecent: 'Recent', + cloudSortOldest: 'Oudste', + cloudRefresh: 'Vernieuwen', + cloudLoginHint: + 'Log in op je Genspark-account om projecten te zien die je op het web hebt gemaakt.', + cloudEmpty: 'Nog geen webprojecten.', + cloudError: 'Laden mislukt. Probeer het later opnieuw.', + cloudRetry: 'Opnieuw proberen', + cloudLoadMore: 'Meer laden', + cloudOpenInBrowser: 'Openen in browser', navTrash: 'Prullenbak', navTrashTip: 'Verwijderde bestanden gaan naar de systeemprullenbak en kunnen daar worden hersteld', @@ -2019,6 +2278,23 @@ export const strings = { ms: { navRecent: 'Terkini', navStarred: 'Berbintang', + navCloud: 'Genspark Projects', + cloudSubtitle: + 'Projek yang dicipta di web dengan Genspark AI. Penyuntingan diteruskan dalam pelayar — klik projek untuk membukanya.', + cloudSearchPlaceholder: 'Cari {n} projek…', + cloudNoResults: 'Tiada projek sepadan.', + cloudGroupThisWeek: 'Minggu ini', + cloudGroupThisMonth: 'Bulan ini', + cloudSortLabel: 'Isih: {v}', + cloudSortRecent: 'Terbaru', + cloudSortOldest: 'Terlama', + cloudRefresh: 'Muat semula', + cloudLoginHint: 'Log masuk ke akaun Genspark untuk melihat projek yang anda cipta di web.', + cloudEmpty: 'Belum ada projek web.', + cloudError: 'Gagal memuatkan. Cuba lagi kemudian.', + cloudRetry: 'Cuba lagi', + cloudLoadMore: 'Muat lagi', + cloudOpenInBrowser: 'Buka dalam pelayar', navTrash: 'Tong sampah', navTrashTip: 'Fail yang dipadamkan akan dipindahkan ke tong sampah sistem dan boleh dipulihkan dari sana', @@ -2147,6 +2423,23 @@ export const strings = { he: { navRecent: 'אחרונים', navStarred: 'מועדפים', + navCloud: 'Genspark Projects', + cloudSubtitle: + 'פרויקטים שנוצרו באינטרנט עם Genspark AI. העריכה נמשכת בדפדפן — לחצו על פרויקט כדי לפתוח אותו.', + cloudSearchPlaceholder: 'חיפוש בין {n} פרויקטים…', + cloudNoResults: 'אין פרויקטים תואמים.', + cloudGroupThisWeek: 'השבוע', + cloudGroupThisMonth: 'מוקדם יותר החודש', + cloudSortLabel: 'מיון: {v}', + cloudSortRecent: 'החדשים ביותר', + cloudSortOldest: 'הישנים ביותר', + cloudRefresh: 'רענון', + cloudLoginHint: 'התחברו לחשבון Genspark כדי לראות פרויקטים שיצרתם באתר.', + cloudEmpty: 'אין עדיין פרויקטים מהאתר.', + cloudError: 'הטעינה נכשלה. נסו שוב מאוחר יותר.', + cloudRetry: 'נסו שוב', + cloudLoadMore: 'טענו עוד', + cloudOpenInBrowser: 'פתיחה בדפדפן', navTrash: 'אשפה', navTrashTip: 'קבצים שנמחקו עוברים לאשפה של המערכת וניתן לשחזר אותם משם', secQuickStart: 'התחלה מהירה', @@ -2271,6 +2564,23 @@ export const strings = { hi: { navRecent: 'हाल के', navStarred: 'तारांकित', + navCloud: 'Genspark Projects', + cloudSubtitle: + 'Genspark AI के साथ वेब पर बनाए गए प्रोजेक्ट। संपादन ब्राउज़र में जारी रहता है — खोलने के लिए किसी प्रोजेक्ट पर क्लिक करें।', + cloudSearchPlaceholder: '{n} प्रोजेक्ट खोजें…', + cloudNoResults: 'कोई मिलान वाला प्रोजेक्ट नहीं।', + cloudGroupThisWeek: 'इस सप्ताह', + cloudGroupThisMonth: 'इस महीने', + cloudSortLabel: 'क्रम: {v}', + cloudSortRecent: 'हाल के', + cloudSortOldest: 'सबसे पुराने', + cloudRefresh: 'रीफ़्रेश', + cloudLoginHint: 'वेब पर बनाए गए प्रोजेक्ट देखने के लिए अपने Genspark खाते में साइन इन करें।', + cloudEmpty: 'अभी तक कोई वेब प्रोजेक्ट नहीं है।', + cloudError: 'लोड नहीं हो सका। बाद में फिर से कोशिश करें।', + cloudRetry: 'फिर से कोशिश करें', + cloudLoadMore: 'और लोड करें', + cloudOpenInBrowser: 'ब्राउज़र में खोलें', navTrash: 'ट्रैश', navTrashTip: 'हटाई गई फ़ाइलें सिस्टम ट्रैश में जाती हैं और वहाँ से पुनर्स्थापित की जा सकती हैं', secQuickStart: 'त्वरित प्रारंभ', @@ -2400,6 +2710,22 @@ export const strings = { 'zh-TW': { navRecent: '最近', navStarred: '收藏', + navCloud: 'Genspark Projects', + cloudSubtitle: '在網頁端用 Genspark AI 建立的專案。編輯在瀏覽器中繼續——點擊任意專案即可開啟。', + cloudSearchPlaceholder: '搜尋 {n} 個專案…', + cloudNoResults: '沒有符合的專案。', + cloudGroupThisWeek: '本週', + cloudGroupThisMonth: '本月', + cloudSortLabel: '排序:{v}', + cloudSortRecent: '最近', + cloudSortOldest: '最早', + cloudRefresh: '重新整理', + cloudLoginHint: '登入 Genspark 帳號,查看你在網頁端建立的專案。', + cloudEmpty: '還沒有網頁端專案。', + cloudError: '載入失敗,請稍後再試。', + cloudRetry: '重試', + cloudLoadMore: '載入更多', + cloudOpenInBrowser: '在瀏覽器中開啟', navTrash: '垃圾桶', navTrashTip: '刪除的檔案會移至系統垃圾桶,可從那裡還原', secQuickStart: '快速開始', diff --git a/apps/shell/src/shared/home-api.ts b/apps/shell/src/shared/home-api.ts index a7b5d11..16c3d8a 100644 --- a/apps/shell/src/shared/home-api.ts +++ b/apps/shell/src/shared/home-api.ts @@ -111,6 +111,36 @@ export interface HomeApi { setOnboardingSeen(): Promise /** open the GenTeam community page in the default browser */ openGenTeam(): Promise + /** locally stored full cloud project list (instant; null when no store or logged out) */ + cloudProjectsCached(): Promise + /** sync the full list from Genspark and return it (1 request when nothing changed); null when the sync failed */ + cloudProjectsSync(): Promise + /** open a cloud project (relative '/agents?id=...' URL) in the default browser */ + openCloudProject(projectUrl: string): Promise +} + +export type CloudProjectKind = 'docs' | 'sheets' | 'slides' + +/** a Genspark web project shown in the home cloud section */ +export interface CloudProjectEntry { + projectId: string + title: string + /** module kind derived from the API project type ('docs_agent' → 'docs') */ + kind: CloudProjectKind | 'other' + /** creation time, ms since epoch (0 when unparsable) */ + ctimeMs: number + /** relative genspark.ai URL ('/agents?id=...') */ + projectUrl: string +} + +/** full local copy of the cloud project list; filtering/paging are client-side */ +export interface CloudProjectsSnapshot { + /** false when gsk is unavailable (CLI missing or not logged in) */ + available: boolean + /** all projects, newest first */ + projects: CloudProjectEntry[] + /** ms epoch of the last successful sync (0 when never synced) */ + syncedAt: number } export interface AccountStatus { @@ -203,6 +233,9 @@ export const HOME_CHANNELS = { onboardingSeen: 'home:onboarding-seen', setOnboardingSeen: 'home:set-onboarding-seen', openGenTeam: 'home:open-genteam', + cloudProjects: 'home:cloud-projects', + cloudProjectsCached: 'home:cloud-projects-cached', + openCloudProject: 'home:open-cloud-project', } as const export const PROJECT_CHANNELS = { diff --git a/apps/shell/tests/cloud-projects.test.ts b/apps/shell/tests/cloud-projects.test.ts new file mode 100644 index 0000000..905aad9 --- /dev/null +++ b/apps/shell/tests/cloud-projects.test.ts @@ -0,0 +1,167 @@ +import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest' +import { existsSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs' +import { tmpdir } from 'node:os' +import { join } from 'node:path' +import { gskListPastProjects, type GskPastProjectsPage } from '@genoffice/ai-search' +import { + cloudStoreOwner, + clearCloudProjectsStore, + readCloudProjectsStore, + syncCloudProjects, +} from '../src/main/cloud-projects' + +vi.mock('@genoffice/ai-search', async (importOriginal) => { + const actual = await importOriginal() + return { ...actual, gskListPastProjects: vi.fn() } +}) + +const listMock = vi.mocked(gskListPastProjects) + +const PROJECTS = [ + { + projectId: 'aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee', + title: 'Deck A', + kind: 'slides', + ctimeMs: 1_700_000_000_000, + projectUrl: '/agents?id=aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee', + }, +] + +describe('cloud projects store account binding', () => { + let dir: string + let storePath: string + const envBefore = { key: process.env.GSK_API_KEY, disable: process.env.AI_SEARCH_DISABLE_GSK } + + beforeEach(() => { + dir = mkdtempSync(join(tmpdir(), 'cloud-store-')) + storePath = join(dir, 'cloud-projects.json') + delete process.env.AI_SEARCH_DISABLE_GSK + process.env.GSK_API_KEY = 'test-key-account-a' + }) + + afterEach(() => { + rmSync(dir, { recursive: true, force: true }) + if (envBefore.key === undefined) delete process.env.GSK_API_KEY + else process.env.GSK_API_KEY = envBefore.key + if (envBefore.disable === undefined) delete process.env.AI_SEARCH_DISABLE_GSK + else process.env.AI_SEARCH_DISABLE_GSK = envBefore.disable + }) + + const writeStore = (owner: string) => { + writeFileSync( + storePath, + JSON.stringify({ available: true, projects: PROJECTS, syncedAt: 123, owner }), + ) + } + + it('derives the owner tag from the key without containing it', () => { + const tag = cloudStoreOwner() + expect(tag).toMatch(/^[0-9a-f]{16}$/) + expect(tag).not.toContain('test-key') + process.env.GSK_API_KEY = 'test-key-account-b' + expect(cloudStoreOwner()).not.toBe(tag) + }) + + it('serves the store back to the same account', () => { + writeStore(cloudStoreOwner()) + const snap = readCloudProjectsStore(storePath) + expect(snap?.projects.map((p) => p.title)).toEqual(['Deck A']) + expect(snap?.syncedAt).toBe(123) + }) + + it("rejects and deletes another account's store", () => { + writeStore(cloudStoreOwner()) + process.env.GSK_API_KEY = 'test-key-account-b' + expect(readCloudProjectsStore(storePath)).toBeNull() + expect(existsSync(storePath)).toBe(false) + }) + + it('rejects a legacy store without an owner tag', () => { + writeFileSync(storePath, JSON.stringify({ available: true, projects: PROJECTS, syncedAt: 1 })) + expect(readCloudProjectsStore(storePath)).toBeNull() + }) + + it('clearCloudProjectsStore removes the file and tolerates a missing one', () => { + writeStore(cloudStoreOwner()) + clearCloudProjectsStore(storePath) + expect(existsSync(storePath)).toBe(false) + clearCloudProjectsStore(storePath) + }) +}) + +describe('cloud projects sync account isolation', () => { + let dir: string + let storePath: string + const envBefore = { key: process.env.GSK_API_KEY, disable: process.env.AI_SEARCH_DISABLE_GSK } + + const pageFor = (title: string): GskPastProjectsPage => ({ + projects: [ + { + projectId: `id-${title}`, + type: 'slides_agent_git', + title, + ctime: '2026-08-01T00:00:00', + projectUrl: `/agents?id=id-${title}`, + }, + ], + total: 1, + hasMore: false, + }) + + beforeEach(() => { + dir = mkdtempSync(join(tmpdir(), 'cloud-sync-')) + storePath = join(dir, 'cloud-projects.json') + delete process.env.AI_SEARCH_DISABLE_GSK + process.env.GSK_API_KEY = 'test-key-account-a' + listMock.mockReset() + }) + + afterEach(() => { + rmSync(dir, { recursive: true, force: true }) + if (envBefore.key === undefined) delete process.env.GSK_API_KEY + else process.env.GSK_API_KEY = envBefore.key + if (envBefore.disable === undefined) delete process.env.AI_SEARCH_DISABLE_GSK + else process.env.AI_SEARCH_DISABLE_GSK = envBefore.disable + }) + + it('writes the store bound to the account that synced', async () => { + listMock.mockResolvedValue(pageFor('Deck A')) + const snap = await syncCloudProjects(storePath) + expect(snap.projects.map((p) => p.title)).toEqual(['Deck A']) + expect(readCloudProjectsStore(storePath)?.projects[0]?.title).toBe('Deck A') + }) + + it('aborts without touching the store when the account switches mid-sync', async () => { + listMock.mockImplementation(async () => { + // the page comes back after the user has switched accounts + process.env.GSK_API_KEY = 'test-key-account-b' + return pageFor('Deck B') + }) + await expect(syncCloudProjects(storePath)).rejects.toThrow(/account changed/) + expect(existsSync(storePath)).toBe(false) + }) + + it('does not share an in-flight sync across accounts', async () => { + const gates: Array<(page: GskPastProjectsPage) => void> = [] + listMock.mockImplementation( + () => new Promise((resolve) => gates.push(resolve)), + ) + + const first = syncCloudProjects(storePath) + expect(syncCloudProjects(storePath)).toBe(first) // same account shares the run + + process.env.GSK_API_KEY = 'test-key-account-b' + const second = syncCloudProjects(storePath) + expect(second).not.toBe(first) + expect(listMock).toHaveBeenCalledTimes(2) + + gates[0]!(pageFor('Deck A')) + gates[1]!(pageFor('Deck B')) + + // the run started for account A sees the key changed and aborts + await expect(first).rejects.toThrow(/account changed/) + const snapB = await second + expect(snapB.projects.map((p) => p.title)).toEqual(['Deck B']) + expect(readCloudProjectsStore(storePath)?.projects[0]?.title).toBe('Deck B') + }) +}) diff --git a/apps/shell/tests/error-dialog.test.ts b/apps/shell/tests/error-dialog.test.ts new file mode 100644 index 0000000..e33aa46 --- /dev/null +++ b/apps/shell/tests/error-dialog.test.ts @@ -0,0 +1,93 @@ +import { beforeEach, describe, expect, it, vi } from 'vitest' +import type { BrowserWindow } from 'electron' + +/** + * showErrorDialog (src/main/error-dialog.ts): surfacing a create-tab failure + * must never block the main process. dialog.showErrorBox is synchronous on + * Windows (parentless TaskDialog): with the box unnoticed behind the shell + * window, main-process JS stays parked in its nested pump, so every click, + * native menu item and the window close button die with no "(Not Responding)" + * — the alpha row-51 full-UI wedge. These tests simulate that scenario: an + * error dialog nobody ever dismisses while failures keep coming. + */ + +const showMessageBox = vi.fn<(...args: unknown[]) => Promise>() +const showErrorBox = vi.fn() + +vi.mock('electron', () => ({ + dialog: { + showMessageBox: (...args: unknown[]) => showMessageBox(...args), + showErrorBox: (...args: unknown[]) => showErrorBox(...args), + }, +})) + +function fakeWindow(destroyed = false): BrowserWindow { + return { isDestroyed: () => destroyed } as unknown as BrowserWindow +} + +let showErrorDialog: typeof import('../src/main/error-dialog').showErrorDialog + +beforeEach(async () => { + vi.resetModules() + showMessageBox.mockReset() + showErrorBox.mockReset() + showMessageBox.mockImplementation(() => new Promise(() => {})) + showErrorDialog = (await import('../src/main/error-dialog')).showErrorDialog +}) + +describe('showErrorDialog', () => { + it('uses the async parented message box, never the blocking showErrorBox', () => { + const win = fakeWindow() + showErrorDialog(win, 'Could not create the new document', new Error('spawn EACCES')) + expect(showErrorBox).not.toHaveBeenCalled() + expect(showMessageBox).toHaveBeenCalledTimes(1) + expect(showMessageBox).toHaveBeenCalledWith(win, { + type: 'error', + message: 'Could not create the new document', + detail: 'spawn EACCES', + }) + }) + + it('returns synchronously even though the dialog is never dismissed', () => { + // A hung dialog promise must not propagate: the caller (ipc handler / + // menu click) has to finish so later input keeps being processed. + const before = Date.now() + showErrorDialog(fakeWindow(), 'boom', new Error('x')) + expect(Date.now() - before).toBeLessThan(50) + }) + + it('does not stack dialogs while one is still open (repeated create failures)', async () => { + let dismiss!: (v: unknown) => void + showMessageBox.mockImplementation(() => new Promise((resolve) => (dismiss = resolve))) + const win = fakeWindow() + // row-51 sequence: AI Sheets, File > New > AI Sheets, AI Slides, AI Docs + showErrorDialog(win, 'fail', new Error('1')) + showErrorDialog(win, 'fail', new Error('2')) + showErrorDialog(win, 'fail', new Error('3')) + showErrorDialog(win, 'fail', new Error('4')) + expect(showMessageBox).toHaveBeenCalledTimes(1) + + dismiss({ response: 0 }) + await Promise.resolve() + showErrorDialog(win, 'fail', new Error('5')) + expect(showMessageBox).toHaveBeenCalledTimes(2) + }) + + it('falls back to an unparented async dialog when the shell window is gone', async () => { + showMessageBox.mockImplementation(() => Promise.resolve({ response: 0 })) + showErrorDialog(null, 'fail', new Error('no window')) + await Promise.resolve() + showErrorDialog(fakeWindow(true), 'fail', 'plain string') + expect(showMessageBox).toHaveBeenNthCalledWith(1, { + type: 'error', + message: 'fail', + detail: 'no window', + }) + expect(showMessageBox).toHaveBeenNthCalledWith(2, { + type: 'error', + message: 'fail', + detail: 'plain string', + }) + expect(showErrorBox).not.toHaveBeenCalled() + }) +}) diff --git a/apps/slides/package.json b/apps/slides/package.json index fc544d7..17dc56b 100644 --- a/apps/slides/package.json +++ b/apps/slides/package.json @@ -32,7 +32,7 @@ "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^5.0.4", - "electron": "^41.0.3", + "electron": "^43.3.0", "electron-builder": "^26.0.12", "electron-vite": "^5.0.0", "jsdom": "^28.0.0", @@ -49,7 +49,7 @@ "build": { "appId": "com.genoffice.slides", "productName": "GenOffice Slides", - "electronVersion": "41.7.1", + "electronVersion": "43.3.0", "directories": { "output": "release" }, diff --git a/apps/slides/src/main/attachments-ipc.ts b/apps/slides/src/main/attachments-ipc.ts index fbe225c..6ae33a3 100644 --- a/apps/slides/src/main/attachments-ipc.ts +++ b/apps/slides/src/main/attachments-ipc.ts @@ -8,6 +8,7 @@ import { app, dialog, ipcMain } from 'electron' import { mkdirSync, readFileSync, statSync, writeFileSync } from 'node:fs' import { basename, join } from 'node:path' +import { showOpenDialogWithMemory } from '@genoffice/electron-utils' import { parseFileToText } from '@genoffice/file-parse' import type { AttachmentAddResult, @@ -159,9 +160,7 @@ export function registerAttachmentIpc(): void { ], properties: ['openFile' as const, 'multiSelections' as const], } - const r = parent - ? await dialog.showOpenDialog(parent, options) - : await dialog.showOpenDialog(options) + const r = await showOpenDialogWithMemory(dialog, parent, options) if (r.canceled || r.filePaths.length === 0) return null return collectAttachments(r.filePaths) }) diff --git a/apps/slides/src/main/slides-main.ts b/apps/slides/src/main/slides-main.ts index e32076a..628b8ba 100644 --- a/apps/slides/src/main/slides-main.ts +++ b/apps/slides/src/main/slides-main.ts @@ -31,6 +31,8 @@ import { installContextMenu, installNavigationGuard, safeExternalUrl, + showOpenDialogWithMemory, + showSaveDialogWithMemory, } from '@genoffice/electron-utils' import { getUiLang, normalizeLang, setUiLang } from '@genoffice/i18n' import { ProjectStore } from '@genoffice/project-store' @@ -953,9 +955,7 @@ export function registerSlidesIpc(): void { properties: ['openFile' as const], filters: [{ name: 'PowerPoint', extensions: ['pptx', 'ppt'] }], } - const r = parent - ? await dialog.showOpenDialog(parent, options) - : await dialog.showOpenDialog(options) + const r = await showOpenDialogWithMemory(dialog, parent, options) if (r.canceled || !r.filePaths[0]) return null if (await rejectLegacyPpt(r.filePaths[0])) return null return openAndBuild(e.sender, r.filePaths[0], fitWidthPx) @@ -1768,9 +1768,7 @@ export function registerSlidesIpc(): void { }, ], } - const r = parent - ? await dialog.showOpenDialog(parent, options) - : await dialog.showOpenDialog(options) + const r = await showOpenDialogWithMemory(dialog, parent, options) if (r.canceled || !r.filePaths[0]) return null const bytes = await readFile(r.filePaths[0]) const ext = r.filePaths[0].split('.').pop()!.toLowerCase() @@ -1799,9 +1797,7 @@ export function registerSlidesIpc(): void { }, ], } - const r = parent - ? await dialog.showOpenDialog(parent, options) - : await dialog.showOpenDialog(options) + const r = await showOpenDialogWithMemory(dialog, parent, options) if (r.canceled || !r.filePaths[0]) return null const filePath = r.filePaths[0] const bytes = await readFile(filePath) @@ -2742,9 +2738,7 @@ export function registerSlidesIpc(): void { properties: ['openFile' as const], filters, } - const r = parent - ? await dialog.showOpenDialog(parent, options) - : await dialog.showOpenDialog(options) + const r = await showOpenDialogWithMemory(dialog, parent, options) if (r.canceled || !r.filePaths[0]) return null const filePath = r.filePaths[0] const bytes = await readFile(filePath) @@ -2903,9 +2897,7 @@ export function registerSlidesIpc(): void { properties: ['openFile' as const], filters: [{ name: tm('filter3d'), extensions: ['glb', 'gltf'] }], } - const r = parent - ? await dialog.showOpenDialog(parent, options) - : await dialog.showOpenDialog(options) + const r = await showOpenDialogWithMemory(dialog, parent, options) if (r.canceled || !r.filePaths[0]) return null const filePath = r.filePaths[0] const bytes = await readFile(filePath) @@ -3403,9 +3395,7 @@ export function registerSlidesIpc(): void { defaultPath: defaultName, filters: [{ name: 'PowerPoint', extensions: ['pptx'] }], } - const r = parent - ? await dialog.showSaveDialog(parent, options) - : await dialog.showSaveDialog(options) + const r = await showSaveDialogWithMemory(dialog, parent, options) if (r.canceled || !r.filePath) return { ok: false } try { await savePptxToFile(session.opened, r.filePath) @@ -3435,9 +3425,7 @@ export function registerSlidesIpc(): void { buttonLabel: tm('btnExport'), properties: ['openDirectory' as const, 'createDirectory' as const], } - const r = parent - ? await dialog.showOpenDialog(parent, options) - : await dialog.showOpenDialog(options) + const r = await showOpenDialogWithMemory(dialog, parent, options) return r.canceled || !r.filePaths[0] ? null : r.filePaths[0] }) @@ -3467,9 +3455,7 @@ export function registerSlidesIpc(): void { defaultPath: defaultName, filters: [{ name: 'PDF', extensions: ['pdf'] }], } - const r = parent - ? await dialog.showSaveDialog(parent, options) - : await dialog.showSaveDialog(options) + const r = await showSaveDialogWithMemory(dialog, parent, options) return r.canceled || !r.filePath ? null : r.filePath }) @@ -3898,7 +3884,9 @@ async function applyMainProcessProxy(): Promise { // No environment variables: read the system proxy (requires app ready) try { await app.whenReady() - const resolved = await electronSession.defaultSession.resolveProxy('https://api.anthropic.com') + // PAC/rule proxies answer per-host: probe the host the login flow, the + // Genspark LLM proxy and the gsk CLI actually target + const resolved = await electronSession.defaultSession.resolveProxy('https://www.genspark.ai/') // resolveProxy returns strings like "PROXY 127.0.0.1:1087" or "DIRECT" const m = /PROXY\s+([^;]+)/i.exec(resolved || '') if (m) { diff --git a/apps/slides/src/renderer/assets/icon-spelling.png b/apps/slides/src/renderer/assets/icon-spelling.png new file mode 100644 index 0000000000000000000000000000000000000000..87adeef4c4f022a689cd029c87b4cbef1ecc4b6d GIT binary patch literal 1340 zcmV-C1;hG@P)I6n#n=z!U}u6Hq1~OhB1{bOO=^sKNp* z6Oc|on1F0RH^BUd;svm{&yk#GMV4eIJsj>iJ(XqY>00ko3ekTCMgJIuHpRry6*p@| zmz7pkZ2Th{h|?=`ZHVT)0KWF-eyJ|$0D!EMN0XX<;Gd3;rvU)j1%xlqEclt*r|*rX z0{|Jbwyo%0YWyI=5WXjn7h$#12t3i|9RH@Gt9Yu-EH)>baIqCM4ZVU|=QIMw&}+Z% z&(@xMkxdw+-ipT!+;!6~O#2I`fDM>B+x0NxcYX7+2>Zfe2Df-#%0*JDl;E+-&{xq_ z;;)Sk{H~95R+Kmap?deog4Y~=9$y)5H}+fC#P+!9lfiZlIp;Mr1+~xQJ8ZxbYT~GK zZM&u*{T=c*6Ku{etyb;FPzEsZJ6ZcxidOepU04!Y?QE{X!q5CT>f)>mg}!Xe|9JmF zapa*>ZEj%Kp-54I=$hkn(j>6p83|{@gj@0YMh*=*AI57L3MC1A;Dsa0z(y>%kG3Y# zp}`-FIK4;`o^-#s{HfKZU6FS);e55QO`im0KbIlVYU4SDqY>2;DwBl0z`hK;k2)Vd zN;kWv=q@mKVI8a?&26iVF0d)+=d`_w+Asq998U5{5M~=K{c*7I-(*!TZPEvOeq$nr zUXs{F%vsha5MOuFGMmgt+B*2%j(Y@;wfRcUqZNJmt<`xCk)-qO5eGSpbFsaRHg>Hw zcJv}7V-gceBK$zWiu#dsJ_*(m>~TRm`<4z_S@j1$IA+6h(JmoiP5lI_p_z~8AVl8! z{peeV%+8^guo9_Qss4l@NDj_?h#>0#q1)J;AYs4IscAnt_^7twu2rMWd^vMU(bWl? zAp}!17dl1=!B@>swV@Q?{U!dLHElQ)J7eku!F7pq*ihK?u@@!S**K5W5pbgDRcgoV znscrts-?O~josT}uh2ONwzl1*##N%YNnvk?kp#YxRV#3(0vRd>n8lQK*)bWDhoZB? zO`&62vaHg}9F=-93TsjvTU|^}syY{)C=n}ka$)1^7xz5oG!jFHaH`PBMcvJcv$2QN z5L&`q=uo$;+t5h(F`4UF8i`_QuDH0ubwU&RTEf_s-60byjitvN$g~S>y`&LfvbKUN zAVb?~FIecT=|FgCchDi#BkRERj4j|zCykav;$j~Hsd|<>7i8c0WU<4qxX}<+;zlQ@ z(8+}@z+F3e4aET2w;(ISU_;iK=)|7?r|xY|p)&x|EQ(aL;5^`wtt45-gdddM2|nH& z>TD8xwDDv|Pa*blrTr+MY$Jz`1beYp{2F2Zg6!1w@xe9ZOGhCr533Nk%DI@1lI0^( zPvth~y0s5xS1fUR9=jWpuysd=ET5obW#&-`*W2PoR&{47(tTucMW88yqY!4tU{??Z;_@@FAnz8p8ni4qrk22mJgRyttou7$kHl-IsP9zWdJ6$Mb36!D4kiyYT yLc%#C(cZam6j{cD5@xg!WSgR!E3L6)8GiwJ1yoa3VU%0|0000I6wA2=kuW>U&M(I})IdAV>m??WcUdpJk9B4u`}2`2eCHcv&cl#4Ojd zq@)XOmkC|(bG4^e#1TazAzErhtEydA3(n~k5v{P+^heWHm8J8sF(-fO6;_(|bbo;n zc3*R~qX0y?1l(bvG~LU0Zxo#lP4+g|S*huU#!*1_cFfHZia;W)Yf)17oy3!-8HFLm zj^$ALBMg)FeH3hA4mJpT^mOep(Yqn5U~C4<{O0S^P!vB4kIYlZ{6td~_G~RHI5R>n zAJ%F^6Tue6f^yy7!2(ME>KY>0C7|reww0nS{yx}eSm}ayfF=S;6%V<}Am>uNPLYL{ z?zf{BuJW#?D+tRP1>piLPzE3bZDHke`c9nWdIL*en8%L0sS!na)jT+D2Ee+o#<@p0 zqev93pNQ_J78DaJpUJozXPQN|H!V2%Pq{m>`OyX;u<+JmzLu;#-3u;8z*4cuQSNXj#oM; zzqaNg`Um3|)k8u*$-cz=aJkKiI?C?Z1vte#{H2z@3Hexb#0m(}QW^bs&+ByhNHmb6!UA>#H?twAglbC6kq!1*0OK z4ULad*cA>GUnBDD+e74A?D)qN7BcNYZrxItPq(OOS3?6F;ZfF==Rf00g?W@!a4`6q z!eLTP&TVtw&{t}!GG2Bk8bo!l6lXV#Z{mSt;5gSi+i!yJZct$@x5}Y(5~7Spp<;xG z#{zO%3ZZYU4wkKg&vyuYCJr?YaFh48jUC##{h`74Dhj)~7w+IKG$FwkeN{CDoO`7^ za8My;I^SUz_TsG#zLx8}xWXK4P$Uzt(!i@LZ}7diON8))0W4g%@LCw#a!k(zhaVJ3 zn8oNIU2*LCm|yQslRg`TRZYI_fM4htQ1JqNAo$?X=OL9*-giK!_fp};C7zu7g(-Im zE)vJOp=G>m`)!L5H42*~-6;L!=d4k1iB9Oap`4sJ6G(2bsBX?DqL1i=!p+IH-BNhZ zSEiy0@dXH9ISpMf_n~#s4IV9sPAGPwJ+m&_In((Lh*p4dBOHmotU2x8BcnN>GD&y2 zLkK{K?kyqWt1`ZQ@*VRFzI*T}z0lp_(null) const [translateOpen, setTranslateOpen] = useState(false) const [arrangeOpen, setArrangeOpen] = useState(false) + const [slideShowOpen, setSlideShowOpen] = useState(false) + const [slideShowFromStart, setSlideShowFromStart] = useState(false) // Insert tab dropdown galleries (at most one open at a time) const [insertDrop, setInsertDrop] = useState< 'shapes' | 'icons' | 'chart' | 'smartart' | 'wordart' | 'zoom' | 'addanim' | null @@ -936,6 +939,7 @@ export function Ribbon({ if (!keep.includes('chart')) setChartDrop(null) if (!keep.includes('collapse')) setCollapseOpen(null) if (!keep.includes('pen')) setPenFlyout(null) + if (!keep.includes('slideShow')) setSlideShowOpen(false) }, []) // Clicking elsewhere collapses the table picker (the font color palette uses onMouseDown without stealing focus, collapsing naturally when the edit commits) @@ -950,6 +954,7 @@ export function Ribbon({ !layoutOpen && !chartDrop && !arrangeOpen && + !slideShowOpen && !paraOpen ) return @@ -963,6 +968,7 @@ export function Ribbon({ setLayoutOpen(false) setChartDrop(null) setArrangeOpen(false) + setSlideShowOpen(false) setParaOpen(false) setCollapseOpen(null) } @@ -978,6 +984,7 @@ export function Ribbon({ layoutOpen, chartDrop, arrangeOpen, + slideShowOpen, paraOpen, collapseOpen, ]) @@ -1232,6 +1239,7 @@ export function Ribbon({ onPaste, onResetLayout, onSetLayout, + onSlideShow, onStrike, onTextColor, onTextToggle, @@ -1275,11 +1283,15 @@ export function Ribbon({ setParaOpen, setSizeDraft, setSizeOpen, + setSlideShowFromStart, + setSlideShowOpen, setTableCustom, setTableHover, setTableOpen, sizeDraft, sizeOpen, + slideShowFromStart, + slideShowOpen, t, tableCustom, tableHover, @@ -2049,10 +2061,9 @@ export function Ribbon({ if (confirmAiRewrite()) onAiPreset(t('ribbonSpellCheckPrompt')) }} > - - - - + + {t('ribbonSpellCheck')} @@ -2068,10 +2079,9 @@ export function Ribbon({ }} onClick={() => setTranslateOpen((v) => !v)} > - - - - + + diff --git a/apps/slides/src/renderer/components/RibbonHomeTab.tsx b/apps/slides/src/renderer/components/RibbonHomeTab.tsx index 071dec5..30b6bfb 100644 --- a/apps/slides/src/renderer/components/RibbonHomeTab.tsx +++ b/apps/slides/src/renderer/components/RibbonHomeTab.tsx @@ -35,6 +35,8 @@ import { IconObjFlipH, IconObjFlipV, IconPaste, + IconPlayCurrent, + IconPlayFromStart, IconPosition, IconSection, IconShrinkFont, @@ -89,6 +91,7 @@ export function RibbonHomeTab({ rb }: { rb: RibbonTabCtx }) { onPaste, onResetLayout, onSetLayout, + onSlideShow, onStrike, onTextColor, onTextToggle, @@ -125,8 +128,12 @@ export function RibbonHomeTab({ rb }: { rb: RibbonTabCtx }) { setParaOpen, setSizeDraft, setSizeOpen, + setSlideShowFromStart, + setSlideShowOpen, sizeDraft, sizeOpen, + slideShowFromStart, + slideShowOpen, t, } = rb const [hangDraft, setHangDraft] = useState('') @@ -247,6 +254,69 @@ export function RibbonHomeTab({ rb }: { rb: RibbonTabCtx }) {
    + +
    + + {slideShowOpen && ( +
    e.stopPropagation()}> + + +
    + )} +
    +
    +
    { - let entered = false - void document.documentElement.requestFullscreen?.().then( - () => { - entered = true - }, - () => {}, - ) + // already-fullscreen mounts (presenter view handing off to the normal show + // keeps fullscreen) never get a fullscreenchange, so seed from current state + let entered = !!document.fullscreenElement + let exitTimer = 0 + void document.documentElement.requestFullscreen?.().catch(() => {}) const onFsChange = () => { - if (entered && !document.fullscreenElement) exitRef.current() + if (document.fullscreenElement) { + entered = true + window.clearTimeout(exitTimer) + return + } + if (!entered) return + // Grace window before ending the show: a strict-mode remount briefly drops + // fullscreen (previous cleanup's exitFullscreen) and re-enters right away — + // only a loss that sticks means the user actually left fullscreen. + window.clearTimeout(exitTimer) + exitTimer = window.setTimeout(() => { + if (!document.fullscreenElement) exitRef.current() + }, 150) } document.addEventListener('fullscreenchange', onFsChange) return () => { + window.clearTimeout(exitTimer) document.removeEventListener('fullscreenchange', onFsChange) if (document.fullscreenElement) void document.exitFullscreen().catch(() => {}) } diff --git a/apps/slides/src/renderer/components/gallery-previews.tsx b/apps/slides/src/renderer/components/gallery-previews.tsx index 12da47e..e867ece 100644 --- a/apps/slides/src/renderer/components/gallery-previews.tsx +++ b/apps/slides/src/renderer/components/gallery-previews.tsx @@ -65,14 +65,17 @@ export function shapePreviewPath(prst: string, w: number, h: number): string | n if (poly) return polygonPathD(poly) const path = presetPath(prst, w, h) if (path) return [path.path, path.fillPath, path.strokePath].filter(Boolean).join(' ') + // Alternate Process is a rounded rectangle, not a pill like Terminator + if (prst === 'roundRect' || prst === 'flowChartAlternateProcess') + return roundRectPathD(w, h, Math.min(w, h) * 0.16667) if (isPillPreset(prst)) return roundRectPathD(w, h, Math.min(w, h) / 2) - if (prst === 'roundRect') return roundRectPathD(w, h, Math.min(w, h) * 0.16667) if (prst === 'ellipse') { const rx = w / 2 const ry = h / 2 return `M 0 ${R(ry)} A ${R(rx)} ${R(ry)} 0 1 1 ${R(w)} ${R(ry)} A ${R(rx)} ${R(ry)} 0 1 1 0 ${R(ry)} Z` } - if (prst === 'rect') return `M 0 0 L ${R(w)} 0 L ${R(w)} ${R(h)} L 0 ${R(h)} Z` + if (prst === 'rect' || prst === 'flowChartProcess') + return `M 0 0 L ${R(w)} 0 L ${R(w)} ${R(h)} L 0 ${R(h)} Z` return null } diff --git a/apps/slides/src/renderer/components/icons.tsx b/apps/slides/src/renderer/components/icons.tsx index efd5fe6..b620eb0 100644 --- a/apps/slides/src/renderer/components/icons.tsx +++ b/apps/slides/src/renderer/components/icons.tsx @@ -1226,8 +1226,20 @@ export function IconEllipse(props: IconProps) { ) } -/** Slide show: from beginning (screen + play triangle) */ +/** Slide show: from beginning (slide open at the bottom-right, its bottom edge + * running out as an arrow into a play triangle — loop back to slide 1 and play) */ export function IconPlayFromStart(props: IconProps) { + return ( + + + + + + ) +} + +/** Slide show: from current slide (screen + play triangle) */ +export function IconPlayCurrent(props: IconProps) { return ( @@ -1237,17 +1249,6 @@ export function IconPlayFromStart(props: IconProps) { ) } -/** Slide show: from current slide (half screen + play triangle) */ -export function IconPlayCurrent(props: IconProps) { - return ( - - - - - - ) -} - /** Presenter view: main screen + small presenter screen */ export function IconPresenterView(props: IconProps) { return ( diff --git a/apps/slides/src/renderer/components/ribbon-shared.tsx b/apps/slides/src/renderer/components/ribbon-shared.tsx index 7893438..3b94863 100644 --- a/apps/slides/src/renderer/components/ribbon-shared.tsx +++ b/apps/slides/src/renderer/components/ribbon-shared.tsx @@ -134,6 +134,7 @@ export type RibbonPanelKey = | 'chart' | 'collapse' | 'pen' + | 'slideShow' /** Ribbon popups are mutually exclusive: a trigger closes every sibling popup * on mousedown, before its own click-toggle runs. A trigger rendered inside @@ -523,6 +524,7 @@ export interface RibbonTabCtx extends Pick< | 'onPaste' | 'onResetLayout' | 'onSetLayout' + | 'onSlideShow' | 'onStrike' | 'onTextColor' | 'onTextToggle' @@ -575,11 +577,16 @@ export interface RibbonTabCtx extends Pick< setParaOpen: Dispatch> setSizeDraft: Dispatch> setSizeOpen: Dispatch> + setSlideShowFromStart: Dispatch> + setSlideShowOpen: Dispatch> setTableCustom: Dispatch> setTableHover: Dispatch> setTableOpen: Dispatch> sizeDraft: string | null sizeOpen: boolean + /** Home-tab split button memory: the last chosen start mode (true = from beginning) */ + slideShowFromStart: boolean + slideShowOpen: boolean t: ReturnType['t'] tableCustom: { r: number; c: number } tableHover: { r: number; c: number } diff --git a/apps/slides/src/renderer/i18n/strings-ribbon.ts b/apps/slides/src/renderer/i18n/strings-ribbon.ts index ab31d8a..42df1b7 100644 --- a/apps/slides/src/renderer/i18n/strings-ribbon.ts +++ b/apps/slides/src/renderer/i18n/strings-ribbon.ts @@ -502,6 +502,77 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar8: '八角星', ribbonShapeFlowDecision: '决策', ribbonShapeFlowTerminator: '终止', + ribbonShapeGroupRects: '矩形', + ribbonShapeSnip1Rect: '剪去单角的矩形', + ribbonShapeSnip2SameRect: '剪去同侧角的矩形', + ribbonShapeSnip2DiagRect: '剪去对角的矩形', + ribbonShapeSnipRoundRect: '剪去一个圆角的矩形', + ribbonShapeRound1Rect: '圆化单角的矩形', + ribbonShapeRound2SameRect: '圆化同侧角的矩形', + ribbonShapeRound2DiagRect: '圆化对角的矩形', + ribbonShapePie: '饼形', + ribbonShapeChord: '弦形', + ribbonShapeTeardrop: '泪滴形', + ribbonShapeFrame: '框架', + ribbonShapeHalfFrame: '半闭框', + ribbonShapeCorner: 'L 形', + ribbonShapeDiagStripe: '斜纹', + ribbonShapeDonut: '圆环', + ribbonShapeNoSmoking: '禁止符', + ribbonShapeFoldedCorner: '折角形', + ribbonShapeBevel: '棱台', + ribbonShapeCube: '立方体', + ribbonShapeCan: '圆柱形', + ribbonShapeLightningBolt: '闪电形', + ribbonShapeHeart: '心形', + ribbonShapeSun: '太阳形', + ribbonShapeMoon: '新月形', + ribbonShapeCloud: '云形', + ribbonShapeArc: '弧形', + ribbonShapePlaque: '铭牌', + ribbonShapeSmileyFace: '笑脸', + ribbonShapeLeftBracket: '左中括号', + ribbonShapeRightBracket: '右中括号', + ribbonShapeQuadArrow: '十字箭头', + ribbonShapeBentArrow: '圆角右箭头', + ribbonShapeUturnArrow: '手杖形箭头', + ribbonShapeCurvedRightArrow: '弧形右箭头', + ribbonShapeStripedRightArrow: '虚尾箭头', + ribbonShapeStar7: '七角星', + ribbonShapeStar10: '十角星', + ribbonShapeStar12: '十二角星', + ribbonShapeStar16: '十六角星', + ribbonShapeStar24: '二十四角星', + ribbonShapeStar32: '三十二角星', + ribbonShapeIrregularSeal1: '爆炸形 1', + ribbonShapeIrregularSeal2: '爆炸形 2', + ribbonShapeRibbon: '前凸带形', + ribbonShapeRibbon2: '上凸带形', + ribbonShapeWave: '波形', + ribbonShapeDoubleWave: '双波形', + ribbonShapeFlowProcess: '流程图: 过程', + ribbonShapeFlowAlternateProcess: '流程图: 可选过程', + ribbonShapeFlowPredefinedProcess: '流程图: 预定义过程', + ribbonShapeFlowInternalStorage: '流程图: 内部贮存', + ribbonShapeFlowDocument: '流程图: 文档', + ribbonShapeFlowMultidocument: '流程图: 多文档', + ribbonShapeFlowPreparation: '流程图: 准备', + ribbonShapeFlowManualInput: '流程图: 手动输入', + ribbonShapeFlowManualOperation: '流程图: 手动操作', + ribbonShapeFlowConnector: '流程图: 接点', + ribbonShapeFlowOffpageConnector: '流程图: 离页连接符', + ribbonShapeFlowMagneticDisk: '流程图: 磁盘', + ribbonShapeFlowMagneticDrum: '流程图: 直接访问存储器', + ribbonShapeFlowDisplay: '流程图: 显示', + ribbonShapeFlowDelay: '流程图: 延期', + ribbonShapeFlowOr: '流程图: 或者', + ribbonShapeFlowCollate: '流程图: 对照', + ribbonShapeFlowSort: '流程图: 排序', + ribbonShapeFlowExtract: '流程图: 摘录', + ribbonShapeFlowMerge: '流程图: 合并', + ribbonShapeFlowSummingJunction: '流程图: 汇总连接', + ribbonShapeFlowPunchedTape: '流程图: 资料带', + ribbonShapeCloudCallout: '云形标注', // Icon gallery ribbonIconStar: '星标', ribbonIconHeart: '心形', @@ -1090,6 +1161,77 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar8: 'Star: 8 Points', ribbonShapeFlowDecision: 'Flowchart: Decision', ribbonShapeFlowTerminator: 'Flowchart: Terminator', + ribbonShapeGroupRects: 'Rectangles', + ribbonShapeSnip1Rect: 'Snip Single Corner Rectangle', + ribbonShapeSnip2SameRect: 'Snip Same Side Corner Rectangle', + ribbonShapeSnip2DiagRect: 'Snip Diagonal Corner Rectangle', + ribbonShapeSnipRoundRect: 'Snip and Round Single Corner Rectangle', + ribbonShapeRound1Rect: 'Round Single Corner Rectangle', + ribbonShapeRound2SameRect: 'Round Same Side Corner Rectangle', + ribbonShapeRound2DiagRect: 'Round Diagonal Corner Rectangle', + ribbonShapePie: 'Pie', + ribbonShapeChord: 'Chord', + ribbonShapeTeardrop: 'Teardrop', + ribbonShapeFrame: 'Frame', + ribbonShapeHalfFrame: 'Half Frame', + ribbonShapeCorner: 'L-Shape', + ribbonShapeDiagStripe: 'Diagonal Stripe', + ribbonShapeDonut: 'Donut', + ribbonShapeNoSmoking: '"No" Symbol', + ribbonShapeFoldedCorner: 'Folded Corner', + ribbonShapeBevel: 'Bevel', + ribbonShapeCube: 'Cube', + ribbonShapeCan: 'Can', + ribbonShapeLightningBolt: 'Lightning Bolt', + ribbonShapeHeart: 'Heart', + ribbonShapeSun: 'Sun', + ribbonShapeMoon: 'Moon', + ribbonShapeCloud: 'Cloud', + ribbonShapeArc: 'Arc', + ribbonShapePlaque: 'Plaque', + ribbonShapeSmileyFace: 'Smiley Face', + ribbonShapeLeftBracket: 'Left Bracket', + ribbonShapeRightBracket: 'Right Bracket', + ribbonShapeQuadArrow: 'Quad Arrow', + ribbonShapeBentArrow: 'Bent Arrow', + ribbonShapeUturnArrow: 'U-Turn Arrow', + ribbonShapeCurvedRightArrow: 'Curved Right Arrow', + ribbonShapeStripedRightArrow: 'Striped Right Arrow', + ribbonShapeStar7: 'Star: 7 Points', + ribbonShapeStar10: 'Star: 10 Points', + ribbonShapeStar12: 'Star: 12 Points', + ribbonShapeStar16: 'Star: 16 Points', + ribbonShapeStar24: 'Star: 24 Points', + ribbonShapeStar32: 'Star: 32 Points', + ribbonShapeIrregularSeal1: 'Explosion 1', + ribbonShapeIrregularSeal2: 'Explosion 2', + ribbonShapeRibbon: 'Down Ribbon', + ribbonShapeRibbon2: 'Up Ribbon', + ribbonShapeWave: 'Wave', + ribbonShapeDoubleWave: 'Double Wave', + ribbonShapeFlowProcess: 'Flowchart: Process', + ribbonShapeFlowAlternateProcess: 'Flowchart: Alternate Process', + ribbonShapeFlowPredefinedProcess: 'Flowchart: Predefined Process', + ribbonShapeFlowInternalStorage: 'Flowchart: Internal Storage', + ribbonShapeFlowDocument: 'Flowchart: Document', + ribbonShapeFlowMultidocument: 'Flowchart: Multidocument', + ribbonShapeFlowPreparation: 'Flowchart: Preparation', + ribbonShapeFlowManualInput: 'Flowchart: Manual Input', + ribbonShapeFlowManualOperation: 'Flowchart: Manual Operation', + ribbonShapeFlowConnector: 'Flowchart: Connector', + ribbonShapeFlowOffpageConnector: 'Flowchart: Off-page Connector', + ribbonShapeFlowMagneticDisk: 'Flowchart: Magnetic Disk', + ribbonShapeFlowMagneticDrum: 'Flowchart: Direct Access Storage', + ribbonShapeFlowDisplay: 'Flowchart: Display', + ribbonShapeFlowDelay: 'Flowchart: Delay', + ribbonShapeFlowOr: 'Flowchart: Or', + ribbonShapeFlowCollate: 'Flowchart: Collate', + ribbonShapeFlowSort: 'Flowchart: Sort', + ribbonShapeFlowExtract: 'Flowchart: Extract', + ribbonShapeFlowMerge: 'Flowchart: Merge', + ribbonShapeFlowSummingJunction: 'Flowchart: Summing Junction', + ribbonShapeFlowPunchedTape: 'Flowchart: Punched Tape', + ribbonShapeCloudCallout: 'Cloud Callout', ribbonIconStar: 'Star', ribbonIconHeart: 'Heart', ribbonIconCheck: 'Check', @@ -1696,6 +1838,77 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar8: '星: 8 pt', ribbonShapeFlowDecision: 'フローチャート: 判断', ribbonShapeFlowTerminator: 'フローチャート: 端子', + ribbonShapeGroupRects: '四角形', + ribbonShapeSnip1Rect: '四角形: 1 つの角を切り取る', + ribbonShapeSnip2SameRect: '四角形: 上の 2 つの角を切り取る', + ribbonShapeSnip2DiagRect: '四角形: 対角を切り取る', + ribbonShapeSnipRoundRect: '四角形: 1 つの角を切り取り 1 つの角を丸める', + ribbonShapeRound1Rect: '四角形: 1 つの角を丸める', + ribbonShapeRound2SameRect: '四角形: 上の 2 つの角を丸める', + ribbonShapeRound2DiagRect: '四角形: 対角を丸める', + ribbonShapePie: '部分円', + ribbonShapeChord: '弦', + ribbonShapeTeardrop: '涙形', + ribbonShapeFrame: 'フレーム', + ribbonShapeHalfFrame: '半フレーム', + ribbonShapeCorner: 'L字', + ribbonShapeDiagStripe: '斜め縞', + ribbonShapeDonut: 'ドーナツ', + ribbonShapeNoSmoking: '禁止マーク', + ribbonShapeFoldedCorner: 'メモ', + ribbonShapeBevel: '額縁', + ribbonShapeCube: '直方体', + ribbonShapeCan: '円柱', + ribbonShapeLightningBolt: '稲妻', + ribbonShapeHeart: 'ハート', + ribbonShapeSun: '太陽', + ribbonShapeMoon: '月', + ribbonShapeCloud: '雲', + ribbonShapeArc: '円弧', + ribbonShapePlaque: 'ブローチ', + ribbonShapeSmileyFace: 'スマイル', + ribbonShapeLeftBracket: '左大かっこ', + ribbonShapeRightBracket: '右大かっこ', + ribbonShapeQuadArrow: '十字矢印', + ribbonShapeBentArrow: '屈折矢印', + ribbonShapeUturnArrow: 'Uターン矢印', + ribbonShapeCurvedRightArrow: '右カーブ矢印', + ribbonShapeStripedRightArrow: 'ストライプ矢印', + ribbonShapeStar7: '星: 7 pt', + ribbonShapeStar10: '星: 10 pt', + ribbonShapeStar12: '星: 12 pt', + ribbonShapeStar16: '星: 16 pt', + ribbonShapeStar24: '星: 24 pt', + ribbonShapeStar32: '星: 32 pt', + ribbonShapeIrregularSeal1: '爆発: 8 pt', + ribbonShapeIrregularSeal2: '爆発: 14 pt', + ribbonShapeRibbon: 'リボン: 下に曲がる', + ribbonShapeRibbon2: 'リボン: 上に曲がる', + ribbonShapeWave: '小波', + ribbonShapeDoubleWave: '大波', + ribbonShapeFlowProcess: 'フローチャート: 処理', + ribbonShapeFlowAlternateProcess: 'フローチャート: 代替処理', + ribbonShapeFlowPredefinedProcess: 'フローチャート: 定義済み処理', + ribbonShapeFlowInternalStorage: 'フローチャート: 内部記憶', + ribbonShapeFlowDocument: 'フローチャート: 書類', + ribbonShapeFlowMultidocument: 'フローチャート: 複数書類', + ribbonShapeFlowPreparation: 'フローチャート: 準備', + ribbonShapeFlowManualInput: 'フローチャート: 手操作入力', + ribbonShapeFlowManualOperation: 'フローチャート: 手作業', + ribbonShapeFlowConnector: 'フローチャート: 結合子', + ribbonShapeFlowOffpageConnector: 'フローチャート: 他ページ結合子', + ribbonShapeFlowMagneticDisk: 'フローチャート: 磁気ディスク', + ribbonShapeFlowMagneticDrum: 'フローチャート: 直接アクセス記憶', + ribbonShapeFlowDisplay: 'フローチャート: 表示', + ribbonShapeFlowDelay: 'フローチャート: 遅延', + ribbonShapeFlowOr: 'フローチャート: 論理和', + ribbonShapeFlowCollate: 'フローチャート: 照合', + ribbonShapeFlowSort: 'フローチャート: 分類', + ribbonShapeFlowExtract: 'フローチャート: 抽出', + ribbonShapeFlowMerge: 'フローチャート: 統合', + ribbonShapeFlowSummingJunction: 'フローチャート: 和接合', + ribbonShapeFlowPunchedTape: 'フローチャート: せん孔テープ', + ribbonShapeCloudCallout: '雲形吹き出し', // Icon gallery ribbonIconStar: '星', ribbonIconHeart: 'ハート', @@ -2297,6 +2510,77 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar8: '별: 꼭짓점 8개', ribbonShapeFlowDecision: '순서도: 판단', ribbonShapeFlowTerminator: '순서도: 종결자', + ribbonShapeGroupRects: '사각형', + ribbonShapeSnip1Rect: '사각형: 잘린 한쪽 모서리', + ribbonShapeSnip2SameRect: '사각형: 잘린 같은 쪽 모서리', + ribbonShapeSnip2DiagRect: '사각형: 잘린 대각선 방향 모서리', + ribbonShapeSnipRoundRect: '사각형: 잘리고 둥근 한쪽 모서리', + ribbonShapeRound1Rect: '사각형: 둥근 한쪽 모서리', + ribbonShapeRound2SameRect: '사각형: 둥근 같은 쪽 모서리', + ribbonShapeRound2DiagRect: '사각형: 둥근 대각선 방향 모서리', + ribbonShapePie: '원형', + ribbonShapeChord: '현', + ribbonShapeTeardrop: '눈물 방울', + ribbonShapeFrame: '액자', + ribbonShapeHalfFrame: '반액자', + ribbonShapeCorner: 'L 도형', + ribbonShapeDiagStripe: '대각선 줄무늬', + ribbonShapeDonut: '도넛', + ribbonShapeNoSmoking: '금지 기호', + ribbonShapeFoldedCorner: '모서리가 접힌 도형', + ribbonShapeBevel: '빗면', + ribbonShapeCube: '정육면체', + ribbonShapeCan: '원통', + ribbonShapeLightningBolt: '번개', + ribbonShapeHeart: '하트', + ribbonShapeSun: '해', + ribbonShapeMoon: '달', + ribbonShapeCloud: '구름', + ribbonShapeArc: '호', + ribbonShapePlaque: '명판', + ribbonShapeSmileyFace: '웃는 얼굴', + ribbonShapeLeftBracket: '왼쪽 대괄호', + ribbonShapeRightBracket: '오른쪽 대괄호', + ribbonShapeQuadArrow: '십자형 화살표', + ribbonShapeBentArrow: '굽은 화살표', + ribbonShapeUturnArrow: 'U자형 화살표', + ribbonShapeCurvedRightArrow: '오른쪽으로 구부러진 화살표', + ribbonShapeStripedRightArrow: '줄무늬가 있는 오른쪽 화살표', + ribbonShapeStar7: '별: 꼭짓점 7개', + ribbonShapeStar10: '별: 꼭짓점 10개', + ribbonShapeStar12: '별: 꼭짓점 12개', + ribbonShapeStar16: '별: 꼭짓점 16개', + ribbonShapeStar24: '별: 꼭짓점 24개', + ribbonShapeStar32: '별: 꼭짓점 32개', + ribbonShapeIrregularSeal1: '폭발: 8pt', + ribbonShapeIrregularSeal2: '폭발: 14pt', + ribbonShapeRibbon: '아래쪽 리본', + ribbonShapeRibbon2: '위쪽 리본', + ribbonShapeWave: '물결', + ribbonShapeDoubleWave: '이중 물결', + ribbonShapeFlowProcess: '순서도: 처리', + ribbonShapeFlowAlternateProcess: '순서도: 대체 처리', + ribbonShapeFlowPredefinedProcess: '순서도: 미리 정의된 처리', + ribbonShapeFlowInternalStorage: '순서도: 내부 저장소', + ribbonShapeFlowDocument: '순서도: 문서', + ribbonShapeFlowMultidocument: '순서도: 다중 문서', + ribbonShapeFlowPreparation: '순서도: 준비', + ribbonShapeFlowManualInput: '순서도: 수동 입력', + ribbonShapeFlowManualOperation: '순서도: 수동 작업', + ribbonShapeFlowConnector: '순서도: 연결자', + ribbonShapeFlowOffpageConnector: '순서도: 페이지 연결자', + ribbonShapeFlowMagneticDisk: '순서도: 자기 디스크', + ribbonShapeFlowMagneticDrum: '순서도: 직접 액세스 저장소', + ribbonShapeFlowDisplay: '순서도: 화면 표시', + ribbonShapeFlowDelay: '순서도: 지연', + ribbonShapeFlowOr: '순서도: 논리합', + ribbonShapeFlowCollate: '순서도: 대조', + ribbonShapeFlowSort: '순서도: 정렬', + ribbonShapeFlowExtract: '순서도: 추출', + ribbonShapeFlowMerge: '순서도: 병합', + ribbonShapeFlowSummingJunction: '순서도: 합 접합', + ribbonShapeFlowPunchedTape: '순서도: 천공 테이프', + ribbonShapeCloudCallout: '구름 모양 설명선', // Icon gallery ribbonIconStar: '별', ribbonIconHeart: '하트', @@ -2914,6 +3198,77 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar8: 'Étoile : 8 branches', ribbonShapeFlowDecision: 'Organigramme : décision', ribbonShapeFlowTerminator: 'Organigramme : terminaison', + ribbonShapeGroupRects: 'Rectangles', + ribbonShapeSnip1Rect: 'Rectangle : un seul coin coupé', + ribbonShapeSnip2SameRect: 'Rectangle : coins du même côté coupés', + ribbonShapeSnip2DiagRect: 'Rectangle : coins en diagonale coupés', + ribbonShapeSnipRoundRect: 'Rectangle : un coin coupé, un coin arrondi', + ribbonShapeRound1Rect: 'Rectangle : un seul coin arrondi', + ribbonShapeRound2SameRect: 'Rectangle : coins du même côté arrondis', + ribbonShapeRound2DiagRect: 'Rectangle : coins en diagonale arrondis', + ribbonShapePie: 'Secteur', + ribbonShapeChord: 'Corde', + ribbonShapeTeardrop: 'Larme', + ribbonShapeFrame: 'Cadre', + ribbonShapeHalfFrame: 'Demi-cadre', + ribbonShapeCorner: 'Forme en L', + ribbonShapeDiagStripe: 'Bande diagonale', + ribbonShapeDonut: 'Anneau', + ribbonShapeNoSmoking: 'Symbole « Interdit »', + ribbonShapeFoldedCorner: 'Coin plié', + ribbonShapeBevel: 'Biseau', + ribbonShapeCube: 'Cube', + ribbonShapeCan: 'Cylindre', + ribbonShapeLightningBolt: 'Éclair', + ribbonShapeHeart: 'Cœur', + ribbonShapeSun: 'Soleil', + ribbonShapeMoon: 'Lune', + ribbonShapeCloud: 'Nuage', + ribbonShapeArc: 'Arc', + ribbonShapePlaque: 'Plaque', + ribbonShapeSmileyFace: 'Visage souriant', + ribbonShapeLeftBracket: 'Crochet gauche', + ribbonShapeRightBracket: 'Crochet droit', + ribbonShapeQuadArrow: 'Flèche : quadruple', + ribbonShapeBentArrow: 'Flèche : pliée', + ribbonShapeUturnArrow: 'Flèche : demi-tour', + ribbonShapeCurvedRightArrow: 'Flèche : courbée vers la droite', + ribbonShapeStripedRightArrow: 'Flèche : rayée vers la droite', + ribbonShapeStar7: 'Étoile : 7 branches', + ribbonShapeStar10: 'Étoile : 10 branches', + ribbonShapeStar12: 'Étoile : 12 branches', + ribbonShapeStar16: 'Étoile : 16 branches', + ribbonShapeStar24: 'Étoile : 24 branches', + ribbonShapeStar32: 'Étoile : 32 branches', + ribbonShapeIrregularSeal1: 'Explosion 1', + ribbonShapeIrregularSeal2: 'Explosion 2', + ribbonShapeRibbon: 'Ruban : incliné vers le bas', + ribbonShapeRibbon2: 'Ruban : incliné vers le haut', + ribbonShapeWave: 'Vague', + ribbonShapeDoubleWave: 'Double vague', + ribbonShapeFlowProcess: 'Organigramme : processus', + ribbonShapeFlowAlternateProcess: 'Organigramme : autre processus', + ribbonShapeFlowPredefinedProcess: 'Organigramme : processus prédéfini', + ribbonShapeFlowInternalStorage: 'Organigramme : stockage interne', + ribbonShapeFlowDocument: 'Organigramme : document', + ribbonShapeFlowMultidocument: 'Organigramme : multidocument', + ribbonShapeFlowPreparation: 'Organigramme : préparation', + ribbonShapeFlowManualInput: 'Organigramme : entrée manuelle', + ribbonShapeFlowManualOperation: 'Organigramme : opération manuelle', + ribbonShapeFlowConnector: 'Organigramme : connecteur', + ribbonShapeFlowOffpageConnector: 'Organigramme : renvoi à une autre page', + ribbonShapeFlowMagneticDisk: 'Organigramme : disque magnétique', + ribbonShapeFlowMagneticDrum: 'Organigramme : stockage à accès direct', + ribbonShapeFlowDisplay: 'Organigramme : affichage', + ribbonShapeFlowDelay: 'Organigramme : délai', + ribbonShapeFlowOr: 'Organigramme : ou', + ribbonShapeFlowCollate: 'Organigramme : assemblage', + ribbonShapeFlowSort: 'Organigramme : tri', + ribbonShapeFlowExtract: 'Organigramme : extraction', + ribbonShapeFlowMerge: 'Organigramme : fusion', + ribbonShapeFlowSummingJunction: 'Organigramme : jonction de sommation', + ribbonShapeFlowPunchedTape: 'Organigramme : bande perforée', + ribbonShapeCloudCallout: 'Bulle en forme de nuage', ribbonIconStar: 'Étoile', ribbonIconHeart: 'Cœur', ribbonIconCheck: 'Coche', @@ -3519,6 +3874,77 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar8: 'Stern: 8 Zacken', ribbonShapeFlowDecision: 'Flussdiagramm: Entscheidung', ribbonShapeFlowTerminator: 'Flussdiagramm: Grenzstelle', + ribbonShapeGroupRects: 'Rechtecke', + ribbonShapeSnip1Rect: 'Rechteck: einzelne Ecke abgeschnitten', + ribbonShapeSnip2SameRect: 'Rechteck: Ecken auf derselben Seite abgeschnitten', + ribbonShapeSnip2DiagRect: 'Rechteck: diagonale Ecken abgeschnitten', + ribbonShapeSnipRoundRect: 'Rechteck: einzelne Ecke abgeschnitten und abgerundet', + ribbonShapeRound1Rect: 'Rechteck: einzelne Ecke abgerundet', + ribbonShapeRound2SameRect: 'Rechteck: Ecken auf derselben Seite abgerundet', + ribbonShapeRound2DiagRect: 'Rechteck: diagonale Ecken abgerundet', + ribbonShapePie: 'Kreissegment', + ribbonShapeChord: 'Sehne', + ribbonShapeTeardrop: 'Träne', + ribbonShapeFrame: 'Rahmen', + ribbonShapeHalfFrame: 'Halber Rahmen', + ribbonShapeCorner: 'L-Form', + ribbonShapeDiagStripe: 'Diagonaler Streifen', + ribbonShapeDonut: 'Ring', + ribbonShapeNoSmoking: 'Verbotssymbol', + ribbonShapeFoldedCorner: 'Gefaltete Ecke', + ribbonShapeBevel: 'Fase', + ribbonShapeCube: 'Würfel', + ribbonShapeCan: 'Zylinder', + ribbonShapeLightningBolt: 'Blitz', + ribbonShapeHeart: 'Herz', + ribbonShapeSun: 'Sonne', + ribbonShapeMoon: 'Mond', + ribbonShapeCloud: 'Wolke', + ribbonShapeArc: 'Bogen', + ribbonShapePlaque: 'Plakette', + ribbonShapeSmileyFace: 'Smiley', + ribbonShapeLeftBracket: 'Linke eckige Klammer', + ribbonShapeRightBracket: 'Rechte eckige Klammer', + ribbonShapeQuadArrow: 'Vierfachpfeil', + ribbonShapeBentArrow: 'Gebogener Pfeil', + ribbonShapeUturnArrow: 'U-förmiger Pfeil', + ribbonShapeCurvedRightArrow: 'Nach rechts gekrümmter Pfeil', + ribbonShapeStripedRightArrow: 'Gestreifter Pfeil nach rechts', + ribbonShapeStar7: 'Stern: 7 Zacken', + ribbonShapeStar10: 'Stern: 10 Zacken', + ribbonShapeStar12: 'Stern: 12 Zacken', + ribbonShapeStar16: 'Stern: 16 Zacken', + ribbonShapeStar24: 'Stern: 24 Zacken', + ribbonShapeStar32: 'Stern: 32 Zacken', + ribbonShapeIrregularSeal1: 'Explosion 1', + ribbonShapeIrregularSeal2: 'Explosion 2', + ribbonShapeRibbon: 'Band nach unten', + ribbonShapeRibbon2: 'Band nach oben', + ribbonShapeWave: 'Welle', + ribbonShapeDoubleWave: 'Doppelwelle', + ribbonShapeFlowProcess: 'Flussdiagramm: Prozess', + ribbonShapeFlowAlternateProcess: 'Flussdiagramm: Alternativer Prozess', + ribbonShapeFlowPredefinedProcess: 'Flussdiagramm: Vordefinierter Prozess', + ribbonShapeFlowInternalStorage: 'Flussdiagramm: Interner Speicher', + ribbonShapeFlowDocument: 'Flussdiagramm: Dokument', + ribbonShapeFlowMultidocument: 'Flussdiagramm: Mehrere Dokumente', + ribbonShapeFlowPreparation: 'Flussdiagramm: Vorbereitung', + ribbonShapeFlowManualInput: 'Flussdiagramm: Manuelle Eingabe', + ribbonShapeFlowManualOperation: 'Flussdiagramm: Manueller Vorgang', + ribbonShapeFlowConnector: 'Flussdiagramm: Verbindungsstelle', + ribbonShapeFlowOffpageConnector: 'Flussdiagramm: Verbindung zu anderer Seite', + ribbonShapeFlowMagneticDisk: 'Flussdiagramm: Magnetplatte', + ribbonShapeFlowMagneticDrum: 'Flussdiagramm: Direktzugriffsspeicher', + ribbonShapeFlowDisplay: 'Flussdiagramm: Anzeige', + ribbonShapeFlowDelay: 'Flussdiagramm: Verzögerung', + ribbonShapeFlowOr: 'Flussdiagramm: Oder', + ribbonShapeFlowCollate: 'Flussdiagramm: Zusammenstellen', + ribbonShapeFlowSort: 'Flussdiagramm: Sortieren', + ribbonShapeFlowExtract: 'Flussdiagramm: Auszug', + ribbonShapeFlowMerge: 'Flussdiagramm: Zusammenführen', + ribbonShapeFlowSummingJunction: 'Flussdiagramm: Summierungspunkt', + ribbonShapeFlowPunchedTape: 'Flussdiagramm: Lochstreifen', + ribbonShapeCloudCallout: 'Wolkenförmige Legende', ribbonIconStar: 'Stern', ribbonIconHeart: 'Herz', ribbonIconCheck: 'Häkchen', @@ -4130,6 +4556,77 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar8: 'Estrella: 8 puntas', ribbonShapeFlowDecision: 'Diagrama de flujo: decisión', ribbonShapeFlowTerminator: 'Diagrama de flujo: terminador', + ribbonShapeGroupRects: 'Rectángulos', + ribbonShapeSnip1Rect: 'Rectángulo: una esquina recortada', + ribbonShapeSnip2SameRect: 'Rectángulo: esquinas del mismo lado recortadas', + ribbonShapeSnip2DiagRect: 'Rectángulo: esquinas en diagonal recortadas', + ribbonShapeSnipRoundRect: 'Rectángulo: una esquina recortada y otra redondeada', + ribbonShapeRound1Rect: 'Rectángulo: una esquina redondeada', + ribbonShapeRound2SameRect: 'Rectángulo: esquinas del mismo lado redondeadas', + ribbonShapeRound2DiagRect: 'Rectángulo: esquinas en diagonal redondeadas', + ribbonShapePie: 'Sector circular', + ribbonShapeChord: 'Cuerda', + ribbonShapeTeardrop: 'Lágrima', + ribbonShapeFrame: 'Marco', + ribbonShapeHalfFrame: 'Medio marco', + ribbonShapeCorner: 'Forma de L', + ribbonShapeDiagStripe: 'Franja diagonal', + ribbonShapeDonut: 'Anillo', + ribbonShapeNoSmoking: 'Símbolo de prohibido', + ribbonShapeFoldedCorner: 'Esquina doblada', + ribbonShapeBevel: 'Bisel', + ribbonShapeCube: 'Cubo', + ribbonShapeCan: 'Cilindro', + ribbonShapeLightningBolt: 'Rayo', + ribbonShapeHeart: 'Corazón', + ribbonShapeSun: 'Sol', + ribbonShapeMoon: 'Luna', + ribbonShapeCloud: 'Nube', + ribbonShapeArc: 'Arco', + ribbonShapePlaque: 'Placa', + ribbonShapeSmileyFace: 'Cara sonriente', + ribbonShapeLeftBracket: 'Corchete izquierdo', + ribbonShapeRightBracket: 'Corchete derecho', + ribbonShapeQuadArrow: 'Flecha de cuatro puntas', + ribbonShapeBentArrow: 'Flecha doblada', + ribbonShapeUturnArrow: 'Flecha en U', + ribbonShapeCurvedRightArrow: 'Flecha curvada hacia la derecha', + ribbonShapeStripedRightArrow: 'Flecha a rayas hacia la derecha', + ribbonShapeStar7: 'Estrella: 7 puntas', + ribbonShapeStar10: 'Estrella: 10 puntas', + ribbonShapeStar12: 'Estrella: 12 puntas', + ribbonShapeStar16: 'Estrella: 16 puntas', + ribbonShapeStar24: 'Estrella: 24 puntas', + ribbonShapeStar32: 'Estrella: 32 puntas', + ribbonShapeIrregularSeal1: 'Explosión 1', + ribbonShapeIrregularSeal2: 'Explosión 2', + ribbonShapeRibbon: 'Cinta hacia abajo', + ribbonShapeRibbon2: 'Cinta hacia arriba', + ribbonShapeWave: 'Onda', + ribbonShapeDoubleWave: 'Doble onda', + ribbonShapeFlowProcess: 'Diagrama de flujo: proceso', + ribbonShapeFlowAlternateProcess: 'Diagrama de flujo: proceso alternativo', + ribbonShapeFlowPredefinedProcess: 'Diagrama de flujo: proceso predefinido', + ribbonShapeFlowInternalStorage: 'Diagrama de flujo: almacenamiento interno', + ribbonShapeFlowDocument: 'Diagrama de flujo: documento', + ribbonShapeFlowMultidocument: 'Diagrama de flujo: multidocumento', + ribbonShapeFlowPreparation: 'Diagrama de flujo: preparación', + ribbonShapeFlowManualInput: 'Diagrama de flujo: entrada manual', + ribbonShapeFlowManualOperation: 'Diagrama de flujo: operación manual', + ribbonShapeFlowConnector: 'Diagrama de flujo: conector', + ribbonShapeFlowOffpageConnector: 'Diagrama de flujo: conector fuera de página', + ribbonShapeFlowMagneticDisk: 'Diagrama de flujo: disco magnético', + ribbonShapeFlowMagneticDrum: 'Diagrama de flujo: almacenamiento de acceso directo', + ribbonShapeFlowDisplay: 'Diagrama de flujo: pantalla', + ribbonShapeFlowDelay: 'Diagrama de flujo: retraso', + ribbonShapeFlowOr: 'Diagrama de flujo: o', + ribbonShapeFlowCollate: 'Diagrama de flujo: intercalar', + ribbonShapeFlowSort: 'Diagrama de flujo: ordenar', + ribbonShapeFlowExtract: 'Diagrama de flujo: extraer', + ribbonShapeFlowMerge: 'Diagrama de flujo: combinar', + ribbonShapeFlowSummingJunction: 'Diagrama de flujo: unión de suma', + ribbonShapeFlowPunchedTape: 'Diagrama de flujo: cinta perforada', + ribbonShapeCloudCallout: 'Llamada de nube', ribbonIconStar: 'Estrella', ribbonIconHeart: 'Corazón', ribbonIconCheck: 'Marca de verificación', @@ -4711,6 +5208,77 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar8: 'ดาว 8 แฉก', ribbonShapeFlowDecision: 'ผังงาน: การตัดสินใจ', ribbonShapeFlowTerminator: 'ผังงาน: จุดสิ้นสุด', + ribbonShapeGroupRects: 'สี่เหลี่ยมผืนผ้า', + ribbonShapeSnip1Rect: 'สี่เหลี่ยมตัดมุมเดียว', + ribbonShapeSnip2SameRect: 'สี่เหลี่ยมตัดมุมด้านเดียวกัน', + ribbonShapeSnip2DiagRect: 'สี่เหลี่ยมตัดมุมทแยง', + ribbonShapeSnipRoundRect: 'สี่เหลี่ยมตัดมุมและมุมมนอย่างละมุม', + ribbonShapeRound1Rect: 'สี่เหลี่ยมมุมมนหนึ่งมุม', + ribbonShapeRound2SameRect: 'สี่เหลี่ยมมุมมนด้านเดียวกัน', + ribbonShapeRound2DiagRect: 'สี่เหลี่ยมมุมมนทแยง', + ribbonShapePie: 'รูปพาย', + ribbonShapeChord: 'คอร์ด', + ribbonShapeTeardrop: 'หยดน้ำ', + ribbonShapeFrame: 'กรอบ', + ribbonShapeHalfFrame: 'ครึ่งกรอบ', + ribbonShapeCorner: 'รูปตัว L', + ribbonShapeDiagStripe: 'แถบทแยง', + ribbonShapeDonut: 'โดนัท', + ribbonShapeNoSmoking: 'สัญลักษณ์ห้าม', + ribbonShapeFoldedCorner: 'มุมพับ', + ribbonShapeBevel: 'ขอบเอียง', + ribbonShapeCube: 'ลูกบาศก์', + ribbonShapeCan: 'ทรงกระบอก', + ribbonShapeLightningBolt: 'สายฟ้า', + ribbonShapeHeart: 'หัวใจ', + ribbonShapeSun: 'ดวงอาทิตย์', + ribbonShapeMoon: 'ดวงจันทร์', + ribbonShapeCloud: 'เมฆ', + ribbonShapeArc: 'ส่วนโค้ง', + ribbonShapePlaque: 'แผ่นป้าย', + ribbonShapeSmileyFace: 'หน้ายิ้ม', + ribbonShapeLeftBracket: 'วงเล็บเหลี่ยมซ้าย', + ribbonShapeRightBracket: 'วงเล็บเหลี่ยมขวา', + ribbonShapeQuadArrow: 'ลูกศรสี่ทิศทาง', + ribbonShapeBentArrow: 'ลูกศรโค้งงอ', + ribbonShapeUturnArrow: 'ลูกศรยูเทิร์น', + ribbonShapeCurvedRightArrow: 'ลูกศรโค้งไปทางขวา', + ribbonShapeStripedRightArrow: 'ลูกศรลายทางชี้ขวา', + ribbonShapeStar7: 'ดาว 7 แฉก', + ribbonShapeStar10: 'ดาว 10 แฉก', + ribbonShapeStar12: 'ดาว 12 แฉก', + ribbonShapeStar16: 'ดาว 16 แฉก', + ribbonShapeStar24: 'ดาว 24 แฉก', + ribbonShapeStar32: 'ดาว 32 แฉก', + ribbonShapeIrregularSeal1: 'ระเบิด 1', + ribbonShapeIrregularSeal2: 'ระเบิด 2', + ribbonShapeRibbon: 'ริบบิ้นโค้งลง', + ribbonShapeRibbon2: 'ริบบิ้นโค้งขึ้น', + ribbonShapeWave: 'คลื่น', + ribbonShapeDoubleWave: 'คลื่นคู่', + ribbonShapeFlowProcess: 'ผังงาน: กระบวนการ', + ribbonShapeFlowAlternateProcess: 'ผังงาน: กระบวนการทางเลือก', + ribbonShapeFlowPredefinedProcess: 'ผังงาน: กระบวนการที่กำหนดไว้ล่วงหน้า', + ribbonShapeFlowInternalStorage: 'ผังงาน: ที่เก็บข้อมูลภายใน', + ribbonShapeFlowDocument: 'ผังงาน: เอกสาร', + ribbonShapeFlowMultidocument: 'ผังงาน: หลายเอกสาร', + ribbonShapeFlowPreparation: 'ผังงาน: การเตรียมการ', + ribbonShapeFlowManualInput: 'ผังงาน: การป้อนข้อมูลด้วยตนเอง', + ribbonShapeFlowManualOperation: 'ผังงาน: การดำเนินการด้วยตนเอง', + ribbonShapeFlowConnector: 'ผังงาน: จุดเชื่อมต่อ', + ribbonShapeFlowOffpageConnector: 'ผังงาน: จุดเชื่อมต่อนอกหน้า', + ribbonShapeFlowMagneticDisk: 'ผังงาน: จานแม่เหล็ก', + ribbonShapeFlowMagneticDrum: 'ผังงาน: ที่เก็บข้อมูลแบบเข้าถึงโดยตรง', + ribbonShapeFlowDisplay: 'ผังงาน: การแสดงผล', + ribbonShapeFlowDelay: 'ผังงาน: การหน่วงเวลา', + ribbonShapeFlowOr: 'ผังงาน: หรือ', + ribbonShapeFlowCollate: 'ผังงาน: การเทียบเคียง', + ribbonShapeFlowSort: 'ผังงาน: การเรียงลำดับ', + ribbonShapeFlowExtract: 'ผังงาน: การแยกข้อมูล', + ribbonShapeFlowMerge: 'ผังงาน: การผสาน', + ribbonShapeFlowSummingJunction: 'ผังงาน: จุดรวม', + ribbonShapeFlowPunchedTape: 'ผังงาน: เทปเจาะรู', + ribbonShapeCloudCallout: 'คำบรรยายรูปเมฆ', ribbonIconStar: 'ดาว', ribbonIconHeart: 'หัวใจ', ribbonIconCheck: 'เครื่องหมายถูก', @@ -5308,6 +5876,77 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar8: 'Bintang: 8 Titik', ribbonShapeFlowDecision: 'Bagan Alur: Keputusan', ribbonShapeFlowTerminator: 'Bagan Alur: Terminator', + ribbonShapeGroupRects: 'Persegi Panjang', + ribbonShapeSnip1Rect: 'Persegi Panjang: Satu Sudut Terpotong', + ribbonShapeSnip2SameRect: 'Persegi Panjang: Sudut Sisi Sama Terpotong', + ribbonShapeSnip2DiagRect: 'Persegi Panjang: Sudut Diagonal Terpotong', + ribbonShapeSnipRoundRect: 'Persegi Panjang: Satu Sudut Terpotong dan Membulat', + ribbonShapeRound1Rect: 'Persegi Panjang: Satu Sudut Membulat', + ribbonShapeRound2SameRect: 'Persegi Panjang: Sudut Sisi Sama Membulat', + ribbonShapeRound2DiagRect: 'Persegi Panjang: Sudut Diagonal Membulat', + ribbonShapePie: 'Pai', + ribbonShapeChord: 'Tali Busur', + ribbonShapeTeardrop: 'Tetesan Air Mata', + ribbonShapeFrame: 'Bingkai', + ribbonShapeHalfFrame: 'Setengah Bingkai', + ribbonShapeCorner: 'Bentuk L', + ribbonShapeDiagStripe: 'Garis Diagonal', + ribbonShapeDonut: 'Donat', + ribbonShapeNoSmoking: 'Simbol "Dilarang"', + ribbonShapeFoldedCorner: 'Sudut Terlipat', + ribbonShapeBevel: 'Bevel', + ribbonShapeCube: 'Kubus', + ribbonShapeCan: 'Tabung', + ribbonShapeLightningBolt: 'Petir', + ribbonShapeHeart: 'Hati', + ribbonShapeSun: 'Matahari', + ribbonShapeMoon: 'Bulan', + ribbonShapeCloud: 'Awan', + ribbonShapeArc: 'Busur', + ribbonShapePlaque: 'Plakat', + ribbonShapeSmileyFace: 'Wajah Tersenyum', + ribbonShapeLeftBracket: 'Kurung Siku Kiri', + ribbonShapeRightBracket: 'Kurung Siku Kanan', + ribbonShapeQuadArrow: 'Panah Empat Arah', + ribbonShapeBentArrow: 'Panah Menekuk', + ribbonShapeUturnArrow: 'Panah Putar Balik', + ribbonShapeCurvedRightArrow: 'Panah Melengkung ke Kanan', + ribbonShapeStripedRightArrow: 'Panah Bergaris ke Kanan', + ribbonShapeStar7: 'Bintang: 7 Titik', + ribbonShapeStar10: 'Bintang: 10 Titik', + ribbonShapeStar12: 'Bintang: 12 Titik', + ribbonShapeStar16: 'Bintang: 16 Titik', + ribbonShapeStar24: 'Bintang: 24 Titik', + ribbonShapeStar32: 'Bintang: 32 Titik', + ribbonShapeIrregularSeal1: 'Ledakan 1', + ribbonShapeIrregularSeal2: 'Ledakan 2', + ribbonShapeRibbon: 'Pita Bawah', + ribbonShapeRibbon2: 'Pita Atas', + ribbonShapeWave: 'Gelombang', + ribbonShapeDoubleWave: 'Gelombang Ganda', + ribbonShapeFlowProcess: 'Bagan Alur: Proses', + ribbonShapeFlowAlternateProcess: 'Bagan Alur: Proses Alternatif', + ribbonShapeFlowPredefinedProcess: 'Bagan Alur: Proses yang Ditentukan Sebelumnya', + ribbonShapeFlowInternalStorage: 'Bagan Alur: Penyimpanan Internal', + ribbonShapeFlowDocument: 'Bagan Alur: Dokumen', + ribbonShapeFlowMultidocument: 'Bagan Alur: Multidokumen', + ribbonShapeFlowPreparation: 'Bagan Alur: Persiapan', + ribbonShapeFlowManualInput: 'Bagan Alur: Input Manual', + ribbonShapeFlowManualOperation: 'Bagan Alur: Operasi Manual', + ribbonShapeFlowConnector: 'Bagan Alur: Konektor', + ribbonShapeFlowOffpageConnector: 'Bagan Alur: Konektor Luar Halaman', + ribbonShapeFlowMagneticDisk: 'Bagan Alur: Disk Magnetik', + ribbonShapeFlowMagneticDrum: 'Bagan Alur: Penyimpanan Akses Langsung', + ribbonShapeFlowDisplay: 'Bagan Alur: Tampilan', + ribbonShapeFlowDelay: 'Bagan Alur: Penundaan', + ribbonShapeFlowOr: 'Bagan Alur: Atau', + ribbonShapeFlowCollate: 'Bagan Alur: Kolasi', + ribbonShapeFlowSort: 'Bagan Alur: Urutkan', + ribbonShapeFlowExtract: 'Bagan Alur: Ekstrak', + ribbonShapeFlowMerge: 'Bagan Alur: Gabung', + ribbonShapeFlowSummingJunction: 'Bagan Alur: Persimpangan Penjumlahan', + ribbonShapeFlowPunchedTape: 'Bagan Alur: Pita Berlubang', + ribbonShapeCloudCallout: 'Keterangan awan', ribbonIconStar: 'Bintang', ribbonIconHeart: 'Hati', ribbonIconCheck: 'Centang', @@ -5905,6 +6544,77 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar8: 'Звезда: 8 лучей', ribbonShapeFlowDecision: 'Блок-схема: решение', ribbonShapeFlowTerminator: 'Блок-схема: знак завершения', + ribbonShapeGroupRects: 'Прямоугольники', + ribbonShapeSnip1Rect: 'Прямоугольник: один срезанный угол', + ribbonShapeSnip2SameRect: 'Прямоугольник: два срезанных угла с одной стороны', + ribbonShapeSnip2DiagRect: 'Прямоугольник: срезанные углы по диагонали', + ribbonShapeSnipRoundRect: 'Прямоугольник: один угол срезан, один скруглён', + ribbonShapeRound1Rect: 'Прямоугольник: один скруглённый угол', + ribbonShapeRound2SameRect: 'Прямоугольник: два скруглённых угла с одной стороны', + ribbonShapeRound2DiagRect: 'Прямоугольник: скруглённые углы по диагонали', + ribbonShapePie: 'Сектор', + ribbonShapeChord: 'Хорда', + ribbonShapeTeardrop: 'Капля', + ribbonShapeFrame: 'Рамка', + ribbonShapeHalfFrame: 'Половина рамки', + ribbonShapeCorner: 'L-образная фигура', + ribbonShapeDiagStripe: 'Диагональная полоса', + ribbonShapeDonut: 'Кольцо', + ribbonShapeNoSmoking: 'Знак запрета', + ribbonShapeFoldedCorner: 'Загнутый угол', + ribbonShapeBevel: 'Багетная рамка', + ribbonShapeCube: 'Куб', + ribbonShapeCan: 'Цилиндр', + ribbonShapeLightningBolt: 'Молния', + ribbonShapeHeart: 'Сердце', + ribbonShapeSun: 'Солнце', + ribbonShapeMoon: 'Месяц', + ribbonShapeCloud: 'Облако', + ribbonShapeArc: 'Дуга', + ribbonShapePlaque: 'Табличка', + ribbonShapeSmileyFace: 'Улыбающееся лицо', + ribbonShapeLeftBracket: 'Левая квадратная скобка', + ribbonShapeRightBracket: 'Правая квадратная скобка', + ribbonShapeQuadArrow: 'Четырёхсторонняя стрелка', + ribbonShapeBentArrow: 'Изогнутая стрелка', + ribbonShapeUturnArrow: 'Стрелка разворота', + ribbonShapeCurvedRightArrow: 'Стрелка, изогнутая вправо', + ribbonShapeStripedRightArrow: 'Штриховая стрелка вправо', + ribbonShapeStar7: 'Звезда: 7 лучей', + ribbonShapeStar10: 'Звезда: 10 лучей', + ribbonShapeStar12: 'Звезда: 12 лучей', + ribbonShapeStar16: 'Звезда: 16 лучей', + ribbonShapeStar24: 'Звезда: 24 луча', + ribbonShapeStar32: 'Звезда: 32 луча', + ribbonShapeIrregularSeal1: 'Взрыв 1', + ribbonShapeIrregularSeal2: 'Взрыв 2', + ribbonShapeRibbon: 'Лента лицом вниз', + ribbonShapeRibbon2: 'Лента лицом вверх', + ribbonShapeWave: 'Волна', + ribbonShapeDoubleWave: 'Двойная волна', + ribbonShapeFlowProcess: 'Блок-схема: процесс', + ribbonShapeFlowAlternateProcess: 'Блок-схема: альтернативный процесс', + ribbonShapeFlowPredefinedProcess: 'Блок-схема: типовой процесс', + ribbonShapeFlowInternalStorage: 'Блок-схема: внутренняя память', + ribbonShapeFlowDocument: 'Блок-схема: документ', + ribbonShapeFlowMultidocument: 'Блок-схема: несколько документов', + ribbonShapeFlowPreparation: 'Блок-схема: подготовка', + ribbonShapeFlowManualInput: 'Блок-схема: ручной ввод', + ribbonShapeFlowManualOperation: 'Блок-схема: ручное управление', + ribbonShapeFlowConnector: 'Блок-схема: соединитель', + ribbonShapeFlowOffpageConnector: 'Блок-схема: ссылка на другую страницу', + ribbonShapeFlowMagneticDisk: 'Блок-схема: магнитный диск', + ribbonShapeFlowMagneticDrum: 'Блок-схема: память с прямым доступом', + ribbonShapeFlowDisplay: 'Блок-схема: дисплей', + ribbonShapeFlowDelay: 'Блок-схема: задержка', + ribbonShapeFlowOr: 'Блок-схема: или', + ribbonShapeFlowCollate: 'Блок-схема: сопоставление', + ribbonShapeFlowSort: 'Блок-схема: сортировка', + ribbonShapeFlowExtract: 'Блок-схема: извлечение', + ribbonShapeFlowMerge: 'Блок-схема: слияние', + ribbonShapeFlowSummingJunction: 'Блок-схема: узел суммирования', + ribbonShapeFlowPunchedTape: 'Блок-схема: перфолента', + ribbonShapeCloudCallout: 'Выноска-облако', ribbonIconStar: 'Звезда', ribbonIconHeart: 'Сердце', ribbonIconCheck: 'Галочка', @@ -6487,6 +7197,77 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar8: 'نجمة: 8 رؤوس', ribbonShapeFlowDecision: 'مخطط انسيابي: قرار', ribbonShapeFlowTerminator: 'مخطط انسيابي: نقطة إنهاء', + ribbonShapeGroupRects: 'مستطيلات', + ribbonShapeSnip1Rect: 'مستطيل: زاوية واحدة مقصوصة', + ribbonShapeSnip2SameRect: 'مستطيل: زاويتان مقصوصتان من نفس الجانب', + ribbonShapeSnip2DiagRect: 'مستطيل: زاويتان مقصوصتان قطريًا', + ribbonShapeSnipRoundRect: 'مستطيل: زاوية مقصوصة وزاوية مستديرة', + ribbonShapeRound1Rect: 'مستطيل: زاوية واحدة مستديرة', + ribbonShapeRound2SameRect: 'مستطيل: زاويتان مستديرتان من نفس الجانب', + ribbonShapeRound2DiagRect: 'مستطيل: زاويتان مستديرتان قطريًا', + ribbonShapePie: 'قطاع دائري', + ribbonShapeChord: 'وتر', + ribbonShapeTeardrop: 'دمعة', + ribbonShapeFrame: 'إطار', + ribbonShapeHalfFrame: 'نصف إطار', + ribbonShapeCorner: 'شكل L', + ribbonShapeDiagStripe: 'شريط قطري', + ribbonShapeDonut: 'حلقة', + ribbonShapeNoSmoking: 'رمز "ممنوع"', + ribbonShapeFoldedCorner: 'زاوية مطوية', + ribbonShapeBevel: 'حافة مشطوفة', + ribbonShapeCube: 'مكعب', + ribbonShapeCan: 'أسطوانة', + ribbonShapeLightningBolt: 'برق', + ribbonShapeHeart: 'قلب', + ribbonShapeSun: 'شمس', + ribbonShapeMoon: 'قمر', + ribbonShapeCloud: 'سحابة', + ribbonShapeArc: 'قوس', + ribbonShapePlaque: 'لوحة', + ribbonShapeSmileyFace: 'وجه مبتسم', + ribbonShapeLeftBracket: 'قوس أيسر', + ribbonShapeRightBracket: 'قوس أيمن', + ribbonShapeQuadArrow: 'سهم رباعي الاتجاهات', + ribbonShapeBentArrow: 'سهم منعطف', + ribbonShapeUturnArrow: 'سهم على شكل حرف U', + ribbonShapeCurvedRightArrow: 'سهم منحنٍ لليمين', + ribbonShapeStripedRightArrow: 'سهم مخطط لليمين', + ribbonShapeStar7: 'نجمة: 7 رؤوس', + ribbonShapeStar10: 'نجمة: 10 رؤوس', + ribbonShapeStar12: 'نجمة: 12 رأسًا', + ribbonShapeStar16: 'نجمة: 16 رأسًا', + ribbonShapeStar24: 'نجمة: 24 رأسًا', + ribbonShapeStar32: 'نجمة: 32 رأسًا', + ribbonShapeIrregularSeal1: 'انفجار 1', + ribbonShapeIrregularSeal2: 'انفجار 2', + ribbonShapeRibbon: 'شريط لأسفل', + ribbonShapeRibbon2: 'شريط لأعلى', + ribbonShapeWave: 'موجة', + ribbonShapeDoubleWave: 'موجة مزدوجة', + ribbonShapeFlowProcess: 'مخطط انسيابي: عملية', + ribbonShapeFlowAlternateProcess: 'مخطط انسيابي: عملية بديلة', + ribbonShapeFlowPredefinedProcess: 'مخطط انسيابي: عملية معرفة مسبقًا', + ribbonShapeFlowInternalStorage: 'مخطط انسيابي: تخزين داخلي', + ribbonShapeFlowDocument: 'مخطط انسيابي: مستند', + ribbonShapeFlowMultidocument: 'مخطط انسيابي: مستندات متعددة', + ribbonShapeFlowPreparation: 'مخطط انسيابي: تحضير', + ribbonShapeFlowManualInput: 'مخطط انسيابي: إدخال يدوي', + ribbonShapeFlowManualOperation: 'مخطط انسيابي: عملية يدوية', + ribbonShapeFlowConnector: 'مخطط انسيابي: رابط', + ribbonShapeFlowOffpageConnector: 'مخطط انسيابي: رابط خارج الصفحة', + ribbonShapeFlowMagneticDisk: 'مخطط انسيابي: قرص مغناطيسي', + ribbonShapeFlowMagneticDrum: 'مخطط انسيابي: تخزين وصول مباشر', + ribbonShapeFlowDisplay: 'مخطط انسيابي: عرض', + ribbonShapeFlowDelay: 'مخطط انسيابي: تأخير', + ribbonShapeFlowOr: 'مخطط انسيابي: أو', + ribbonShapeFlowCollate: 'مخطط انسيابي: مقارنة', + ribbonShapeFlowSort: 'مخطط انسيابي: فرز', + ribbonShapeFlowExtract: 'مخطط انسيابي: استخراج', + ribbonShapeFlowMerge: 'مخطط انسيابي: دمج', + ribbonShapeFlowSummingJunction: 'مخطط انسيابي: نقطة تجميع', + ribbonShapeFlowPunchedTape: 'مخطط انسيابي: شريط مثقب', + ribbonShapeCloudCallout: 'وسيلة شرح سحابية', ribbonIconStar: 'نجمة', ribbonIconHeart: 'قلب', ribbonIconCheck: 'علامة اختيار', @@ -7087,6 +7868,77 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar8: 'Estrela de 8 Pontas', ribbonShapeFlowDecision: 'Fluxograma: Decisão', ribbonShapeFlowTerminator: 'Fluxograma: Terminação', + ribbonShapeGroupRects: 'Retângulos', + ribbonShapeSnip1Rect: 'Retângulo com Um Canto Recortado', + ribbonShapeSnip2SameRect: 'Retângulo com Cantos do Mesmo Lado Recortados', + ribbonShapeSnip2DiagRect: 'Retângulo com Cantos Diagonais Recortados', + ribbonShapeSnipRoundRect: 'Retângulo com Um Canto Recortado e Um Arredondado', + ribbonShapeRound1Rect: 'Retângulo com Um Canto Arredondado', + ribbonShapeRound2SameRect: 'Retângulo com Cantos do Mesmo Lado Arredondados', + ribbonShapeRound2DiagRect: 'Retângulo com Cantos Diagonais Arredondados', + ribbonShapePie: 'Pizza', + ribbonShapeChord: 'Corda', + ribbonShapeTeardrop: 'Lágrima', + ribbonShapeFrame: 'Moldura', + ribbonShapeHalfFrame: 'Meia Moldura', + ribbonShapeCorner: 'Forma de L', + ribbonShapeDiagStripe: 'Faixa Diagonal', + ribbonShapeDonut: 'Rosca', + ribbonShapeNoSmoking: 'Símbolo de "Proibido"', + ribbonShapeFoldedCorner: 'Canto Dobrado', + ribbonShapeBevel: 'Chanfro', + ribbonShapeCube: 'Cubo', + ribbonShapeCan: 'Lata', + ribbonShapeLightningBolt: 'Raio', + ribbonShapeHeart: 'Coração', + ribbonShapeSun: 'Sol', + ribbonShapeMoon: 'Lua', + ribbonShapeCloud: 'Nuvem', + ribbonShapeArc: 'Arco', + ribbonShapePlaque: 'Placa', + ribbonShapeSmileyFace: 'Rosto Sorridente', + ribbonShapeLeftBracket: 'Colchete Esquerdo', + ribbonShapeRightBracket: 'Colchete Direito', + ribbonShapeQuadArrow: 'Seta Quádrupla', + ribbonShapeBentArrow: 'Seta Dobrada', + ribbonShapeUturnArrow: 'Seta em U', + ribbonShapeCurvedRightArrow: 'Seta Curva para a Direita', + ribbonShapeStripedRightArrow: 'Seta Listrada para a Direita', + ribbonShapeStar7: 'Estrela de 7 Pontas', + ribbonShapeStar10: 'Estrela de 10 Pontas', + ribbonShapeStar12: 'Estrela de 12 Pontas', + ribbonShapeStar16: 'Estrela de 16 Pontas', + ribbonShapeStar24: 'Estrela de 24 Pontas', + ribbonShapeStar32: 'Estrela de 32 Pontas', + ribbonShapeIrregularSeal1: 'Explosão 1', + ribbonShapeIrregularSeal2: 'Explosão 2', + ribbonShapeRibbon: 'Faixa para Baixo', + ribbonShapeRibbon2: 'Faixa para Cima', + ribbonShapeWave: 'Onda', + ribbonShapeDoubleWave: 'Onda Dupla', + ribbonShapeFlowProcess: 'Fluxograma: Processo', + ribbonShapeFlowAlternateProcess: 'Fluxograma: Processo Alternativo', + ribbonShapeFlowPredefinedProcess: 'Fluxograma: Processo Predefinido', + ribbonShapeFlowInternalStorage: 'Fluxograma: Armazenamento Interno', + ribbonShapeFlowDocument: 'Fluxograma: Documento', + ribbonShapeFlowMultidocument: 'Fluxograma: Vários Documentos', + ribbonShapeFlowPreparation: 'Fluxograma: Preparação', + ribbonShapeFlowManualInput: 'Fluxograma: Entrada Manual', + ribbonShapeFlowManualOperation: 'Fluxograma: Operação Manual', + ribbonShapeFlowConnector: 'Fluxograma: Conector', + ribbonShapeFlowOffpageConnector: 'Fluxograma: Conector Fora da Página', + ribbonShapeFlowMagneticDisk: 'Fluxograma: Disco Magnético', + ribbonShapeFlowMagneticDrum: 'Fluxograma: Armazenamento de Acesso Direto', + ribbonShapeFlowDisplay: 'Fluxograma: Exibição', + ribbonShapeFlowDelay: 'Fluxograma: Atraso', + ribbonShapeFlowOr: 'Fluxograma: Ou', + ribbonShapeFlowCollate: 'Fluxograma: Agrupar', + ribbonShapeFlowSort: 'Fluxograma: Classificar', + ribbonShapeFlowExtract: 'Fluxograma: Extrair', + ribbonShapeFlowMerge: 'Fluxograma: Mesclar', + ribbonShapeFlowSummingJunction: 'Fluxograma: Junção de Soma', + ribbonShapeFlowPunchedTape: 'Fluxograma: Fita Perfurada', + ribbonShapeCloudCallout: 'Texto explicativo em nuvem', ribbonIconStar: 'Estrela', ribbonIconHeart: 'Coração', ribbonIconCheck: 'Marca de Seleção', @@ -7695,6 +8547,77 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar8: 'Stella a 8 Punte', ribbonShapeFlowDecision: 'Diagramma di Flusso: Decisione', ribbonShapeFlowTerminator: 'Diagramma di Flusso: Terminatore', + ribbonShapeGroupRects: 'Rettangoli', + ribbonShapeSnip1Rect: 'Rettangolo con Un Angolo Tagliato', + ribbonShapeSnip2SameRect: 'Rettangolo con Angoli sullo Stesso Lato Tagliati', + ribbonShapeSnip2DiagRect: 'Rettangolo con Angoli in Diagonale Tagliati', + ribbonShapeSnipRoundRect: 'Rettangolo con Un Angolo Tagliato e Uno Arrotondato', + ribbonShapeRound1Rect: 'Rettangolo con Un Angolo Arrotondato', + ribbonShapeRound2SameRect: 'Rettangolo con Angoli sullo Stesso Lato Arrotondati', + ribbonShapeRound2DiagRect: 'Rettangolo con Angoli in Diagonale Arrotondati', + ribbonShapePie: 'Torta', + ribbonShapeChord: 'Corda', + ribbonShapeTeardrop: 'Goccia', + ribbonShapeFrame: 'Cornice', + ribbonShapeHalfFrame: 'Mezza Cornice', + ribbonShapeCorner: 'Forma a L', + ribbonShapeDiagStripe: 'Striscia Diagonale', + ribbonShapeDonut: 'Anello', + ribbonShapeNoSmoking: 'Simbolo di Divieto', + ribbonShapeFoldedCorner: 'Angolo Ripiegato', + ribbonShapeBevel: 'Smusso', + ribbonShapeCube: 'Cubo', + ribbonShapeCan: 'Cilindro', + ribbonShapeLightningBolt: 'Fulmine', + ribbonShapeHeart: 'Cuore', + ribbonShapeSun: 'Sole', + ribbonShapeMoon: 'Luna', + ribbonShapeCloud: 'Nuvola', + ribbonShapeArc: 'Arco', + ribbonShapePlaque: 'Targa', + ribbonShapeSmileyFace: 'Faccina Sorridente', + ribbonShapeLeftBracket: 'Parentesi Quadra Aperta', + ribbonShapeRightBracket: 'Parentesi Quadra Chiusa', + ribbonShapeQuadArrow: 'Freccia Quadrupla', + ribbonShapeBentArrow: 'Freccia Piegata', + ribbonShapeUturnArrow: 'Freccia a U', + ribbonShapeCurvedRightArrow: 'Freccia Curva a Destra', + ribbonShapeStripedRightArrow: 'Freccia a Strisce verso Destra', + ribbonShapeStar7: 'Stella a 7 Punte', + ribbonShapeStar10: 'Stella a 10 Punte', + ribbonShapeStar12: 'Stella a 12 Punte', + ribbonShapeStar16: 'Stella a 16 Punte', + ribbonShapeStar24: 'Stella a 24 Punte', + ribbonShapeStar32: 'Stella a 32 Punte', + ribbonShapeIrregularSeal1: 'Esplosione 1', + ribbonShapeIrregularSeal2: 'Esplosione 2', + ribbonShapeRibbon: 'Nastro verso il Basso', + ribbonShapeRibbon2: "Nastro verso l'Alto", + ribbonShapeWave: 'Onda', + ribbonShapeDoubleWave: 'Onda Doppia', + ribbonShapeFlowProcess: 'Diagramma di Flusso: Processo', + ribbonShapeFlowAlternateProcess: 'Diagramma di Flusso: Processo Alternativo', + ribbonShapeFlowPredefinedProcess: 'Diagramma di Flusso: Processo Predefinito', + ribbonShapeFlowInternalStorage: 'Diagramma di Flusso: Memoria Interna', + ribbonShapeFlowDocument: 'Diagramma di Flusso: Documento', + ribbonShapeFlowMultidocument: 'Diagramma di Flusso: Documenti Multipli', + ribbonShapeFlowPreparation: 'Diagramma di Flusso: Preparazione', + ribbonShapeFlowManualInput: 'Diagramma di Flusso: Input Manuale', + ribbonShapeFlowManualOperation: 'Diagramma di Flusso: Operazione Manuale', + ribbonShapeFlowConnector: 'Diagramma di Flusso: Connettore', + ribbonShapeFlowOffpageConnector: 'Diagramma di Flusso: Connettore Fuori Pagina', + ribbonShapeFlowMagneticDisk: 'Diagramma di Flusso: Disco Magnetico', + ribbonShapeFlowMagneticDrum: 'Diagramma di Flusso: Memoria ad Accesso Diretto', + ribbonShapeFlowDisplay: 'Diagramma di Flusso: Visualizzazione', + ribbonShapeFlowDelay: 'Diagramma di Flusso: Ritardo', + ribbonShapeFlowOr: 'Diagramma di Flusso: Oppure', + ribbonShapeFlowCollate: 'Diagramma di Flusso: Confronto', + ribbonShapeFlowSort: 'Diagramma di Flusso: Ordinamento', + ribbonShapeFlowExtract: 'Diagramma di Flusso: Estrazione', + ribbonShapeFlowMerge: 'Diagramma di Flusso: Unione', + ribbonShapeFlowSummingJunction: 'Diagramma di Flusso: Giunzione di Somma', + ribbonShapeFlowPunchedTape: 'Diagramma di Flusso: Nastro Perforato', + ribbonShapeCloudCallout: 'Callout a nuvola', ribbonIconStar: 'Stella', ribbonIconHeart: 'Cuore', ribbonIconCheck: 'Segno di Spunta', @@ -8293,6 +9216,77 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar8: 'Gwiazda 8-ramienna', ribbonShapeFlowDecision: 'Schemat blokowy: decyzja', ribbonShapeFlowTerminator: 'Schemat blokowy: zakończenie', + ribbonShapeGroupRects: 'Prostokąty', + ribbonShapeSnip1Rect: 'Prostokąt z jednym ściętym rogiem', + ribbonShapeSnip2SameRect: 'Prostokąt ze ściętymi rogami z jednej strony', + ribbonShapeSnip2DiagRect: 'Prostokąt ze ściętymi rogami po przekątnej', + ribbonShapeSnipRoundRect: 'Prostokąt z jednym rogiem ściętym i jednym zaokrąglonym', + ribbonShapeRound1Rect: 'Prostokąt z jednym zaokrąglonym rogiem', + ribbonShapeRound2SameRect: 'Prostokąt z zaokrąglonymi rogami z jednej strony', + ribbonShapeRound2DiagRect: 'Prostokąt z zaokrąglonymi rogami po przekątnej', + ribbonShapePie: 'Wycinek koła', + ribbonShapeChord: 'Cięciwa', + ribbonShapeTeardrop: 'Łza', + ribbonShapeFrame: 'Ramka', + ribbonShapeHalfFrame: 'Połowa ramki', + ribbonShapeCorner: 'Kształt litery L', + ribbonShapeDiagStripe: 'Ukośny pasek', + ribbonShapeDonut: 'Pierścień', + ribbonShapeNoSmoking: 'Symbol zakazu', + ribbonShapeFoldedCorner: 'Zagięty róg', + ribbonShapeBevel: 'Skos', + ribbonShapeCube: 'Sześcian', + ribbonShapeCan: 'Walec', + ribbonShapeLightningBolt: 'Błyskawica', + ribbonShapeHeart: 'Serce', + ribbonShapeSun: 'Słońce', + ribbonShapeMoon: 'Księżyc', + ribbonShapeCloud: 'Chmura', + ribbonShapeArc: 'Łuk', + ribbonShapePlaque: 'Plakietka', + ribbonShapeSmileyFace: 'Uśmiechnięta buźka', + ribbonShapeLeftBracket: 'Lewy nawias kwadratowy', + ribbonShapeRightBracket: 'Prawy nawias kwadratowy', + ribbonShapeQuadArrow: 'Strzałka poczwórna', + ribbonShapeBentArrow: 'Strzałka zagięta', + ribbonShapeUturnArrow: 'Strzałka zawracająca', + ribbonShapeCurvedRightArrow: 'Strzałka zakrzywiona w prawo', + ribbonShapeStripedRightArrow: 'Strzałka w prawo w paski', + ribbonShapeStar7: 'Gwiazda 7-ramienna', + ribbonShapeStar10: 'Gwiazda 10-ramienna', + ribbonShapeStar12: 'Gwiazda 12-ramienna', + ribbonShapeStar16: 'Gwiazda 16-ramienna', + ribbonShapeStar24: 'Gwiazda 24-ramienna', + ribbonShapeStar32: 'Gwiazda 32-ramienna', + ribbonShapeIrregularSeal1: 'Eksplozja 1', + ribbonShapeIrregularSeal2: 'Eksplozja 2', + ribbonShapeRibbon: 'Wstążka w dół', + ribbonShapeRibbon2: 'Wstążka w górę', + ribbonShapeWave: 'Fala', + ribbonShapeDoubleWave: 'Fala podwójna', + ribbonShapeFlowProcess: 'Schemat blokowy: proces', + ribbonShapeFlowAlternateProcess: 'Schemat blokowy: proces alternatywny', + ribbonShapeFlowPredefinedProcess: 'Schemat blokowy: proces wstępnie zdefiniowany', + ribbonShapeFlowInternalStorage: 'Schemat blokowy: magazyn wewnętrzny', + ribbonShapeFlowDocument: 'Schemat blokowy: dokument', + ribbonShapeFlowMultidocument: 'Schemat blokowy: wiele dokumentów', + ribbonShapeFlowPreparation: 'Schemat blokowy: przygotowanie', + ribbonShapeFlowManualInput: 'Schemat blokowy: wprowadzanie ręczne', + ribbonShapeFlowManualOperation: 'Schemat blokowy: operacja ręczna', + ribbonShapeFlowConnector: 'Schemat blokowy: łącznik', + ribbonShapeFlowOffpageConnector: 'Schemat blokowy: łącznik międzystronicowy', + ribbonShapeFlowMagneticDisk: 'Schemat blokowy: dysk magnetyczny', + ribbonShapeFlowMagneticDrum: 'Schemat blokowy: pamięć o dostępie bezpośrednim', + ribbonShapeFlowDisplay: 'Schemat blokowy: ekran', + ribbonShapeFlowDelay: 'Schemat blokowy: opóźnienie', + ribbonShapeFlowOr: 'Schemat blokowy: lub', + ribbonShapeFlowCollate: 'Schemat blokowy: zestawianie', + ribbonShapeFlowSort: 'Schemat blokowy: sortowanie', + ribbonShapeFlowExtract: 'Schemat blokowy: wyodrębnianie', + ribbonShapeFlowMerge: 'Schemat blokowy: scalanie', + ribbonShapeFlowSummingJunction: 'Schemat blokowy: węzeł sumacyjny', + ribbonShapeFlowPunchedTape: 'Schemat blokowy: taśma dziurkowana', + ribbonShapeCloudCallout: 'Objaśnienie w kształcie chmury', ribbonIconStar: 'Gwiazda', ribbonIconHeart: 'Serce', ribbonIconCheck: 'Znacznik wyboru', @@ -8899,6 +9893,77 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar8: 'Ster met 8 punten', ribbonShapeFlowDecision: 'Stroomdiagram: beslissing', ribbonShapeFlowTerminator: 'Stroomdiagram: einde', + ribbonShapeGroupRects: 'Rechthoeken', + ribbonShapeSnip1Rect: 'Rechthoek met één afgesneden hoek', + ribbonShapeSnip2SameRect: 'Rechthoek met afgesneden hoeken aan dezelfde zijde', + ribbonShapeSnip2DiagRect: 'Rechthoek met diagonaal afgesneden hoeken', + ribbonShapeSnipRoundRect: 'Rechthoek met één afgesneden en één afgeronde hoek', + ribbonShapeRound1Rect: 'Rechthoek met één afgeronde hoek', + ribbonShapeRound2SameRect: 'Rechthoek met afgeronde hoeken aan dezelfde zijde', + ribbonShapeRound2DiagRect: 'Rechthoek met diagonaal afgeronde hoeken', + ribbonShapePie: 'Taartpunt', + ribbonShapeChord: 'Koorde', + ribbonShapeTeardrop: 'Traan', + ribbonShapeFrame: 'Kader', + ribbonShapeHalfFrame: 'Half kader', + ribbonShapeCorner: 'L-vorm', + ribbonShapeDiagStripe: 'Diagonale streep', + ribbonShapeDonut: 'Ring', + ribbonShapeNoSmoking: 'Verbodsteken', + ribbonShapeFoldedCorner: 'Omgevouwen hoek', + ribbonShapeBevel: 'Schuine rand', + ribbonShapeCube: 'Kubus', + ribbonShapeCan: 'Cilinder', + ribbonShapeLightningBolt: 'Bliksemschicht', + ribbonShapeHeart: 'Hart', + ribbonShapeSun: 'Zon', + ribbonShapeMoon: 'Maan', + ribbonShapeCloud: 'Wolk', + ribbonShapeArc: 'Boog', + ribbonShapePlaque: 'Plaquette', + ribbonShapeSmileyFace: 'Smiley', + ribbonShapeLeftBracket: 'Linker vierkante haak', + ribbonShapeRightBracket: 'Rechter vierkante haak', + ribbonShapeQuadArrow: 'Viervoudige pijl', + ribbonShapeBentArrow: 'Gebogen pijl', + ribbonShapeUturnArrow: 'U-bochtpijl', + ribbonShapeCurvedRightArrow: 'Naar rechts gekromde pijl', + ribbonShapeStripedRightArrow: 'Gestreepte pijl naar rechts', + ribbonShapeStar7: 'Ster met 7 punten', + ribbonShapeStar10: 'Ster met 10 punten', + ribbonShapeStar12: 'Ster met 12 punten', + ribbonShapeStar16: 'Ster met 16 punten', + ribbonShapeStar24: 'Ster met 24 punten', + ribbonShapeStar32: 'Ster met 32 punten', + ribbonShapeIrregularSeal1: 'Explosie 1', + ribbonShapeIrregularSeal2: 'Explosie 2', + ribbonShapeRibbon: 'Lint omlaag', + ribbonShapeRibbon2: 'Lint omhoog', + ribbonShapeWave: 'Golf', + ribbonShapeDoubleWave: 'Dubbele golf', + ribbonShapeFlowProcess: 'Stroomdiagram: proces', + ribbonShapeFlowAlternateProcess: 'Stroomdiagram: alternatief proces', + ribbonShapeFlowPredefinedProcess: 'Stroomdiagram: vooraf gedefinieerd proces', + ribbonShapeFlowInternalStorage: 'Stroomdiagram: interne opslag', + ribbonShapeFlowDocument: 'Stroomdiagram: document', + ribbonShapeFlowMultidocument: 'Stroomdiagram: meerdere documenten', + ribbonShapeFlowPreparation: 'Stroomdiagram: voorbereiding', + ribbonShapeFlowManualInput: 'Stroomdiagram: handmatige invoer', + ribbonShapeFlowManualOperation: 'Stroomdiagram: handmatige bewerking', + ribbonShapeFlowConnector: 'Stroomdiagram: verbinding', + ribbonShapeFlowOffpageConnector: 'Stroomdiagram: verbinding naar andere pagina', + ribbonShapeFlowMagneticDisk: 'Stroomdiagram: magneetschijf', + ribbonShapeFlowMagneticDrum: 'Stroomdiagram: opslag met directe toegang', + ribbonShapeFlowDisplay: 'Stroomdiagram: beeldscherm', + ribbonShapeFlowDelay: 'Stroomdiagram: vertraging', + ribbonShapeFlowOr: 'Stroomdiagram: of', + ribbonShapeFlowCollate: 'Stroomdiagram: collationeren', + ribbonShapeFlowSort: 'Stroomdiagram: sorteren', + ribbonShapeFlowExtract: 'Stroomdiagram: extraheren', + ribbonShapeFlowMerge: 'Stroomdiagram: samenvoegen', + ribbonShapeFlowSummingJunction: 'Stroomdiagram: sommatiepunt', + ribbonShapeFlowPunchedTape: 'Stroomdiagram: ponsband', + ribbonShapeCloudCallout: 'Wolkvormige toelichting', ribbonIconStar: 'Ster', ribbonIconHeart: 'Hart', ribbonIconCheck: 'Vinkje', @@ -9500,6 +10565,77 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar8: 'Bintang 8 Bucu', ribbonShapeFlowDecision: 'Carta Alir: Keputusan', ribbonShapeFlowTerminator: 'Carta Alir: Penamat', + ribbonShapeGroupRects: 'Segi Empat Tepat', + ribbonShapeSnip1Rect: 'Segi Empat Tepat Potong Satu Bucu', + ribbonShapeSnip2SameRect: 'Segi Empat Tepat Potong Bucu Sisi Sama', + ribbonShapeSnip2DiagRect: 'Segi Empat Tepat Potong Bucu Pepenjuru', + ribbonShapeSnipRoundRect: 'Segi Empat Tepat Potong dan Bulat Satu Bucu', + ribbonShapeRound1Rect: 'Segi Empat Tepat Bulat Satu Bucu', + ribbonShapeRound2SameRect: 'Segi Empat Tepat Bulat Bucu Sisi Sama', + ribbonShapeRound2DiagRect: 'Segi Empat Tepat Bulat Bucu Pepenjuru', + ribbonShapePie: 'Pai', + ribbonShapeChord: 'Perentas', + ribbonShapeTeardrop: 'Titisan Air Mata', + ribbonShapeFrame: 'Bingkai', + ribbonShapeHalfFrame: 'Separuh Bingkai', + ribbonShapeCorner: 'Bentuk L', + ribbonShapeDiagStripe: 'Jalur Pepenjuru', + ribbonShapeDonut: 'Donut', + ribbonShapeNoSmoking: 'Simbol "Dilarang"', + ribbonShapeFoldedCorner: 'Bucu Terlipat', + ribbonShapeBevel: 'Serong', + ribbonShapeCube: 'Kubus', + ribbonShapeCan: 'Silinder', + ribbonShapeLightningBolt: 'Kilat', + ribbonShapeHeart: 'Hati', + ribbonShapeSun: 'Matahari', + ribbonShapeMoon: 'Bulan', + ribbonShapeCloud: 'Awan', + ribbonShapeArc: 'Lengkok', + ribbonShapePlaque: 'Plak', + ribbonShapeSmileyFace: 'Muka Senyum', + ribbonShapeLeftBracket: 'Kurungan Siku Kiri', + ribbonShapeRightBracket: 'Kurungan Siku Kanan', + ribbonShapeQuadArrow: 'Anak Panah Empat Arah', + ribbonShapeBentArrow: 'Anak Panah Bengkok', + ribbonShapeUturnArrow: 'Anak Panah Pusing Balik', + ribbonShapeCurvedRightArrow: 'Anak Panah Melengkung ke Kanan', + ribbonShapeStripedRightArrow: 'Anak Panah Berjalur ke Kanan', + ribbonShapeStar7: 'Bintang 7 Bucu', + ribbonShapeStar10: 'Bintang 10 Bucu', + ribbonShapeStar12: 'Bintang 12 Bucu', + ribbonShapeStar16: 'Bintang 16 Bucu', + ribbonShapeStar24: 'Bintang 24 Bucu', + ribbonShapeStar32: 'Bintang 32 Bucu', + ribbonShapeIrregularSeal1: 'Letupan 1', + ribbonShapeIrregularSeal2: 'Letupan 2', + ribbonShapeRibbon: 'Reben Bawah', + ribbonShapeRibbon2: 'Reben Atas', + ribbonShapeWave: 'Gelombang', + ribbonShapeDoubleWave: 'Gelombang Berganda', + ribbonShapeFlowProcess: 'Carta Alir: Proses', + ribbonShapeFlowAlternateProcess: 'Carta Alir: Proses Alternatif', + ribbonShapeFlowPredefinedProcess: 'Carta Alir: Proses Pratakrif', + ribbonShapeFlowInternalStorage: 'Carta Alir: Storan Dalaman', + ribbonShapeFlowDocument: 'Carta Alir: Dokumen', + ribbonShapeFlowMultidocument: 'Carta Alir: Multidokumen', + ribbonShapeFlowPreparation: 'Carta Alir: Persediaan', + ribbonShapeFlowManualInput: 'Carta Alir: Input Manual', + ribbonShapeFlowManualOperation: 'Carta Alir: Operasi Manual', + ribbonShapeFlowConnector: 'Carta Alir: Penyambung', + ribbonShapeFlowOffpageConnector: 'Carta Alir: Penyambung Luar Halaman', + ribbonShapeFlowMagneticDisk: 'Carta Alir: Cakera Magnet', + ribbonShapeFlowMagneticDrum: 'Carta Alir: Storan Capaian Terus', + ribbonShapeFlowDisplay: 'Carta Alir: Paparan', + ribbonShapeFlowDelay: 'Carta Alir: Lengah', + ribbonShapeFlowOr: 'Carta Alir: Atau', + ribbonShapeFlowCollate: 'Carta Alir: Susun Semak', + ribbonShapeFlowSort: 'Carta Alir: Isih', + ribbonShapeFlowExtract: 'Carta Alir: Ekstrak', + ribbonShapeFlowMerge: 'Carta Alir: Cantum', + ribbonShapeFlowSummingJunction: 'Carta Alir: Simpang Penjumlahan', + ribbonShapeFlowPunchedTape: 'Carta Alir: Pita Bertebuk', + ribbonShapeCloudCallout: 'Petak bual awan', ribbonIconStar: 'Bintang', ribbonIconHeart: 'Hati', ribbonIconCheck: 'Tanda Semak', @@ -10074,6 +11210,77 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar8: 'כוכב 8 קצוות', ribbonShapeFlowDecision: 'תרשים זרימה: החלטה', ribbonShapeFlowTerminator: 'תרשים זרימה: סיום', + ribbonShapeGroupRects: 'מלבנים', + ribbonShapeSnip1Rect: 'מלבן עם פינה חתוכה אחת', + ribbonShapeSnip2SameRect: 'מלבן עם פינות חתוכות באותו צד', + ribbonShapeSnip2DiagRect: 'מלבן עם פינות חתוכות באלכסון', + ribbonShapeSnipRoundRect: 'מלבן עם פינה חתוכה ופינה מעוגלת', + ribbonShapeRound1Rect: 'מלבן עם פינה מעוגלת אחת', + ribbonShapeRound2SameRect: 'מלבן עם פינות מעוגלות באותו צד', + ribbonShapeRound2DiagRect: 'מלבן עם פינות מעוגלות באלכסון', + ribbonShapePie: 'עוגה', + ribbonShapeChord: 'מיתר', + ribbonShapeTeardrop: 'דמעה', + ribbonShapeFrame: 'מסגרת', + ribbonShapeHalfFrame: 'חצי מסגרת', + ribbonShapeCorner: 'צורת L', + ribbonShapeDiagStripe: 'פס אלכסוני', + ribbonShapeDonut: 'טבעת', + ribbonShapeNoSmoking: 'סמל איסור', + ribbonShapeFoldedCorner: 'פינה מקופלת', + ribbonShapeBevel: 'שיפוע', + ribbonShapeCube: 'קובייה', + ribbonShapeCan: 'גליל', + ribbonShapeLightningBolt: 'ברק', + ribbonShapeHeart: 'לב', + ribbonShapeSun: 'שמש', + ribbonShapeMoon: 'ירח', + ribbonShapeCloud: 'ענן', + ribbonShapeArc: 'קשת', + ribbonShapePlaque: 'לוחית', + ribbonShapeSmileyFace: 'פרצוף מחייך', + ribbonShapeLeftBracket: 'סוגר מרובע שמאלי', + ribbonShapeRightBracket: 'סוגר מרובע ימני', + ribbonShapeQuadArrow: 'חץ לארבעה כיוונים', + ribbonShapeBentArrow: 'חץ מכופף', + ribbonShapeUturnArrow: 'חץ פניית פרסה', + ribbonShapeCurvedRightArrow: 'חץ מעוקל ימינה', + ribbonShapeStripedRightArrow: 'חץ מפוספס ימינה', + ribbonShapeStar7: 'כוכב 7 קצוות', + ribbonShapeStar10: 'כוכב 10 קצוות', + ribbonShapeStar12: 'כוכב 12 קצוות', + ribbonShapeStar16: 'כוכב 16 קצוות', + ribbonShapeStar24: 'כוכב 24 קצוות', + ribbonShapeStar32: 'כוכב 32 קצוות', + ribbonShapeIrregularSeal1: 'פיצוץ 1', + ribbonShapeIrregularSeal2: 'פיצוץ 2', + ribbonShapeRibbon: 'סרט כלפי מטה', + ribbonShapeRibbon2: 'סרט כלפי מעלה', + ribbonShapeWave: 'גל', + ribbonShapeDoubleWave: 'גל כפול', + ribbonShapeFlowProcess: 'תרשים זרימה: תהליך', + ribbonShapeFlowAlternateProcess: 'תרשים זרימה: תהליך חלופי', + ribbonShapeFlowPredefinedProcess: 'תרשים זרימה: תהליך מוגדר מראש', + ribbonShapeFlowInternalStorage: 'תרשים זרימה: אחסון פנימי', + ribbonShapeFlowDocument: 'תרשים זרימה: מסמך', + ribbonShapeFlowMultidocument: 'תרשים זרימה: מסמכים מרובים', + ribbonShapeFlowPreparation: 'תרשים זרימה: הכנה', + ribbonShapeFlowManualInput: 'תרשים זרימה: קלט ידני', + ribbonShapeFlowManualOperation: 'תרשים זרימה: פעולה ידנית', + ribbonShapeFlowConnector: 'תרשים זרימה: מחבר', + ribbonShapeFlowOffpageConnector: 'תרשים זרימה: מחבר מחוץ לעמוד', + ribbonShapeFlowMagneticDisk: 'תרשים זרימה: דיסק מגנטי', + ribbonShapeFlowMagneticDrum: 'תרשים זרימה: אחסון בגישה ישירה', + ribbonShapeFlowDisplay: 'תרשים זרימה: תצוגה', + ribbonShapeFlowDelay: 'תרשים זרימה: השהיה', + ribbonShapeFlowOr: 'תרשים זרימה: או', + ribbonShapeFlowCollate: 'תרשים זרימה: איסוף', + ribbonShapeFlowSort: 'תרשים זרימה: מיון', + ribbonShapeFlowExtract: 'תרשים זרימה: חילוץ', + ribbonShapeFlowMerge: 'תרשים זרימה: מיזוג', + ribbonShapeFlowSummingJunction: 'תרשים זרימה: צומת סיכום', + ribbonShapeFlowPunchedTape: 'תרשים זרימה: סרט מנוקב', + ribbonShapeCloudCallout: 'הסבר בצורת ענן', ribbonIconStar: 'כוכב', ribbonIconHeart: 'לב', ribbonIconCheck: 'סימן וי', @@ -10668,6 +11875,77 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar8: '8-कोणीय तारा', ribbonShapeFlowDecision: 'फ़्लोचार्ट: निर्णय', ribbonShapeFlowTerminator: 'फ़्लोचार्ट: समापन', + ribbonShapeGroupRects: 'आयत', + ribbonShapeSnip1Rect: 'एक कटे कोने वाला आयत', + ribbonShapeSnip2SameRect: 'एक ही ओर कटे कोनों वाला आयत', + ribbonShapeSnip2DiagRect: 'विकर्ण कटे कोनों वाला आयत', + ribbonShapeSnipRoundRect: 'एक कटे और एक गोल कोने वाला आयत', + ribbonShapeRound1Rect: 'एक गोल कोने वाला आयत', + ribbonShapeRound2SameRect: 'एक ही ओर गोल कोनों वाला आयत', + ribbonShapeRound2DiagRect: 'विकर्ण गोल कोनों वाला आयत', + ribbonShapePie: 'पाई', + ribbonShapeChord: 'जीवा', + ribbonShapeTeardrop: 'अश्रु बूँद', + ribbonShapeFrame: 'फ़्रेम', + ribbonShapeHalfFrame: 'आधा फ़्रेम', + ribbonShapeCorner: 'L-आकृति', + ribbonShapeDiagStripe: 'विकर्ण पट्टी', + ribbonShapeDonut: 'डोनट', + ribbonShapeNoSmoking: 'निषेध चिह्न', + ribbonShapeFoldedCorner: 'मुड़ा हुआ कोना', + ribbonShapeBevel: 'बेवेल', + ribbonShapeCube: 'घन', + ribbonShapeCan: 'बेलन', + ribbonShapeLightningBolt: 'बिजली', + ribbonShapeHeart: 'हृदय', + ribbonShapeSun: 'सूर्य', + ribbonShapeMoon: 'चंद्रमा', + ribbonShapeCloud: 'बादल', + ribbonShapeArc: 'चाप', + ribbonShapePlaque: 'पट्टिका', + ribbonShapeSmileyFace: 'मुस्कुराता चेहरा', + ribbonShapeLeftBracket: 'बायाँ कोष्ठक', + ribbonShapeRightBracket: 'दायाँ कोष्ठक', + ribbonShapeQuadArrow: 'चार दिशाओं वाला तीर', + ribbonShapeBentArrow: 'मुड़ा हुआ तीर', + ribbonShapeUturnArrow: 'यू-टर्न तीर', + ribbonShapeCurvedRightArrow: 'दाईं ओर वक्र तीर', + ribbonShapeStripedRightArrow: 'धारीदार दायाँ तीर', + ribbonShapeStar7: '7-कोणीय तारा', + ribbonShapeStar10: '10-कोणीय तारा', + ribbonShapeStar12: '12-कोणीय तारा', + ribbonShapeStar16: '16-कोणीय तारा', + ribbonShapeStar24: '24-कोणीय तारा', + ribbonShapeStar32: '32-कोणीय तारा', + ribbonShapeIrregularSeal1: 'विस्फोट 1', + ribbonShapeIrregularSeal2: 'विस्फोट 2', + ribbonShapeRibbon: 'नीचे की ओर रिबन', + ribbonShapeRibbon2: 'ऊपर की ओर रिबन', + ribbonShapeWave: 'तरंग', + ribbonShapeDoubleWave: 'दोहरी तरंग', + ribbonShapeFlowProcess: 'फ़्लोचार्ट: प्रक्रिया', + ribbonShapeFlowAlternateProcess: 'फ़्लोचार्ट: वैकल्पिक प्रक्रिया', + ribbonShapeFlowPredefinedProcess: 'फ़्लोचार्ट: पूर्वनिर्धारित प्रक्रिया', + ribbonShapeFlowInternalStorage: 'फ़्लोचार्ट: आंतरिक संग्रहण', + ribbonShapeFlowDocument: 'फ़्लोचार्ट: दस्तावेज़', + ribbonShapeFlowMultidocument: 'फ़्लोचार्ट: बहु-दस्तावेज़', + ribbonShapeFlowPreparation: 'फ़्लोचार्ट: तैयारी', + ribbonShapeFlowManualInput: 'फ़्लोचार्ट: मैन्युअल इनपुट', + ribbonShapeFlowManualOperation: 'फ़्लोचार्ट: मैन्युअल संचालन', + ribbonShapeFlowConnector: 'फ़्लोचार्ट: संयोजक', + ribbonShapeFlowOffpageConnector: 'फ़्लोचार्ट: पृष्ठ-बाह्य संयोजक', + ribbonShapeFlowMagneticDisk: 'फ़्लोचार्ट: चुंबकीय डिस्क', + ribbonShapeFlowMagneticDrum: 'फ़्लोचार्ट: प्रत्यक्ष पहुँच संग्रहण', + ribbonShapeFlowDisplay: 'फ़्लोचार्ट: प्रदर्शन', + ribbonShapeFlowDelay: 'फ़्लोचार्ट: विलंब', + ribbonShapeFlowOr: 'फ़्लोचार्ट: या', + ribbonShapeFlowCollate: 'फ़्लोचार्ट: मिलान', + ribbonShapeFlowSort: 'फ़्लोचार्ट: छँटाई', + ribbonShapeFlowExtract: 'फ़्लोचार्ट: निष्कर्षण', + ribbonShapeFlowMerge: 'फ़्लोचार्ट: विलय', + ribbonShapeFlowSummingJunction: 'फ़्लोचार्ट: योग जंक्शन', + ribbonShapeFlowPunchedTape: 'फ़्लोचार्ट: छिद्रित टेप', + ribbonShapeCloudCallout: 'बादल कॉलआउट', ribbonIconStar: 'तारा', ribbonIconHeart: 'दिल', ribbonIconCheck: 'सही का निशान', @@ -11234,6 +12512,77 @@ export const ribbonStrings = defineStrings({ ribbonShapeStar8: '八角星', ribbonShapeFlowDecision: '決策', ribbonShapeFlowTerminator: '終止', + ribbonShapeGroupRects: '矩形', + ribbonShapeSnip1Rect: '剪去單角矩形', + ribbonShapeSnip2SameRect: '剪去同側角矩形', + ribbonShapeSnip2DiagRect: '剪去對角矩形', + ribbonShapeSnipRoundRect: '剪去及圓化單角矩形', + ribbonShapeRound1Rect: '圓化單角矩形', + ribbonShapeRound2SameRect: '圓化同側角矩形', + ribbonShapeRound2DiagRect: '圓化對角矩形', + ribbonShapePie: '派形', + ribbonShapeChord: '弦形', + ribbonShapeTeardrop: '淚滴形', + ribbonShapeFrame: '框架', + ribbonShapeHalfFrame: '半框架', + ribbonShapeCorner: 'L 形', + ribbonShapeDiagStripe: '斜紋', + ribbonShapeDonut: '圓環', + ribbonShapeNoSmoking: '禁止符號', + ribbonShapeFoldedCorner: '摺角', + ribbonShapeBevel: '斜角', + ribbonShapeCube: '立方體', + ribbonShapeCan: '圓柱', + ribbonShapeLightningBolt: '閃電', + ribbonShapeHeart: '心形', + ribbonShapeSun: '太陽', + ribbonShapeMoon: '新月形', + ribbonShapeCloud: '雲朵形', + ribbonShapeArc: '弧形', + ribbonShapePlaque: '銘牌', + ribbonShapeSmileyFace: '笑臉', + ribbonShapeLeftBracket: '左中括號', + ribbonShapeRightBracket: '右中括號', + ribbonShapeQuadArrow: '十字箭頭', + ribbonShapeBentArrow: '轉彎箭頭', + ribbonShapeUturnArrow: '迴轉箭頭', + ribbonShapeCurvedRightArrow: '右弧形箭頭', + ribbonShapeStripedRightArrow: '條紋右箭頭', + ribbonShapeStar7: '七角星', + ribbonShapeStar10: '十角星', + ribbonShapeStar12: '十二角星', + ribbonShapeStar16: '十六角星', + ribbonShapeStar24: '二十四角星', + ribbonShapeStar32: '三十二角星', + ribbonShapeIrregularSeal1: '爆炸 1', + ribbonShapeIrregularSeal2: '爆炸 2', + ribbonShapeRibbon: '下彎帶形', + ribbonShapeRibbon2: '上彎帶形', + ribbonShapeWave: '波浪', + ribbonShapeDoubleWave: '雙波浪', + ribbonShapeFlowProcess: '處理程序', + ribbonShapeFlowAlternateProcess: '替代處理程序', + ribbonShapeFlowPredefinedProcess: '預設處理程序', + ribbonShapeFlowInternalStorage: '內部儲存體', + ribbonShapeFlowDocument: '文件', + ribbonShapeFlowMultidocument: '多重文件', + ribbonShapeFlowPreparation: '準備作業', + ribbonShapeFlowManualInput: '手動輸入', + ribbonShapeFlowManualOperation: '手動作業', + ribbonShapeFlowConnector: '接點', + ribbonShapeFlowOffpageConnector: '換頁接點', + ribbonShapeFlowMagneticDisk: '磁碟', + ribbonShapeFlowMagneticDrum: '直接存取儲存體', + ribbonShapeFlowDisplay: '顯示', + ribbonShapeFlowDelay: '延遲', + ribbonShapeFlowOr: '或', + ribbonShapeFlowCollate: '對照', + ribbonShapeFlowSort: '排序', + ribbonShapeFlowExtract: '抽選', + ribbonShapeFlowMerge: '合併', + ribbonShapeFlowSummingJunction: '加總接點', + ribbonShapeFlowPunchedTape: '打孔紙帶', + ribbonShapeCloudCallout: '雲朵形圖說文字', ribbonIconStar: '星號', ribbonIconHeart: '心形', ribbonIconCheck: '勾號', diff --git a/apps/slides/src/renderer/insert-presets.ts b/apps/slides/src/renderer/insert-presets.ts index fd03fb2..d8c85f8 100644 --- a/apps/slides/src/renderer/insert-presets.ts +++ b/apps/slides/src/renderer/insert-presets.ts @@ -35,23 +35,55 @@ export const SHAPE_GALLERY: Array<{ group: string; shapes: ShapeDef[] }> = [ shape('lineBent', 'ribbonShapeLineBent'), shape('lineCurved', 'ribbonShapeLineCurved'), ]), - shapeGroup('ribbonShapeGroupBasic', [ + shapeGroup('ribbonShapeGroupRects', [ shape('rect', 'ribbonShapeRect'), shape('roundRect', 'ribbonShapeRoundRect'), + shape('snip1Rect', 'ribbonShapeSnip1Rect'), + shape('snip2SameRect', 'ribbonShapeSnip2SameRect'), + shape('snip2DiagRect', 'ribbonShapeSnip2DiagRect'), + shape('snipRoundRect', 'ribbonShapeSnipRoundRect'), + shape('round1Rect', 'ribbonShapeRound1Rect'), + shape('round2SameRect', 'ribbonShapeRound2SameRect'), + shape('round2DiagRect', 'ribbonShapeRound2DiagRect'), + ]), + shapeGroup('ribbonShapeGroupBasic', [ shape('ellipse', 'ribbonShapeEllipse'), shape('triangle', 'ribbonShapeTriangle'), shape('rtTriangle', 'ribbonShapeRtTriangle'), - shape('diamond', 'ribbonShapeDiamond'), shape('parallelogram', 'ribbonShapeParallelogram'), shape('trapezoid', 'ribbonShapeTrapezoid'), + shape('diamond', 'ribbonShapeDiamond'), shape('pentagon', 'ribbonShapePentagon'), shape('hexagon', 'ribbonShapeHexagon'), shape('octagon', 'ribbonShapeOctagon'), shape('plus', 'ribbonShapePlus'), shape('mathPlus', 'ribbonShapeMathPlus'), + shape('pie', 'ribbonShapePie'), + shape('chord', 'ribbonShapeChord'), + shape('teardrop', 'ribbonShapeTeardrop'), + shape('frame', 'ribbonShapeFrame'), + shape('halfFrame', 'ribbonShapeHalfFrame'), + shape('corner', 'ribbonShapeCorner'), + shape('diagStripe', 'ribbonShapeDiagStripe'), + shape('donut', 'ribbonShapeDonut'), + shape('noSmoking', 'ribbonShapeNoSmoking'), + shape('blockArc', 'ribbonShapeBlockArc'), + shape('foldedCorner', 'ribbonShapeFoldedCorner'), + shape('bevel', 'ribbonShapeBevel'), + shape('cube', 'ribbonShapeCube'), + shape('can', 'ribbonShapeCan'), + shape('lightningBolt', 'ribbonShapeLightningBolt'), + shape('heart', 'ribbonShapeHeart'), + shape('sun', 'ribbonShapeSun'), + shape('moon', 'ribbonShapeMoon'), + shape('cloud', 'ribbonShapeCloud'), + shape('arc', 'ribbonShapeArc'), + shape('plaque', 'ribbonShapePlaque'), + shape('smileyFace', 'ribbonShapeSmileyFace'), + shape('leftBracket', 'ribbonShapeLeftBracket'), + shape('rightBracket', 'ribbonShapeRightBracket'), shape('leftBrace', 'ribbonShapeLeftBrace'), shape('rightBrace', 'ribbonShapeRightBrace'), - shape('blockArc', 'ribbonShapeBlockArc'), ]), shapeGroup('ribbonShapeGroupArrows', [ shape('rightArrow', 'ribbonShapeRightArrow'), @@ -60,24 +92,64 @@ export const SHAPE_GALLERY: Array<{ group: string; shapes: ShapeDef[] }> = [ shape('downArrow', 'ribbonShapeDownArrow'), shape('leftRightArrow', 'ribbonShapeLeftRightArrow'), shape('upDownArrow', 'ribbonShapeUpDownArrow'), + shape('quadArrow', 'ribbonShapeQuadArrow'), + shape('bentArrow', 'ribbonShapeBentArrow'), + shape('uturnArrow', 'ribbonShapeUturnArrow'), + shape('curvedRightArrow', 'ribbonShapeCurvedRightArrow'), + shape('stripedRightArrow', 'ribbonShapeStripedRightArrow'), + shape('notchedRightArrow', 'ribbonShapeNotchedRightArrow'), shape('chevron', 'ribbonShapeChevron'), shape('homePlate', 'ribbonShapeHomePlate'), - shape('notchedRightArrow', 'ribbonShapeNotchedRightArrow'), ]), shapeGroup('ribbonShapeGroupStars', [ shape('star4', 'ribbonShapeStar4'), shape('star5', 'ribbonShapeStar5'), shape('star6', 'ribbonShapeStar6'), + shape('star7', 'ribbonShapeStar7'), shape('star8', 'ribbonShapeStar8'), + shape('star10', 'ribbonShapeStar10'), + shape('star12', 'ribbonShapeStar12'), + shape('star16', 'ribbonShapeStar16'), + shape('star24', 'ribbonShapeStar24'), + shape('star32', 'ribbonShapeStar32'), + shape('irregularSeal1', 'ribbonShapeIrregularSeal1'), + shape('irregularSeal2', 'ribbonShapeIrregularSeal2'), + shape('ribbon', 'ribbonShapeRibbon'), + shape('ribbon2', 'ribbonShapeRibbon2'), + shape('wave', 'ribbonShapeWave'), + shape('doubleWave', 'ribbonShapeDoubleWave'), ]), shapeGroup('ribbonShapeGroupFlowchart', [ + shape('flowChartProcess', 'ribbonShapeFlowProcess'), + shape('flowChartAlternateProcess', 'ribbonShapeFlowAlternateProcess'), shape('flowChartDecision', 'ribbonShapeFlowDecision'), + shape('flowChartPredefinedProcess', 'ribbonShapeFlowPredefinedProcess'), + shape('flowChartInternalStorage', 'ribbonShapeFlowInternalStorage'), + shape('flowChartDocument', 'ribbonShapeFlowDocument'), + shape('flowChartMultidocument', 'ribbonShapeFlowMultidocument'), shape('flowChartTerminator', 'ribbonShapeFlowTerminator'), + shape('flowChartPreparation', 'ribbonShapeFlowPreparation'), + shape('flowChartManualInput', 'ribbonShapeFlowManualInput'), + shape('flowChartManualOperation', 'ribbonShapeFlowManualOperation'), + shape('flowChartConnector', 'ribbonShapeFlowConnector'), + shape('flowChartOffpageConnector', 'ribbonShapeFlowOffpageConnector'), + shape('flowChartMagneticDisk', 'ribbonShapeFlowMagneticDisk'), + shape('flowChartMagneticDrum', 'ribbonShapeFlowMagneticDrum'), + shape('flowChartDisplay', 'ribbonShapeFlowDisplay'), + shape('flowChartDelay', 'ribbonShapeFlowDelay'), + shape('flowChartOr', 'ribbonShapeFlowOr'), + shape('flowChartCollate', 'ribbonShapeFlowCollate'), + shape('flowChartSort', 'ribbonShapeFlowSort'), + shape('flowChartExtract', 'ribbonShapeFlowExtract'), + shape('flowChartMerge', 'ribbonShapeFlowMerge'), + shape('flowChartSummingJunction', 'ribbonShapeFlowSummingJunction'), + shape('flowChartPunchedTape', 'ribbonShapeFlowPunchedTape'), ]), shapeGroup('ribbonShapeGroupCallouts', [ shape('wedgeRectCallout', 'ribbonShapeWedgeRectCallout'), shape('wedgeRoundRectCallout', 'ribbonShapeWedgeRoundRectCallout'), shape('wedgeEllipseCallout', 'ribbonShapeWedgeEllipseCallout'), + shape('cloudCallout', 'ribbonShapeCloudCallout'), ]), ] diff --git a/apps/slides/src/renderer/styles.css b/apps/slides/src/renderer/styles.css index 49431f0..2573ae0 100644 --- a/apps/slides/src/renderer/styles.css +++ b/apps/slides/src/renderer/styles.css @@ -490,7 +490,7 @@ button { } .rb-big.active { - color: var(--accent); + color: var(--text); } .rb-big.active .rb-big-icon { @@ -2243,7 +2243,11 @@ body.vib .slide-list { doubles as the bottom padding, so overflowing never grows the strip and shifts its content up */ overflow-x: scroll; - padding: 13px 14px 0; + /* side insets are transparent borders, not padding: overflow clips at the + padding edge, so side padding would let scrolled items slide flush against + the box edges — borders keep the 14px gaps while scrolling */ + padding: 13px 0 0; + border-inline: 14px solid transparent; margin-bottom: -6px; } @@ -5121,6 +5125,12 @@ body.vib .slide-list { display: inline-flex; width: 30px; justify-content: center; + align-items: center; + /* inline-flex sits on the text baseline, riding the icon high — middle-align it to the label, + then nudge 1px up for optical centering against the label's cap height */ + vertical-align: middle; + position: relative; + top: -1px; font-size: 14px; /* neutral glyphs — no accent tint in menus */ color: #3b3a39; diff --git a/e2e/sheets-insert-gallery.spec.ts b/e2e/sheets-insert-gallery.spec.ts new file mode 100644 index 0000000..cc3766a --- /dev/null +++ b/e2e/sheets-insert-gallery.spec.ts @@ -0,0 +1,116 @@ +import { test, expect } from '@playwright/test' +import { execSync } from 'node:child_process' +import { copyFile, mkdtemp } from 'node:fs/promises' +import { tmpdir } from 'node:os' +import { join, resolve } from 'node:path' +import type { Page } from '@playwright/test' +import { launchShell, closeAndSaveVideo, waitForPageWithUrl, screenshotPath } from './helpers' + +const FIXTURE = resolve(__dirname, '../apps/sheets/fixtures/generated/compatibility-basic.xlsx') + +async function waitForWorkbook(page: Page): Promise { + await page.waitForFunction(() => document.body.textContent?.includes('Sheet1'), null, { + timeout: 30_000, + }) + await page.waitForTimeout(1_500) +} + +/** grid origin: the worksheet canvas top-left */ +async function gridOrigin(page: Page): Promise<{ x: number; y: number }> { + const grid = await page.evaluate(() => { + for (const canvas of document.querySelectorAll('canvas')) { + const rect = canvas.getBoundingClientRect() + if (rect.width > 500 && rect.height > 300) return { x: rect.x, y: rect.y } + } + return null + }) + if (!grid) throw new Error('worksheet canvas not found') + return grid +} + +/** center of a cell: ~46px row header, ~24px column header, ~86px × ~23px cells */ +function cellPoint(origin: { x: number; y: number }, row: number, column: number) { + return { x: origin.x + 46 + column * 86 + 43, y: origin.y + 24 + row * 23 + 11 } +} + +test.describe('sheets: Insert → Recommended Charts and Icons', () => { + test('recommends charts for a time series and inserts an icon', async () => { + const scratch = await mkdtemp(join(tmpdir(), 'genoffice-gallery-e2e-')) + const workbook = join(scratch, 'gallery.xlsx') + await copyFile(FIXTURE, workbook) + + const launched = await launchShell({ + onboardingSeen: true, + videoDir: 'sheets-insert-gallery', + openFile: workbook, + }) + try { + const sheets = await waitForPageWithUrl(launched.app, 'sheets/out') + await waitForWorkbook(sheets) + const origin = await gridOrigin(sheets) + + const table = [ + ['Month', 'Sales'], + ['Jan', '10'], + ['Feb', '12'], + ['Mar', '9'], + ] + for (const [rowIndex, row] of table.entries()) { + for (const [columnIndex, value] of row.entries()) { + const point = cellPoint(origin, rowIndex, columnIndex) + await sheets.mouse.click(point.x, point.y) + await sheets.keyboard.type(value, { delay: 30 }) + await sheets.keyboard.press('Enter') + } + } + + // select A1:B4 for the recommendation read + const a1 = cellPoint(origin, 0, 0) + const b4 = cellPoint(origin, 3, 1) + await sheets.mouse.click(a1.x, a1.y) + await sheets.keyboard.down('Shift') + await sheets.mouse.click(b4.x, b4.y) + await sheets.keyboard.up('Shift') + + await sheets.getByRole('button', { name: 'Insert', exact: true }).click() + await sheets.getByRole('button', { name: 'Recommended Charts' }).click() + const recoDialog = sheets.getByRole('dialog', { name: 'Recommended Charts' }) + await expect(recoDialog).toBeVisible() + const recoItems = recoDialog.locator('.recommended-charts-grid button') + expect(await recoItems.count()).toBeGreaterThanOrEqual(3) + // month labels → the time-series heuristic must put Line first + await expect(recoItems.first()).toContainText('Line') + await sheets.screenshot({ path: screenshotPath('recommended-charts') }) + await recoItems.first().click() + await expect(recoDialog).not.toBeVisible() + await expect(sheets.locator('.xlsx-chart')).toBeVisible({ timeout: 15_000 }) + + // Icons: search-driven pick rides the picture pipeline + await sheets.getByRole('button', { name: 'Icons' }).click() + const iconsDialog = sheets.getByRole('dialog', { name: 'Icons' }) + await expect(iconsDialog).toBeVisible() + expect(await iconsDialog.locator('.icons-grid button').count()).toBeGreaterThan(10) + await iconsDialog.getByRole('searchbox').fill('rocket') + const hits = iconsDialog.locator('.icons-grid button') + await expect(hits.first()).toBeVisible() + await sheets.screenshot({ path: screenshotPath('icons-picker') }) + await hits.first().click() + await expect(iconsDialog).not.toBeVisible({ timeout: 10_000 }) + await expect(sheets.getByRole('status')).toContainText('Picture inserted') + await expect(sheets.locator('.xlsx-image')).toBeVisible({ timeout: 15_000 }) + await sheets.screenshot({ path: screenshotPath('gallery-inserted') }) + + await launched.app.evaluate(({ webContents }) => { + const wc = webContents.getAllWebContents().find((w) => w.getURL().includes('sheets/out')) + wc?.send('menu:action', 'save') + }) + await expect(() => { + const listing = execSync(`unzip -l "${workbook}"`).toString() + expect(listing).toContain('xl/media/') + expect(listing).toContain('xl/charts/') + }).toPass({ timeout: 20_000 }) + } finally { + await closeAndSaveVideo(launched, 'sheets-insert-gallery') + } + }) +}) diff --git a/e2e/sheets-insert-screenshot.spec.ts b/e2e/sheets-insert-screenshot.spec.ts new file mode 100644 index 0000000..c140f76 --- /dev/null +++ b/e2e/sheets-insert-screenshot.spec.ts @@ -0,0 +1,84 @@ +import { test, expect } from '@playwright/test' +import { execSync } from 'node:child_process' +import { copyFile, mkdtemp } from 'node:fs/promises' +import { tmpdir } from 'node:os' +import { join, resolve } from 'node:path' +import type { Page } from '@playwright/test' +import { launchShell, closeAndSaveVideo, waitForPageWithUrl, screenshotPath } from './helpers' + +const FIXTURE = resolve(__dirname, '../apps/sheets/fixtures/generated/compatibility-basic.xlsx') + +async function waitForWorkbook(page: Page): Promise { + await page.waitForFunction(() => document.body.textContent?.includes('Sheet1'), null, { + timeout: 30_000, + }) + await page.waitForTimeout(1_500) +} + +test.describe('sheets: Insert → Screenshot', () => { + test('captures a screen source and saves it into the workbook', async () => { + const scratch = await mkdtemp(join(tmpdir(), 'genoffice-screenshot-e2e-')) + const workbook = join(scratch, 'screenshot.xlsx') + await copyFile(FIXTURE, workbook) + + const launched = await launchShell({ + onboardingSeen: true, + videoDir: 'sheets-insert-screenshot', + openFile: workbook, + }) + try { + const sheets = await waitForPageWithUrl(launched.app, 'sheets/out') + await waitForWorkbook(sheets) + + await sheets.getByRole('button', { name: 'Insert', exact: true }).click() + await sheets.getByRole('button', { name: 'Screenshot' }).click() + const dialog = sheets.getByRole('dialog', { name: 'Screenshot' }) + await expect(dialog).toBeVisible() + + // Hosts without real capture support still need to exercise the + // pipeline: macOS gates capture behind the Screen Recording permission + // (dev Electron binaries usually lack it), and headless Linux CI has no + // capturable surfaces, so getSources() comes back empty. In either case + // stub the capturer in the main process so the rest of the flow + // (picker → capture → insert → save) still runs for real. + const grid = dialog.locator('.screenshot-grid button') + const refresh = dialog.getByRole('button', { name: 'Refresh' }) + await expect(refresh).toBeEnabled() + const noSources = (await grid.count()) === 0 + if (noSources) { + await sheets.screenshot({ path: screenshotPath('screenshot-no-sources') }) + await launched.app.evaluate(({ desktopCapturer, nativeImage, systemPreferences }) => { + const pixel = + 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==' + const frame = nativeImage.createFromDataURL(pixel).resize({ width: 800, height: 600 }) + desktopCapturer.getSources = async () => [ + { id: 'screen:0:0', name: 'Mock Screen', thumbnail: frame } as never, + ] + systemPreferences.getMediaAccessStatus = () => 'granted' + }) + await refresh.click() + } + await expect(grid.first()).toBeVisible() + await sheets.screenshot({ path: screenshotPath('screenshot-picker') }) + await grid.first().click() + + await expect(sheets.getByRole('status')).toContainText('Picture inserted', { + timeout: 20_000, + }) + await expect(dialog).not.toBeVisible() + await expect(sheets.locator('.xlsx-image')).toBeVisible({ timeout: 15_000 }) + await sheets.screenshot({ path: screenshotPath('screenshot-inserted') }) + + await launched.app.evaluate(({ webContents }) => { + const wc = webContents.getAllWebContents().find((w) => w.getURL().includes('sheets/out')) + wc?.send('menu:action', 'save') + }) + await expect(() => { + const listing = execSync(`unzip -l "${workbook}"`).toString() + expect(listing).toContain('xl/media/') + }).toPass({ timeout: 20_000 }) + } finally { + await closeAndSaveVideo(launched, 'sheets-insert-screenshot') + } + }) +}) diff --git a/package-lock.json b/package-lock.json index a0d3252..9e819a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -59,7 +59,7 @@ "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^5.0.4", - "electron": "^41.0.3", + "electron": "^43.3.0", "electron-builder": "^26.0.12", "electron-vite": "^5.0.0", "jsdom": "^28.0.0", @@ -84,7 +84,7 @@ "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^5.0.4", - "electron": "^41.0.3", + "electron": "^43.3.0", "electron-vite": "^5.0.0", "jsdom": "^28.0.0", "pdf-lib": "^1.17.1", @@ -134,7 +134,7 @@ "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^5.0.4", - "electron": "^41.0.3", + "electron": "^43.3.0", "electron-vite": "^5.0.0", "tsx": "^4.21.0", "typescript": "^5.9.3", @@ -161,7 +161,7 @@ "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^5.0.4", - "electron": "^41.0.3", + "electron": "^43.3.0", "electron-builder": "^26.0.12", "electron-updater": "^6.8.9", "electron-vite": "^5.0.0", @@ -198,7 +198,7 @@ "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", "@vitejs/plugin-react": "^5.0.4", - "electron": "^41.0.3", + "electron": "^43.3.0", "electron-builder": "^26.0.12", "electron-vite": "^5.0.0", "jsdom": "^28.0.0", @@ -737,6 +737,16 @@ "node": ">=20.19.0" } }, + "node_modules/@electron-internal/extract-zip": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@electron-internal/extract-zip/-/extract-zip-1.0.5.tgz", + "integrity": "sha512-+bqFCP98pLI0Tt0XQo1TmlXtwjWchISndDOxCkEcIuUgXWpBnLyRI+2DU+mesvnMMX6L1XDqYNA0lXNDHd/yiA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=22.12.0" + } + }, "node_modules/@electron/asar": { "version": "3.4.1", "resolved": "https://registry.npmjs.org/@electron/asar/-/asar-3.4.1.tgz", @@ -841,25 +851,61 @@ } }, "node_modules/@electron/get": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@electron/get/-/get-2.0.3.tgz", - "integrity": "sha512-Qkzpg2s9GnVV2I2BjRksUi43U5e6+zaQMcjoJy0C+C5oxaKl+fmckGDQFtRpZpZV0NQekuZZ+tGz7EA9TVnQtQ==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@electron/get/-/get-5.1.0.tgz", + "integrity": "sha512-3kSBtG8ObcTVfXanm5vVJ6UnBLEVmVsRk1M+vGqCuMBV+XLCbJYuWQful+yIy0GQDsSlK0kHEriEHn7SPk4EnA==", "dev": true, "license": "MIT", "dependencies": { "debug": "^4.1.1", - "env-paths": "^2.2.0", - "fs-extra": "^8.1.0", - "got": "^11.8.5", + "env-paths": "^3.0.0", + "graceful-fs": "^4.2.11", "progress": "^2.0.3", - "semver": "^6.2.0", + "semver": "^7.6.3", "sumchecker": "^3.0.1" }, "engines": { - "node": ">=12" + "node": ">=22.12.0" }, "optionalDependencies": { - "global-agent": "^3.0.0" + "undici": "^7.24.4" + } + }, + "node_modules/@electron/get/node_modules/env-paths": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-3.0.0.tgz", + "integrity": "sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@electron/get/node_modules/semver": { + "version": "7.8.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", + "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@electron/get/node_modules/undici": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.29.0.tgz", + "integrity": "sha512-IDxfleLmmbSskfWSUATiN1nfn2rDuvnMOqb5CWR92iIfojA0Ud+ulOAAEQ57LPr9rWmsreUyf5lwyao+7GNNVw==", + "dev": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=20.18.1" } }, "node_modules/@electron/notarize": { @@ -3992,17 +4038,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/yauzl": { - "version": "2.10.3", - "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", - "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@types/node": "*" - } - }, "node_modules/@typescript-eslint/eslint-plugin": { "version": "8.65.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.65.0.tgz", @@ -5923,16 +5958,6 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, - "node_modules/buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", @@ -6800,22 +6825,22 @@ } }, "node_modules/electron": { - "version": "41.7.1", - "resolved": "https://registry.npmjs.org/electron/-/electron-41.7.1.tgz", - "integrity": "sha512-pdRvNNP99Qfvs1lyIxo/sfIGAwJP0CrJFNCE3goFKc7/fV+kjK3EPxx5Nt6sLTkzqTyeRYylpwPUfpeGojiyyw==", + "version": "43.3.0", + "resolved": "https://registry.npmjs.org/electron/-/electron-43.3.0.tgz", + "integrity": "sha512-nLlvu0WFjftWsSaTkV2B/c4NDuJBspTyXu8vKSQ6vLvFt8uG3NgN49LLKcXddwX0GqVvAQDhciWp+4xOdTdhew==", "dev": true, - "hasInstallScript": true, "license": "MIT", "dependencies": { - "@electron/get": "^2.0.0", - "@types/node": "^24.9.0", - "extract-zip": "^2.0.1" + "@electron-internal/extract-zip": "^1.0.1", + "@electron/get": "^5.0.0", + "@types/node": "^24.9.0" }, "bin": { - "electron": "cli.js" + "electron": "cli.js", + "install-electron": "install.js" }, "engines": { - "node": ">= 12.20.55" + "node": ">= 22.12.0" } }, "node_modules/electron-builder": { @@ -7502,27 +7527,6 @@ "dev": true, "license": "Apache-2.0" }, - "node_modules/extract-zip": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", - "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "debug": "^4.1.1", - "get-stream": "^5.1.0", - "yauzl": "^2.10.0" - }, - "bin": { - "extract-zip": "cli.js" - }, - "engines": { - "node": ">= 10.17.0" - }, - "optionalDependencies": { - "@types/yauzl": "^2.9.1" - } - }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -7616,16 +7620,6 @@ "fxparser": "src/cli/cli.js" } }, - "node_modules/fd-slicer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", - "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", - "dev": true, - "license": "MIT", - "dependencies": { - "pend": "~1.2.0" - } - }, "node_modules/fdir": { "version": "6.5.0", "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", @@ -7778,21 +7772,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - }, - "engines": { - "node": ">=6 <7 || >=8" - } - }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -9448,13 +9427,6 @@ "url": "https://github.com/sponsors/jet2jet" } }, - "node_modules/pend": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", - "dev": true, - "license": "MIT" - }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", @@ -12745,17 +12717,6 @@ "node": ">=12" } }, - "node_modules/yauzl": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", - "dev": true, - "license": "MIT", - "dependencies": { - "buffer-crc32": "~0.2.3", - "fd-slicer": "~1.1.0" - } - }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/package.json b/package.json index 8cba115..e63bc53 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "description": "AI-native office suite (docs, sheets, slides, pdf)", "license": "Apache-2.0", "engines": { - "node": ">=20", + "node": ">=22.12.0", "npm": ">=10" }, "repository": { @@ -17,6 +17,7 @@ "packages/*" ], "scripts": { + "postinstall": "install-electron", "format": "node tools/format-changed.mjs --write", "format:check": "node tools/format-changed.mjs --check", "lint": "eslint .", diff --git a/packages/agent-core/src/index.ts b/packages/agent-core/src/index.ts index 68a5bf0..4446317 100644 --- a/packages/agent-core/src/index.ts +++ b/packages/agent-core/src/index.ts @@ -13,7 +13,7 @@ export type { } from './types' export { composeSkills } from './skill' export type { AgentSkill } from './skill' -export { AgentLoop, COMPLETED_VIA_TOOLS_TEXT } from './loop' +export { AgentLoop, COMPLETED_VIA_TOOLS_TEXT, sanitizeAgentPayload } from './loop' export type { AgentLoopEvents, AgentLoopOptions, diff --git a/packages/agent-core/src/loop.ts b/packages/agent-core/src/loop.ts index dc2e12f..0914e7a 100644 --- a/packages/agent-core/src/loop.ts +++ b/packages/agent-core/src/loop.ts @@ -9,20 +9,6 @@ import type { ToolExecution, } from './types' -declare global { - interface AbortSignal { - readonly aborted: boolean - } - interface AbortController { - readonly signal: AbortSignal - abort(): void - } - var AbortController: { - prototype: AbortController - new (): AbortController - } -} - export interface ToolExecutedEvent { call: AgentToolCall execution: ToolExecution @@ -283,12 +269,9 @@ export class AgentLoop { // drop it so the model never sees two adjacent user turns as one combined instruction while (this.history.at(-1)?.role === 'user') this.history.pop() this.trimHistory() - - // Local structural guardrail to intercept and redact high-risk tokens prior to runtime execution - if (userMsg && userMsg.role !== 'tool' && typeof userMsg.text === 'string') { - userMsg.text = sanitizeAgentPayload(userMsg.text) + if (userMsg.role === 'user') { + userMsg = { ...userMsg, text: sanitizeAgentPayload(userMsg.text) } } - this.runUserMsg = userMsg this.history.push(userMsg) this.startTurn() @@ -636,26 +619,22 @@ export class AgentLoop { this.startTurn() } } + /** - * Local structural guardrail to intercept and redact high-risk tokens - * before context attributes route to remote model execution APIs. + * Redact secret-looking tokens from an outgoing user message so accidentally + * pasted API keys, URL credentials, and password assignments don't reach + * remote model APIs verbatim. + * + * Imported from public PR #32 (BuiltByHarshil), with the credential pattern + * narrowed to URL userinfo (scheme://user:pass@host) so ordinary "a:b@c" + * prose is never rewritten. */ export function sanitizeAgentPayload(payload: string): string { - let sanitized = payload - - // 1. Intercept Generic API Keys & Bearer Tokens - const apiKeyRegex = /(?:sk-|aiza|ghp_|secret_)[a-zA-Z0-9_-]{16,64}/gi - sanitized = sanitized.replace(apiKeyRegex, '[REDACTED_API_KEY]') - - // 2. Intercept Basic Auth URI Credentials - const credentialRegex = /([^:]+):([^@]+)@([^/]+)/gi - if (credentialRegex.test(sanitized)) { - sanitized = sanitized.replace(credentialRegex, '$1:[REDACTED_CREDENTIALS]@$3') - } - - // 3. Intercept Explicit Passwords Key-Value attributes - const passwordMappingRegex = /(password|passwd|secret_key|private_key)\s*[:=]\s*["'][^"']+["']/gi - sanitized = sanitized.replace(passwordMappingRegex, '$1: "[REDACTED_SECURE_TOKEN]"') - - return sanitized + return payload + .replace(/\b(?:sk-|AIza|ghp_|secret_)[A-Za-z0-9_-]{16,}/g, '[REDACTED_API_KEY]') + .replace(/([a-z][a-z0-9+.-]*:\/\/[^\s:@/]+):[^\s@/]+@/gi, '$1:[REDACTED_CREDENTIALS]@') + .replace( + /(password|passwd|secret_key|private_key)(\s*[:=]\s*)["'][^"']+["']/gi, + '$1$2"[REDACTED_SECURE_TOKEN]"', + ) } diff --git a/packages/agent-core/tests/sanitize-payload.test.ts b/packages/agent-core/tests/sanitize-payload.test.ts new file mode 100644 index 0000000..744268e --- /dev/null +++ b/packages/agent-core/tests/sanitize-payload.test.ts @@ -0,0 +1,46 @@ +import { describe, expect, it } from 'vitest' +import { sanitizeAgentPayload } from '../src' + +describe('sanitizeAgentPayload', () => { + it('masks API keys with known secret prefixes', () => { + const input = 'use sk-abcdef1234567890abcdef and ghp_0123456789abcdef0123456789abcdef0123' + const out = sanitizeAgentPayload(input) + expect(out).toBe('use [REDACTED_API_KEY] and [REDACTED_API_KEY]') + }) + + it('masks long project-scoped keys completely, leaving no tail', () => { + const key = `sk-proj-${'A1b2C3d4'.repeat(18)}` // 152 chars, like real sk-proj-/sk-ant- keys + const out = sanitizeAgentPayload(`key=${key} done`) + expect(out).toBe('key=[REDACTED_API_KEY] done') + expect(out).not.toContain('A1b2C3d4') + }) + + it('does not treat prefixes embedded in ordinary words as keys', () => { + const input = 'the task-management-dashboard-redesign spec' + expect(sanitizeAgentPayload(input)).toBe(input) + }) + + it('masks userinfo credentials in URLs', () => { + const input = 'connect to postgres://admin:hunter2@db.example.com:5432/app' + expect(sanitizeAgentPayload(input)).toBe( + 'connect to postgres://admin:[REDACTED_CREDENTIALS]@db.example.com:5432/app', + ) + }) + + it('leaves colon-at text that is not a URL untouched', () => { + const input = 'meet at 10:30@office, mapping a:b@c stays as typed' + expect(sanitizeAgentPayload(input)).toBe(input) + }) + + it('masks quoted password/key assignments while keeping the separator', () => { + const input = `password: "hunter2" and PRIVATE_KEY = 'abc123'` + expect(sanitizeAgentPayload(input)).toBe( + `password: "[REDACTED_SECURE_TOKEN]" and PRIVATE_KEY = "[REDACTED_SECURE_TOKEN]"`, + ) + }) + + it('returns unrelated prose unchanged', () => { + const input = 'Summarize the quarterly report and draft an email to the team.' + expect(sanitizeAgentPayload(input)).toBe(input) + }) +}) diff --git a/packages/ai-search/src/genoffice-auth.ts b/packages/ai-search/src/genoffice-auth.ts index 96fddc3..b4db118 100644 --- a/packages/ai-search/src/genoffice-auth.ts +++ b/packages/ai-search/src/genoffice-auth.ts @@ -14,7 +14,7 @@ import { existsSync, mkdirSync, readFileSync, unlinkSync, writeFileSync } from ' import { createRequire } from 'node:module' import { homedir } from 'node:os' import { dirname, join } from 'node:path' -import { asRecord } from './shared' +import { asRecord, gskProxyUrl } from './shared' /** Progress event for the browser login flow. */ export interface GskLoginProgress { @@ -58,6 +58,56 @@ function resolveFetch(): typeof fetch { return impl } +interface ProxySession { + setProxy: (config: { proxyRules: string }) => Promise + fetch: typeof fetch +} + +let proxyFetchCache: { url: string; impl: typeof fetch } | undefined +let proxyFallbackPreferred = false + +// proxy/gateway rejections, not endpoint answers — must not mark a channel healthy +const GATEWAY_ERROR_STATUSES = new Set([407, 502, 504]) + +/** + * Retry channel when the primary fetch cannot connect: net.fetch follows only + * Chromium's own proxy config, so a proxy the bootstraps resolved from env + * vars — or a system proxy Chromium failed to apply — never reaches it. Pin a + * dedicated session to the registered proxy, keeping Chromium TLS (Node fetch + * is bot-challenged, see resolveFetch). null when no proxy is registered. + */ +async function proxyFallbackFetch(): Promise { + const proxyUrl = gskProxyUrl() + if (!proxyUrl) return null + if (proxyFetchCache?.url === proxyUrl) return proxyFetchCache.impl + let impl: typeof fetch = (...args) => fetch(...args) + if (process.versions.electron) { + try { + const require = createRequire(import.meta.url) + const { session } = require('electron') as { + session?: { fromPartition: (partition: string) => ProxySession } + } + if (session) { + const ses = session.fromPartition('genoffice-login-proxy') + await ses.setProxy({ proxyRules: proxyUrl }) + impl = ses.fetch.bind(ses) + } + } catch { + /* non-main context: global fetch rides the bootstrap's undici dispatcher */ + } + } + proxyFetchCache = { url: proxyUrl, impl } + return impl +} + +/** Primary + fallback, ordered by which one last succeeded after a failover. */ +async function loginFetchChannels(): Promise<(typeof fetch)[]> { + const primary = resolveFetch() + const fallback = await proxyFallbackFetch() + if (!fallback) return [primary] + return proxyFallbackPreferred ? [fallback, primary] : [primary, fallback] +} + /** Override dir via GENOFFICE_AUTH_DIR (test isolation). */ export function genofficeAuthPath(): string { return join(process.env.GENOFFICE_AUTH_DIR || join(homedir(), '.genoffice'), 'auth.json') @@ -136,13 +186,29 @@ async function httpJson( url: string, init: RequestInit & { signal: AbortSignal }, ): Promise<{ resp: Response; json: Record }> { - let resp: Response - try { - resp = await resolveFetch()(url, init) - } catch (e) { - if (init.signal.aborted) throw e - throw new LoginFlowError('network') + const flowSignal = init.signal + let resp: Response | undefined + const channels = await loginFetchChannels() + for (const [i, impl] of channels.entries()) { + try { + // per-attempt timeout: a blackholed direct connection would otherwise + // hang for the OS TCP timeout before the fallback ever runs + resp = await impl(url, { + ...init, + signal: AbortSignal.any([flowSignal, AbortSignal.timeout(HTTP_TIMEOUT_MS)]), + }) + } catch (e) { + if (flowSignal.aborted) throw e + continue + } + // gateway statuses fail over like connect errors (endpoint 4xx such as the + // poll's authorization_pending still counts as a healthy channel) + if (GATEWAY_ERROR_STATUSES.has(resp.status)) continue + // the losing channel keeps losing on proxy-only networks — lead with the winner + if (i > 0) proxyFallbackPreferred = !proxyFallbackPreferred + break } + if (!resp) throw new LoginFlowError('network') let json: Record = {} try { json = asRecord(await resp.json()) @@ -342,7 +408,14 @@ export async function genofficeLogout(): Promise { clearAuth() } -/** Test hook: drop the auth cache so the next read hits the file system. */ +/** Test hook: drop the auth cache and fetch-channel state. */ export function resetGenofficeAuthCache(): void { cachedAuth = undefined + proxyFetchCache = undefined + proxyFallbackPreferred = false +} + +/** Test hook: whether the proxy fallback channel is currently preferred. */ +export function genofficeProxyFallbackPreferred(): boolean { + return proxyFallbackPreferred } diff --git a/packages/ai-search/src/gsk.ts b/packages/ai-search/src/gsk.ts index 4bdde0d..a948381 100644 --- a/packages/ai-search/src/gsk.ts +++ b/packages/ai-search/src/gsk.ts @@ -20,6 +20,7 @@ import { COPYRIGHT_HOSTS, asRecord, firstItem, + gskProxyUrl, safeHost, type ImageSearchResult, type WebSearchResult, @@ -107,20 +108,9 @@ export function hasGskAuth(): boolean { // ── Child-process proxy plumbing ──────────────────────────────────── -let explicitProxyUrl = '' - -/** - * Proxy for spawned gsk CLI children. The Electron main process routes its own - * fetch through undici's global dispatcher (see the apps' proxy bootstraps), - * but that never reaches child processes: a packaged app launched from - * Finder/Explorer inherits no proxy env vars, so `gsk login` etc. would dial - * genspark.ai directly and fail on networks that require the system proxy - * (browser + renderer work, only the CLI children break). The bootstraps call - * this with the proxy they resolved so gskChildEnv() can forward it. - */ -export function setGskProxyUrl(url: string): void { - explicitProxyUrl = url -} +// The main process's undici dispatcher (see the apps' proxy bootstraps) never +// reaches child processes: without forwarding they dial genspark.ai directly. +export { setGskProxyUrl, gskProxyUrl } from './shared' /** * env for gsk CLI children: Electron-as-Node plus proxy forwarding. The CLI @@ -131,7 +121,7 @@ export function setGskProxyUrl(url: string): void { export function gskChildEnv(base: NodeJS.ProcessEnv = process.env): NodeJS.ProcessEnv { const env: NodeJS.ProcessEnv = { ...base, ELECTRON_RUN_AS_NODE: '1' } const proxy = [ - explicitProxyUrl, + gskProxyUrl(), base.HTTPS_PROXY, base.https_proxy, base.HTTP_PROXY, @@ -565,6 +555,86 @@ export async function gskUpload(filePath: string): Promise { return String(url) } +// ── Past projects (Genspark web) ──────────────────────────────────── + +export interface GskPastProject { + projectId: string + /** raw project type, e.g. 'slides_agent_git' */ + type: string + title: string + /** creation time, ISO-like string from the API */ + ctime: string + /** relative web URL, e.g. '/agents?id=...' — join with https://www.genspark.ai */ + projectUrl: string +} + +export interface GskPastProjectsPage { + projects: GskPastProject[] + total: number + hasMore: boolean +} + +/** + * Parses `gsk projects`. data.projects lacks project_url — it only appears in + * session_state.past_projects — so take it from there, falling back to + * deriving it from the project id. (exported for tests) + */ +export function parseGskPastProjects(raw: unknown): GskPastProjectsPage { + const rec = asRecord(raw) + const data = asRecord(rec.data ?? raw) + const urlById = new Map() + const sessionProjects = asRecord(asRecord(rec.session_state).past_projects).projects + if (Array.isArray(sessionProjects)) { + for (const item of sessionProjects) { + const p = asRecord(item) + if (p.project_id && typeof p.project_url === 'string' && p.project_url) { + urlById.set(String(p.project_id), p.project_url) + } + } + } + const listRaw: unknown[] = Array.isArray(data.projects) ? data.projects : [] + const projects: GskPastProject[] = [] + for (const item of listRaw) { + const p = asRecord(item) + const projectId = String(p.project_id ?? '') + if (!projectId) continue + projects.push({ + projectId, + type: String(p.type ?? ''), + title: String(p.title ?? ''), + ctime: String(p.ctime ?? ''), + projectUrl: urlById.get(projectId) ?? `/agents?id=${projectId}`, + }) + } + const total = Number(data.total) + return { + projects, + total: Number.isFinite(total) ? total : projects.length, + hasMore: data.has_more === true, + } +} + +export interface GskListPastProjectsOptions { + /** 'slides' | 'docs' | 'sheets' | ...; omit for all kinds */ + artifactTypes?: string[] + /** page size, CLI default 20, max 100 */ + limit?: number + offset?: number + signal?: AbortSignal +} + +/** Lists the user's own past Genspark web projects, newest first (`gsk projects`). */ +export async function gskListPastProjects( + options: GskListPastProjectsOptions = {}, +): Promise { + const args = ['projects'] + if (options.artifactTypes?.length) args.push('--artifact_types', ...options.artifactTypes) + if (options.limit !== undefined) args.push('--limit', String(options.limit)) + if (options.offset) args.push('--offset', String(options.offset)) + const raw = await runGsk(args, SEARCH_TIMEOUT_MS, options.signal) + return parseGskPastProjects(raw) +} + export interface GskLoginInfo { email: string plan: string diff --git a/packages/ai-search/src/shared.ts b/packages/ai-search/src/shared.ts index 476a0b6..db3a54f 100644 --- a/packages/ai-search/src/shared.ts +++ b/packages/ai-search/src/shared.ts @@ -38,3 +38,18 @@ export function asRecord(v: unknown): Record { export function firstItem(v: unknown): unknown { return Array.isArray(v) ? (v as unknown[])[0] : undefined } + +let explicitProxyUrl = '' + +/** + * Proxy resolved by the apps' proxy bootstraps (env vars, else the system + * proxy via session.resolveProxy); consumed by gskChildEnv() and the login + * flow's proxy fallback. + */ +export function setGskProxyUrl(url: string): void { + explicitProxyUrl = url +} + +export function gskProxyUrl(): string { + return explicitProxyUrl +} diff --git a/packages/ai-search/tests/genoffice-auth.test.ts b/packages/ai-search/tests/genoffice-auth.test.ts index 4f704d5..a35de0f 100644 --- a/packages/ai-search/tests/genoffice-auth.test.ts +++ b/packages/ai-search/tests/genoffice-auth.test.ts @@ -7,12 +7,13 @@ import { genofficeAuthPath, genofficeLoginInFlight, genofficeLogout, + genofficeProxyFallbackPreferred, loadGenofficeAuth, resetGenofficeAuthCache, startGenofficeLogin, type GskLoginProgress, } from '../src/genoffice-auth' -import { gskApiKey } from '../src/gsk' +import { gskApiKey, setGskProxyUrl } from '../src/gsk' const CODE = 'a'.repeat(64) const AUTH_URL = `https://www.genspark.ai/api/office_addin_auth/verify?code=${CODE}` @@ -31,6 +32,7 @@ afterEach(() => { rmSync(dir, { recursive: true, force: true }) delete process.env.GENOFFICE_AUTH_DIR delete process.env.GSK_API_KEY + setGskProxyUrl('') resetGenofficeAuthCache() }) @@ -127,10 +129,69 @@ describe('startGenofficeLogin', () => { }) it('reports a network failure at device_code as error "network"', async () => { - vi.stubGlobal('fetch', vi.fn().mockRejectedValue(new Error('ECONNREFUSED'))) + const fetchMock = vi.fn().mockRejectedValue(new Error('ECONNREFUSED')) + vi.stubGlobal('fetch', fetchMock) const events = await loginAndCollect() expect(events).toEqual([{ phase: 'error', error: 'network' }]) expect(loadGenofficeAuth()).toBeNull() + // no proxy registered → nothing better to retry through + expect(fetchMock).toHaveBeenCalledTimes(1) + }) + + it('retries through the registered proxy channel when the direct fetch cannot connect', async () => { + setGskProxyUrl('http://127.0.0.1:7890') + const flow = stubFlow() + let deviceCodeCalls = 0 + vi.stubGlobal( + 'fetch', + vi.fn(async (input: string | URL, init?: RequestInit) => { + if (String(input).includes('/device_code') && ++deviceCodeCalls === 1) { + throw new Error('ECONNRESET') + } + return flow(input, init) + }), + ) + const events = await loginAndCollect() + expect(deviceCodeCalls).toBe(2) + expect(events.at(-1)).toEqual({ phase: 'success' }) + expect(genofficeApiKey()).toBe('gsk-genoffice-key') + expect(genofficeProxyFallbackPreferred()).toBe(true) + }) + + it('treats a gateway status (502) as channel failure: fails over without adopting the channel', async () => { + setGskProxyUrl('http://127.0.0.1:7890') + const fetchMock = vi.fn(async () => jsonResponse({}, { status: 502 })) + vi.stubGlobal('fetch', fetchMock) + const events = await loginAndCollect() + expect(events).toEqual([{ phase: 'error', error: 'network' }]) + // both channels tried, neither adopted + expect(fetchMock).toHaveBeenCalledTimes(2) + expect(genofficeProxyFallbackPreferred()).toBe(false) + }) + + it('counts an endpoint 4xx (authorization_pending) as channel success', async () => { + setGskProxyUrl('http://127.0.0.1:7890') + const flow = stubFlow({ pendingPolls: 0 }) + let deviceCodeCalls = 0 + let tokenCalls = 0 + vi.stubGlobal( + 'fetch', + vi.fn(async (input: string | URL, init?: RequestInit) => { + const url = String(input) + if (url.includes('/device_code') && ++deviceCodeCalls === 1) { + throw new Error('ECONNRESET') + } + if (url.includes('/office_addin_auth/token') && ++tokenCalls === 1) { + return jsonResponse({ status: 'pending' }, { status: 400 }) + } + return flow(input, init) + }), + ) + const events = await loginAndCollect() + expect(events.at(-1)).toEqual({ phase: 'success' }) + // the 400 poll neither failed over to a second attempt nor dropped the preference + expect(tokenCalls).toBe(2) + expect(genofficeProxyFallbackPreferred()).toBe(true) }) it('reports an expired device code as error "expired"', async () => { diff --git a/packages/ai-search/tests/gsk.test.ts b/packages/ai-search/tests/gsk.test.ts index a4a0aed..ab73a40 100644 --- a/packages/ai-search/tests/gsk.test.ts +++ b/packages/ai-search/tests/gsk.test.ts @@ -7,6 +7,7 @@ import { parseGskImageSearch, parseGskGeneratedImage, parseGskConvertResult, + parseGskPastProjects, extractGskText, parseToolCliNdjson, } from '../src/gsk' @@ -148,6 +149,86 @@ describe('parseGskImageSearch', () => { }) }) +describe('parseGskPastProjects', () => { + // real `gsk projects --artifact_types slides` shape (trimmed) + const raw = { + version: 1, + status: 'ok', + message: 'success', + data: { + projects: [ + { + project_id: 'aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee', + type: 'slides_agent_git', + title: 'Product launch trailer presentation', + ctime: '2026-07-29T07:09:43.706212', + }, + { + project_id: '12345678-90ab-4cde-8f01-234567890abc', + type: 'slides_agent_git', + title: 'Team collaboration deck request', + ctime: '2026-07-23T08:39:04.464484', + }, + ], + total: 222, + offset: 0, + has_more: true, + returned: 2, + }, + session_state: { + past_projects: { + projects: [ + { + project_id: 'aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee', + project_url: '/agents?id=aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee', + artifacts: [], + }, + ], + }, + }, + } + + it('maps projects, preferring session_state project_url and deriving the rest', () => { + const page = parseGskPastProjects(raw) + expect(page.total).toBe(222) + expect(page.hasMore).toBe(true) + expect(page.projects).toEqual([ + { + projectId: 'aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee', + type: 'slides_agent_git', + title: 'Product launch trailer presentation', + ctime: '2026-07-29T07:09:43.706212', + projectUrl: '/agents?id=aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee', + }, + { + projectId: '12345678-90ab-4cde-8f01-234567890abc', + type: 'slides_agent_git', + title: 'Team collaboration deck request', + ctime: '2026-07-23T08:39:04.464484', + projectUrl: '/agents?id=12345678-90ab-4cde-8f01-234567890abc', + }, + ]) + }) + + it('skips entries without project_id and tolerates missing data', () => { + const page = parseGskPastProjects({ + status: 'ok', + data: { projects: [{ title: 'no id' }], has_more: false }, + }) + expect(page.projects).toEqual([]) + expect(page.total).toBe(0) + expect(page.hasMore).toBe(false) + }) + + it('tolerates a completely empty response', () => { + expect(parseGskPastProjects({ status: 'ok' })).toEqual({ + projects: [], + total: 0, + hasMore: false, + }) + }) +}) + describe('parseGskConvertResult', () => { it('extracts the markdown link from the result text', () => { const raw = { diff --git a/packages/docx-engine/src/generate.ts b/packages/docx-engine/src/generate.ts index 60ffde0..4154ce4 100644 --- a/packages/docx-engine/src/generate.ts +++ b/packages/docx-engine/src/generate.ts @@ -595,6 +595,179 @@ export function patchTextboxHeights( return resizedXml } +/** Connector/line prsts rendered as display boxes despite having no text body */ +const LINE_SHAPE_RE = + /]*prst="(?:line|straightConnector1|bentConnector[234]|curvedConnector[234])"/ + +/** Same drawing set extractTextboxes yields boxes for (keeps patch indexes aligned) */ +function isBoxDrawing(drawingXml: string): boolean { + if (drawingXml.includes(', +): string { + if (sizes.every((size) => size == null || (size.wPx == null && size.hPx == null))) + return paragraphXml + const drawings = xmlSegments(paragraphXml, 'w:drawing', 0, paragraphXml.length) + let out = '' + let cursor = 0 + let boxIndex = -1 + for (const drawing of drawings) { + const drawingXml = paragraphXml.slice(drawing.start, drawing.end) + if (!isBoxDrawing(drawingXml)) continue + boxIndex++ + const size = sizes[boxIndex] + if (!size || (size.wPx == null && size.hPx == null)) continue + let resized = drawingXml + if (size.wPx != null) { + const cx = Math.max(1, Math.round(size.wPx * EMU_PER_PX)) + resized = resized + .replace(/(]*\bcx=")\d+(")/, `$1${cx}$2`) + .replace(/(]*\bcx=")\d+(")/, `$1${cx}$2`) + } + if (size.hPx != null) { + const cy = Math.max(1, Math.round(size.hPx * EMU_PER_PX)) + resized = resized + .replace(/(]*\bcy=")\d+(")/, `$1${cy}$2`) + .replace(/(]*\bcy=")\d+(")/, `$1${cy}$2`) + // a fixed height only sticks if Word stops auto-fitting the shape + .replace(/|\s*<\/a:spAutoFit>/, '') + } + out += paragraphXml.slice(cursor, drawing.start) + resized + cursor = drawing.end + } + let resizedXml = out + paragraphXml.slice(cursor) + + let fallbackIndex = -1 + resizedXml = resizedXml.replace(/[\s\S]*?<\/mc:Fallback>/g, (fallback) => { + if (!isBoxDrawing(fallback) && !fallback.includes(' { + const value = + unit === 'pt' ? Math.round(size.hPx! * 75) / 100 : Math.round(size.hPx! * 100) / 100 + return `${prefix}${value}${unit}` + }, + ) + } + if (size.wPx != null) { + next = next.replace( + /(style="[^"]*\bwidth:)\s*[\d.]+(pt|px)/, + (_whole, prefix: string, unit: string) => { + const value = + unit === 'pt' ? Math.round(size.wPx! * 75) / 100 : Math.round(size.wPx! * 100) / 100 + return `${prefix}${value}${unit}` + }, + ) + } + return next + }) + return resizedXml +} + +/** Rewrite the first drawing's extent (chart/SmartArt graphicFrame paragraphs). */ +export function patchDrawingExtent(paragraphXml: string, wPx: number, hPx: number): string { + const cx = Math.max(1, Math.round(wPx * EMU_PER_PX)) + const cy = Math.max(1, Math.round(hPx * EMU_PER_PX)) + return paragraphXml + .replace(/(]*\bcx=")\d+(")/, `$1${cx}$2`) + .replace(/(]*\bcy=")\d+(")/, `$1${cy}$2`) + .replace(/(]*\bcx=")\d+(")/, `$1${cx}$2`) + .replace(/(]*\bcy=")\d+(")/, `$1${cy}$2`) +} + +/** Insertable line/connector kinds: stroke-only wps:wsp with optional arrow ends */ +export const LINE_KINDS: Record = { + line: { prst: 'line' }, + lineArrow: { prst: 'straightConnector1', tail: true }, + lineArrowDouble: { prst: 'straightConnector1', head: true, tail: true }, + lineBent: { prst: 'bentConnector3' }, + lineCurved: { prst: 'curvedConnector3' }, +} + +/** Insert a floating stroke-only line/connector paragraph (wp:anchor + wps:wsp). */ +export function buildLineParagraphXml(opts: { + kind: string + widthEmu?: number + heightEmu?: number + id?: number + colorHex?: string +}): string { + const def = LINE_KINDS[opts.kind] ?? LINE_KINDS.line + const widthEmu = opts.widthEmu ?? 1800000 + const heightEmu = opts.heightEmu ?? 114300 + const id = opts.id ?? 1 + const colorHex = opts.colorHex ?? '000000' + + const ln = + `` + + (def.head ? '' : '') + + (def.tail ? '' : '') + + `` + + const spPr = + `` + + `` + + `` + + `` + + ln + + `` + + const wsp = + `` + + `` + + spPr + + `` + + `` + + const graphicData = + `${wsp}` + + const graphic = `${graphicData}` + + const anchor = + `` + + `` + + `center` + + `0` + + `` + + `` + + `` + + `` + + graphic + + `` + + const mcNs = + 'xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" ' + + 'xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape"' + const mcChoice = `${anchor}` + const vmlLine = + `` + const mcFallback = `${vmlLine}` + + return `${mcChoice}${mcFallback}` +} + /** CT_PPr child sequence (subset), for schema-ordered assembly and merging */ export const PPR_CHILD_ORDER = [ 'w:pStyle', @@ -1659,18 +1832,48 @@ function rawBool(xml: string | undefined): boolean { return !['0', 'false', 'none', 'off'].includes(val.toLowerCase()) } +/** rFonts built from the model alone (no original element to preserve). + * Latin-only keeps eastAsia empty; a lone primary font fills every slot (legacy behavior). */ +function freshRFontsXml(font: string | undefined, fontAscii: string | undefined): string { + const a = escapeXmlAttr(fontAscii ?? font ?? '') + const ea = font ? ` w:eastAsia="${escapeXmlAttr(font)}"` : '' + return `` +} + +/** + * Rebuild rFonts merging the model into the original attributes: only the slots the + * model holds are overwritten (their theme attrs dropped so the explicit value wins); + * cs/hint and any untouched slot keep their original values. + */ +function mergeRFontsXml(rawXml: string, run: Run): string { + const attrs = new Map() + for (const m of rawXml.matchAll(/ ([\w:]+)="([^"]*)"/g)) attrs.set(m[1], m[2]) + // run.font may just be the parse-side derivation of an ascii-only element; writing + // it back would invent an eastAsia slot that pins CJK to the old Latin font. Only + // write eastAsia when the slot already existed or the user actually changed it. + const rawPrimary = attrs.get('w:eastAsia') ?? attrs.get('w:ascii') ?? attrs.get('w:hAnsi') + const hadEastAsia = attrs.has('w:eastAsia') || attrs.has('w:eastAsiaTheme') + const set = (slot: string, theme: string, value: string) => { + attrs.set(slot, escapeXmlAttr(value)) + attrs.delete(theme) + } + if (run.fontAscii) { + set('w:ascii', 'w:asciiTheme', run.fontAscii) + set('w:hAnsi', 'w:hAnsiTheme', run.fontAscii) + } + if (run.font && (hadEastAsia || run.font !== rawPrimary)) { + set('w:eastAsia', 'w:eastAsiaTheme', run.font) + } + return ` ` ${k}="${v}"`).join('')}/>` +} + function revisionRPrChangeXml(run: Run): string | null { const change = run.rPrChange if (!change) return null const old = change.old ?? {} const props: string[] = [] if (old.styleId) props.push(``) - if (old.font) { - const font = escapeXmlAttr(old.font) - props.push( - ``, - ) - } + if (old.font || old.fontAscii) props.push(freshRFontsXml(old.font, old.fontAscii)) if (old.bold) props.push('') if (old.italic) props.push('') if (old.strike) props.push('') @@ -1697,12 +1900,8 @@ function modelRPrChildren(run: Run, insideLink: boolean): PPrChild[] { if (insideLink) out.push({ name: 'w:rStyle', xml: '' }) else if (run.styleId) out.push({ name: 'w:rStyle', xml: `` }) - if (run.font) { - const f = escapeXmlAttr(run.font) - out.push({ - name: 'w:rFonts', - xml: ``, - }) + if (run.font || run.fontAscii) { + out.push({ name: 'w:rFonts', xml: freshRFontsXml(run.font, run.fontAscii) }) } if (run.bold) out.push({ name: 'w:b', xml: '' }) if (run.italic) out.push({ name: 'w:i', xml: '' }) @@ -1759,10 +1958,10 @@ export function mergeRPrModel(rawRPr: string, run: Run, insideLink: boolean): st return raw === modeled || (raw === 'Hyperlink' && !modeled) } case 'rFonts': { + // mirrors the parse side: primary = eastAsia ?? ascii ?? hAnsi, latin = ascii ?? hAnsi const attrs = rawOf('w:rFonts') - const raw = - rawAttr(attrs, 'w:eastAsia') ?? rawAttr(attrs, 'w:ascii') ?? rawAttr(attrs, 'w:hAnsi') - return raw === run.font + const ascii = rawAttr(attrs, 'w:ascii') ?? rawAttr(attrs, 'w:hAnsi') + return (rawAttr(attrs, 'w:eastAsia') ?? ascii) === run.font && ascii === run.fontAscii } case 'bold': return rawBool(rawOf('w:b')) === !!run.bold @@ -1804,7 +2003,13 @@ export function mergeRPrModel(rawRPr: string, run: Run, insideLink: boolean): st for (const g of RUN_MANAGED_GROUPS) { if (groupEqual(g.key)) continue for (const t of g.tags) rebuiltTags.add(t) - freshOut.push(...freshByGroup.get(g.key)!) + const rawRFonts = g.key === 'rFonts' ? rawOf('w:rFonts') : undefined + if (rawRFonts && (run.font || run.fontAscii)) { + // edited font slots merge into the original element instead of replacing it + freshOut.push({ name: 'w:rFonts', xml: mergeRFontsXml(rawRFonts, run) }) + } else { + freshOut.push(...freshByGroup.get(g.key)!) + } } const kept = rawChildren.filter((c) => !rebuiltTags.has(c.name)) diff --git a/packages/docx-engine/src/index.ts b/packages/docx-engine/src/index.ts index d64dfdb..4a99f41 100644 --- a/packages/docx-engine/src/index.ts +++ b/packages/docx-engine/src/index.ts @@ -31,6 +31,11 @@ export { patchTableCellTexts, patchTextboxHeights, patchTextboxParas, + patchTextboxSizes, + patchDrawingExtent, + buildLineParagraphXml, + LINE_KINDS, + type TextboxSizePatch, type CellTextsPatch, type FieldTextPatch, type GenerateContext, diff --git a/packages/docx-engine/src/parse.ts b/packages/docx-engine/src/parse.ts index d817fa4..db27a4b 100644 --- a/packages/docx-engine/src/parse.ts +++ b/packages/docx-engine/src/parse.ts @@ -1123,8 +1123,70 @@ function vmlColorHex(value: string | undefined): string | undefined { * fallback-stripped XML, otherwise the mc:Fallback VML twin would duplicate * every box. */ +const LINE_PRSTS_RE = + /]*prst="(?:line|straightConnector1|bentConnector[234]|curvedConnector[234])"/ + +/** stroke-only line/connector prsts shown as display boxes despite no text body */ +const LINE_PRSTS = new Set([ + 'line', + 'straightConnector1', + 'bentConnector2', + 'bentConnector3', + 'bentConnector4', + 'curvedConnector2', + 'curvedConnector3', + 'curvedConnector4', +]) + +/** wps line shape → display-only line box (synthetic prst carries the arrow ends) */ +function lineBoxOf(shape: XNode): TextboxDisplay | null { + const spPr = findChild(shape, 'wps:spPr') + if (!spPr) return null + const prst = attrsOf(findChild(spPr, 'a:prstGeom') ?? {})['prst'] + if (!prst || !LINE_PRSTS.has(prst)) return null + const box: TextboxDisplay = { paras: [], readOnly: true } + const ln = findChild(spPr, 'a:ln') + const border = ln + ? attrsOf(findChild(findChild(ln, 'a:solidFill') ?? {}, 'a:srgbClr') ?? {})['val'] + : undefined + box.borderColor = border ?? '000000' + const arrowEnd = (name: string): boolean => { + const type = attrsOf(findChild(ln ?? {}, name) ?? {})['type'] + return !!type && type !== 'none' + } + const head = arrowEnd('a:headEnd') + const tail = arrowEnd('a:tailEnd') + box.prst = prst.startsWith('bentConnector') + ? 'lineBent' + : prst.startsWith('curvedConnector') + ? 'lineCurved' + : head && tail + ? 'lineArrowDouble' + : head || tail + ? 'lineArrow' + : 'line' + const ext = findChild(findChild(spPr, 'a:xfrm') ?? {}, 'a:ext') + const cx = ext ? parseInt(attrsOf(ext)['cx'] ?? '', 10) : NaN + const cy = ext ? parseInt(attrsOf(ext)['cy'] ?? '', 10) : NaN + if (Number.isFinite(cx) && cx > 0) box.widthPx = Math.round(cx / EMU_PER_PX) + if (Number.isFinite(cy) && cy > 0) { + box.heightPx = Math.round(cy / EMU_PER_PX) + box.minHeightPx = box.heightPx + } else { + // zero-height extent = Word's horizontal line; keep a 12 px grab band + box.heightPx = 12 + } + box.insetTopPx = 0 + box.insetRightPx = 0 + box.insetBottomPx = 0 + box.insetLeftPx = 0 + return box +} + function extractTextboxes(xml: string, ctx: BuildContext): TextboxDisplay[] { - if (!xml.includes(']*\/>/, '') } } @@ -1663,6 +1736,7 @@ function sameStyle(a: Run, b: Run): boolean { a.color === b.color && a.sizeHalfPoints === b.sizeHalfPoints && a.font === b.font && + a.fontAscii === b.fontAscii && a.highlight === b.highlight && a.vertAlign === b.vertAlign && (a.link?.href ?? '') === (b.link?.href ?? '') && @@ -2593,7 +2667,14 @@ async function extractChart(xml: string, ctx: BuildContext): Promise 0) display.widthPx = Math.round(cx / EMU_PER_PX) + if (Number.isFinite(cy) && cy > 0) display.heightPx = Math.round(cy / EMU_PER_PX) + } return display } diff --git a/packages/docx-engine/src/patch.ts b/packages/docx-engine/src/patch.ts index 88c8fed..a049e59 100644 --- a/packages/docx-engine/src/patch.ts +++ b/packages/docx-engine/src/patch.ts @@ -66,7 +66,7 @@ export type SaveBlock = ( /** a new inline image; bytes become word/media/... + relationship */ | { kind: 'image'; image: NewImage } /** a new embedded chart; data becomes word/charts/chartN.xml + relationship */ - | { kind: 'chart'; chart: NewChart } + | { kind: 'chart'; chart: NewChart; extentPx?: { w: number; h: number } } ) & { /** Top-level tracked insertion/deletion wrapper. */ revision?: { kind: 'ins' | 'del'; author: string; date?: string; id?: string } @@ -462,7 +462,10 @@ export async function saveDocx( base64: string }> = [] let chartDocPrId = 8000 - const embedChart = async (chart: NewChart): Promise => { + const embedChart = async ( + chart: NewChart, + extentPx?: { w: number; h: number }, + ): Promise => { let n = 1 while ( zip.file(`word/charts/chart${n}.xml`) || @@ -492,9 +495,11 @@ export async function saveDocx( }) const docPrId = chartDocPrId++ + const cx = extentPx ? Math.max(1, Math.round(extentPx.w * 9525)) : 5486400 + const cy = extentPx ? Math.max(1, Math.round(extentPx.h * 9525)) : 3200400 return ( '' + - '' + + `` + `` + '' + '' + @@ -873,7 +878,7 @@ export async function saveDocx( xml = fb.xml fbDocxIndex = fb.docxIndex } else if (fb.kind === 'chart') { - xml = await embedChart(fb.chart) + xml = await embedChart(fb.chart, fb.extentPx) } else { xml = embedImage(fb.image) } diff --git a/packages/docx-engine/src/types.ts b/packages/docx-engine/src/types.ts index 4cb603a..d10c0ee 100644 --- a/packages/docx-engine/src/types.ts +++ b/packages/docx-engine/src/types.ts @@ -27,8 +27,11 @@ export interface Run { color?: string /** font size in half-points (OOXML w:sz) */ sizeHalfPoints?: number - /** font family name (w:rFonts, eastAsia/ascii) */ + /** primary font family (w:rFonts, eastAsia ?? ascii ?? hAnsi) */ font?: string + /** Latin-slot font (w:rFonts ascii/hAnsi) when the run declares one; may equal `font`. + * Kept separate so editing one script's font never flattens the other slot. */ + fontAscii?: string /** Character spacing (w:spacing, twips, may be negative). Display only; saving is kept faithful by rawRPr */ charSpacingTwips?: number /** Horizontal character scale percent (w:w). Display only (approximated as spacing); saving is kept faithful by rawRPr */ @@ -85,6 +88,7 @@ export interface Run { color?: string sizeHalfPoints?: number font?: string + fontAscii?: string charSpacingTwips?: number charScalePct?: number highlight?: string @@ -422,6 +426,9 @@ export interface ChartDisplay { title?: string categories: string[] series: ChartSeries[] + /** display size (from wp:extent), editable via the corner resize handle */ + widthPx?: number + heightPx?: number } /** A new chart to embed at save time (becomes word/charts/chartN.xml + relationship). */ diff --git a/packages/docx-engine/tests/line-shape.test.ts b/packages/docx-engine/tests/line-shape.test.ts new file mode 100644 index 0000000..0c25277 --- /dev/null +++ b/packages/docx-engine/tests/line-shape.test.ts @@ -0,0 +1,38 @@ +import { describe, expect, it } from 'vitest' +import { buildLineParagraphXml, patchTextboxSizes } from '../src/generate' +import { parseDocx } from '../src/parse' +import { buildDocx } from './helpers/build-docx' + +describe('line shapes', () => { + it('builds stroke-only connector xml with arrow ends', () => { + const xml = buildLineParagraphXml({ kind: 'lineArrowDouble', id: 7 }) + expect(xml).toContain('prst="straightConnector1"') + expect(xml).toContain('') + expect(xml).toContain('') + expect(xml).toContain('') + expect(xml).not.toContain(' { + const xml = buildLineParagraphXml({ kind: 'line', widthEmu: 1800000, heightEmu: 114300 }) + const out = patchTextboxSizes(xml, [{ wPx: 300, hPx: 20 }]) + expect(out).toContain(`cx="${300 * 9525}"`) + expect(out).toContain(`cy="${20 * 9525}"`) + }) + + it('round-trips through parse as a readOnly display box', async () => { + const paragraph = buildLineParagraphXml({ + kind: 'lineArrow', + widthEmu: 1905000, + heightEmu: 114300, + }) + const doc = await parseDocx(await buildDocx({ bodyXml: paragraph })) + const box = doc.blocks.find((b) => b.textboxes?.length)?.textboxes?.[0] + expect(box).toBeTruthy() + expect(box!.prst).toBe('lineArrow') + expect(box!.readOnly).toBe(true) + expect(box!.widthPx).toBe(200) + expect(box!.heightPx).toBe(12) + expect(box!.paras).toEqual([]) + }) +}) diff --git a/packages/docx-engine/tests/rfonts-dual-slot.test.ts b/packages/docx-engine/tests/rfonts-dual-slot.test.ts new file mode 100644 index 0000000..c0dae32 --- /dev/null +++ b/packages/docx-engine/tests/rfonts-dual-slot.test.ts @@ -0,0 +1,140 @@ +/** + * Dual-slot run fonts (bug: editing the font flattened all four rFonts slots, + * losing e.g. Times New Roman when a mixed CJK/Latin run was switched to KaiTi). + */ +import { describe, expect, it } from 'vitest' +import { generateParagraphXml, parseDocx, type GenerateContext } from '../src/index' +import { buildDocx } from './helpers/build-docx' + +const GEN_CTX: GenerateContext = { + headingStyleIds: new Map([[1, 'Heading1']]), + allocateHyperlinkRel: () => 'rId999', +} + +const MIXED_RPR = + '' + + '' + + '' +const MIXED_PARA = `${MIXED_RPR}合同 Contract` + +async function mixedRun() { + const doc = await parseDocx(await buildDocx({ bodyXml: MIXED_PARA })) + return doc.blocks[0].runs![0] +} + +describe('rFonts dual-slot model', () => { + it('parses eastAsia as primary font and ascii as the Latin slot', async () => { + const run = await mixedRun() + expect(run.font).toBe('SimSun') + expect(run.fontAscii).toBe('Times New Roman') + }) + + it('untouched round-trip keeps the original rFonts bytes', async () => { + const run = await mixedRun() + const xml = generateParagraphXml({ type: 'paragraph', runs: [{ ...run }] }, GEN_CTX) + expect(xml).toContain( + '', + ) + }) + + it('switching the CJK font keeps the Latin and cs slots (bug 54)', async () => { + const run = await mixedRun() + const xml = generateParagraphXml( + { type: 'paragraph', runs: [{ ...run, font: 'KaiTi' }] }, + GEN_CTX, + ) + expect(xml).toContain('w:eastAsia="KaiTi"') + expect(xml).toContain('w:ascii="Times New Roman"') + expect(xml).toContain('w:hAnsi="Times New Roman"') + expect(xml).toContain('w:cs="Arial"') + expect(xml).toContain('w:hint="eastAsia"') + }) + + it('switching the Latin font keeps the eastAsia and cs slots', async () => { + const run = await mixedRun() + const xml = generateParagraphXml( + { type: 'paragraph', runs: [{ ...run, fontAscii: 'Georgia' }] }, + GEN_CTX, + ) + expect(xml).toContain('w:ascii="Georgia"') + expect(xml).toContain('w:hAnsi="Georgia"') + expect(xml).toContain('w:eastAsia="SimSun"') + expect(xml).toContain('w:cs="Arial"') + }) + + it('Latin edit on an ascii-only run does not invent an eastAsia slot', async () => { + const para = + '' + + 'latin only' + const doc = await parseDocx(await buildDocx({ bodyXml: para })) + const run = doc.blocks[0].runs![0] + expect(run.font).toBe('Arial') // parse-side derivation, not a real eastAsia slot + const xml = generateParagraphXml( + { type: 'paragraph', runs: [{ ...run, fontAscii: 'Georgia' }] }, + GEN_CTX, + ) + expect(xml).toContain('w:ascii="Georgia"') + expect(xml).toContain('w:hAnsi="Georgia"') + expect(xml).not.toContain('eastAsia') + }) + + it('CJK edit on an ascii-only run adds eastAsia and keeps the Latin slot', async () => { + const para = + '' + + 'latin only' + const doc = await parseDocx(await buildDocx({ bodyXml: para })) + const run = doc.blocks[0].runs![0] + const xml = generateParagraphXml( + { type: 'paragraph', runs: [{ ...run, font: 'KaiTi' }] }, + GEN_CTX, + ) + expect(xml).toContain('w:eastAsia="KaiTi"') + expect(xml).toContain('w:ascii="Arial"') + expect(xml).toContain('w:hAnsi="Arial"') + }) + + it('an explicit Latin font wins over a leftover theme attribute', async () => { + const para = + '' + + '' + + '合同 Contract' + const doc = await parseDocx(await buildDocx({ bodyXml: para })) + const run = doc.blocks[0].runs![0] + const xml = generateParagraphXml( + { type: 'paragraph', runs: [{ ...run, fontAscii: 'Arial' }] }, + GEN_CTX, + ) + expect(xml).toContain('w:ascii="Arial"') + expect(xml).toContain('w:hAnsi="Arial"') + expect(xml).not.toContain('asciiTheme') + expect(xml).not.toContain('hAnsiTheme') + expect(xml).toContain('w:eastAsia="SimSun"') + }) + + it('setting only the primary font on a run without rFonts fills every slot (legacy)', async () => { + const doc = await parseDocx( + await buildDocx({ bodyXml: 'plain text' }), + ) + const run = doc.blocks[0].runs![0] + const xml = generateParagraphXml( + { type: 'paragraph', runs: [{ ...run, font: 'KaiTi' }] }, + GEN_CTX, + ) + expect(xml).toContain( + '', + ) + }) + + it('setting only the Latin font on a run without rFonts leaves eastAsia empty', async () => { + const doc = await parseDocx( + await buildDocx({ bodyXml: 'plain text' }), + ) + const run = doc.blocks[0].runs![0] + const xml = generateParagraphXml( + { type: 'paragraph', runs: [{ ...run, fontAscii: 'Arial' }] }, + GEN_CTX, + ) + expect(xml).toContain('') + expect(xml).not.toContain('eastAsia') + }) +}) diff --git a/packages/docx-engine/tests/textbox-edit.test.ts b/packages/docx-engine/tests/textbox-edit.test.ts index dd4dd03..fe72fb5 100644 --- a/packages/docx-engine/tests/textbox-edit.test.ts +++ b/packages/docx-engine/tests/textbox-edit.test.ts @@ -1,5 +1,10 @@ import { describe, expect, it } from 'vitest' -import { patchTextboxHeights, patchTextboxParas, type TextboxParaPatch } from '../src/generate' +import { + patchTextboxHeights, + patchTextboxParas, + patchTextboxSizes, + type TextboxParaPatch, +} from '../src/generate' import { parseDocx } from '../src/parse' import { buildDocx } from './helpers/build-docx' @@ -52,16 +57,14 @@ describe('textbox editing', () => { }) it('extracts text insets and paragraph geometry used by Word', async () => { - const formatted = TEXTBOX_PARAGRAPH - .replace( - '', - '', - ) - .replace( - '' + - '', + '', + ).replace( + '' + + ' { }) }) + it('pins the height of an auto-fit box: drops spAutoFit and round-trips fixed', async () => { + const autoFitXml = TEXTBOX_PARAGRAPH.replace( + '', + '', + ) + const out = patchTextboxSizes(autoFitXml, [{ wPx: null, hPx: 240 }]) + expect(out).toContain('') + expect(out).toContain('') + expect(out).not.toContain('') + + // reopening now yields a fixed-height box instead of autofit + const doc = await parseDocx(await buildDocx({ bodyXml: out })) + const box = doc.blocks[0].textboxes?.[0] + expect(box?.heightPx).toBe(240) + }) + it('updates DrawingML and VML fallback heights without changing box styling', () => { const withFallbackHeight = TEXTBOX_PARAGRAPH.replace( 'style="position:absolute"', @@ -99,7 +119,12 @@ describe('textbox editing', () => { [ para({ runs: [ - { text: '**Current date:** July 21', font: 'Courier New', color: '415461', sizeHalfPoints: 22 }, + { + text: '**Current date:** July 21', + font: 'Courier New', + color: '415461', + sizeHalfPoints: 22, + }, ], }), null, // untouched @@ -144,19 +169,25 @@ describe('textbox editing', () => { const centered = patchTextboxParas(TEXTBOX_PARAGRAPH, [ [para({ runs: [{ text: 'Hi' }], align: 'center' }), null], ]) - expect(centered).toContain('Hi') + expect(centered).toContain( + 'Hi', + ) // align undefined keeps the template pPr (second para is centered) const kept = patchTextboxParas(TEXTBOX_PARAGRAPH, [ [null, para({ runs: [{ text: 'STILL', bold: true }] })], ]) - expect(kept).toContain('STILL') + expect(kept).toContain( + 'STILL', + ) // align null strips the centered jc from the second paragraph const removed = patchTextboxParas(TEXTBOX_PARAGRAPH, [ [null, para({ runs: [{ text: 'LEFT', bold: true }], align: null })], ]) - expect(removed).toContain('LEFT') + expect(removed).toContain( + 'LEFT', + ) }) it('patches the VML fallback twin with the same paragraphs', () => { @@ -192,7 +223,9 @@ describe('textbox editing', () => { it('round-trips: patched XML re-parses with the new rich formatting', async () => { const patched = patchTextboxParas(TEXTBOX_PARAGRAPH, [ [ - para({ runs: [{ text: '**Current date:** July 21', font: 'Courier New', color: 'FF0000' }] }), + para({ + runs: [{ text: '**Current date:** July 21', font: 'Courier New', color: 'FF0000' }], + }), para({ runs: [{ text: 'IMPORTANT', bold: true, color: '0070C0' }], align: 'center' }), ], ]) diff --git a/packages/electron-utils/src/dialog-memory.ts b/packages/electron-utils/src/dialog-memory.ts new file mode 100644 index 0000000..7bd7048 --- /dev/null +++ b/packages/electron-utils/src/dialog-memory.ts @@ -0,0 +1,70 @@ +/// Electron 43 pins file dialogs without an explicit `defaultPath` to the +/// user's Downloads folder and no longer lets the OS restore the last-used +/// directory between invocations (electron/electron#49868). These wrappers +/// restore the pre-43 behavior the way the Electron breaking-changes guide +/// recommends: remember the directory of the last confirmed pick and thread +/// it into the next dialog's `defaultPath`. +import { basename, dirname, join } from 'node:path' + +import type { + BrowserWindow, + Dialog, + OpenDialogOptions, + OpenDialogReturnValue, + SaveDialogOptions, + SaveDialogReturnValue, +} from 'electron' + +// Keyed by the dialog module so tests with fake dialogs stay isolated. Each +// app bundles its own copy of this module, so the memory is scoped per +// editor — close enough to the per-app directory tracking the OS did before. +const lastUsedDirectoryByDialog = new WeakMap() + +function withRememberedDirectory( + dialog: Dialog, + options: T, +): T { + const lastDir = lastUsedDirectoryByDialog.get(dialog) + if (!lastDir) return options + if (options.defaultPath === undefined) return { ...options, defaultPath: lastDir } + // A bare file name is a Save As suggestion: anchor it in the remembered + // directory instead of letting Electron relocate it to Downloads. + if (basename(options.defaultPath) === options.defaultPath) { + return { ...options, defaultPath: join(lastDir, options.defaultPath) } + } + return options +} + +export async function showOpenDialogWithMemory( + dialog: Dialog, + parent: BrowserWindow | null | undefined, + options: OpenDialogOptions, +): Promise { + const withDir = withRememberedDirectory(dialog, options) + const result = parent + ? await dialog.showOpenDialog(parent, withDir) + : await dialog.showOpenDialog(withDir) + const picked = result.filePaths[0] + if (!result.canceled && picked) { + lastUsedDirectoryByDialog.set( + dialog, + options.properties?.includes('openDirectory') ? picked : dirname(picked), + ) + } + return result +} + +export async function showSaveDialogWithMemory( + dialog: Dialog, + parent: BrowserWindow | null | undefined, + options: SaveDialogOptions, +): Promise { + const withDir = withRememberedDirectory(dialog, options) + const result = parent + ? await dialog.showSaveDialog(parent, withDir) + : await dialog.showSaveDialog(withDir) + if (!result.canceled && result.filePath) { + lastUsedDirectoryByDialog.set(dialog, dirname(result.filePath)) + } + return result +} diff --git a/packages/electron-utils/src/index.ts b/packages/electron-utils/src/index.ts index 53161d6..bad6064 100644 --- a/packages/electron-utils/src/index.ts +++ b/packages/electron-utils/src/index.ts @@ -12,6 +12,7 @@ export { windowMenuTemplate, type AppMenuLabels, } from './app-menu' +export { showOpenDialogWithMemory, showSaveDialogWithMemory } from './dialog-memory' export { installNavigationGuard } from './navigation-guard' export { safeExternalUrl, type SafeExternalUrlOptions } from './safe-external-url' export { diff --git a/packages/electron-utils/tests/dialog-memory.test.ts b/packages/electron-utils/tests/dialog-memory.test.ts new file mode 100644 index 0000000..f2d3207 --- /dev/null +++ b/packages/electron-utils/tests/dialog-memory.test.ts @@ -0,0 +1,94 @@ +import { join } from 'node:path' + +import { describe, expect, it, vi } from 'vitest' + +import { showOpenDialogWithMemory, showSaveDialogWithMemory } from '../src/index' + +import type { Dialog } from 'electron' + +function fakeDialog(overrides: Partial = {}): Dialog { + return { + showOpenDialog: vi.fn().mockResolvedValue({ canceled: true, filePaths: [] }), + showSaveDialog: vi.fn().mockResolvedValue({ canceled: true, filePath: '' }), + ...overrides, + } as unknown as Dialog +} + +const pickedOpen = (paths: string[]) => + vi.fn().mockResolvedValue({ canceled: false, filePaths: paths }) +const pickedSave = (path: string) => vi.fn().mockResolvedValue({ canceled: false, filePath: path }) + +describe('showOpenDialogWithMemory', () => { + it('passes options through unchanged before any pick was made', async () => { + const dialog = fakeDialog() + await showOpenDialogWithMemory(dialog, undefined, { properties: ['openFile'] }) + expect(dialog.showOpenDialog).toHaveBeenCalledWith({ properties: ['openFile'] }) + }) + + it('remembers the picked directory and injects it as defaultPath next time', async () => { + const dialog = fakeDialog({ showOpenDialog: pickedOpen([join('/work', 'report.docx')]) }) + await showOpenDialogWithMemory(dialog, undefined, {}) + await showOpenDialogWithMemory(dialog, undefined, {}) + expect(dialog.showOpenDialog).toHaveBeenLastCalledWith({ defaultPath: '/work' }) + }) + + it('forwards the parent window when given', async () => { + const dialog = fakeDialog() + const parent = { id: 1 } as never + await showOpenDialogWithMemory(dialog, parent, {}) + expect(dialog.showOpenDialog).toHaveBeenCalledWith(parent, {}) + }) + + it('remembers the selected directory itself for openDirectory pickers', async () => { + const dialog = fakeDialog({ showOpenDialog: pickedOpen(['/exports/images']) }) + await showOpenDialogWithMemory(dialog, undefined, { properties: ['openDirectory'] }) + await showOpenDialogWithMemory(dialog, undefined, {}) + expect(dialog.showOpenDialog).toHaveBeenLastCalledWith({ defaultPath: '/exports/images' }) + }) + + it('keeps an explicit absolute defaultPath untouched', async () => { + const dialog = fakeDialog({ showOpenDialog: pickedOpen([join('/work', 'a.docx')]) }) + await showOpenDialogWithMemory(dialog, undefined, {}) + await showOpenDialogWithMemory(dialog, undefined, { defaultPath: '/elsewhere/b.docx' }) + expect(dialog.showOpenDialog).toHaveBeenLastCalledWith({ defaultPath: '/elsewhere/b.docx' }) + }) + + it('does not remember canceled picks', async () => { + const dialog = fakeDialog() + await showOpenDialogWithMemory(dialog, undefined, {}) + await showOpenDialogWithMemory(dialog, undefined, {}) + expect(dialog.showOpenDialog).toHaveBeenLastCalledWith({}) + }) +}) + +describe('showSaveDialogWithMemory', () => { + it('anchors a bare file-name suggestion in the remembered directory', async () => { + const dialog = fakeDialog({ showSaveDialog: pickedSave(join('/work', 'deck.pptx')) }) + await showSaveDialogWithMemory(dialog, undefined, { defaultPath: 'deck.pptx' }) + await showSaveDialogWithMemory(dialog, undefined, { defaultPath: 'deck2.pptx' }) + expect(dialog.showSaveDialog).toHaveBeenLastCalledWith({ + defaultPath: join('/work', 'deck2.pptx'), + }) + }) + + it('shares the remembered directory between save and open dialogs', async () => { + const dialog = fakeDialog({ showSaveDialog: pickedSave(join('/work', 'deck.pptx')) }) + await showSaveDialogWithMemory(dialog, undefined, { defaultPath: 'deck.pptx' }) + await showOpenDialogWithMemory(dialog, undefined, {}) + expect(dialog.showOpenDialog).toHaveBeenCalledWith({ defaultPath: '/work' }) + }) + + it('keeps an explicit absolute defaultPath untouched', async () => { + const dialog = fakeDialog({ showSaveDialog: pickedSave(join('/work', 'a.pdf')) }) + await showSaveDialogWithMemory(dialog, undefined, { defaultPath: '/docs/tab.pdf' }) + expect(dialog.showSaveDialog).toHaveBeenCalledWith({ defaultPath: '/docs/tab.pdf' }) + }) + + it('isolates memory between different dialog instances', async () => { + const first = fakeDialog({ showOpenDialog: pickedOpen([join('/work', 'a.docx')]) }) + const second = fakeDialog() + await showOpenDialogWithMemory(first, undefined, {}) + await showOpenDialogWithMemory(second, undefined, {}) + expect(second.showOpenDialog).toHaveBeenCalledWith({}) + }) +}) diff --git a/scripts/promote-stable.cjs b/scripts/promote-stable.cjs index e14ee61..63d5219 100644 --- a/scripts/promote-stable.cjs +++ b/scripts/promote-stable.cjs @@ -8,8 +8,12 @@ * * The marketing download aliases (GenOffice.dmg / GenOfficeSetup.exe) also * track the stable channel: per-merge beta publishes skip them, and this - * script re-points each alias to the promoted version via a server-side - * blob copy (no download/re-upload). + * script re-points each alias by downloading the promoted installer to the + * runner and re-uploading it under the alias name — the same auth path the + * build pipelines use. (A server-side `az storage blob copy start` cannot + * read the source blob: the container is private and the connection string + * does not sign the copy source, so Azure rejects it with + * CannotVerifyCopySource.) * * Usage: * node scripts/promote-stable.cjs [--mac |latest] [--win |latest] [--force] [--dry-run] @@ -118,24 +122,27 @@ function blobExists(url) { }) } -/** server-side copy within the same container (installer alias re-point); - * same-account copies complete synchronously enough for CI use */ -function azCopyBlob(target, sourceBlob, destBlob) { +// installer content types match the build pipelines' upload steps +// (mac-release-upload.cjs / windows-build.yml) +function contentTypeFor(name) { + if (name.endsWith('.dmg')) return 'application/x-apple-diskimage' + if (name.endsWith('.exe')) return 'application/x-msdownload' + return 'application/octet-stream' +} + +function azDownload(target, blobName, localPath) { execFileSync( 'az', [ 'storage', 'blob', - 'copy', - 'start', - '--destination-container', + 'download', + '--container-name', target.container, - '--destination-blob', - `${target.prefix}/${destBlob}`, - '--source-container', - target.container, - '--source-blob', - `${target.prefix}/${sourceBlob}`, + '--name', + `${target.prefix}/${blobName}`, + '--file', + localPath, '--output', 'none', ], @@ -143,29 +150,35 @@ function azCopyBlob(target, sourceBlob, destBlob) { ) } -function azUpload(target, localPath, blobName) { - execFileSync( - 'az', - [ - 'storage', - 'blob', - 'upload', - '--container-name', - target.container, - '--file', - localPath, - '--name', - `${target.prefix}/${blobName}`, - '--overwrite', - '--content-type', - 'text/yaml', - '--content-cache-control', - 'no-cache', - '--output', - 'none', - ], - { stdio: 'inherit' }, - ) +function azUpload(target, localPath, blobName, { contentType, noCache = false } = {}) { + const args = [ + 'storage', + 'blob', + 'upload', + '--container-name', + target.container, + '--file', + localPath, + '--name', + `${target.prefix}/${blobName}`, + '--overwrite', + '--content-type', + contentType, + '--output', + 'none', + ] + if (noCache) args.push('--content-cache-control', 'no-cache') + execFileSync('az', args, { stdio: 'inherit' }) +} + +/** re-point the installer alias: pull the promoted installer to the runner + * and re-upload it under the alias name (same upload auth as the build + * pipelines — a server-side copy cannot authenticate its private source) */ +function repointAlias(target, tmpDir, sourceBlob, aliasBlob) { + const localPath = path.join(tmpDir, sourceBlob) + azDownload(target, sourceBlob, localPath) + azUpload(target, localPath, aliasBlob, { contentType: contentTypeFor(aliasBlob) }) + fs.rmSync(localPath, { force: true }) } async function promoteOne(target, platform, requestedVersion) { @@ -203,10 +216,11 @@ async function promoteOne(target, platform, requestedVersion) { // alias first, feed last: a client reading the new feed mid-promote must // already find every artifact it references - azCopyBlob(target, installerName, platform.alias) - const tmp = path.join(fs.mkdtempSync(path.join(os.tmpdir(), 'promote-')), platform.feed) + const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'promote-')) + repointAlias(target, tmpDir, installerName, platform.alias) + const tmp = path.join(tmpDir, platform.feed) fs.writeFileSync(tmp, archived) - azUpload(target, tmp, platform.feed) + azUpload(target, tmp, platform.feed, { contentType: 'text/yaml', noCache: true }) console.log(`[promote-stable] published ${target.base}/${platform.feed}`) }