<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.inkscape.org/wiki/index.php?action=history&amp;feed=atom&amp;title=SpecCommandLineDrawing%2FDraftAssDir</id>
	<title>SpecCommandLineDrawing/DraftAssDir - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.inkscape.org/wiki/index.php?action=history&amp;feed=atom&amp;title=SpecCommandLineDrawing%2FDraftAssDir"/>
	<link rel="alternate" type="text/html" href="https://wiki.inkscape.org/wiki/index.php?title=SpecCommandLineDrawing/DraftAssDir&amp;action=history"/>
	<updated>2026-04-28T08:28:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://wiki.inkscape.org/wiki/index.php?title=SpecCommandLineDrawing/DraftAssDir&amp;diff=42224&amp;oldid=prev</id>
		<title>Inductiveload at 01:33, 21 January 2009</title>
		<link rel="alternate" type="text/html" href="https://wiki.inkscape.org/wiki/index.php?title=SpecCommandLineDrawing/DraftAssDir&amp;diff=42224&amp;oldid=prev"/>
		<updated>2009-01-21T01:33:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:33, 21 January 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*Return to [[SpecCommandLineDrawing]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The association directory is a module that contains global information for the command line editing module. This includes:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The association directory is a module that contains global information for the command line editing module. This includes:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#A dictionary linking the command header (eg &amp;lt;tt&amp;gt;circle&amp;lt;/tt&amp;gt;) with the relevant module containing the parameters and SVG drawing function (i.e. &amp;lt;tt&amp;gt;cl_circle.py&amp;lt;/tt&amp;gt;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#A dictionary linking the command header (eg &amp;lt;tt&amp;gt;circle&amp;lt;/tt&amp;gt;) with the relevant module containing the parameters and SVG drawing function (i.e. &amp;lt;tt&amp;gt;cl_circle.py&amp;lt;/tt&amp;gt;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key inkscape_wiki-mw01_:diff::1.12:old-42214:rev-42224 --&gt;
&lt;/table&gt;</summary>
		<author><name>Inductiveload</name></author>
	</entry>
	<entry>
		<id>https://wiki.inkscape.org/wiki/index.php?title=SpecCommandLineDrawing/DraftAssDir&amp;diff=42214&amp;oldid=prev</id>
		<title>Inductiveload: New page: The association directory is a module that contains global information for the command line editing module. This includes: #A dictionary linking the command header (eg &lt;tt&gt;circle&lt;/tt&gt;) wit...</title>
		<link rel="alternate" type="text/html" href="https://wiki.inkscape.org/wiki/index.php?title=SpecCommandLineDrawing/DraftAssDir&amp;diff=42214&amp;oldid=prev"/>
		<updated>2009-01-21T01:32:20Z</updated>

		<summary type="html">&lt;p&gt;New page: The association directory is a module that contains global information for the command line editing module. This includes: #A dictionary linking the command header (eg &amp;lt;tt&amp;gt;circle&amp;lt;/tt&amp;gt;) wit...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The association directory is a module that contains global information for the command line editing module. This includes:&lt;br /&gt;
#A dictionary linking the command header (eg &amp;lt;tt&amp;gt;circle&amp;lt;/tt&amp;gt;) with the relevant module containing the parameters and SVG drawing function (i.e. &amp;lt;tt&amp;gt;cl_circle.py&amp;lt;/tt&amp;gt;)&lt;br /&gt;
#A dictionary containing style attributes that apply to all objects, so these don't need to be specified for each object. (For example, fill colour, stroke width, etc).&lt;br /&gt;
&lt;br /&gt;
==Draft Code==&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#!/usr/bin/env python &lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
######DESCRIPTION######&lt;br /&gt;
&lt;br /&gt;
This script contains a dictionary for matching command headers to the modules&lt;br /&gt;
containing the relevant command dictionaries and drawing routines.&lt;br /&gt;
&lt;br /&gt;
If a module is added to the directory, it should be added here along with the&lt;br /&gt;
command headers it responds to. In this way, it is easy to add or remove modules&lt;br /&gt;
without having to modify the core script.&lt;br /&gt;
&lt;br /&gt;
directory = {   'circle'        :'cl_circle',&lt;br /&gt;
                'rect'          :'cl_rect',&lt;br /&gt;
                'poly'          :'cl_poly',&lt;br /&gt;
                'line'          :'cl_line',&lt;br /&gt;
                'star'          :'cl_star' &lt;br /&gt;
            }&lt;br /&gt;
&lt;br /&gt;
std_style = { #style commands that are applicable to &amp;quot;standard&amp;quot; objects&lt;br /&gt;
                't': {'t':'scalar', 'xml':'stroke-width',    'd':1},            #line thickness&lt;br /&gt;
                'f': {'t':'colour', 'xml':'fill',            'd':'none'},       #fill colour&lt;br /&gt;
                'fo':{'t':'scalar', 'xml':'fill-opacity',    'd':'1'}           #stroke opacity&lt;br /&gt;
                's': {'t':'colour', 'xml':'stroke',          'd':'#000000'},    #stroke colour&lt;br /&gt;
                'so':{'t':'scalar', 'xml':'stroke-opacity',  'd':'1'}           #stroke opacity&lt;br /&gt;
            }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Inductiveload</name></author>
	</entry>
</feed>