Commit Graph
3352 Commits
Author SHA1 Message Date
Nghiathan13andClaude Opus 5.5 da47503f1d #2360: a text frame in the paragraph defaults frames nothing
Apple Pages writes a sizeless w:framePr (xAlign left, y 0, hRule
exact) into w:pPrDefault. WordCraft read it as the default paragraph
frame, so every paragraph inherited it. The header's title of
traditional_skills_job_form was drawn from the page's left edge over
the first table, the footer's page number left the bottom of the page,
and table rows came out shorter than in Word.

Word ignores that frame: its PDF of the same file shows the title at
the left margin and "1/4" in the footer. Taking just that element out
of styles.xml gives WordCraft the same page. The reader now drops the
frame from the paragraph defaults and keeps the rest of them. Frames
from styles and direct formatting are unchanged, and the default frame
isn't written back on save.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 17:39:37 +07:00
Fin Warman 3e2cf5edb4 DOCX: preserve text boxes containing pictures (task 256) 2026-10-16 11:25:51 +01:00
Fin Warman 425e01dec9 244: preserve list metrics in keep-next lookahead 2026-10-16 09:10:01 +01:00
FredApps c341669dbd Merge main and add browser Copy Formatting alias 2026-10-16 08:42:14 +02:00
Diego GueriniandClaude Opus 5.5 02fc9e6f9a #2388: AltGr types its characters instead of opening KeyTips on Linux
On Wayland, AltGr (Right Alt on Polish, German, Czech… layouts) arrives as
the Right Alt key followed by a modifiers event without Alt, since it turns
on Level 3 Shift (Mod5), not Alt. The KeyTips state machine read that event
as Alt let go with nothing pressed in between and opened KeyTips while AltGr
was still held, so the next letter went to the badges instead of typing ś,
ł, ż.

