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

Missing Text #5562

Closed
alibou99 opened this issue Jun 10, 2019 · 4 comments
Closed

Missing Text #5562

alibou99 opened this issue Jun 10, 2019 · 4 comments

Comments

@alibou99
Copy link

alibou99 commented Jun 10, 2019

'<div class="_idFootnotes"><div id="footnote-000" class="_idFootnote" epub:type="footnote"><p class="_10-notes"><a class="_idFootnoteAnchor" href="../Text/eBook-Dans_neige-3.xhtml#footnote-000-backlink">1</a>Text</p></div></div>' | pandoc -f html+epub_html_exts -t native

result :

[Div ("",["_idFootnotes"],[])
 []]
@jgm
Copy link
Owner

jgm commented Jun 10, 2019

The epub footnotes are stored in state; a Note in the AST is produced when the corresponding note reference is parsed (element with epub:type="noteref"). If there's no reference to the note, it doesn't appear in the AST at all.

@jgm jgm closed this as completed Jun 10, 2019
@alibou99
Copy link
Author

Thank you,
As you probably understood, I have a problem with the footnotes that are not properly processed when converting from epub to docx, the reason is that the footenotes are not in the same file as its reference. my idea is to remove the string part from the call of the note that refers to a file, because this is well located before the # in the link.target. Now, i understand that this is not possible in the state. is it possible via an option to give the user the ability to mechanically produce the footnotes and their references in the AST and let the lua filter repair the links after ? Or i have to do that before pandoc conversion via string replacement in the epub.

@mb21
Copy link
Collaborator

mb21 commented Jun 10, 2019

I'm not clear whether you think there is a bug in the epub reader, or whether you're trying to do something custom with a lua-filter.

For questions, please use the pandoc-discuss mailing list instead of this issue tracker. Thanks!

@jgm
Copy link
Owner

jgm commented Jun 10, 2019

@mb21, the underlying bug is #5531. The question here is about a workaround.

@alibou99 I think for now you'll need to preprocess the input.

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

3 participants