Werner Almesberger
ade54c6029
eeshow/cro.c: set line cap to CAIRO_LINE_CAP_ROUND or CAIRO_LINE_CAP_SQUARE
...
CAIRO_LINE_CAP_ROUND is the same as in FIG mode.
Note that all non-dashed lines disappear when generating PDF and
CAIRO_LINE_CAP_ROUND is set. For now, we just use CAIRO_LINE_CAP_SQUARE.
2016-08-02 17:26:02 -03:00
Werner Almesberger
56b4cb89cc
eeshow/cro.c (cr_pdf_end): reduce line width to 0.5 * scale
...
With 2, lines were far too thick. Note that the 0.5 points (1/72 in) we
have now are roughly twice what XFig uses (1/160 in for PDF or PNG),
yet things don't look very fat there.
2016-08-02 17:16:43 -03:00
Werner Almesberger
0d41488f93
eeshow/sch-parse.c (recurse_sheet): clean up handling of next_obj
2016-08-02 17:12:33 -03:00
Werner Almesberger
9182b9ce48
eeshow/fig.c; define color 32 also when using a template
2016-08-02 16:46:50 -03:00
Werner Almesberger
49a6ebd797
eeshow/: make libraries "related" to the [main] schematics sheet
...
That way, we can use relative paths on the command line, ideally just
./eeshow foo.lib bar.lib com/plex/path/foo.sch
2016-08-02 16:38:21 -03:00
Werner Almesberger
24522c45e0
eeshow/sch-parse.c (recurse_sheet): move parent/related logic to file.c
2016-08-02 16:27:08 -03:00
Werner Almesberger
4721cdea83
eeshow/Makefile (pdf): new test target to exercise eeshow -r
2016-08-02 16:26:33 -03:00
Werner Almesberger
6793f06aeb
eeshow/sch-parse.c, lib-parse.c: use file name and line number from "file"
2016-08-02 15:44:28 -03:00
Werner Almesberger
05af03a0fd
eeshow/: split file_read into open/read/close
...
This is to allow for a better implementation of "related" in the future.
2016-08-02 15:36:18 -03:00
Werner Almesberger
4b6eb3f641
README: mention eeshow, mark schhist as obsolete
2016-08-02 14:53:52 -03:00
Werner Almesberger
86feabf49c
sch2fig/git-file.c, git-file.h: start our git_* identifiers with vcs_git_
...
Since we'll use this name space more intensely, we don't want to risk
clashes
2016-08-02 14:49:54 -03:00
Werner Almesberger
3864743280
eeshow/: PNG and PDF now write to standard output if -o outfile is absent
2016-08-02 11:46:30 -03:00
Werner Almesberger
a941a5f246
rename sch2fig to eeshow
2016-08-02 11:00:08 -03:00
Werner Almesberger
590724e3bb
sch2fig/git-file.c: keep the repo root search simple
...
I originally planned to attach the (deleted) tail after splitting the path
of existing things into path_to_repo and path_in_repo, but it's easier
if we just do the search on the combined path.
This means that stat() will fail while we're in the deleted part of the
path.
2016-08-02 10:45:40 -03:00
Werner Almesberger
f4745953b5
sch2fig/git-file.c (select_repo): we actually iterated, but did it wrong
2016-08-02 10:23:39 -03:00
Werner Almesberger
a97ea5bf74
sch2fig/TODO: diffing deleted files doesn't quite work yet
2016-08-02 10:11:28 -03:00
Werner Almesberger
249fb2e994
sch2fig/DEMO: quick demonstration showing neo900_SS_5.sch changes
2016-08-02 10:09:52 -03:00
Werner Almesberger
fd4d07d241
sch2fig/TODO: update
2016-08-02 09:59:14 -03:00
Werner Almesberger
91efd87b73
sch2fig/git-file.c (send_data): don't pass newline to parser
...
We tried to do what fgets does, but file.c undid that for regular
files, so let's be compatible.
2016-08-02 09:57:47 -03:00
Werner Almesberger
de0917e674
sch2fig/main.c (usage): explain options, some arguments; better formatting
2016-08-02 09:35:37 -03:00
Werner Almesberger
77ac119136
sch2fig/: new option -C file to "cat" a file (also works with git)
...
This provides quick access to the git-file mechanism.
2016-08-02 09:35:37 -03:00
Werner Almesberger
7cfb2d72be
sch2fig/: support direct reading from git repo (WIP)
2016-08-02 09:04:29 -03:00
Werner Almesberger
508d3a39ee
sch2fig/main.c (main): don't forget to return 0 at the end (reported by Joerg)
...
Strangely enough, gcc (Ubuntu 5.2.1-26ubuntu1) 5.2.1 20151125
does not report this. Also explicitly setting -Wreturn-type
does not make it more talkative.
gcc (SUSE Linux) 4.8.1 20130909 [gcc-4_8-branch revision 202388]
does report it.
2016-08-02 08:29:05 -03:00
Werner Almesberger
47792182b7
sch2fig/: option -v (can be repeated) for progress and debugging output
2016-08-02 06:31:23 -03:00
Werner Almesberger
5d0596d0b7
sch2fig/: rename "cairo" to "cro"
...
To avoid confusion and possible clashes with the real Cairo.
2016-08-01 18:11:42 -03:00
Werner Almesberger
c5064a8dca
sch2fig/: implement "diff" driver (WIP)
2016-08-01 16:05:37 -03:00
Werner Almesberger
f0f2303fc3
sch2fig/lib-parse.c (lib_parse): parse entire file, not just one line
2016-08-01 13:10:51 -03:00
Werner Almesberger
07eb87e25f
sch2fig/sch.h (sch_parse): string argument is file name, not line
2016-08-01 13:04:52 -03:00
Werner Almesberger
f8f497c61a
sch2fig/main.c (main): fail if there is no gfx driver name
2016-08-01 12:42:27 -03:00
Werner Almesberger
c6713dfbd8
sch2lib/: avoid global variables for libraries
2016-08-01 11:47:39 -03:00
Werner Almesberger
a03e79de7c
sch2fig/: rename "layer" to "record", and use "layer" for layers in recordings
...
Clearing up massively confusing naming.
2016-08-01 11:32:22 -03:00
Werner Almesberger
c50e7116cf
sch2fig/cairo.c (cr_text_width): add 5%
...
Cairo seems to underestimate the width a little, as evidenced by G_LEFT_PASS
in test.sch
2016-08-01 11:01:28 -03:00
Werner Almesberger
15bab1c163
sch2fig/cairo.c: support dashed lines (for *_line); line width 2 also for PNG
2016-08-01 10:52:54 -03:00
Werner Almesberger
dc761d2dc2
sch2fig/: use #848400 for hierarchical labels et al., not #c06000
2016-08-01 10:37:24 -03:00
Werner Almesberger
ae736a0fdf
sch2fig/dwg.c (dwg_glabel): tag global labels
2016-08-01 10:27:46 -03:00
Werner Almesberger
065c82cf25
sch2fig/: make *_poly vectors "const"; add tagging capability to gfx API
2016-08-01 10:27:41 -03:00
Werner Almesberger
1d3c7d635b
sch2fig/cairo.c (cr_pdf_end): reduce line width from 3 to 2 points
...
With 3 points, lines get too far in realtion to text and junctions.
2016-08-01 01:41:07 -03:00
Werner Almesberger
55f10b8769
sch2fig/: support multi-page PDF
2016-08-01 01:37:00 -03:00
Werner Almesberger
97ac2297e1
sch2fig/main.c (main): zero optind to reset getopt
2016-08-01 01:33:50 -03:00
Werner Almesberger
d8cef3308f
sch2fig/sch-parse.c (parse_field): write back realloc'ed pointer
2016-08-01 01:23:57 -03:00
Werner Almesberger
75e16031a0
sch2fig/Makefile: add a few more $(NAME) dependencies
2016-08-01 01:07:44 -03:00
Werner Almesberger
c49cb4a473
sch2fig/TODO: update
2016-08-01 00:50:44 -03:00
Werner Almesberger
93537be396
sch2fig/: add Cairo PDF driver
2016-08-01 00:37:32 -03:00
Werner Almesberger
4ef07e5e29
sch2fig/: rename Cairo PNG driver from "cairo" to "png"
2016-08-01 00:18:22 -03:00
Werner Almesberger
d9eedec02a
sch2fig/: new cairo options -o outfile.png and -s scale
2016-08-01 00:11:53 -03:00
Werner Almesberger
8590b960e9
sch2fig/: use bounding box to create PNG of correct size
2016-07-31 23:53:14 -03:00
Werner Almesberger
dd1eb7ddc3
sch2fig/: record drawing operations (for Cairo) and sort by layer
2016-07-31 23:08:04 -03:00
Werner Almesberger
ae7924a01c
sch2fig/Makefile (png, pngref): add regression test image also for Cairo-PNG
2016-07-31 23:06:46 -03:00
Werner Almesberger
f3ed4edbd2
sch2fig/: graphics backend can be selected from the command line
2016-07-31 21:52:35 -03:00
Werner Almesberger
01fed0d456
sch2fig/fig.c (fig_init): remove debugging code - oops !
2016-07-31 21:34:18 -03:00