Skip to content

Provide a way to custom tag ligature #381

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

Closed
subframe7536 opened this issue Mar 20, 2025 · 4 comments · Fixed by #457
Closed

Provide a way to custom tag ligature #381

subframe7536 opened this issue Mar 20, 2025 · 4 comments · Fixed by #457
Labels
Feature New feature or request
Milestone

Comments

@subframe7536
Copy link
Owner

Predictably, these requests will be frequent and varied, so I have intended to provide a compile-time way to support custom scripts.

In my current envision, you can customize the text of ss03 through configuration file or python script. The way to implement is like current infinity # ligature.

I will share some dev logs here.

@subframe7536 subframe7536 added the Feature New feature or request label Mar 20, 2025
@subframe7536 subframe7536 marked this as a duplicate of #377 Mar 20, 2025
@subframe7536 subframe7536 marked this as a duplicate of #380 Mar 20, 2025
@subframe7536 subframe7536 marked this as a duplicate of #418 Mar 27, 2025
@subframe7536 subframe7536 marked this as a duplicate of #419 Mar 27, 2025
@subframe7536 subframe7536 pinned this issue Mar 27, 2025
@subframe7536 subframe7536 marked this as a duplicate of #452 Apr 11, 2025
@subframe7536 subframe7536 moved this to further verion in Maple Mono Apr 12, 2025
@subframe7536 subframe7536 linked a pull request Apr 13, 2025 that will close this issue
15 tasks
@subframe7536 subframe7536 added this to the 7.1 milestone Apr 14, 2025
@subframe7536
Copy link
Owner Author

Draft util function test cases:

input: content='[todo]', target='todo'
output:
  sub start.bg T.bg O.bg D.bg O.bg bracketright' by end.bg;
  sub start.bg T.bg O.bg D.bg @O' bracketright by O.bg;
  sub start.bg T.bg O.bg @D' @O bracketright by D.bg;
  sub start.bg T.bg @O' @D @O bracketright by O.bg;
  sub start.bg @T' @O @D @O bracketright by T.bg;
  sub bracketleft' @T @O @D @O bracketright by start.bg;

input: content='todo))', target='todo'
output:
  sub start.bg T.bg O.bg D.bg O.bg braceright' by end.bg;
  sub start.bg T.bg O.bg D.bg braceright' braceright by O.bg;
  sub start.bg T.bg O.bg @O' braceright braceright by D.bg;
  sub start.bg T.bg @D' @O braceright braceright by O.bg;
  sub start.bg @O' @D @O braceright braceright by T.bg;
  sub @T' @O @D @O braceright braceright by start.bg;

input: content=' TODO:', target='todo'
output:
  sub start.bg T.bg O.bg D.bg O.bg colon' by end.bg;
  sub start.bg T.bg O.bg D.bg @O' colon by O.bg;
  sub start.bg T.bg O.bg @D' @O colon by D.bg;
  sub start.bg T.bg @O' @D @O colon by O.bg;
  sub start.bg @T' @O @D @O colon by T.bg;
  sub @space' @T @O @D @O colon by start.bg;

input: content='/@1e3?', target='warn'
output:
  sub start.bg W.bg A.bg R.bg N.bg question' by end.bg;
  sub start.bg W.bg A.bg R.bg three' question by n.bg;
  sub start.bg W.bg A.bg @E' three question by r.bg;
  sub start.bg W.bg one' @E three question by a.bg;
  sub start.bg at' one @E three question by w.bg;
  sub slash' at one @E three question by start.bg;

@subframe7536
Copy link
Owner Author

Prototype in large letter spacing:

Image

@subframe7536
Copy link
Owner Author

What custom :TODO: ligature looks like in VSCode... Looks so weird...

Image

@subframe7536
Copy link
Owner Author

MapleMonoDebug-Regular.ttf.zip

Add built-in tags:

  • "note"
  • "hack"
  • "mark"
  • "eror"
  • "warning"

@subframe7536 subframe7536 mentioned this issue Apr 20, 2025
15 tasks
@subframe7536 subframe7536 removed a link to a pull request Apr 20, 2025
15 tasks
@subframe7536 subframe7536 linked a pull request Apr 20, 2025 that will close this issue
15 tasks
subframe7536 added a commit that referenced this issue Apr 20, 2025
- larger dot in `!` / `?` #348
- add cv61: alt `,` / `;` #348
- add liga `{{!--`
- improve `{{` / `}}`
- add cv62: alt `?` #348
- add cv05 / cv38: alt double story `g` #329
- add cv08 / cv41: alt serif `r` #328
- add cv07 / cv40: alt `J` without top bar #324
- add cv06. / cv39: alt `i` without bottom bar #324
- add ss11: liga `|=` / `||=` / `/=` / `//=` / `?=` / `??=` / `^=` / `&=` #355
- add math symbols #342
- add ss09: liga `~=` #352
- add ss10: liga `!~` / `=~`
- support custom tags #381
- complete superiors #464
@github-project-automation github-project-automation bot moved this from further verion to Done in Maple Mono Apr 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant