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

docx-to-Asciidoc pipeline #11

Open
dressupgeekout opened this issue Apr 3, 2024 · 2 comments
Open

docx-to-Asciidoc pipeline #11

dressupgeekout opened this issue Apr 3, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@dressupgeekout
Copy link
Member

We need a way to convert "standard" manuscripts (in Microsoft Word doc format) to Asciidoc, such that Asciidoctor can then typeset them into pretty PDFs.

@dressupgeekout dressupgeekout self-assigned this Apr 3, 2024
@dressupgeekout dressupgeekout added the enhancement New feature or request label Apr 3, 2024
@dressupgeekout
Copy link
Member Author

I did a quick pandoc --from odt --to asciidoc and the end result does not have curly quotes, which is No Bueno for Willora purposes

Therefore I think I might need to add support for the "smart" extension in the asciidoc converter (pandoc --to asciidoc+smart)

@dressupgeekout
Copy link
Member Author

Lol OK so pandoc's ODT reader does NOT put DoubleQuote nodes into the AST. But the Markdown reader does. However, the AsciiDoc writer will ONLY use the correct syntax for double-quotes --

"`Like this,`" she said.

-- when given a DoubleQuote node in the AST.

Therefore, ODT -> AsciiDoc does NOT provide the correct results, but ODT -> Markdown -> AsciiDoc does.

# This is a serviceable workaround lol
pandoc -f odt -t markdown UNTITLED.odt | pandoc -f markdown -t asciidoc

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

No branches or pull requests

1 participant