News for hackers. Stuff that matters.
Re:Show HN: Browser-based knitting (pattern) software by brettermeier on Thursday May 09, 2024 @01:06PM (#40310329)
Nice! Friend of mine loves knitting!

But in the example in your Github, was does "2K KFB 6K WYIF 3SLP" mean? The explanation is "The rest are the steps for this row.". I don't understand. Can somebody explain?

Re:Show HN: Browser-based knitting (pattern) software by esquivalience on Thursday May 09, 2024 @02:08PM (#40311066)
Your friend will likely be familiar with this notation, which is fairly standard (though not by any means universal). I think it means: knit 2 stitches, then knit the next stitch twice (incrementing the number in that row as result); knit 6 more then slip the last 3 stitches while holding the yarn in front.
Re:Show HN: Browser-based knitting (pattern) software by afc on Thursday May 09, 2024 @01:23PM (#40310503)
Thank you!

Mouse over each abbreviation and you should see a tooltip. This specific row would mean "2 knit, Knit Front Back, 6 knit, with yarn in front 3 slip."

This may also help: https://en.wikipedia.org/wiki/Knitting_abbreviations

Re:Show HN: Browser-based knitting (pattern) software by mrosethompson on Thursday May 09, 2024 @02:21PM (#40311237)
These are generally written as k2, k6, etc. -- is there a reason why you reversed them?
Re:Show HN: Browser-based knitting (pattern) software by afc on Thursday May 09, 2024 @02:38PM (#40311455)
Oh, good point, I might swap them. I think you're right.

I sometimes print something like "8(K P)" where I think putting the number in front makes more sense. But yeah, I think if there are no parentheses, I should just print it as you suggest.

Thank you!

Re:Show HN: Browser-based knitting (pattern) software by afc on Friday May 10, 2024 @04:42AM (#40316678)
OK, I've adjusted the output accordingly (https://github.com/alefore/knit/commit/b08f1d1957acf7b37c2cf...).