Differences From Artifact [39acd0804a]:
- Executable file mttroot/mtt/bin/trans/awk/rbg_fig2m.awk — part of check-in [c4e82c31ac] at 1998-08-10 15:51:06 on branch origin/master — Comments may now be prefaced by # as well as % (user: gawthrop@users.sourceforge.net, size: 18183) [annotate] [blame] [check-ins using]
To Artifact [6b24a93f28]:
- Executable file
mttroot/mtt/bin/trans/awk/rbg_fig2m.awk
— part of check-in
[0dee7d5bad]
at
1999-02-17 06:23:49
on branch origin/master
— Bugs arising from Fig 3.2 fixed
-- depth now zero modulo 10 (3.2 defaults to depth 100!!)
-- horrible bug using = in place of == fixed. (user: gawthrop@users.sourceforge.net, size: 18377) [annotate] [blame] [check-ins using]
︙ | |||
9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | + + + | # Copyright (c) P.J.Gawthrop, 1996. ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.33 1998/08/10 15:51:06 peterg ## Comments may now be prefaced by # as well as % ## ## Revision 1.32 1998/07/27 20:30:03 peterg ## *** empty log message *** ## ## Revision 1.31 1998/04/16 13:18:13 peterg ## Now ignores spurious ports (in lbl but not Figure \ref{) but gives ## warning ## |
︙ | |||
175 176 177 178 179 180 181 182 183 184 185 186 187 188 | 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | + + + + | # field 1 = 4 # fields 12 and 13 are the coordinates # field 14 is the type:name string terminated by \001 # To prevent text being confused with components, components consist # of alphanumeric characters and : and _ only. # The lbl file is used to sort the components. ############################################################## function modulo10(x) { return x-int(x/10)*10 } function exact_match(name1, name2) { return ((match(name1,name2)>0)&&(length(name1)==length(name2))) } function write_component(i) { name = label[i,1]; |
︙ | |||
232 233 234 235 236 237 238 | 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 | - + - + | # The text string is field 14 onwards str = $14; for (i=15; i<=NF; i++) { str = sprintf("%s %s", str, $i) } # The depth is field 4 |
︙ | |||
355 356 357 358 359 360 361 | 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 | - + | label[i_label,3] = args } } # Unnamed component if (named_component==0) { i_name++; |
︙ | |||
482 483 484 485 486 487 488 | 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 | - - + | } } function process_fig() { # Test for the fig format first line and data line data_line = (match($1,data_symbol)>0); first_line = (data_line==0)&&(NF>min_line_length); |
︙ |