delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2024/05/02/13:29:34

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Virus-Scanned: Debian amavisd-new at mail.linetec.nl
Message-ID: <87f0ddd3-9661-409a-93f5-96a363c08a4e@linetec.nl>
Date: Thu, 2 May 2024 19:27:31 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: [geda-user] Gschem refdes autonumber over multiple pages?
To: geda-user AT delorie DOT com
References: <37de350c-1e5f-422f-b13a-c5a9a1e132ac AT linetec DOT nl>
<20240429130455 DOT F01EF81AB8C5 AT turkos DOT aspodata DOT se>
<a49f9288-9af4-4bd7-b8bb-f1f6c41fd01f AT linetec DOT nl>
<20240430103043 DOT 32de22ff AT queeg DOT menasians DOT com>
<20240430211916 DOT A6DBC81AB8C5 AT turkos DOT aspodata DOT se>
<bec8e19d-0ad0-454b-a3cf-f220e466c433 AT linetec DOT nl>
<25416a96-c328-4b7e-8fa8-091c993205bd AT linetec DOT nl> <87sez18q32 DOT fsf AT gmail DOT com>
<b4b5eab9-3fdc-45e7-b627-9b802e627b2d AT linetec DOT nl> <87o79p8jcu DOT fsf AT gmail DOT com>
<d6a4d7ef-f372-46ea-be2b-f4ebda22242d AT linetec DOT nl> <87jzkd8cl6 DOT fsf AT gmail DOT com>
<29fb0d05-ccab-49a8-ac1d-deada1e6a216 AT linetec DOT nl> <87a5l8nr2y DOT fsf AT gmail DOT com>
From: "Richard Rasker (rasker AT linetec DOT nl) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
In-Reply-To: <87a5l8nr2y.fsf@gmail.com>
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

This is a multi-part message in MIME format.
--------------0Vu4arysc01D9fg7O9wDpsfo
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hello Vladimir,

Op 02-05-2024 om 17:49 schreef Vladimir Zhbanov (vzhbanov AT gmail DOT com) 
[via geda-user AT delorie DOT com]:
> Richard,
>
> "Richard Rasker (rasker AT linetec DOT nl) [viageda-user AT delorie DOT com]"<geda-user AT delorie DOT com>  writes:
> ...
>> Ah, yes, that was what was missing, thanks!
>>
>> And it has already come in handy too!
> The next steps in such a little automation could be:
> - Get rid of global variables in the script.

Um, nope. The next step would be

- Get acquainted with Guile.

At least for me (I never saw a Guile script in my life before this one) :-)

> - Create a custom function that outputs what you want.
Well, yes, I already thought that it would be nice to be able to specify 
a higher starting number than 1, in case I want to use 1-100 for page 1, 
101-200 for page 2 etcetera. But then the script would need to accept 
user input as well.
> - (Maybe engage the simple message dialog for output.)
> - Add a shortcut for the function to quickly launch it in GUI.
Yup, that would be nice too. Now it takes two keystrokes (G S) and a 
double click on the script file name.
> - Load the script once (maybe from your project's gschemrc, or
>    manually).
> ...
> - Enjoy ;-)

I'll certainly take a closer look at things, but right now, finishing 
the project has absolute priority, and this script has already saved me 
some time there ;-)

Regards,

Richard

--------------0Vu4arysc01D9fg7O9wDpsfo
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello Vladimir,<br>
    </p>
    <div class="moz-cite-prefix">Op 02-05-2024 om 17:49 schreef Vladimir
      Zhbanov (<a class="moz-txt-link-abbreviated" href="mailto:vzhbanov AT gmail DOT com">vzhbanov AT gmail DOT com</a>) [via <a class="moz-txt-link-abbreviated" href="mailto:geda-user AT delorie DOT com">geda-user AT delorie DOT com</a>]:<br>
    </div>
    <blockquote type="cite" cite="mid:87a5l8nr2y DOT fsf AT gmail DOT com">
      <pre class="moz-quote-pre" wrap="">
Richard,

"Richard Rasker (<a class="moz-txt-link-abbreviated" href="mailto:rasker AT linetec DOT nl">rasker AT linetec DOT nl</a>) [via <a class="moz-txt-link-abbreviated" href="mailto:geda-user AT delorie DOT com">geda-user AT delorie DOT com</a>]" <a class="moz-txt-link-rfc2396E" href="mailto:geda-user AT delorie DOT com">&lt;geda-user AT delorie DOT com&gt;</a> writes:
...
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Ah, yes, that was what was missing, thanks!

And it has already come in handy too!
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
The next steps in such a little automation could be:
- Get rid of global variables in the script.</pre>
    </blockquote>
    <p>Um, nope. The next step would be</p>
    <p>- Get acquainted with Guile.<br>
    </p>
    <p>At least for me (I never saw a Guile script in my life before
      this one) :-)<span style="white-space: pre-wrap">
</span></p>
    <blockquote type="cite" cite="mid:87a5l8nr2y DOT fsf AT gmail DOT com">
      <pre class="moz-quote-pre" wrap="">- Create a custom function that outputs what you want.</pre>
    </blockquote>
    Well, yes, I already thought that it would be nice to be able to
    specify a higher starting number than 1, in case I want to use 1-100
    for page 1, 101-200 for page 2 etcetera. But then the script would
    need to accept user input as well.<span
    style="white-space: pre-wrap">
</span>
    <blockquote type="cite" cite="mid:87a5l8nr2y DOT fsf AT gmail DOT com">
      <pre class="moz-quote-pre" wrap="">- (Maybe engage the simple message dialog for output.)
- Add a shortcut for the function to quickly launch it in GUI.</pre>
    </blockquote>
    Yup, that would be nice too. Now it takes two keystrokes (G S) and a
    double click on the script file name.
    <blockquote type="cite" cite="mid:87a5l8nr2y DOT fsf AT gmail DOT com">
      <pre class="moz-quote-pre" wrap="">- Load the script once (maybe from your project's gschemrc, or
  manually).
...
- Enjoy ;-)</pre>
    </blockquote>
    <p>I'll certainly take a closer look at things, but right now,
      finishing the project has absolute priority, and this script has
      already saved me some time there ;-)</p>
    <p>Regards,</p>
    <p>Richard<br>
    </p>
  </body>
</html>

--------------0Vu4arysc01D9fg7O9wDpsfo--

- Raw text -


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