fiddlerpianist / knitml

Automatically exported from code.google.com/p/knitml
12 stars 2 forks source link

Create option for rendering all of the explicit operations in a for-each-row-in-instruction #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
for-each-row-in-instruction will render instruction references, but it may be
useful for someone reading the pattern to have the option to have the "least
common multiple" of the pattern repeat spelled out.

Consider this sample pattern:

Main Pattern:
Row 1: k5
Row 2: p5
Row 3: k1, yo, cdd, yo, k1

Edge Pattern:
Row 1: k to end
Row 2: k2tog, k to end

The for-each-row-in-instruction currently renders this along these lines:
Rows 1-3: Work next row in "Main Pattern" 5 times, work next row in "Edge
Pattern"
Repeat rows 1-3 3 additional times.

There should be an option to render it like this:
Row 1: *k5, repeat from * 5 times, k to end
Row 2: *p5, repeat from * 5 times, k2tog, k to end
Row 3: *k1, yo, cdd, yo, k1, repeat from * 5 times, k to end
Row 4: *k5, repeat from * 5 times, k2tog, k to end
Row 5: *p5, repeat from * 5 times, k to end
Row 6: *k1, yo, cdd, yo, k1, repeat from * 5 times, k2tog, k to end
Repeat rows 1-6 one additional time.

---
Also add chart support for the expanded version of the instruction.

---

This should be fairly straightforward now that the engine is available
alongside the renderer. May be slightly tricky to indicate which versions of 
which instructions we want repeated, but it can be done.

The scope of this request could be expanded to include "blown-out" versions of 
work even, too.

---
Moved from http://www.doublebock.net/bugzilla/show_bug.cgi?id=25

Original issue reported on code.google.com by fiddlerpianist@gmail.com on 3 Nov 2011 at 3:17