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

When pasting tikz, have ability to ignore certain errors #351

Open
jvdwetering opened this issue Aug 20, 2024 · 0 comments
Open

When pasting tikz, have ability to ignore certain errors #351

jvdwetering opened this issue Aug 20, 2024 · 0 comments
Labels
Category: Edit Mode Issues and enhancements related to Edit mode good first issue Good for newcomers Priority: Medium Type: enhancement New feature or request

Comments

@jvdwetering
Copy link
Collaborator

Currently when you try to import some tikz into zxlive and you get an error like "invalid phase label" there is no way to continue. I propose adding an option like "Try again while ignoring this type of error".
This would require a change in pyzx where pyzx.tikz.tikz_to_graph gives more options for ignoring specific types of errors.
I propose the following error categories:

  • Ignoring nodes/edges with an invalid definition
  • Ignoring nodes with an invalid style
  • When encountering vertices with the same position, give the option to merge these together, or to leave them separate
  • When an invalid phase definition is encountered, just put the default phase on that node (0 for most nodes, 1 for H-boxes)
@jvdwetering jvdwetering added Type: enhancement New feature or request good first issue Good for newcomers Category: Edit Mode Issues and enhancements related to Edit mode Priority: Medium labels Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Edit Mode Issues and enhancements related to Edit mode good first issue Good for newcomers Priority: Medium Type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant