Commit Graph
339 Commits
Author SHA1 Message Date
bflatastic 693785fc70 Revert "cutover: use craft_plotter::hpgl::write (#8626)"
This reverts commit d2bed0bdb8.
2026-11-19 07:18:07 +07:00
Dylan M. Taylor 0087be0452 color: cut over palette_io GPL/ASE/ACB to craft-cms (#8627) 2026-11-18 19:08:49 -05:00
Dylan M. Taylor d2bed0bdb8 cutover: use craft_plotter::hpgl::write (#8626) 2026-11-18 19:08:45 -05:00
bflatastic 57ac9a7ff2 Revert "color: cut over cms/icc.rs to craft-cms (#8612)"
This reverts commit 4d73308977.
2026-11-19 05:34:52 +07:00
Dylan M. Taylor 4d73308977 color: cut over cms/icc.rs to craft-cms (#8612) 2026-11-18 17:21:45 -05:00
bflatastic 338a3f13bc Merge main into #5341
# Conflicts:
#	docs/gaps.md
2026-11-19 01:05:05 +07:00
bflatastic 11b6ae8203 text: pin craft-font-catalog to craft-libs main and restore the shared outline call 2026-11-18 22:02:41 +07:00
Dylan M. Taylor 1b150df493 Merge remote-tracking branch 'origin/main' into pr-7877 2026-11-18 09:21:41 -05:00
BFlat 3dfd692304 Merge pull request #8078 from dotCooCoo/feat/text-import-character-sets
Text Import Options: Character Set offers the other documented encodings
2026-11-18 10:31:10 +07:00
BFlat e1b12a5640 Merge pull request #8060 from dotCooCoo/feat/hyphenation-languages
Type: text hyphenates in Bulgarian, Turkish and Russian, and in German, Polish, Portuguese and Italian with CRAFT_I18N_DIR
2026-11-18 03:22:00 +07:00
dotCooCoo 61abac22bf Merge main into chore/craft-libs-exr-deep-offsets
# Conflicts:
#	Cargo.toml
2026-11-17 07:20:10 -08:00
Dylan M. Taylor 2dd120c0fe Use shared contextual run shaping (#7878) 2026-11-17 08:14:14 -05:00
Dylan M. Taylor 34dd4b53ab Pin shared HP-GL lexer to merged prerequisite 2026-11-17 07:45:20 -05:00
Dylan M. Taylor 6d91dde84c Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/text/src/fontdb/lookup.rs
2026-11-16 23:23:16 -05:00
dotCooCoo ff6e3ad8b9 Merge main into feat/text-import-character-sets 2026-11-16 19:55:55 -08:00
dotCooCoo fc1ed0acb6 Merge main into chore/craft-libs-exr-deep-offsets 2026-11-16 19:51:24 -08:00
Dylan M. Taylor 09fbf82e0e cad: use shared HP-GL byte lexer, preserve interpreter and writer (#8282) 2026-11-16 22:34:09 -05:00
Dylan M. Taylor 23ba5c8d47 SVG: use the shared standard Base64 encoder (#8280) 2026-11-16 22:22:39 -05:00
dotCooCoo 07afd411bb Dependencies: take every craft-libs crate from craft-libs main at 64b181977a
Every storytold/craft-libs git dependency, the hayro, krilla and
linesweeper patches and the web app's craft-web-api now use one
revision, 64b181977a, so Cargo.lock holds one copy of each craft-libs
crate. craft-ui's docking Monitor has a new work_area field; the
monitors VectorCraft lists set it to None, as winit reports no work
area.
2026-11-16 18:57:11 -08:00
dotCooCoo be5c81f366 Merge main into chore/craft-libs-exr-deep-offsets 2026-11-16 18:45:23 -08:00
FredApps 9a01d266b0 Merge pull request #8152 from storytold/cutover/shared-packbits
refactor: share TIFF and EPS PackBits encoding
2026-11-16 23:30:20 +01:00
Dylan M. Taylor ca7ad8db03 fix(deps): pin PackBits and PDF cohort to merged shared revision 2026-11-16 16:04:48 -05:00
Dylan M. Taylor 9c61c0b66e Merge pull request #8103 from storytold/refactor/eps-shared-write
refactor(eps): delegate PostScript write primitives to craft-ps
2026-11-16 15:55:40 -05:00
dotCooCoo f9f311d081 Dependencies: take craft-image-codecs from craft-libs main at 3af718585c
craft-image-codecs moves from a499742a93 to 3af718585c on craft-libs main.
It brings in storytold/craft-libs#1758: a deep EXR file with more than one
part now finds each part's chunks after every part's offset table, and an
offset table that runs past the end of the file is an error.

The move also brings in the other merged changes to craft-image-codecs and
the craft-jpeg, craft-metadata and craft-tiff copies it uses: #1646, #1686,
#1837, #1838, #1867 and #1889. #1774 moves DDS reading and writing into the
new craft-dds crate, which adds BC4 and BC5 textures. The other craft-libs
crates stay at their current revisions. craft-svg keeps its own
craft-image-codecs at 431f704478, which it only uses for PNG, JPEG, GIF and
WebP images.
2026-11-16 11:56:21 -08:00
dotCooCoo 6f131341b2 Merge main into feat/text-import-character-sets 2026-11-16 10:05:40 -08:00
Dylan M. Taylor aa5d042441 deps: synchronize PDF backend pins with shared stream codecs 2026-11-16 11:25:29 -05:00
BFlat 36c1f37ac6 Merge pull request #8096 from dotCooCoo/feat/packaging-check-fold-lines
Packaging Tools: Check Fold Lines finds the panels and hinges of a blank and lists what is wrong
2026-11-16 23:08:07 +07:00
dotCooCoo 6a66f9ad94 Type: decomposed Cyrillic and capital words hyphenate as their composed spelling
A Russian or Bulgarian word written with a combining breve (`и` + U+0306
for `й`) failed the Cyrillic script check and stayed whole; the check now
reads the composed word, so it breaks at the same characters as `чайник`.
A stress mark, which composes with nothing, still keeps the word whole.

The all-capitals guard skipped a decomposed capital such as `O` + U+0308,
since a combining mark has no case, so `ÖĞRENCİ` spelled that way was
hyphenated in Turkish; the guard now counts only the letters.
2026-11-16 07:33:39 -08:00
Dylan M. Taylor ae86489406 render: delegate TIFF and EPS PackBits encoding to craft-stream-codecs 2026-11-16 10:08:08 -05:00
dotCooCoo 4ded8dcdb5 Merge main into feat/hyphenation-languages 2026-11-16 07:07:41 -08:00
FredApps 4a328df848 Merge remote-tracking branch 'origin/main' into refactor/eps-shared-write 2026-11-16 14:56:00 +01:00
Dylan M. Taylor 568d25bf17 Merge main and preserve EPS shared writer dependency 2026-11-16 07:34:47 -05:00
Dylan M. Taylor ebf49351e6 build(eps): pin merged shared PostScript writer 2026-11-16 07:15:30 -05:00
FredApps 631441ce86 svg: write the document wrapper through craft-svg (#778, #789)
The XML declaration, DOCTYPE entity subset and root <svg> open now go
through SvgWriter. Mapping and the rest of the document stay in the app.
Width and height stay unitless in one place so #7105 can rebase.
2026-11-16 13:10:03 +01:00
Dylan M. Taylor 7b895f0bf0 refactor(eps): delegate PostScript write primitives to craft-ps 2026-11-16 06:23:46 -05:00
dotCooCoo 532d2ea6d7 Packaging Tools: Check Fold Lines finds the panels and hinges of a blank and lists what is wrong
Object › Plug-ins › Packaging Tools › Check Fold Lines, and the Fold Lines
panel's Check button, check the fold lines of the selection, or of the
document while nothing is selected (`addon.packaging.check`).

- Cut lines bound the material: each connected piece that encloses an
  area is one blank, its largest closed cut line is the outline, and a
  closed cut line inside it is a hole. A slot drawn as a rectangle across
  the outline leaves the same material as a notch drawn in it, and an
  outline drawn as several open cut lines works too.
- Creases, partial cuts and perforations divide a blank into panels; the
  pieces between the same two panels form one hinge.
- 15 issue codes, errors and warnings, each naming its lines; cut line
  ends within a tolerance (0.1 pt, 0.01 to 10) are joined and reported as
  a gap. With `select`, the lines the issues name are selected.
- The panel lists the issues in the interface language, with a summary
  line; clicking an issue or its Select button selects its lines. The
  list is kept until the document changes.

`vectorcraft_pathops::adjacency` maps paths as live_paint does and keeps,
for each edge, every input it lies on and the faces on both sides; the
blank model is `vectorcraft_three_d::fold::blanks`. The engine now depends
on vectorcraft-three-d directly.

Docs: docs/mcp.md (Check Fold Lines), crates/pathops/README.md, ROADMAP.
2026-11-16 01:47:15 -08:00
dotCooCoo c643f9f5e1 Text Import Options: Character Set offers the other documented encodings
The Character Set menu of Text Import Options now lists Shift JIS, GB2312,
Chinese Big 5, Cyrillic, GB18030, Greek, Turkish, Baltic and Central European
beside Unicode and ANSI, and `file.place {text: {characterSet}}` takes
"shiftJis", "gb2312", "chineseBig5", "cyrillic", "gb18030", "greek",
"turkish", "baltic" and "centralEuropean". Each set decodes with its WHATWG
Encoding Standard decoder from encoding_rs, which the workspace already
locks: GB2312 reads as GBK, Cyrillic as windows-1251 (x-mac-cyrillic with
platform "mac"), and Greek, Turkish, Baltic and Central European as
windows-1253, 1254, 1257 and 1250 on both platforms. A byte-order mark is
read as ordinary bytes and a malformed sequence as U+FFFD. Unicode and ANSI
read as before.

An unknown character set is an error that lists the sets, and nothing is
placed. A `text` option of the wrong type (`characterSet: 3`,
`removeLineReturns: "yes"`) is now an error instead of the default. The
dialog remembers the last set confirmed, and Show Import Options off places
with it.
2026-11-16 00:16:03 -08:00
dotCooCoo a6c3ffe90f Type: text hyphenates in Bulgarian, Turkish and Russian, and in German, Polish, Portuguese and Italian with CRAFT_I18N_DIR
A run whose language is German, Polish, Portuguese or Italian (any region)
now breaks at that language's hyph-utf8 patterns from craft-proof, and a
Bulgarian, Turkish or Russian run at that language's syllable rules. The
paragraph's Hyphenation options and the Preferences exceptions apply as
before, and points that would split a grapheme are dropped.

For Bulgarian, Turkish and Russian, craft-proof hyphenates a word outside
the language's script as English. For German, Polish, Portuguese and
Italian it can also return points from its own heuristics. Those points
are refused, so a word outside its language's script stays whole.
German, Polish, Portuguese and Italian need craft-proof built with
CRAFT_I18N_DIR; without it they keep today's behavior. Other languages,
English and the eleven Indian languages are unchanged.
2026-11-15 23:01:31 -08:00
FredApps 3e772ec2c3 doc: ImageBlob pixels and link previews decode through craft-image-codecs
Embedded and linked images read their pixels with decode_within: the
size from the header against the allowance first (as samples and as
RGBA, #1717), then the pixels as stored. map_rgb, sampling, coverage,
link previews and checked_with_pixels all go through it.

decoded_pixels_are_those_the_image_crate_read compares PNG, GIF, WebP,
TIFF and BMP at each depth the image crate writes with its pixels, and
JPEG within two steps, including the pixels checked_with_pixels hands
on. The 11,586² allowance test is a compact PNG; craft-image-codecs
refuses a GIF whose unbacked logical screen is past 256 MiB.
2026-11-16 07:08:12 +01:00
FredApps 39e36e342f Pin craft-libs to a499742a (craft-libs#1779 and #1782)
craft-libs main with the JPEG inks reader vectorcraft-doc's CMYK JPEGs use
(#1779) and the craft-jpeg fallback for frames zune-jpeg panics on
(#1782). Cargo.lock regenerated.
2026-11-16 05:12:41 +01:00
Dylan M. Taylor 8ee5acc04e Merge pull request #7866 from storytold/codex/shared-gzip-consumer
Use shared streaming native format writer
2026-11-15 17:28:04 -05:00
FredAppsandFredApps bb218101c9 cad: export DXF through craft-dxf's drawing writer (#7847)
* cad: export DXF through craft-dxf's drawing writer

Delete the local ASCII writer and map the document through
craft_dxf::drawing. Public vectorcraft_cad::export, DxfOptions and
DxfVersion stay so vectorcraft#3068 can rebase without a writer API
change. Pin craft-dxf at the craft-libs#1588 branch tip; update the
rev after that PR merges. Golden files lock shapes_doc() bytes for
R12 and 2018 against the old writer. Part of storytold/craft-libs#791
and #778.

* cad: pin craft-dxf to the #1588 tip with Dylan's writer fixes

Point craft-dxf (and craft-codepage from the same rev) at
0b6244f2b9971deaeb6a79d932c818ff94479757, which includes the
Windows golden line-ending fix, BYBLOCK and image-dictionary
key changes, and the compile fix for the dictionary-key test.
Update the pin again to the merge commit after #1588 lands.

* cad: pin shared DXF writer to merged craft-libs #1588

---------

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-15 21:07:18 +01:00
Dylan M. Taylor 40518f790c Pin native writer APIs to merged craft-libs 2026-11-15 16:56:16 +00:00
Dylan M. Taylor b4fdbdd1ac Stream shared outlines into the existing bounded pen 2026-11-15 16:39:40 +00:00
Dylan M. Taylor 6fa5a6fb56 Compare malformed glyph recovery against original pen 2026-11-15 16:28:57 +00:00
Dylan M. Taylor 4bc874ca79 Share cached glyph outline drawing 2026-11-15 16:20:29 +00:00
Dylan M. Taylor 3492976910 Use shared streaming native format writer 2026-11-15 15:16:59 +00:00
FredApps 845e68008b test(trace): keep the image crate's JPEG encoder for the block-artifact fixture
a_jpegs_blocks_are_not_traced_as_steps measures how many traced edges land
on JPEG block boundaries, which depends on the encoder's artifacts. With the
craft-image-codecs encoder 18 of 40 segments sit on block edges; with the
original encoder and the new shared decoder the test passes unchanged, so
the trace itself is unaffected. image stays a dev-dependency only.
2026-11-15 15:48:44 +01:00
FredApps c9cad8d017 Merge main into fix/restore-codec-cutover-ci
Port main's new variable-library parsing (variable kinds, image, visibility
and graph values) from roxmltree to craft-xml with the branch's strict
options and attribute validation. Keep both sides' variable tests.
Drop the stale docx::nesting doc link.
2026-11-15 15:43:44 +01:00
BFlat 04731b9ce0 Merge pull request #7771 from dotCooCoo/feat/status-bar-show-menu
Status bar: a Show menu chooses what the info field displays
2026-11-15 19:45:09 +07:00