summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2025-06-28fix: tests during Nix buildMartin Fischer
Fixes the following error when executing the tests during a Nix build: Traceback (most recent call last): File "/build/inkstitch/lib/elements/element.py", line 714, in handle_unexpected_exceptions yield File "/build/inkstitch/lib/elements/element.py", line 650, in embroider stitch_groups = self._load_cached_stitch_groups(previous_stitch, next_element) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/build/inkstitch/lib/debug/debug.py", line 172, in decorated result = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/build/inkstitch/lib/elements/element.py", line 541, in _load_cached_stitch_groups stitch_groups = get_stitch_plan_cache().get(cache_key) ^^^^^^^^^^^^^^^^^^^^^^^ File "/build/inkstitch/lib/utils/cache.py", line 31, in get_stitch_plan_cache cache_dir = get_user_dir('cache') ^^^^^^^^^^^^^^^^^^^^^ File "/build/inkstitch/lib/utils/paths.py", line 50, in get_user_dir os.makedirs(path) File "<frozen os>", line 215, in makedirs File "<frozen os>", line 215, in makedirs File "<frozen os>", line 225, in makedirs PermissionError: [Errno 13] Permission denied: '/homeless-shelter'
2025-06-28fix: generate-inx-files failing with NixMartin Fischer
Fixes the following error when attempting to build the Nix package: python bin/generate-inx-files; Traceback (most recent call last): File "/build/inkstitch/bin/generate-inx-files", line 59, in <module> from lib.inx.generate import generate_inx_files File "/build/inkstitch/lib/inx/generate.py", line 6, in <module> from .extensions import generate_extension_inx_files File "/build/inkstitch/lib/inx/extensions.py", line 10, in <module> from ..commands import (COMMANDS, GLOBAL_COMMANDS, LAYER_COMMANDS, File "/build/inkstitch/lib/commands.py", line 16, in <module> from .i18n import N_, _ File "/build/inkstitch/lib/i18n.py", line 10, in <module> from .utils import cache, get_resource_dir File "/build/inkstitch/lib/utils/__init__.py", line 6, in <module> from . import cache as cache_module # Slight hack to allow cache to be imported for monkeypatching ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/build/inkstitch/lib/utils/cache.py", line 13, in <module> from lib.utils.settings import global_settings File "/build/inkstitch/lib/utils/settings.py", line 84, in <module> global_settings = GlobalSettings() ^^^^^^^^^^^^^^^^ File "/build/inkstitch/lib/utils/settings.py", line 48, in __init__ self.__settings_file = os.path.join(get_user_dir(), "settings.json") ^^^^^^^^^^^^^^ File "/build/inkstitch/lib/utils/paths.py", line 50, in get_user_dir os.makedirs(path) File "<frozen os>", line 215, in makedirs File "<frozen os>", line 215, in makedirs File "<frozen os>", line 225, in makedirs PermissionError: [Errno 13] Permission denied: '/homeless-shelter'
2025-06-25switch from NFKC to NFC normalization form in the lettering tool (#3828)Claudine Peyrat
* switch from NFKC to NFC * Additional normalization. --------- Co-authored-by: CapellanCitizen <>
2025-06-23fix: set trims=True for pyembroidery.write (#3821)Martin Fischer
While the trims default was changed in pyembroidery back in 2019 with c4242f0f940c86766c0c27f65b5a09641b0af4bd that change only made it into the used Ink/Stitch fork of pyembroidery in 2022 with 28534cf1a8d692687d9f40c3be622e0945b5a2ee. So trims have been broken in Ink/Stitch since v2.2.0. Fixes #2813.
2025-06-22Claudine/unable element info copy (#3817)Claudine Peyrat
* firststeps * Update element_info.py * Update element_info.py * Update element_info.py add some help * make style... * rename a variable and fix a mistake * make headline nicer
2025-06-22Claudine/chose glyphs size (#3799)Claudine Peyrat
* first steps * Update lettering_svg_font_to_layers.py * add more user parameters * Update lettering_svg_font_to_layers.py * round the horiz_adv_x * remove scoriers * better handle the case when the reference glyph is not in the font
2025-06-20make pytest happy again (#3802)Kaalleen
2025-06-04Smoothing and clamping (#3772)Kaalleen
* smoothing: ensure start and end of original path * clamp path: never intersecting path could also be entirely in the exterior of the shape
2025-06-04Jump to trim: do not add multiple (#3773)Kaalleen
2025-06-04auto_satin: running stitch explicitly without fill (#3771)Kaalleen
* ensure that also satins have no fill
2025-06-03emboss whole selection (#3770)Kaalleen
2025-06-01Lettering: do not warn about fonts without jsons (#3766)Kaalleen
2025-05-26lettering along path: fix baseline for scaled text (#3751)Kaalleen
2025-05-23knockdown: square is a rect (#3747)Kaalleen
2025-05-21prevent erroring out on #3742 (#3743)Kaalleen
2025-05-21ensure start and end point for ripple lines (#3741)Kaalleen
2025-05-20fix ripple anchor cache (#3737)Kaalleen
2025-05-20Manual stitch: apply clipping (#3734)Kaalleen
* manual stitch: apply clipping * add clip to cache
2025-05-20ripple: return empty when there are no helper lines (#3733)Kaalleen
2025-05-20add force horiz_adv_x_default to generate json and fix edit-json (#3735)Kaalleen
2025-05-20fix lettering along path with scaled text (#3736)Kaalleen
2025-05-20knockdown: add embossing options (#3738)Kaalleen
2025-05-16letters to font: fix svg import (for simple files) (#3729)Kaalleen
2025-05-16import exit method (#3730)Kaalleen
2025-05-11add quilting formats to zip export arguments (#3718)Kaalleen
2025-05-11wrap param descriptions (#3719)Kaalleen
2025-05-09Lettering along path: fix multipart glyphs and rtl (#3709)Kaalleen
* lettering along path: fix multipart glyphs and rtl * improve handling of multiline text
2025-05-09handle GeometryCollections in ensure_polygon (#3708)Kaalleen
2025-05-09lettering: options to scolled panel (#3714)Kaalleen
2025-05-03legacy fill: do not ignore end_row_spacing when grouping sections (#3703)Kaalleen
2025-05-03edit json: warn about not writable json files (and rendering errors) (#3704)Kaalleen
2025-05-02meander fill: zigzag_stitch pull compensation is now a two sided attribute ↵Kaalleen
(#3702)
2025-05-01fix AttributeError when rendering fonts (#3699)Kaalleen
2025-04-27fix zerodivision error in zigzag to satin (#3696)Kaalleen
2025-04-27circular fill: use first boundary linestring if outline is multilinestring ↵Kaalleen
(#3694)
2025-04-27auto_satin: do not try to add a trim to a deleted element (#3683)Kaalleen
2025-04-27prevent possbile RecursionError for relative lock stitches (#3695)Kaalleen
2025-04-26Claudine/fix font sample (#3684)Claudine Peyrat
* twist monicha * Update lettering_font_sample.py * better use default value * and leave Monicha alone in this branch * ensure command and marker symbols --------- Co-authored-by: Kaalleen <reni@allenka.de>
2025-04-26add icc color workaround (#3687)Kaalleen
2025-04-19duplicate-consistant autoroute element selection (#3638)Kaalleen
2025-04-18do not rely on random ids for commands in lettering (#3681)Kaalleen
2025-04-18Redwork: remove command also from selection list (#3639)Kaalleen
2025-04-18fix NoneType error in auto_fill travel (#3659)Kaalleen
2025-04-18Fix an issue when auto_satin produces NoneType satins (#3680)Kaalleen
2025-04-18Manual stitch ripples: connector line stitch length (#3661)Kaalleen
2025-04-18delete reorder elements first (#3663)Kaalleen
2025-04-18Disconnect stroke and fill pull compensation param (#3670)Kaalleen
* make stroke pull compensation a sided property
2025-04-18Multicolor satin (windows): apply settings in spinctrldouble when they hit ↵Kaalleen
enter (#3677) * multicolor satin (windows): apply settings in spinctrldouble when they hit enter * enable nearest points for multicolor satin --------- Co-authored-by: CapellanCitizen
2025-04-17remove rotation test code (#3675)Kaalleen
2025-04-17do not fail on None in edit json (#3676)Kaalleen