<?xml version="1.0" encoding="UTF-8"?>
<pattern xmlns="http://www.knitml.com/schema/pattern"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.knitml.com/schema/pattern http://www.knitml.com/schema/pattern-0.3.xsd">
	<directives>
		<message-source>pattern-messages</message-source>
	</directives>
	<general-information xml:lang="en">
		<name>Basic socks</name>
		<description>A basic sock pattern with 2x2 ribbing</description>
		<dimensions/>
		<gauge type="stockinette">
			<stitch-gauge unit="st/in">8</stitch-gauge>
			<row-gauge unit="row/in">12</row-gauge>
		</gauge>
		<techniques>
			<technique>knitting-in-the-round</technique>
		</techniques>
		<author>
			<first-name>Jonathan</first-name>
			<last-name>Whitall</last-name>
		</author>
		<copyright-info/>
	</general-information>
	<supplies>
		<yarns>
			<yarn-type id="lornas-1" brand="Lorna's Laces" category="Shepherd Sock" weight="fingering" catalog-id="33032">
				<ball-weight unit="g">50</ball-weight>
				<thickness unit="wrap/in">12</thickness>
			</yarn-type>
			<yarn id="main-color" typeref="lornas-1" message-key="yarn.main-color">
				<total-length unit="m">300</total-length>
				<total-weight unit="g">100</total-weight>
				<color name="watercolor" description="" number="233"/>
			</yarn>
		</yarns>
		<needles>
			<needle-type id="size1circ" type="circular" brand="Addi Turbo">
				<length unit="in">24</length>
				<size unit="US">1</size>
			</needle-type>
			<needle id="needle1" typeref="size1circ" message-key="needle.needle1"/>
			<needle id="needle2" typeref="size1circ" message-key="needle.needle2"/>
		</needles>
		<accessories/>
	</supplies>
	<directions>
		<instruction-group id="start">
			<use-needles>
				<needle idref="needle1"/>
			</use-needles>
			<cast-on style="long-tail">72</cast-on>
			<use-needles silent="true">
				<needle idref="needle1"/>
				<needle idref="needle2"/>
			</use-needles>
			<arrange-stitches-on-needles>
				<needle idref="needle1">36</needle>
				<needle idref="needle2">36</needle>
			</arrange-stitches-on-needles>
			<join-in-round/>
		</instruction-group>
		<instruction-group id="cuff" message-key="instruction-group.cuff">
			<row type="round">
				<repeat until="end">
					<purl/>
				</repeat>
			</row>
			<instruction id="cuff-round">
				<row type="round">
					<repeat until="end">
						<knit>1</knit>
						<purl>1</purl>
					</repeat>
				</row>
			</instruction>
			<repeat-instruction idref="cuff-round">
				<until-measures unit="in">1.5</until-measures>
			</repeat-instruction>
		</instruction-group>
		<instruction-group id="leg" message-key="instruction-group.leg" reset-row-count="true">
			<instruction id="leg-pattern">
				<row type="round">
					<repeat until="end">
						<purl>1</purl>
						<knit>2</knit>
						<purl>1</purl>
					</repeat>
				</row>
				<row type="round">
					<repeat until="end">
						<knit/>
					</repeat>
				</row>
			</instruction>
			<repeat-instruction idref="leg-pattern">
				<until-desired-length/>
			</repeat-instruction>
		</instruction-group>
		<instruction-group id="heel-flap" message-key="instruction-group.heel-flap" reset-row-count="true">
			<use-needles>
				<needle idref="needle1"/>
			</use-needles>
			<declare-flat-knitting next-row-side="right"/>
			<instruction id="heel-flap-pattern">
				<row>
					<repeat value="2" until="before-end">
						<knit>1</knit>
						<slip>1</slip>
					</repeat>
					<knit>2</knit>
				</row>
				<row>
					<slip>1</slip>
					<repeat until="end">
						<purl/>
					</repeat>
				</row>
			</instruction>
			<repeat-instruction idref="heel-flap-pattern">
				<additional-times>17</additional-times>
			</repeat-instruction>
		</instruction-group>
		<instruction-group id="heel-turn" message-key="instruction-group.heel-turn"	reset-row-count="true">
			<section>
				<row inform-side="true" short="true">
					<slip>1</slip>
					<knit>19</knit>
					<decrease type="ssk"/>
					<knit>1</knit>
					<turn inform-unworked-stitches="true"/>
				</row>
				<row short="true">
					<slip>1</slip>
					<purl>5</purl>
					<decrease type="p2tog"/>
					<purl>1</purl>
					<turn inform-unworked-stitches="true"/>
				</row>
			</section>
			<section>
				<information>
					<message message-key="heel-turn.explain-gap"/>
				</information>
				<instruction id="heel-turn-repeat">
					<row short="true">
						<slip>1</slip>
						<repeat until="before-gap" value="1">
							<knit/>
						</repeat>
						<decrease type="ssk"/>
						<knit>1</knit>
						<turn inform-unworked-stitches="true"/>
					</row>
					<row short="true">
						<slip>1</slip>
						<repeat until="before-gap" value="1">
							<purl/>
						</repeat>
						<decrease type="p2tog"/>
						<purl>1</purl>
						<turn inform-unworked-stitches="true"/>
					</row>
				</instruction>
				<repeat-instruction idref="heel-turn-repeat">
					<additional-times>5</additional-times>
				</repeat-instruction>
			</section>
			<section>
				<row short="true">
					<slip>1</slip>
					<knit>18</knit>
					<decrease type="ssk"/>
				</row>
				<row>
					<slip>1</slip>
					<purl>18</purl>
					<decrease type="p2tog"/>
					<information>
						<number-of-stitches assert="20"/>
					</information>
				</row>
				<row>
					<slip>1</slip>
					<knit>9</knit>
					<designate-end-of-row/>
				</row>
			</section>
		</instruction-group>
		<instruction-group id="work-gusset" message-key="instruction-group.work-gusset" reset-row-count="true">
			<use-needles>
				<needle idref="needle1"/>
				<needle idref="needle2"/>
			</use-needles>
			<declare-round-knitting/>
			<arrange-stitches-on-needles>
				<needle idref="needle1">28</needle>
				<needle idref="needle2">28</needle>
			</arrange-stitches-on-needles>
			<row type="round">
				<using-needle idref="needle1">
					<knit>10</knit>
					<pick-up-stitches type="knitwise">18</pick-up-stitches>
					<place-marker/>
					<instruction id="needle1-instep-pattern">
						<repeat value="4" until="times">
							<purl>1</purl>
							<knit>2</knit>
							<purl>1</purl>
						</repeat>
						<purl>1</purl>
						<knit>1</knit>
					</instruction>
				</using-needle>
				<using-needle idref="needle2">
					<instruction id="needle2-instep-pattern">
						<knit>1</knit>
						<purl>1</purl>
						<repeat value="4" until="times">
							<purl>1</purl>
							<knit>2</knit>
							<purl>1</purl>
						</repeat>
					</instruction>
					<place-marker/>
					<pick-up-stitches type="knitwise">18</pick-up-stitches>
					<knit>10</knit>
				</using-needle>
			</row>
			<instruction id="gusset-rows">
				<row type="round">
					<using-needle idref="needle1">
						<repeat until="before-marker" value="3">
							<knit/>
						</repeat>
						<decrease type="k2tog"/>
						<knit>1</knit>
						<instruction idref="needle1-instep-pattern"/>
					</using-needle>
					<using-needle idref="needle2">
						<instruction idref="needle2-instep-pattern"/>
						<knit>1</knit>
						<decrease type="ssk"/>
						<repeat until="end">
							<knit/>
						</repeat>
					</using-needle>
				</row>
				<row type="round">
					<using-needle idref="needle1">
						<repeat until="marker">
							<knit/>
						</repeat>
						<instruction idref="needle1-instep-pattern"/>
					</using-needle>
					<using-needle idref="needle2">
						<instruction idref="needle2-instep-pattern"/>
						<repeat until="end">
							<knit/>
						</repeat>
					</using-needle>
				</row>
			</instruction>
			<repeat-instruction idref="gusset-rows">
				<!--	<until-stitches-remain-on-needles>
					<needle idref="needle2">36</needle>
				</until-stitches-remain-on-needles> -->
				<until-stitches-remain>72</until-stitches-remain>
			</repeat-instruction>
			<row assign-row-number="false" type="round">
				<using-needle idref="needle1">
					<repeat until="marker">
						<knit/>
					</repeat>
					<remove-marker/>
					<designate-end-of-row/>
				</using-needle>
			</row>
			<arrange-stitches-on-needles>
				<needle idref="needle2">36</needle>
				<needle idref="needle1">36</needle>
			</arrange-stitches-on-needles>
			<label-needle idref="needle2" message-key="needle.instep"/>
			<label-needle idref="needle1" message-key="needle.sole"/>
		</instruction-group>
		<instruction-group id="make-foot" message-key="instruction-group.make-foot" reset-row-count="true">
			<instruction id="foot-rows">
				<row type="round">
					<using-needle idref="needle2">
						<purl>1</purl>
						<repeat value="8" until="times">
							<knit>2</knit>
							<purl>2</purl>
						</repeat>
						<knit>2</knit>
						<purl>1</purl>
					</using-needle>
					<using-needle idref="needle1">
						<repeat until="end">
							<knit/>
						</repeat>
					</using-needle>
				</row>
			</instruction>
			<repeat-instruction idref="foot-rows">
				<until-desired-length/>
			</repeat-instruction>
		</instruction-group>
		<instruction-group id="make-toe" message-key="instruction-group.make-toe" reset-row-count="true">
			<section>
				<instruction id="toe-rows">
					<row type="round">
						<using-needle idref="needle2">
							<knit>1</knit>
							<decrease type="ssk"/>
							<repeat until="before-end" value="3">
								<knit/>
							</repeat>
							<decrease type="k2tog"/>
							<knit>1</knit>
						</using-needle>
						<using-needle idref="needle1">
							<knit>1</knit>
							<decrease type="ssk"/>
							<repeat until="before-end" value="3">
								<knit/>
							</repeat>
							<decrease type="k2tog"/>
							<knit>1</knit>
						</using-needle>
					</row>
					<row type="round">
						<repeat until="end">
							<knit/>
						</repeat>
					</row>
				</instruction>
				<repeat-instruction idref="toe-rows">
					<until-stitches-remain>20</until-stitches-remain>
				</repeat-instruction>
			</section>
			<section>
				<graft-together>
					<needle idref="needle1"/>
					<needle idref="needle2"/>
				</graft-together>
			</section>
		</instruction-group>
	</directions>
</pattern>
