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

Proposal: Visual mapping editor. #95

Open
typesupply opened this issue Jul 9, 2024 · 6 comments
Open

Proposal: Visual mapping editor. #95

typesupply opened this issue Jul 9, 2024 · 6 comments

Comments

@typesupply
Copy link

It would be nice if there was a visual display of the mapping rules similar to the diagrams in the avar documentation. This would be helpful for seeing the movement of the mapping, looking for unnecessary steps, etc. It would be even nicer if this visual display was interactive. It would be even more nicer if this synced with the text editor. Well, I have implemented this feature in a fork here.

image

Graph Documentation:

  • Click to select a rule.
  • Drag to move the rule.
  • Arrow keys to move the rule.
  • Delete key to delete the rule.
  • Tab or shift + tab to switch the selection.
  • Double click to add a rule.

Note: I had to rewrite the parser so that comments will be preserved during editing via the graph.

If this is something you'd like, I will fix any issues (I know of one at the time of this writing), move the lines of code to the appropriate places and create a PR for your consideration.

@LettError
Copy link
Owner

We could consider to add group support to the syntax. I know this would screw things up.

@gferreira2
Copy link

see also the Fencer by @Lorp, currently under development, which supports the more complex avar2 mappings

@typemytype
Copy link
Collaborator

this is fantastic!

@LettError what should group support do?

@Lorp
Copy link

Lorp commented Jul 9, 2024

How are you thinking of recording groups in the XML? My current preference is to use name="myGroup" mimicking HTML’s name attribute.

@LettError
Copy link
Owner

Nothing complicated. The names listed in the rule could be @groupName and then hope that the group is defined in the font.groups

@Lorp
Copy link

Lorp commented Jul 15, 2024

I’m talking about mappings being assigned groups, according to function, such as all the mappings to fence off an area. In a UI, groups could be activated/deactivated, visible/invisible, differently coloured, and so on. @LettError is that the same as what you are talking about?

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

5 participants