fossasia / knittingpattern

A Python Library for Knitting Patterns
https://pypi.python.org/pypi/knittingpattern
GNU Lesser General Public License v3.0
1.56k stars 30 forks source link

Create knitting pattern from valentina SVG #58

Open niccokunzmann opened 8 years ago

niccokunzmann commented 8 years ago

Valentina Project allows us to create custom-fit measurements for knit clothes.

niccokunzmann commented 8 years ago

Citing Susan Spencer:

Okay, here's a proposed workflow:

A. Creating an AYAB 'knit XML' file:

  1. user imports a Valentina layout SVG file (generated in Valentina)
  2. user selects stitch type, yarn size, colors, stitch gauge
  3. program calculates the number of rows and the stitches per row for each pattern piece as the 'base knit pattern'
  4. program displays pattern pieces with 'base knit pattern' Optional - 5. Add images 5a. user places image(s) on pattern piece(s) 5b. user selects scale, repeat, colors, stitch types, etc. 5c. program calculates stitches for images 5d. program replaces stitches in the 'base knit pattern' with image stitches

B. Re-using an AYAB 'knit XML' file

  1. user selects an SVG layout file from same Valentina pattern as above but in a different size
  2. user selects the same 'knit XML' file as above
  3. program calculates and displays 'base knit pattern' with 'images' for each pattern piece
  4. user can make adjustments to 'base knit pattern' (stitch type, yarn, color, gauge)
  5. user can make adjustments to 'images' (image, placement, scale, repeat, colors, stitch type)

C. Creating an AYAB 'knit instructions' file

  1. user saves 'knit XML' file
  2. user selects to create 'knit instructions' file
  3. user selects choice of 'machine' or 'hand knitting' format
  4. program converts 'knit XML' file into 'knit instructions' file
  5. user saves 'knit instructions' file
  6. user sends 'knit instructions' file to knitting machine or to printer