File: Library-Contents-File.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 (52 lines) | stat: -rw-r--r-- 2,005 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
<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="Library%20Contents%20File">Library Contents File</a>,
Next:&nbsp;<a rel="next" accesskey="n" href="Library-File.html#Library%20File">Library File</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Netlist-File.html#Netlist%20File">Netlist File</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="File-Formats.html#File%20Formats">File Formats</a>
<hr><br>
</div>

<h3 class="section">Library Contents File Format</h3>

<p>There is nothing like a special library format. The ones that have been
introduced in 1.4.1 just use some nice (and time consuming) features of GNU
<code>m4</code>. The only predefined format is the one of the contents file
which is read during startup. It is made up of two basic line types:

<pre class="example">     menu entry      = "TYPE="name
     contents line   = template":"package":"value":"description
     name            = String
     template        = String
     package         = String
     value           = String
     description     = String
     String          = &lt;anything except ":", "\n" and "\r"&gt;
     </pre>

   <p>No leading white spaces or comments are allowed in this file. If you need
either one, define a command that removes them before loading. Have a look
to the <em>libraryContentsCommand</em> resource.

   <p>The menu entry will appear in the selection menu at the top and of the
library window.

   </body></html>