deciding on which SVG library to use based on which one has docs online, thanks to random server downtime
svg.py is the more supported recommended one... but the docs were down at the time and I wanted to get this script out fast, so svgwrite it is!
SVG is a great format to automatically generate images in unless you care what the output looks like
I reached the point where all I can really justify doing is generating an SVG that's vaguely close to what I need, then I'll manually fix 150 elements because there's no way I can make this script output them correctly
@foone don't forget svgwrite! python's embrace of TMTOWTDI is encroaching on perl's philosophy
@foone I have fond memories of modifying svgs with sed
inkscape should let me use two mice at once. one to manipulate objects, and one to scroll around. I have two hands, why can't I do this?
@felipe just basic outputting of some rectangles and text boxes.
@foone I don't hate it but I expect there aren't many people ambidextrous enough to really make good use of it.
@foone I think on Wayland you might be able to do that. Whether or not Inkscape is going to love that I don't know... It should, I think?
I think if you really just use one to scroll around and one to do other things it might be fine?
@foone a split keyboard where each of the halves is also a mouse
@foone I think it's a little tricky to set up in Wayland, but possible to have distinct mice control distinct cursors. From there, some software just supports it.
@foone We released our python svg library to pypi last year: https://pypi.org/project/inkex/ as there wasn't an existing library that could do all the things we needed to do.
@foone I think you can, if you just remap the axes of one of them with xinput?
@foone@digipres.club I've sorta done this but it requires a tablet. I used a gaomon display tablet with my PC for some graphics work and would draw with the pen in my left hand and manipulate the canvas and some precision placement using the mouse in my right hand. Being a lefty does have its perks sometimes
@doctormo oh neat.
@foone anything against dropping down to just writing a XML with a XML library? Worked out okay for me for generating plots for papers (I needed some circular plots).
@felipe yeah that's the opposite direction of what I need. I need my code to be able to know how big text objects will be when rendered, which is something my SVG library can't deliver
@foone your DE doesn't allow it.
@benjistokman especially because I'm on windows
Think it's less inkscape and more your display server that has Opinions(TM) about that...
- replies
- 0
- announces
- 0
- likes
- 0
@foone There was a quote in german internet where someone said, his mom tried to cheat in solitair by connecting a second mouse. She wanted to check hidden cards with the second mouse while shoving away the card deck above it with the first mouse.
@foone I have wanted two mice, read independently, to be a standard part of operating systems for decades. It seems crazy for this not to be universal. It's a great idea.
@foone I have a SpaceMouse for doing PCB design work, and an unexpected benefit is also being able to do smooth panning and zooming when in 2D mode, on schematics as well as PCBs. SpaceMouse in left hand, normal mouse in right. And yes, I really miss it when using Inkscape, because like most software it doesn't support it.
@foone DIY SpaceMouse clones are your rabbit hole for the day…
@foone
I'm using SVG in Nonpareil II, partially automatically generated, and it's taken me an immense amount of manual fuckery and even more finding out, to get it to be even vaguely similar to what I want.
@foone
I didn't find any SVG library I particularly like. Ijust emitted the SVG directly from C++ using std::format()
(basically equivalent to printf)
@foone postscript is easier and probably more reliable.
@foone Could you bodge Multi-Pointer X into doing something like that, if using Linux? https://en.wikipedia.org/wiki/Multi-Pointer_X
@foone I've done quite a bit of svg exporting. No libs, I fprintf the raw xml myself. What sort of thing are you trying to do?
@foone
Does it support those 3d ball nav things?
]