Omikhleia / ptable.sile

Paragraph boxes, framed boxes and table packages for the SILE typesetting system
MIT License
10 stars 2 forks source link

feat: Support more rough features #15

Closed Omikhleia closed 8 months ago

Omikhleia commented 9 months ago

More features from roughjs ported to Lua and more options to \roughbox:

I started this some time ago and thought I lost it. Just recovered it, so let's save it in a branch.

Unfinished, with FIXME comments -- And perhaps regressions / mistakes. I guess the idea was eventually to extract the rough-lua part as a standalone rock.

Note: Partial port only for SVG paths and curves on points, they use two additional modules (points-on-curve, path-data-parser) which I have ported, but not tested. So I left them out The feature is not needed in my current use case... Let's have them in an "untested" folder for now.

Omikhleia commented 9 months ago

Seems it was quite working --

image

So surely finishing and reviewing the port would be cool.

Omikhleia commented 8 months ago

Things should be ready for possibly extracting prng-prirogin and rough-lua as separate Lua rocks. No doing it here yet, though -- it's easier for now to have everything at hand if I need to make last minute adjustments.

Omikhleia commented 8 months ago

Tested, as used by framebox:

Quickly tested with ad-hoc temporary hacks in framebox:

Untested: