Skip to content

canvas/svg vs html #490

Answered by Myriad-Dreamin
memeplex asked this question in Q&A
Feb 27, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

I think all of them can take a place in typst.ts, but it rather requires more efforts. This is what I'm going on the road to a better document format (than PDF). This framework are also inspired by pdf.js.

Three layers

HTML (Semantic) Layer

it brings semantic ability to adequately select text, copy text, paste text, link reaction, and so on.

currently better text output than PDF

Now we have generally better text output than PDF, especially whitespaces. Because PDF infers that whitespaces by layout spaces, but we get whitespaces information from typst and embed it inside of the HTML layer.

currently worse text selection than PDF

But we have a poor text selection, because we don't get nice…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@memeplex
Comment options

Comment options

You must be logged in to vote
1 reply
@memeplex
Comment options

Answer selected by memeplex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants