ManimCommunity / ManimPango

Binding for Pango, to use with Manim.
https://manimpango.manim.community
MIT License
45 stars 13 forks source link

Showing Errors in Markup if any #57

Closed naveen521kk closed 3 years ago

naveen521kk commented 3 years ago

We currently have a way to check whether the markup is valid or not, but that can be extended to having error messages that is understandable on where is the error is. I have something working https://github.com/ManimCommunity/ManimPango/blob/cf13f34d4eec59e54143900e0a545d9c6ca0052f/manimpango/layout/utils.pyx which working on #48

naveen521kk commented 3 years ago

@PhilippImhof what do you think about this? Can we break the API and release a major version(v0.3.0) or add an auxiliary function that manim will call if the MarkupUtils.validate fails?

PhilippImhof commented 3 years ago

I think we can safely assume that ManimPango is almost exclusively used by Manim, so breaking the API should not be a big deal. And among 0.x versions, people generally know breaking changes are likely to happen. I would go for it.