Last year I kluged together a C program that makes my school timetable in SVG for me out of a plain text definition. I kluged further to make it do generic tables to help my old one-banana job at Coles.
This year I rewrote it from the ground up. It's still very messy, but it does: * Notice when you put one box on top of another * Put cute little pointy bits on all the corners.
If you're still reading after fully two paragraphs, here are the links:
example input & output: http://yoyo.its.monash.edu.au/~trent/src/src/examples/
sources: http://yoyo.its.monash.edu.au/~trent/src/src/mktable.c http://yoyo.its.monash.edu.au/~trent/src/src/convenience.h http://yoyo.its.monash.edu.au/~trent/src/src/convenience.c
instructions: cc *.c -o mktable ./mktable < foo.table > foo.svg
HAND -trent
Quite cool, I think I've seen this before when I was looking for SVG-based scheduling/planning tools a while back.
Do you have plans for further development of it?
Bryce
On Sun, 20 Jun 2004, Trent Buck wrote:
Last year I kluged together a C program that makes my school timetable in SVG for me out of a plain text definition. I kluged further to make it do generic tables to help my old one-banana job at Coles.
This year I rewrote it from the ground up. It's still very messy, but it does:
- Notice when you put one box on top of another
- Put cute little pointy bits on all the corners.
If you're still reading after fully two paragraphs, here are the links:
example input & output: http://yoyo.its.monash.edu.au/~trent/src/src/examples/
sources: http://yoyo.its.monash.edu.au/~trent/src/src/mktable.c http://yoyo.its.monash.edu.au/~trent/src/src/convenience.h http://yoyo.its.monash.edu.au/~trent/src/src/convenience.c
instructions: cc *.c -o mktable ./mktable < foo.table > foo.svg
HAND -trent
Quoth Bryce Harrington on or about 2004-06-19:
On Sun, 20 Jun 2004, Trent Buck wrote:
This year I rewrote it from the ground up. It's still very messy, but it does:
- Notice when you put one box on top of another
- Put cute little pointy bits on all the corners.
Quite cool, I think I've seen this before when I was looking for SVG-based scheduling/planning tools a while back.
Do you have plans for further development of it?
It depends how often I need to do tables :-) I'm using it right now to work out the best times to have tutorials and pracs -- since I want them in the afternoon, but clustering is more important.
I think when I told Lauris about it last year I didn't even get a reply. However, if other people are interested, then IMO I'm obligated to develop / maintain it. Moving to (f)lex'd be favorite, since the parser is *really* dodgy.
-t
On Sun, 20 Jun 2004, Trent Buck wrote:
It depends how often I need to do tables :-) I'm using it right now to work out the best times to have tutorials and pracs -- since I want them in the afternoon, but clustering is more important.
*Nod* Luckily my school days are behind me so I don't need it for that. But I've noticed at work some general scheduling needs that you might run into yourself some day:
* A dept manager needing to schedule vacation days of employees * An admin assistant trying to schedule meeting times for executives and conference rooms * Parsing cron jobs and printing a schedule of what's occurring when on the systems, so you can detect overlaps and optimize.
There's a lot of other scheduling tools out there but not any I know of that output SVG. Also, on GNU/Linux there aren't very many _good_ scheduling tools; at work (where we're all FLOSS-based), pretty much everyone either hand-writes these things or uses Gnumeric, neither of which are very pretty. On Windows I know people could use MS Project, and there is a MRProject that runs on Linux, but that may be overkill simple schedule printing needs like these.
I think when I told Lauris about it last year I didn't even get a reply. However, if other people are interested, then IMO I'm obligated to develop / maintain it. Moving to (f)lex'd be favorite, since the parser is *really* dodgy.
I've done a bit with Flex/Bison parsers, but I'd suggest if you want to improve this tool's parsing capabilities to look at scripting languages. I've found that for text processing, you can almost always knock together a script to do it in a fraction of the time needed to do an equivalent Flex-based C program.
Bryce
Quoth Bryce Harrington on or about 2004-06-19:
On Sun, 20 Jun 2004, Trent Buck wrote:
which are very pretty. On Windows I know people could use MS Project, and there is a MRProject that runs on Linux, but that may be overkill simple schedule printing needs like these.
GNOME has `planner', which looks a lot like MS-Project from the 30secs I've used each.
I've done a bit with Flex/Bison parsers, but I'd suggest if you want to improve this tool's parsing capabilities to look at scripting languages. I've found that for text processing, you can almost always knock together a script to do it in a fraction of the time needed to do an equivalent Flex-based C program.
I know. The main reason I'm using C / Flex is for the experience. I didn't do so well leaping into Xlib with no practical C, so I'm aiming lower.
-t
On Sun, 20 Jun 2004, Trent Buck wrote:
Date: Sun, 20 Jun 2004 04:57:12 +1000 From: Trent Buck <fubarbaz@...104...> Reply-To: inkscape-user@lists.sourceforge.net To: inkscape-user@lists.sourceforge.net Subject: Re: [Inkscape-user] timetable2svg
Quoth Bryce Harrington on or about 2004-06-19:
On Sun, 20 Jun 2004, Trent Buck wrote:
which are very pretty. On Windows I know people could use MS Project, and there is a MRProject that runs on Linux, but that may be overkill simple schedule printing needs like these.
GNOME has `planner', which looks a lot like MS-Project from the 30secs I've used each.
Planner is (or was) Mr. Project. The lead developers left CodeFactory and decided to rename the project. http://planner.imendio.org/
If you want a scheduling application that outputs SVG then it might interest you to know that Planner uses Gnome-Print and there is an experimental SVG backend to Gnome-Print whihc is not compiled by default http://bugzilla.gnome.org/show_bug.cgi?id=128518
- Alan
I've added a news item to this on the Inkscape site.
Btw, I would recommend that you indicate a license for the code. E.g., put a copy of the GPL 'COPYING' file in your src directory, if you're GPL'ing it. A README with your name and email would probably also be a good idea, in case people want to send you patches. :-)
Bryce
On Sun, 20 Jun 2004, Trent Buck wrote:
Last year I kluged together a C program that makes my school timetable in SVG for me out of a plain text definition. I kluged further to make it do generic tables to help my old one-banana job at Coles.
This year I rewrote it from the ground up. It's still very messy, but it does:
- Notice when you put one box on top of another
- Put cute little pointy bits on all the corners.
If you're still reading after fully two paragraphs, here are the links:
example input & output: http://yoyo.its.monash.edu.au/~trent/src/src/examples/
sources: http://yoyo.its.monash.edu.au/~trent/src/src/mktable.c http://yoyo.its.monash.edu.au/~trent/src/src/convenience.h http://yoyo.its.monash.edu.au/~trent/src/src/convenience.c
instructions: cc *.c -o mktable ./mktable < foo.table > foo.svg
HAND -trent
Quoth Bryce Harrington on or about 2004-06-19:
I've added a news item to this on the Inkscape site.
Er, please change it to http://yoyo.its.monash.edu.au/~trent/src/mktable/ or http://yoyo.its.monash.edu.au/~trent/src/mktable--2004-06-20T0406--backup.ta... since I've symlinked just the mktable stuff there, to be cleaner.
Btw, I would recommend that you indicate a license for the code. E.g., put a copy of the GPL 'COPYING' file in your src directory, if you're GPL'ing it. A README with your name and email would probably also be a good idea, in case people want to send you patches. :-)
Good idea; done. PD because is still haven't *read* the GPL :-)
-t
On Sun, 20 Jun 2004, Trent Buck wrote:
Quoth Bryce Harrington on or about 2004-06-19:
I've added a news item to this on the Inkscape site.
Er, please change it to http://yoyo.its.monash.edu.au/~trent/src/mktable/ or http://yoyo.its.monash.edu.au/~trent/src/mktable--2004-06-20T0406--backup.ta... since I've symlinked just the mktable stuff there, to be cleaner.
Sure thing, got it.
Btw, I would recommend that you indicate a license for the code. E.g., put a copy of the GPL 'COPYING' file in your src directory, if you're GPL'ing it. A README with your name and email would probably also be a good idea, in case people want to send you patches. :-)
Good idea; done. PD because is still haven't *read* the GPL :-)
Cool.
Bryce
participants (3)
-
Alan Horkan
-
Bryce Harrington
-
Trent Buck