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

Accents support #6

Open
lvignoli opened this issue Apr 23, 2024 · 5 comments
Open

Accents support #6

lvignoli opened this issue Apr 23, 2024 · 5 comments

Comments

@lvignoli
Copy link

The accent function and accent calls like macron(A) or tilde(A) are not supported.
This is true both in Obsidian and on https://0xpapercut.github.io/wypst/.

Error:

RuntimeError: Unreachable code should not be executed (evaluating 'wasm.parseTree(retptr, ptr0, len0)')
@0xpapercut
Copy link
Owner

When I initially wrote the code, I considered that most users would not take advantage of these special symbols so it gives this error when you try to use it. The code of interest is found in https://github.com/0xpapercut/wypst/blob/dc83b2cf42e085a24bbf52438f00832034c5c961/src/core/src/converter.rs#L508C5-L511C6. Since there is interest I'm putting this on my list.

Are you using these symbols in math mode or text mode?

@lvignoli
Copy link
Author

Thanks a lot for considering this. In my experience, accents are very frequent in math content. The same goes with primes, as I can see that there are not implemented as well.

Are you using these symbols in math mode or text mode?

You mean in display ($$…$$) or inline ($…$) math mode?
I use them in both.

@RGFTheCoder
Copy link

I agree here since i need to do norm(r'(t)) in an equation and I cant use d/"dx" syntax either as a lot of things break in abs/norm.

@Myzel394
Copy link

Is there any progress on this?

@0xpapercut
Copy link
Owner

I do plan to fix this, but unfortunately I don't have a lot of time to work on this project at the moment.

By the way, there's been progress on the official Typst HTML Export capabilities typst/typst#5512, it's still in early stages but my hope is that it supersedes this project (the point of interest is rendering to mathml bullet point).

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

No branches or pull requests

4 participants