Earlier quoted context omitted.
OP here. Sadly, SVG file size is not as small as I'd want it to be. The main problem is that a few attributes (x, y and lengthAdjust) have to be repeated on each text tag to position each character at the right place. I can't use CSS for this since those attributes are not styling attributes. Using SVG definitions efficiently to avoid duplication is also not as easy as I thought it would be. I have a few ideas on how…
What about embedding a mini ECMAScript player and apply values to the DOM on the fly ?
Show HN: Termtosvg – Record terminal sessions as SVG animations
41–50 of 84 posts
Re: Show HN: Termtosvg – Record terminal sessions as SVG animations
#42Cool. It is not very clear from the description so I will ask: What are the advantages over "asciinema"? At the moment I only see that it does not require a specific player (javascript for the web), on the other hand it seems you are not able to pause the "execution".
The output is an SVG animation so you can modify it as you want. For example you could add a last frame with the logo of your project.
Not being able to pause the animation is annoying, I will probably add some way to it with ECMAScript in the future.
Re: Show HN: Termtosvg – Record terminal sessions as SVG animations
#43Earlier quoted context omitted.
I'm pretty sure no browser supports 100% of SVG spec.
Facts like these always drives me crazy... these companies (namely Microsoft, but I guess Google/Mozilla as well a bit) have huge teams and resources, and can't build a browser that follows specs that have been hammered out only after years of work.
Re: Show HN: Termtosvg – Record terminal sessions as SVG animations
#44Cool. It is not very clear from the description so I will ask: What are the advantages over "asciinema"? At the moment I only see that it does not require a specific player (javascript for the web), on the other hand it seems you are not able to pause the "execution".
You can view the animation without javascript enabled, and it's media type is image, you don't even need to convert it to base64 to use it. It's like gif but relatively smaller and with more colors, and it's Scalable Vector.
Re: Show HN: Termtosvg – Record terminal sessions as SVG animations
#45This is extremely cool, and will be useful. One bug I noticed is that it seems to break virtualenv which is made with --system-site-packages its not finding the modules
Re: Show HN: Termtosvg – Record terminal sessions as SVG animations
#46Earlier quoted context omitted.
W3C should have a rule that a web browser which does not intend to support the standard may not call itself a "web browser".
I'm pretty sure no browser supports 100% of SVG spec.
Re: Show HN: Termtosvg – Record terminal sessions as SVG animations
#47Earlier quoted context omitted.
Facts like these always drives me crazy... these companies (namely Microsoft, but I guess Google/Mozilla as well a bit) have huge teams and resources, and can't build a browser that follows specs that have been hammered out only after years of work.
There's a reason why some bodies ship a reference implementation with the standard. Sometimes what's specified is infeasible, or even impossible (if the spec contradicts itself) to implement.
Re: Show HN: Termtosvg – Record terminal sessions as SVG animations
#48Re: Show HN: Termtosvg – Record terminal sessions as SVG animations
#49Earlier quoted context omitted.
There's a reason why some bodies ship a reference implementation with the standard. Sometimes what's specified is infeasible, or even impossible (if the spec contradicts itself) to implement.
But what if the other vendors do have an implementation?
I think sometimes this is because the full spec is infeasible to implement, at least in a performant manner, and rather than implement a fully compliant but slow mess, they implement a partially compliant but usefully fast subset.
Providing a reference implementation allows a standards body to learn early that what they are speccing is counterproductive in one manner or another, prior to releasing it and getting vendor feedback.
Re: Show HN: Termtosvg – Record terminal sessions as SVG animations
#50Earlier quoted context omitted.
But what if the other vendors do have an implementation?
This is in the context of an upstream comment (softly) claiming that now browser has 100% SVG support. I think sometimes this is because the full spec is infeasible to implement, at least in a performant manner, and rather than implement a fully compliant but slow mess, they implement a partially compliant but usefully fast subset. Providing a reference implementation allows a standards body to learn early that what…
Anyway, I totally agree that there should be a reference implementation. Imho, preferably in a purely functional language, to keep it as clean as possible.