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

Implementing and Documenting HTML transformations #33

Open
petermr opened this issue Apr 30, 2016 · 1 comment
Open

Implementing and Documenting HTML transformations #33

petermr opened this issue Apr 30, 2016 · 1 comment

Comments

@petermr
Copy link
Member

petermr commented Apr 30, 2016

Currently there are 2 steps for turning HTML into ScholarlyHTML.

  • convert (non-well-formed) fulltext.html into scholarly.html using various TIDY programs. Actually it isn't scholarly.html - it's just well-formed. ?Rename to fulltext.wf.html?
  • convert fulltext.wf.html to scholarly.html probably using stylesheets.

The first step requires the argument --html program.

In current usage the --html arg should come before the --transform arg. Sorry!

I think this could be done in two steps:

norma -q . -i fulltext.html -o fulltext.wf.html --html jsoup
norma -q . -i fulltext.wf.html -o scholarly.html --transform tf2html

where tf2html is a lookup for the WF2Shtml transformation.

Action - test and document.

@petermr
Copy link
Member Author

petermr commented Apr 30, 2016

Works nicely! am now hacking stylesheet for TF. This also going well.

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

No branches or pull requests

2 participants