Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support pikchr diagrams #56

Open
bugsbugsbux opened this issue Dec 17, 2022 · 4 comments
Open

Support pikchr diagrams #56

bugsbugsbux opened this issue Dec 17, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@bugsbugsbux
Copy link

bugsbugsbux commented Dec 17, 2022

Please support pikchr diagrams!

You can install pikchr by downloading the .c file from https://pikchr.org/home/file/pikchr.c?ci=trunk (always gives latest version) and compiling it with gcc -DPIKCHR_SHELL -o pikchr pikchr.c -lm.

Example script:

arrow right 200% "Markdown" "Source"
box rad 10px "Markdown" "Formatter" "(markdown.c)" fit
arrow right 200% "HTML+SVG" "Output"
arrow <-> down 70% from last box.s
box same "Pikchr" "Formatter" "(pikchr.c)" fit

compile like so: ./pikchr --svg-only file.pik >file.svg or cat file.pik | ./pikchr --svg-only - > file.svg

You can find more examples at https://pikchr.org/home/doc/trunk/doc/examples.md.

kind regards

@LaurentRDC LaurentRDC added the enhancement New feature or request label Dec 22, 2022
@LaurentRDC
Copy link
Owner

Thank you for the suggestion! I don't have much time to devote to this these days, but I'm happy to review pull requests.

@mgajda
Copy link
Contributor

mgajda commented Sep 12, 2023

Unfortunately current framework assumes that renderer command is returned as shell text that writes output to file

That is, there is no output capture, so you would need a wrapper script that redirects it.

@mgajda
Copy link
Contributor

mgajda commented Sep 13, 2023

See drhsqlite/pikchr#5

@mgajda
Copy link
Contributor

mgajda commented Sep 13, 2023

It is possible to support pikchr with a shim shell script, but I will wait for #61 to be accepted first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants