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

Refactor Markup mode #102

Closed
nkh opened this issue Jul 15, 2023 · 2 comments
Closed

Refactor Markup mode #102

nkh opened this issue Jul 15, 2023 · 2 comments

Comments

@nkh
Copy link
Owner

nkh commented Jul 15, 2023

Integrate the markup mode

  • font problem with bold text
  • generalize the markup handling
  • some html is also supported
  • attributes contained in base Asciio object made available in markup

#92 and #54 are directly related to this ticket

@nkh nkh added this to the 2.0 milestone Jul 15, 2023
@nkh
Copy link
Owner Author

nkh commented Jul 15, 2023

@qindapao

I think it's time we look at how we can streamline the markup mode, there are two tickets named above. I propose you have a look at them too.

#55 is also indirectly related. In the passed I used Ditaa to generate png images for presentations, although I prefer SVG now, The one thing that was interesting with Ditaa https://github.com/stathissideris/ditaa is that it could generate different shapes based on markup. https://github.com/christiangoltz/shaape (which I find a bit impressive) and https://github.com/Twinside/asciidiagram do the same thing more or less but all three try to parse the ASCII text and add their own extra codes.

Instead thy should take some JSON describing the objects, the contents of the JSON data should also contain markup information.

Since applications support different types of markup it should be possible to have a mode for each of these, defined separately but they need to be stored in Asciio, and there should be a way to edit that information, you've already created one mode, I think it should be generalized to support more.

the challenges

  • editing of the markup
    • inlined or separate
    • if inlined
      • is it displayed
      • how is it displayed
      • display it graphically, IE not as text, is ASCII display a mode?
        -exporting Asciio internal data

This was referenced Jul 15, 2023
@nkh
Copy link
Owner Author

nkh commented Oct 3, 2023

Partly done in efe69f0

@nkh nkh closed this as completed Oct 4, 2023
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

1 participant