delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2018/02/03/15:29:40

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-6) with
X-Exmh-Isig-CompType: repl
X-Exmh-Isig-Folder: inbox
From: karl AT aspodata DOT se
To: geda-user AT delorie DOT com
Mail-Followup-To: Josef Wolf <jw AT raven DOT inka DOT de>, geda-user AT delorie DOT com
Subject: Re: [geda-user] Scope of the hires flag in PCB file format?
In-reply-to: <20180203194058.GT12911@raven.inka.de>
References: <20180203160317 DOT GR12911 AT raven DOT inka DOT de> <20180203172504 DOT 0C970804CEFA AT turkos DOT aspodata DOT se> <20180203185515 DOT 72501804CEFA AT turkos DOT aspodata DOT se> <20180203194058 DOT GT12911 AT raven DOT inka DOT de>
Comments: In-reply-to Josef Wolf <jw AT raven DOT inka DOT de>
message dated "Sat, 03 Feb 2018 20:40:58 +0100."
Mime-Version: 1.0
Message-Id: <20180203202813.D995C804CEFA@turkos.aspodata.se>
Date: Sat, 3 Feb 2018 21:28:13 +0100 (CET)
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

Josef:
> On Sat, Feb 03, 2018 at 07:55:15PM +0100, karl AT aspodata DOT se wrote:
> 
> > > >   Symbol['!' 12]
> > > >   (
> > > >           SymbolLine(0 45 0 50 8)
> > > >           SymbolLine(0 10 0 35 8)
> > > >   )
> > 
> >  8.8 File Syntax
> >  A special note about units: Older versions of pcb used mils (1/1000 inch) as the base unit;
> >  a value of 500 in the file meant half an inch. Newer versions uses a "high resolution" syntax,
> >  where the base unit is 1/100 of a mil (0.000010 inch); a value of 500 in the file means 5
> >  mils. As a general rule, the variants of each entry listed below which use square brackets
> >  are the high resolution formats and use the 1/100 mil units, and the ones with parentheses
> >  are the older variants and use 1 mil units. Note that when multiple variants are listed, the
> >  most recent (and most preferred) format is the first listed.
> 
> Yeah, I found this paragraph and I've read it more that a dozen times. 
> 
> > I.e. anything within [ ] are high res., anything within () are mil 
> > (except angles, strings etc.).
> 
> OK. So the inner-most type of parens define the resolution. The outer parens
> have no effect to the values which are enclosed in an inner pair of parens.

 8.8.25 Symbol

 Symbol [Char Delta] (
 Symbol (Char Delta) (
   . . . symbol lines . . .
 )

Both the [] and () version is followed by a (, symb.lines and a )
where the last () is for grouping only. The two "Symbol" lines are
to viewed as alternatives.

You see the same thing in:
8.8.6 Element
8.8.13 Layer
8.8.16 Net
8.8.17 Netlist
8.8.22 Polygon
8.8.25 Symbol
every one of theese has () for grouping lines, regardless if
they use highrez [], or the lowres () paramaters.

> > So the above is Symbol with delta 0.12 mil,
> 
> Uh? Isn't the "12" the character code?

No, '!' is the character, the second arg. is the delta.

> > and symbolline from point1 = (0,45mil) to point2 = (50mil,8mil), etc.
> 
> Thanks for the clarification! Maybe the paragraph could state this more
> precisely with an example?

Yes, plese give us a new phrasing.

Regards,
/Karl Hammar

-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57


- Raw text -


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