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

Is there a WYSIWYG tool to edit MAML files #508

Open
wmjordan opened this issue Aug 28, 2017 · 11 comments
Open

Is there a WYSIWYG tool to edit MAML files #508

wmjordan opened this issue Aug 28, 2017 · 11 comments
Labels

Comments

@wmjordan
Copy link

Instead of messing with MAML file tags, is there a WYSIWYG tool to edit MAML files?

@EWSoftware
Copy link
Owner

There aren't any available that I'm aware of. Dave Sexton started to create one but as far as I know it was abandoned and the source code was never released.

@RxDave Not sure if you'll see this but, if so, would you consider open sourcing what you did complete of your MAML editor so that I or someone else can have a go at finishing it?

@RxDave
Copy link

RxDave commented Aug 28, 2017

That should be doable. I don't remember the state in which I left it, but I'll take a look after work today.

@sharwell
Copy link
Contributor

sharwell commented Aug 28, 2017

👍

Cool idea. I might not use it, but would encourage making it open source if it's something that worked reasonably well. 😄

@RxDave
Copy link

RxDave commented Aug 28, 2017

I don't think it worked reasonably well, which is why I never followed through with it :D But let's see.

@RxDave
Copy link

RxDave commented Aug 28, 2017

Here ya go:
https://github.com/RxDave/XMLGel

I'm interested to see if you can do something with this.

@EWSoftware
Copy link
Owner

Thanks, I appreciate it. I'll see what I can do.

@wmjordan
Copy link
Author

Thank you! @RxDave and @EWSoftware!
I am looking forward to the reincarnation of the resurrected project.

@wmjordan
Copy link
Author

@EWSoftware Maybe there is an alternative to build a visual MAML editor.
Since HTML editors are relatively easier to find, maybe it is possible to implement the WYSIWYG HTML->MAML editor in an XSLT-supported way.

  1. Program some XSLT documents,
  2. Author help files with HTML editors, which generate documents with simple markups, such as <p>, <h1>, <a>, etc,
  3. Use XSLT to transform HTML documents (with the help of some existing HTML readers, for instance, https://github.com/lovettchris/SgmlReader) into the MAML format.
    Or even simpler, use an HTML reader to extract the <body> content, and inject it into HTML templates.

@EWSoftware
Copy link
Owner

MAML documents are much more structured than HTML and there are several different types. Each document type can vary with regard to required and optional elements, subsections can be nested within other sections, and there are many places where attributes define how a particular element is rendered (i.e. code block language and title, alert types, not to mention addressable elements like sections that can be used in link targets. I don't think that kind of stuff can be easily put into an HTML editor and round tripped between formats.

Also, something like the glossary document type wouldn't work well being edited in a WYSIWYG format. Those would be better off with some form of customized UI to define the glossary terms and edit their definitions.

The point of using MAML is that you define the structure of the content, not the layout or style. The presentation style handles that part. It also allows you to generate the MAML content in different output formats (HTML, markdown, or Open XML for example). Using a simplistic approach where all you use is HTML templates loses all of that functionality.

@wmjordan
Copy link
Author

wmjordan commented Jan 3, 2018

I found an HTML to MAML Converter tool in the extra folder.
I thought it was possible to utilize that tool to easier the process of MAML authoring.
However, I could not figure out how to make a link which point to the API documentation part.

@EWSoftware
Copy link
Owner

The intended use for the HTML to MAML converter is to convert old HTML content to MAML content in a one time conversion. As noted in the help for it, there can be several tasks to handle in the converted content so it's not for general use on a regular basis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants