On a side note, yes I know the pages are currently leaking out of the container. I'll settle on how I want to style the typst book previews later.
Developer, writer, artist, gamer, and roleplayer with a strong interest in FOSS.
On a side note, yes I know the pages are currently leaking out of the container. I'll settle on how I want to style the typst book previews later.
Okay, I got SOME work done with integrating #typst into my linkhub. It queries for a specific label instead of using YAML frontmatter and compiles the document from #python.
...Not sure if I should write the SVG files to disk. Currently it's putting the SVG compile directly into the HTML for the page.
Changes aren't deployed yet as I need to architecture how the system is saying, "Hey, I'm using X markup for Y page." Instead of this being a site-wide decision.
Confirmed that yes, STIX2 Math and STIX2 Text fonts work with pdf2htmlex . Meaning I have to check for non-CFF fonts if I want to use pdf2htmlex for turning typst documents into web pages.
On the other hand, the whole being able to select text in the pdf2htmlex output doesn't seem to be too beneficial. Might be better to just do the svg'd page output directly from typst like I initially wanted to try.
Layer structure as additional proof of this being a hand-drawn piece.
It's Doodle Tuesday! So what am I posting for today? A.... WIP timelapse of a base #catcake from #HonkaiStarRail .
#art #digitalart #fanart #krita #timelapse #sketch #cat #cake
So, that experiment went a bit weird. Turns out typst's default font is a CFF font, which pdf2htmlex doesn't play well with. I also discovered by accident you can point #Okular at a folder and it'll treat the contents of that folder as pages of a document.
Further research on the subject led me to #pdf2htmlEX
https://pdf2htmlex.github.io/pdf2htmlEX/
This COULD be a possible alternative for putting up typst files as raw HTML rather than DIYing the whole affair. Will need to test this on my Linux half. Which should make self-publishing readable books on a website easier.
@nonexistent@hachyderm.io - I've heard of it, but I'm also not sure how it compares to something like #neocities , other than the CLI-focused experience.
Today's random #webdev thoughts.
- Set up some windows devtools for #PHP and... wait, why am I doing this when I wanna iterate over some files that typst outputted?
- Found typst-python and realize, "Hold up. I can query the *.typ file from #python?"
- Also, running python code in #typst is funny.
Links for those curious.
- https://typst.app/universe/package/pyrunner/
- https://pypi.org/project/typst/
- https://laragon.org/
(Trying to figure out how to shovel Docker on the Windows devtool drive ATM instead of C)
Update: So, just gave my idea a try. Typst outputted an svg file for each page. Was able to embed those pages into the html test file.
Probably will spend this week trying to automate this workflow and then integrating into my link hub .
But one can also download the PDF version of that page and expect it to come out nice and clean for the printer. Only really needed for typesetting precise projects.
It also came about to me when I realized most of my replit projects were taking stabs in the dark on how to have a static site builder that handled both images (b/c) and articles (b/c) as first-class citizens. Most of those used or as the rendering backend.
So... I had a really, really dumb (or good?) idea just this morning while fiddling with my self-hosted applications ( #webdev thoughts ).
Yes #typst doesn't support HTML output yet, but it does support SVG. What if I wrote a weird static site generator using typst files as the input?
The idea behind this being the web-readable version of the static site generator output would be the SVG files embedded in HTML.
Okay, my twitter is now successfully scrubbed. Leaving the handle up so the username can't be reused by others.
Hrm. Godot 4.2 exported just fine, but, it can't run on the web because of the special headers it needs. Godot 4.3 supports the single thread exports, BUT, it winds up segfaulting in Gitlab CI after the import assets stage.... Hrm. Will need to fix later. Continue handling exports manually for now.
Got distracted a bit today by seeing if I could get my #Godot project for #SonarBeats to build with #Gitlab CI. Which... surprisingly, yeah, it does. Which means I can hopefully get around to sharing playable WIPs of it.
Okay, I've managed to cross-post what I x-posted to twitter back to bluesky.
Back to using Mastodon as normal!
Putting this on Mastodon since it's NOT quite own art (but have perms to repost), and also part of bigger worldbuilding project. Was struggling to make the female Metal deity for one of my worlds. Much thanks to recolor.me making full body character mockups easier to do when working on getting art mojo back up.
Hey all! I'm going to be sitting down today to cross-post the art I used to cross-post to twitter to Bluesky. Then I'll close the twitter account. Honestly, I should've thought about cross-posting to Bluesky a lot sooner than later @~~@;.