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

text output format #183

Open
karindalziel opened this issue Nov 5, 2021 · 1 comment
Open

text output format #183

karindalziel opened this issue Nov 5, 2021 · 1 comment

Comments

@karindalziel
Copy link
Member

there are several projects for which I have used the "html" output format to generate plain text, but since I am using the HTML format they come out as .html. It would be nice to set up a ".txt" output format with basically the same functionality as HTML, but a different set of default XSLT. Here's an example of a very simple one I am using for TEAA https://github.com/CDRH/data_teaa/blob/dev/scripts/overrides/tei_to_text.xsl

These would probably be somewhat unique per project. Here's an example of some text generated using this method, which I did in a new environment of "text" to keep it separate from the dev and prod html https://github.com/CDRH/data_teaa/tree/dev/output/text/html

@karindalziel
Copy link
Member Author

Now that I am thinking about this more, it might be better to use nokogiri or another method over XSLT because the transforms would go much quicker

@wkdewey wkdewey added this to the V2.0 milestone May 11, 2022
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