Subversion Repositories wimsdev

Rev

Rev 20 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20 Rev 15531
Line 16... Line 16...
16
The first component of a pair should be drawn in red.
16
The first component of a pair should be drawn in red.
17
 
17
 
18
Each grid in xcircuit is equivant to 0.5 in WIMS data file.
18
Each grid in xcircuit is equivant to 0.5 in WIMS data file.
19
 
19
 
20
Texts with negative coordinates will be ignored, except if it
20
Texts with negative coordinates will be ignored, except if it
21
starts with the string "DESC: ". In which case the rest of 
21
starts with the string "DESC: ". In which case the rest of
22
the string will be come the description.
22
the string will be come the description.
23
 
23
 
24
Fixed wires must be put on width 3. Component-dependent dynamic wires
24
Fixed wires must be put on width 3. Component-dependent dynamic wires
25
should have width < 3, with no turns and no ending dots, and should
25
should have width < 3, with no turns and no ending dots, and should
26
go (overlay) into the component.
26
go (overlay) into the component.
Line 100... Line 100...
100
		}
100
		}
101
		pairlist=""; if(ppcnt>0) {
101
		pairlist=""; if(ppcnt>0) {
102
			pp="";
102
			pp="";
103
			for(i=0;i<ppcnt;i++) pp=pp sprintf(",%d",pair[i]+1);
103
			for(i=0;i<ppcnt;i++) pp=pp sprintf(",%d",pair[i]+1);
104
			pairlist=sprintf("(%s)",substr(pp,2));
104
			pairlist=sprintf("(%s)",substr(pp,2));
105
			
105
 
106
		}
106
		}
107
		printf "%d\n",ccnt >"/dev/stderr";
107
		printf "%d\n",ccnt >"/dev/stderr";
108
		print "\nGenerated from xcircuit ps file.\n"
108
		print "\nGenerated from xcircuit ps file.\n"
109
		printf ":%s\n\n", desc;
109
		printf ":%s\n\n", desc;
110
		printf ":%d,%d,%d,%s\n",xrange/sf,yrange/sf,ccnt,pairlist;
110
		printf ":%d,%d,%d,%s\n",xrange/sf,yrange/sf,ccnt,pairlist;
Line 157... Line 157...
157
				xp[pcnt]=($3+$5)/2;
157
				xp[pcnt]=($3+$5)/2;
158
				yp[pcnt]=($4+$6)/2;
158
				yp[pcnt]=($4+$6)/2;
159
				if($4==$6) op[pcnt]=0; else op[pcnt]=1;
159
				if($4==$6) op[pcnt]=0; else op[pcnt]=1;
160
				pcnt++;
160
				pcnt++;
161
			}
161
			}
162
			else wiring=wiring sprintf("line %g,%g,%g,%g,_color_\n",
162
			else wiring=wiring sprintf("segment %g,%g,%g,%g,_color_\n",
163
				$3/sf,$4/sf,$5/sf,$6/sf);
163
				$3/sf,$4/sf,$5/sf,$6/sf);
164
			}
164
			}
165
		else {wiring=wiring "lines _color_";
165
		else {wiring=wiring "polyline _color_";
166
			for(i=3;i<=NF-2;i++) wiring=wiring sprintf(",%g",$i/sf);
166
			for(i=3;i<=NF-2;i++) wiring=wiring sprintf(",%g",$i/sf);
167
			wiring=wiring "\n";
167
			wiring=wiring "\n";
168
		}
168
		}
169
	next};
169
	next};
170
	$NF=="polygon" && $2<3 && $(NF-1)==2 {
170
	$NF=="polygon" && $2<3 && $(NF-1)==2 {