ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2013/04/11/15:52:26

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Message-ID: <51671276.8050303@buffalo.edu>
Date: Thu, 11 Apr 2013 15:43:50 -0400
From: "Stephen R. Besch" <sbesch AT buffalo DOT edu>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130221 Thunderbird/17.0.3
MIME-Version: 1.0
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] Printer Calibration
References: <5166FDF4 DOT 2090001 AT buffalo DOT edu> <201304111827 DOT r3BIRJ3b005968 AT envy DOT delorie DOT com>
In-Reply-To: <201304111827.r3BIRJ3b005968@envy.delorie.com>
X-PM-EL-Spam-Prob: X: 10%
Reply-To: geda-user AT delorie DOT com

  I've already changed my local copy of ps.c. It compiles without 
error.  Below is the abbreviated text I actually used:

Starting at line 1390 in pcb/src/hid/ps/ps.c:

  "\n",
  "(Please measure between the flat faces of ONE pair of semi-circles 
on)t\n",
   "(both X and Y in the indicated units. Enter these values as X and 
Y)t\n",
   "(respectively. One member of each pair must be one of the 
semicircles)t\n",
   "(in the lower left corner. Nominal lengths on X are 4 in, 15 cm and 
7.5 in.)t\n",
   "(Nominal lengths on Y are 4 in, 20 cm and 10 in.)t\n",
   "()t\n",
   "(The large box is 10.25 by 7.75 inches and is not used for 
calibration.)t\n",

This is part of the definition of static const char * const 
calib_lines[], which starts at line 1329.
I also tried to add nominal values to the Y in, Y cm, X in and X cm 
labels. This more or less worked, so that I now
I have something like "Y cm nom=20" on the Y axis. Howeer, since the 
text is rotated on X, the nom= part gets
clipped. I am not sure how to fix this. Perhaps someone has a 
suggestion.  Here is the code (from void ps_calibrate (...:

   fprintf (ps_cal_file, "4 in 0.5 (Y in nom=4) cbar\n");
   fprintf (ps_cal_file, "20 cm 1.5 (Y cm nom=20) cbar\n");
   fprintf (ps_cal_file, "10 in 2.5 (Y in nom=10) cbar\n");
   fprintf (ps_cal_file, "-90 rotate\n");
   fprintf (ps_cal_file, "4 in -0.5 (X in nom=4) cbar\n");
   fprintf (ps_cal_file, "15 cm -1.5 (X cm nom=15) cbar\n");
   fprintf (ps_cal_file, "7.5 in -2.5 (X in nom=7.5) cbar\n");

Since I don't have commit rights, I will leave it up to someone who does 
to move this into the code base.


On 04/11/2013 02:27 PM, DJ Delorie wrote:
> Your interpretation is correct.  Feel free to fix the instructions on
> the calibration page.
>
>


-- 
fictio cedit veritati

- Raw text -


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