Wykres commitów

1477 Commity (ba2b78d3499f3b274611440b9b2257b9ee0f1820)

Autor SHA1 Wiadomość Data
X3msnake 68c6e37fad
Update info on trim
Since pull #29 trim and stop are integrated so no external edit needed anymore
2018-02-22 17:23:23 +00:00
AkiraNorthstar dc587099a2
Update LICENSE
fix Year
2018-02-22 17:38:34 +01:00
Lex Neva 3f95669252 don't show console window in Windows 2018-02-19 21:46:25 -05:00
Lex Neva 633ec88186
windows build (#79)
Ink/stitch now supports windows!
2018-02-19 21:43:39 -05:00
Lex Neva 4c5e578939 fix repeated colors showing as random 2018-02-17 10:13:09 -05:00
Lex Neva fe1f49ff9c
typo fix in Portuguese translation (#67) 2018-02-10 19:47:47 -05:00
Lex Neva 586427be79 version 1.2.0
* Simulate now works regardless of the output format you chose when you ran Embroider.
 * Simulate (and the preview in Params) now respects TRIMs.
 * Inkscape restart required (embroider.inx changed).
 * added margin around simulator
 * UI localization framework
 * Portuguese translation (thanks, @X3msnake!)
 * German translation (thanks, @AkiraNorthstar!)
2018-02-09 20:13:56 -05:00
Lex Neva 4a84ebadf6
Translation docs (#61)
* add link to LOCALIZATION.md in README.md

* create LOCALIZATION.md
2018-02-09 20:13:02 -05:00
Lex Neva 7eaf841cd5
up to 100% german UI translation (#63) 2018-02-09 20:10:53 -05:00
Lex Neva 018f55bbcf
Portuguese (pt_PT) translation and partial German translation (#60)
* New translations messages.po (Portuguese)

* New translations messages.po (German)
2018-02-05 20:19:32 -05:00
Lex Neva 69470d5847
initial PO files (#58) 2018-02-04 23:18:18 -05:00
Lex Neva fe4a0ff1b8 one more fix 2018-02-04 23:10:18 -05:00
Lex Neva 977d3b0d7e fix make locales 2018-02-04 23:03:41 -05:00
Lex Neva 72d52dc317
framework for translations (#55)
sets up all the plumbing to send strings to CrowdIn for translation and incorporate the results
2018-02-04 22:38:24 -05:00
Lex Neva 1dd76646cc
add margin around simulator (#46)
This adds a 10px margin around the design in the simulator view (both the Simulate plugin and the Params preview window). This is useful because otherwise stitches at the edges weren't very visible. Also, because we're using anti-aliased lines, parts of the drawing did actually extend beyond the canvas previously.

All in all, with the margin it just feels more comfortable.
2018-01-29 20:09:34 -05:00
Lex Neva 99c6b5f072
protect against bad values for certain params (#44)
This is a stopgap measure to prevent the extension from infinitely looping
if the user mistakenly gives a zero or negative value for zig-zag spacing
or running stitch length.

It's definitely not ideal -- the user is still allowed to enter invalid
numbers, but the extension just interprets any zero value as 0.01.  In
the future, I'll refactor things to add proper bounds-checking for
parameters and limit the values that can be entered in the UI.
2018-01-28 21:02:45 -05:00
Lex Neva 871802e4eb
properly notify GUI of Stroke being disabled (#43)
fixes #32: when changing from Stroke to Fill in params, the preview drew both.
2018-01-28 20:26:54 -05:00
Lex Neva fabe5bcd32
Fix simulate (#42)
* Simulate now works regardless of the output format you chose when you ran Embroider.
* Simulate (and the preview in Params) now respects TRIMs.
* Inkscape restart required (embroider.inx changed).

This one kind of grew in the telling. #37 was a theoretically simple bug, but in reality, the code necessary to fix it was the straw that broke the camel's back, and I had to do a fair bit of (much needed) code reorganization. Mostly the reorganization was just under the hood, but there was one user-facing change around the Embroider extension's settings window.

Way back in the day, the only way to control things like the stitch length or satin density was through global options specified in the extension settings. We've long since moved to per-object params, but for backward compatibility, ink/stitch defaulted to the command-line arguments.

That means that it was possible to get different stitch results from the same SVG file if you changed the extension's settings. For that reason, I never touched mine. I didn't intend for my users to use those extension-level settings at all, and I've planned to remove those settings for awhile now.

At this point, the extension settings just getting in the way of implementing more features, so I'm getting rid of them and moving the defaults into the parameters system. I've still left things like the output format and the collapse length (although I'm considering moving that one too).
2018-01-28 16:10:37 -05:00
Lex Neva ede0b2d0e6
add contributor covenant code of conduct (#38) 2018-01-26 13:19:44 -05:00
Lex Neva 0086607a94 stop adding build.tar.gz to the release 2018-01-23 22:39:53 -05:00
Lex Neva 2ab622bdf0 gitignore libembroidery 2018-01-23 22:38:21 -05:00
Lex Neva 2e3e43e1ca don't lint embroidermodder's python files 2018-01-23 22:17:29 -05:00
Lex Neva 0cbf3544b7 fast finish 2018-01-23 22:15:09 -05:00
Lex Neva c9e90dc61d prevent build loop 2018-01-23 22:06:24 -05:00
Lex Neva a57ac2a902 use TRAVIS_BRANCH (which is the tag for tag builds) 2018-01-23 22:04:19 -05:00
Lex Neva 858be29401 trying for a single pre-release per branch 2018-01-23 21:56:48 -05:00
Lex Neva acaebaa956
add params for "TRIM after" and "STOP after" (#29)
* adds new options to Params: "TRIM after" and "STOP after"
  * adds tooltip support to Params
  * inkstitch now includes libembroidery and can directly output any supported file type
    * this avoids the need for `libembroidery-convert` and compiling embroidermodder!
  * TRIM support for DST format (inserts 3 JUMPs)
  * STOP command supported as an extra color change that the operator can assign to code C00
  * TRIMs cause the following jump stitch not to be displayed in the Embroidery layer
2018-01-23 20:13:37 -05:00
Lex Neva 462bf0bdbe pyinstaller-based install instructions
also remove now-unnecessary installation shell script (sorry, @Moini!)
2018-01-13 22:56:35 -05:00
Lex Neva e13c16d50d don't deploy on lint builds 2018-01-13 22:46:44 -05:00
Lex Neva 38d88d1a2b hopefully finally fix travis deploy rules 2018-01-13 22:08:09 -05:00
Lex Neva 143eb342a4 fix travis deploy conditions 2018-01-13 20:45:14 -05:00
Lex Neva 8bab858be6
pyinstaller release method (#16)
pyinstaller packages up all of a python script's dependencies and builds them into standalone executables. It can either do a directory (containing a single executable and a bunch of shared libraries) or a self-contained executable that effectively just contains a compressed version of the directory.

The problem is, if you have several scripts like we do, you get several large directories or standalone binaries, and there's a ton of duplication between them. Fortunately it looks like using the directory method and just combining the directories works fine (for this project).

This PR runs the above build on any tagged commit and publishes a release in github containing the pyinstall-ified tarball. If the tag is named like "v1.2.3" _and_ the tag is on the master branch, then the github release will be marked as "production". Otherwise, it will be marked as a "pre-release". This means that we can build testable tarballs of the extension in a pull request by tagging a commit.
2018-01-13 20:18:50 -05:00
cclauss f244f58a17 Comment out: pip install -r requirements.txt 2018-01-07 15:41:53 -05:00
cclauss b4d72df937 Add free automated flake8 testing of pull requests
The owner of the this repo would need to go to https://travis-ci.org/profile and flip the repository switch __on__ to enable free automated flake8 testing of each pull request.
2018-01-06 19:51:28 -05:00
Lex Neva 3cd61b8ff9 automatically scale simulation window
The simulation window is scaled to fill the available space on the screen.  In
the Params dialog, the simulation window sits to the right of the Params window
and fills the remaining space.
2018-01-06 15:49:44 -05:00
cclauss ece8f15eda Use sys.stderr_backup in both save and restore
There is no __sys.stderr_backup__ defined in the [Python sys] module.  __save_stderr()__ adds a variable by that name which is a bit unconventional but it does work.  This PR changes __restore_stderr()__ to read that data from the same variable.  Without this change, __restore_stderr()__ will probably raise a NameError at runtime because __stderr_backup__ is an undefined name.

flake8 testing of https://github.com/lexelby/inkstitch on Python 2.7.14

$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./embroider_params.py:748:18: F821 undefined name 'stderr_backup'
    sys.stderr = stderr_backup
                 ^
```
2018-01-06 15:22:15 -05:00
Lex Neva 218ec1b63d don't intify floating point coordinates 2018-01-06 15:11:57 -05:00
Lex Neva 8d8e886d8b add scale parameter in simulate 2018-01-06 15:11:57 -05:00
Lex Neva 56aeabd9a6
add notes about the switch to 96dpi 2018-01-05 21:34:45 -05:00
Lex Neva 9778d85326 remove pixels_per_mm option 2018-01-04 22:43:12 -05:00
Lex Neva 21c22bd790 use PIXELS_PER_MM in simulate 2018-01-04 22:42:19 -05:00
Lex Neva 1e2c67e13d simulate bugfix 2018-01-04 22:42:08 -05:00
Lex Neva 7190d98dd4 parse and use viewBox attribute
The viewBox effectively adds global scaling and translation to all shapes in
the SVG.  Borrowing from inkscape-silhouette, we construct a transform from
the viewBox and apply it to all objects.

When adding the stitch plan into the SVG, we need to compensate for this
implied transformation, which we do by adding its inverse as a transform
on the stitch plan polylines.

All of this allows us to do away with the nonstandard 10 pixels per mm that
was previously hardcoded into inkstitch.  Old designs can add a viewBox to
switch from 10 pixels per mm to the standard 96 ppi that Inkscape uses.
2018-01-04 21:05:53 -05:00
Lex Neva d4c84a0fdb remove outdated index.html 2018-01-03 11:41:03 -05:00
Lex Neva 83bd9f4b70 more README fixups 2018-01-03 11:40:23 -05:00
Lex Neva 8ea0dd6d91 Create CNAME 2018-01-03 11:18:52 -05:00
Lex Neva d10cf3ecf1 Set theme jekyll-theme-minimal 2018-01-03 11:18:37 -05:00
Lex Neva 2d4e50d495 readme fixups 2018-01-03 11:11:47 -05:00
Lex Neva f50ec5e4c4 rename to ink/stitch 2018-01-03 11:09:18 -05:00
Lex Neva 823a135eaf add link to video of live preview feature 2018-01-01 19:33:25 -05:00