X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Mailer: exmh version 2.8.0 04/21/2012 (debian 1:2.8.0~rc1-2) with nmh-1.5 X-Exmh-Isig-CompType: repl X-Exmh-Isig-Folder: inbox From: karl AT aspodata DOT se To: geda-user AT delorie DOT com Subject: Re: [geda-user] Some improvement to gmk_sym In-reply-to: References: Comments: In-reply-to Yanjun Yang message dated "Fri, 16 May 2014 13:54:28 +0800." Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20140516130935.CAC808020178@turkos.aspodata.se> Date: Fri, 16 May 2014 15:09:31 +0200 (CEST) X-Virus-Scanned: ClamAV using ClamSMTP Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Yanjun Yan: > I don't know how many users of gmk_sym are out there, I found it quite simple > and straight forwards to use. You know that there are a few symbol generators out there: http://www.gedasymbols.org/user/dj_delorie/tools/djboxsym.html http://wiki.geda-project.org/geda:tragesym_readme http://turkos.aspodata.se/git/openhw/pdftosym/pintosym.pl (my projekt) Try them and see what you can improve. > I improved this tool to try to keep the input file minimal, most of > the fields of pin > definition can be omited. I have a 100 pins example at github: > > https://github.com/setarcos/gmk_sym/blob/master/examples/f020.txt You have not documented what -c means, from the code it seems to set ccwise to 1, and that option has a somewhat confusing effect, it seems to change only the top and right side order. Instead of requiring users to specify: /* 4th value: box's hoz size, in pins spacings */ /* 5th value: box's ver size, in pins spacings */ /* 8th value: Total number of pins on device (including hidden) */ why not just count the number of pins on each side and calculate the above values by the program ? The sym file created contains the attributes pins and class. I cannot find them at http://wiki.geda-project.org/geda:master_attributes_list. What is your inteded use of them ? Your resulting sym file has a box: B 300 300 9300 9000 3 0 0 0 -1 -1 0 -1 -1 -1 -1 -1 with a line width of 0. I like a thicker outline to make it differ from nets and such. Wouldn't a line width like 40 be nice ? There seems not much of a consensus of what grid to place pins on. You are using 300, I'm using 400, and symbols in geda repository are using a 200, 300 or a 400 grid. Any thoughts ? In the sym, you have: T 4423 4800 3 10 1 0 0 0 1 C8051F020 Would'n it be nicer to make that an value=C8051F020 attribute ? Regards, /Karl Hammar ----------------------------------------------------------------------- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden +46 173 140 57