www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/08/30/00:16:19

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Sun, 30 Aug 2015 06:17:55 +0200 (CEST)
X-X-Sender: igor2 AT igor2priv
To: geda-user AT delorie DOT com
X-Debug: to=geda-user AT delorie DOT com from="gedau AT igor2 DOT repo DOT hu"
From: gedau AT igor2 DOT repo DOT hu
Subject: Re: [geda-user] pcb key reference questions (+a script and a
table)
In-Reply-To: <alpine.DEB.2.00.1508290839180.6924@igor2priv>
Message-ID: <alpine.DEB.2.00.1508300547350.6924@igor2priv>
References: <alpine DOT DEB DOT 2 DOT 00 DOT 1508290839180 DOT 6924 AT igor2priv>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
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

On Sat, 29 Aug 2015, gedau AT igor2 DOT repo DOT hu wrote:

> I was having hard time finding a key combination available both in lesstif and 
> the gtk. I'd like to have an auto-generated table with 3 colums: key, action 
> in lesstif, action in gtk. Do we already have a tool generating something like 
> that from the .res files?

Since noone stood up to say we had such a tool, I just sat down to 
write one this morning. Its output for pcb-rnd is published at

http://repo.hu/projects/pcb-rnd/keys.html

The above table may be useful for users of mainline or other forks, as 
pcb-rnd added only a few new keys and didn't change existing ones.

The script does not depend on pcb-rnd source: it is a single file 
shell+awk hack^1. This makes the script potentially usable for mainline 
pcb or other forks. It is available from svn^2.


Regards,

Igor2


Footnotes:

^1: it really does parse the res files: it has a tokenizer and some 
sort of grammar, so it is not a regex hack grepping for <key>

^2: keylist.sh at svn://repo.hu/pcb-rnd/trunk/util - it takes a list of 
res file paths as arguments (known bug: space in path is not supported)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019