File: File-Formats.html

package info (click to toggle)
pcb 1.99j%2B20050127-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,632 kB
  • ctags: 4,302
  • sloc: ansic: 45,369; pascal: 3,526; sh: 1,140; yacc: 1,076; makefile: 575; lex: 348; perl: 183; awk: 102; tcl: 63
file content (65 lines) | stat: -rw-r--r-- 3,232 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<html lang="en">
<head>
<title>Pcb</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Pcb">
<meta name="generator" content="makeinfo 4.6">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
--></style>
</head>
<body>
<div class="node">
<p>
Node:&nbsp;<a name="File%20Formats">File Formats</a>,
Next:&nbsp;<a rel="next" accesskey="n" href="Library-Creation.html#Library%20Creation">Library Creation</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="X11-Interface.html#X11%20Interface">X11 Interface</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="index.html#Top">Top</a>
<hr><br>
</div>

<h2 class="chapter">File Formats</h2>

<p>All files used by <code>Pcb</code> are read from the standard output of a command
or written to the standard input of one as plain seven bit <code>ASCII</code>. This
makes it possible to use any editor to change the contents of a layout file. 
It is the only way for element or font description files to be created. 
To do so you'll need to study the example files <code>example/*</code> and
<code>default_font</code> which are shipped with <code>Pcb</code>. 
For an overview refer to <a href="Intro.html#Intro">Intro</a>.

   <p>The following sections provide the necessary information about the syntax of
the files. 
Netlist files are not created by <code>Pcb</code>, but it does use them. For information
on the format of a netlist file see the <em>:rn</em>,
<a href="User-Commands.html#User%20Commands">User Commands</a>. Rat lines are added on the current layer using the current
The commands described allow you to add almost any additional
functionality you may need. Examples are compressed read and write access as
well as archives. The commands themselves are defined by the resources
<em>elementCommand</em>, <em>fileCommand</em>, <em>fontCommand</em>,
<em>libraryCommand</em>, <em>libraryContentsCommand</em> and <em>saveCommand</em>. 
Note that the commands are not saved along with the data. 
It is considered an advantage to have the layout file contain all necessary
information, independent of any other files.

   <p>One thing common to all files is they may include comments, newlines,
and carriage returns at any place except within quoted strings.

<ul class="menu">
<li><a accesskey="1" href="Basic-Types.html#Basic%20Types">Basic Types</a>:             Basic types used by all data files. 
<li><a accesskey="2" href="Layout-File.html#Layout%20File">Layout File</a>: 
<li><a accesskey="3" href="Element-File.html#Element%20File">Element File</a>: 
<li><a accesskey="4" href="Font-File.html#Font%20File">Font File</a>: 
<li><a accesskey="5" href="Netlist-File.html#Netlist%20File">Netlist File</a>: 
<li><a accesskey="6" href="Library-Contents-File.html#Library%20Contents%20File">Library Contents File</a>: 
<li><a accesskey="7" href="Library-File.html#Library%20File">Library File</a>: 
</ul>

   </body></html>