A modifiers event without Alt no longer ends the press while an Alt key is
still down by key events (its key-up does), and a release opens KeyTips only
if the Alt modifier was on during the press (Left Alt always counts), so a
bare AltGr tap doesn't open them either. Right Alt that is Alt (US layout)
still does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 08:10:22 +02:00
harshpsi9194 e5ffb15cb5 fix(ui): borrow fallback fonts and preserve visual order for recent files (#2067) 2026-10-16 11:22:02 +05:30
rabisandClaude Opus 5.5 2ffdf353a1 #2310: PDF: lam-alef drawn as two glyphs at the same x extracts in reading order
Some fonts (the static Noto Naskh Arabic builds) draw لا as a lam and a
zero-advance alef with their own clusters at one x. visual_order kept the
tie in logical order, so the right-to-left run's ranges didn't decrease,
krilla dropped /ReversedChars and السلام extracted as السالم. Ties between
clusters now go in reverse text order when right to left (text order
otherwise).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 06:56:17 +02:00
Dylan M. Taylor 72453d9def ci: switch to shared nix workflow from craft-common-actions 2026-10-15 23:57:51 -04:00
Nghiathan13 193b82d570 #2277: preview rotated object pixels while dragging 2026-10-16 10:35:52 +07:00
skylar taylor-barrick eae2421761 Merge pull request #2307 from dylanmtaylor/ci/nix-workflow
ci: add nix check workflow
2026-10-15 21:24:56 -06:00
NetterSilverandClaude Haiku 5.5 0137a5157a Fix numbered list levels that start at 0 or are overridden to 1
Found while testing crates/doc/src/numbering.rs:319

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 04:15:02 +02:00
Divyanshu Gupta c9bebab058 fix(mathml): support linethickness=none and menclose notations 2026-10-16 07:04:27 +05:30
Dylan M. Taylor 40c4ebc432 ci: add nix check workflow 2026-10-15 20:49:45 -04:00
Divyanshu Gupta 48ff1e52be fix(formats): support bullet, top, bot, hslash, accents, bm, and mod in LaTeX math 2026-10-16 05:08:58 +05:30
Divyanshu Gupta 772cccf038 fix(formats): support xs:time, string-value, and case-insensitive cell types in spreadsheets 2026-10-16 04:39:59 +05:30
FredApps a4d28e2586 Apply Format Painter on single-click release (#1455) 2026-10-16 00:33:35 +02:00
Divyanshu Gupta 51fc220092 fix(formats): support asian/complex scripts and underline/strike types in ODT 2026-10-16 04:03:21 +05:30
Divyanshu Gupta 5817874b6d fix(formats): parse leading plus and case-insensitive units in LaTeX lengths 2026-10-16 03:47:04 +05:30
Divyanshu Gupta 4818b7b8f2 fix(formats): parse case-insensitive and pica units in ODT lengths 2026-10-16 03:44:21 +05:30
Divyanshu Gupta f9808ae495 fix(docx): correctly parse emu and case-insensitive units in measure 2026-10-16 03:41:06 +05:30
Divyanshu Gupta 07ecf526a6 fix(formats): support case-insensitive and spaced !important in HTML CSS 2026-10-16 03:21:50 +05:30
Divyanshu Gupta 8711f5cfd1 fix(docx): inspect textbox style for v-text-anchor and handle case-insensitivity 2026-10-16 03:05:52 +05:30
vangel76andClaude Sonnet 5.5 a912aacf73 Merge upstream/main into feat/322-view-windows; translations for hr, ko, sv, vi; catalog 493/504
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-15 23:11:06 +02:00
Divyanshu Gupta 16e18d8492 fix(docx, doc): support VML wrap side and case-insensitive float anchors 2026-10-16 02:40:25 +05:30
vangel76andClaude Sonnet 5.5 256d5d084d Merge upstream/main into feat/1053-rtf-notes-comments
Notes and comments now work with RTF tracked changes (#1516) and per-section
headers and footers (#1495); a \sect inside a note or comment no longer ends
a section. Adds a test for the combination.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-15 23:05:08 +02:00
vangel76andClaude Sonnet 5.5 efef885543 Merge upstream/main into fix/float-in-cell-align-1887
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-15 23:00:48 +02:00
Divyanshu Gupta a4e2cebc07 fix(formats): support borderless and bordered tables in LaTeX import and export 2026-10-16 02:05:49 +05:30
Mex 62bb20187d review (#1690): reject malformed explicit comment IDs 2026-10-15 21:48:27 +02:00
skylar taylor-barrick 86adfd34eb refactor(pdf): adopt the shared PDF writer (PDFW)
PDFW: Migrate WordCraft PDF export to the shared writer while preserving application layout and export policy.

Refresh includes current main through fd0bb2fb. The exact merged tree passed all six local CI gates, 2,769 native tests, 39 PDF tests, 16 WASM package checks, and 104 paired exports / 117 pages on native and executed Node/WASM. Fresh Ubuntu, Windows and macOS Printing checks passed at df28b78.

PR #1558. Preserve the qualified branch history and immutable shared dependency revision.
2026-10-15 12:17:16 -06:00
Divyanshu Gupta 9e477da0ee fix(formats): support small and big tags and relative/large font-size keywords in HTML 2026-10-15 23:45:12 +05:30
Divyanshu Gupta 68479ee33f fix(formats): support column break in RTF import and export 2026-10-15 23:38:07 +05:30
skylar taylor-barrick df28b78de9 refactor(pdf): reconcile shared writer with current main (PDFW)
Refresh #1558 onto fd0bb2fb while preserving the shared writer migration
and current upstream layout, DOCX, field and table behavior.
2026-10-15 11:47:00 -06:00
Filip Strajnar dfdce752dc i18n(sl): add the 155 strings main gained since the catalog was drafted
Rebased on main. sl.tsv now has 2,614 entries, every key of every other
catalog, including the native print settings (Tiskalnik, Odtenki sive,
Obojestransko tiskanje), mail merge filter and sort, Go To, bookmarks,
privacy options, interface size and dictionary folder strings. Three keys
main renamed were replaced.

- Slovenian added alongside Vietnamese, Swedish and Croatian in the
  language list, the audit list and the Polish coverage exclusions.
- New test: sl has no keys outside the other catalogs.
- localization-parity.md, localization-sl.md and ROADMAP.md counts,
  language lists and status lines updated.
2026-10-15 19:14:42 +02:00
Filip Strajnar 262310756d i18n: add Slovenian (sl) interface translation
A 2,463-entry Slovenian catalog: every key of every other catalog in the
repository (built-in style names, equation gallery, paper sizes, citation
styles included). Written from the meaning of the English labels in ordinary
Slovenian computing vocabulary; no other product's localisation was used.
Counts use count-neutral wording ("Besede: 21"), since the catalog has no
dual/plural forms.

- sl, sl-SI, sl_SI.UTF-8 select it automatically; "Slovenščina" in Options
  and ui.language with {"value":"sl"}.
- The interface audit checks Slovenian coverage the way it checks Russian.
- Tests: locales and saved preference, catalog coverage and key terms,
  count wording, and bundled fonts covering č, š, ž.
- docs/localization-sl.md with conventions and terminology; parity table,
  README, ROADMAP and ATTRIBUTION updated.
2026-10-15 18:57:13 +02:00
Divyanshu Gupta 147866bce5 fix(formats): support tab-separated list markers in markdown 2026-10-15 22:25:36 +05:30
Divyanshu Gupta 19109657d0 fix(formats): support distributed paragraph alignment in RTF 2026-10-15 22:01:39 +05:30
Divyanshu Gupta bdbfa62056 fix(formats): support left alignment in markdown tables 2026-10-15 21:49:08 +05:30
tydude001andClaude Opus 5.5 57a000e978 Linux: scan the Flatpak host font folders (#1937)
Inside a Flatpak, /usr/share/fonts and /usr/local/share/fonts are the runtime's and the home font
folders aren't exposed, so WordCraft listed only the runtime's fonts. Flatpak mounts the host's
system, local and user fonts at /run/host/fonts, /run/host/local-fonts and /run/host/user-fonts
for every app, and its main branch (after 1.19.2) also mounts ~/.fonts at
/run/host/user-fonts-legacy when the XDG user font folder exists too; scan those as well.
Folders that don't exist are skipped, as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 11:11:34 -05:00
NetterSilverandClaude Haiku 5.5 9371cb0536 Return 0 for SIGN(0) in table formulas
Found while testing crates/engine/src/cmd/table_formula.rs:721

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-15 14:44:40 +00:00
asystemoffieldsandClaude Opus 5.5 5795259c45 File: recovery copies and .json files store pictures as base64 (#586 follow-up)
Native JSON wrote Document::media and Document::passthrough with serde's
default for bytes, an array of numbers. With a synthetic 27 MiB picture a
recovery copy (compact) was 96.4 MiB and a .json file (pretty-printed,
one number per line) 285.5 MiB.

Each part is now one standard base64 string (doc::byte_store, using the
workspace base64 crate), encoded straight into the writer. Reading accepts
base64 or the old array of numbers, so recovery copies and .json files
written before still open; anything else is an error, never a panic.

Measured (release, same synthetic picture): compact 96.4 -> 36.0 MiB,
pretty 285.5 -> 36.1 MiB, write 252/614 -> 52/57 ms, read 404/533 ->
46/37 ms. A recovery snapshot of a 6,000-paragraph document with the
picture: 99 -> 39 MB, worker time 2.3 -> 0.26 s, start-up scan 1.03 ->
0.14 s.

Tests: byte_store unit tests (round trip, old arrays, hostile values);
recovery_format.rs native_json_stores_bytes_as_base64,
native_json_with_byte_arrays_still_opens, native_json_with_bad_bytes_is_an_error,
ignored measurement native_json_size_with_a_large_picture; desktop.rs
copies_with_byte_arrays_written_before_still_restore.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 10:10:23 -04:00
asystemoffields 9d22d69ee5 Contributors: add asystemoffields to people.toml 2026-10-15 09:24:09 -04:00
asystemoffieldsandClaude Opus 5.5 e500df7fb6 Opening a named pipe or a device no longer hangs or eats memory, whatever its name (#1444 follow-up)
The app read a file whose name isn't valid Unicode (#1440) with a plain
std::fs::read, and file.open on a path (also wordcraft-cli) checked only
the length before std::fs::read. Neither checked for a regular file: a
named pipe blocked the open (app start-up hung), and /dev/zero read until
memory ran out.

The new io::read_document reads a document path inside the automation
read root, only as a regular file of at most 2 GB, through the existing
read_regular_file. open_path_in and the app's open_non_unicode both use
it, so the two read a path the same way.

Regression tests: file.open on a FIFO and read_document on /dev/zero are
refused without blocking (engine), and the app's open of a FIFO or a
/dev/zero symlink under a non-Unicode name is a quick warning that leaves
the open document alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 09:24:08 -04:00
Kaan IlterandClaude Opus 5.5 624ce0bdc2 fix(fonts): emoji prefer a colour emoji font on Windows
Fallback put Segoe UI Symbol before Segoe UI Emoji, and Symbol has
monochrome glyphs for some emoji (✅), so they drew in black and white
and tests_color_glyphs failed on Windows. Characters with default emoji
presentation now rank the colour emoji fonts first, both when loading a
system fallback and when choosing among loaded faces.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 12:44:48 +01:00
dfgodvanandClaude Opus 5.5 e4d9eb61b9 Tables: rows with gridBefore/gridAfter keep their grid columns (part of #1174)
A row that skips grid columns before its first cell (w:gridBefore) was laid
out from column 0, so its cells sat one or more columns to the left and
wrapped at the wrong width (a text cell landing on a 5 pt column sets one
letter per line). Row::first_grid() gives the column the row's first cell
starts at; Table::grid_col, cell_at_grid and cols(), the layout passes,
vertical-merge matching, cell selection and the insert-column spot count
from it, and cols() also counts gridAfter.

The skipped columns stay empty and borderless, as in Word: a row's own
first and last cell carry the table's outer side borders, and AutoFit gives
the skipped columns the row's wBefore/wAfter width.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 13:54:55 +03:00
Guru Swarupa 70cfe06846 feat(navigation): implement collapsible headings in the navigation pane 2026-10-15 14:54:20 +05:30
fabiodalez-dev bdc7226fc7 i18n(it): translate the 15 strings other catalogs added since #1244
Paper and envelope sizes in the page-size list (decimal comma), the Go To and bookmark prompts, the print-job notice and the Letter template name the Croatian, Swedish and Vietnamese catalogs added. Italian again has every key the other catalogs have.
2026-10-15 11:20:32 +02:00
przemek-archandClaude Opus 5.5 7e33e5ae31 Ribbon: names for screen readers on the tab strip's drawn buttons (#1110)
Share and the » that holds the tabs that don't fit are painted, so a screen
reader had no name for them (» read as a glyph). They now say "Share" and
"More tabs", with "More tabs" translated in every catalog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 09:53:17 +02:00
rabisandClaude Opus 5.5 9066db8334 #1976: breaks_menu tests use the English interface
The Breaks menu tests look for English labels, but an integration test
links the library without cfg(test), so WordApp followed the machine's
interface language and both tests failed on a Polish Windows. Set the
app's language to English in layout_tab(), as native_print already does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 09:26:44 +02:00
Gert Pellin e9f1724f8a Merge branch 'main' into fix/1734-unit-suffix-translated 2026-10-15 09:06:42 +02:00
NetterSilverandClaude Haiku 5.5 8a0dcefb3f Read ^0nnn character codes 128-159 as Windows-1252 characters
Found while testing crates/engine/src/cmd/find_pattern.rs:97

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 07:53:50 +02:00