Skip to content
This repository has been archived by the owner on Dec 27, 2020. It is now read-only.

Output XSLT stylesheet that can do the diff ? #1

Open
stuaxo opened this issue Feb 20, 2015 · 5 comments
Open

Output XSLT stylesheet that can do the diff ? #1

stuaxo opened this issue Feb 20, 2015 · 5 comments

Comments

@stuaxo
Copy link

stuaxo commented Feb 20, 2015

It would be super useful if this could output XSLT stylesheets that could transform one doc into the other.

If it output both forward + backwards. Using these you could easily turn one doc into the other - this could be useful for animation.

@jrsmith3
Copy link
Owner

This project was something I was goofing around with. I'm not sure exactly how to implement the feature you are requesting. I would be happy to merge a pull request though.

@stuaxo
Copy link
Author

stuaxo commented Mar 2, 2015

Ah - just realised that there is no commandline to this yet - no problem, I might look into it though.

It's good you have all these tests though - whats the best way to run them?

I have diffsvglib in a virtualenv, and elementtree installed..

@jrsmith3
Copy link
Owner

jrsmith3 commented Mar 2, 2015

Thanks again for your interest!

I've looked at the codebase once again and it is a mess. I don't think the tests actually pertain to diffsvglib.py, so I don't think there's a way to meaningfully run them. I had started this project because one time several years ago @gvwilson had mentioned that the inability to diff image files was a real impediment to collaborating on things like presentations and lesson materials.

A lot of commits in this repo are circa 2011 during the first code sprint I attempted to organize, and that @pghpy was kind enough to host. During that sprint, I learned a lot about how to coordinate such events, but I don't think too much meaningful code was written. A few years later, @pastewka and I drank some beers and he wrote most to all of the working code that's currently in diffsvglib.py.

What are you trying to accomplish with this repo? I can attempt to clean it up and I would be happy to do what I can to facilitate its usefulness for you. However, I don't think I can spare a lot of time right now making meaningful contributions to the codebase. On the other hand, I think that @pastewka implemented actually useful library functionality, and so with some small tweaks this project might be useful to you.

Let me know what you need and I will see if I can help.

@stuaxo
Copy link
Author

stuaxo commented Mar 8, 2015

Hi,
It's kind of a side project for me - I work on Shoebot - which can output SVG for every frame of an animation.

At some point I'd like to be able to output animations for the web, where it would load an initial SVG, then modify it with diffs for each frame.

When I initially looked at this project I assumed there was an actual working commandline app - so I could just add a new output format... it looks like there is a bit more TODO.

The main thing I'd need is a simple example that outputs data for which XML nodes for some SVG have been deleted / added or modified... most of the pieces are here, it's putting them together that seems to be missing :)

@pastewka
Copy link
Collaborator

pastewka commented Mar 9, 2015

Hi Stuart,

the code as-is is not much more than a skeleton. Josh and I spend some time on thinking how to approach the problem but then never found the time to implement much. Not sure if it is of great help.

Best,
Lars

-----Original Message-----
From: Stuart Axon [mailto:[email protected]]
Sent: Sunday, March 08, 2015 3:12 PM
To: jrsmith3/diffsvg
Cc: Pastewka, Lars (IAM)
Subject: Re: [diffsvg] Output XSLT stylesheet that can do the diff ? (#1)

Hi,
It's kind of a side project for me - I work on Shoebot - which can output SVG
for every frame of an animation.

At some point I'd like to be able to output animations for the web, where it
would load an initial SVG, then modify it with diffs for each frame.

When I initially looked at this project I assumed there was an actual working
commandline app - so I could just add a new output format... it looks like
there is a bit more TODO.

The main thing I'd need is a simple example that outputs data for which XML
nodes for some SVG have been deleted / added or modified... most of the
pieces are here, it's putting them together that seems to be missing :)


Reply to this email directly or view it on GitHub
#1 (comment) .
<https://github.com/notifications/beacon/ACacV0SBQr0NFpHX056NxN0IOr
VQbb35ks5nzFAugaJpZM4DjWAQ.gif>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants