-
Notifications
You must be signed in to change notification settings - Fork 3
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
review attrib.js #457
Comments
I think downstream actually needs something sooner rather than later (to identify attrib output, e.g., in book prefaces). |
To clarify: attrib.js currently has 3 cases
This refers to the fact that the general case doesn't really deserve that name. To step back: we only have 466 occurrences of Of those, 245 are case 3 (figures with photo credits) in 2 older books (mbk103, clrm067, which were both pretty special cases in themselves). The second case ( So the "general" case is just 58 cases. One is a hack for a verse (in an MCL) and the rest seems to come down to Now as mentioned earlier, Regarding the OP, I still agree that this is similar to the label.js situation. Ideally, attrib.js would just create a span (and importantly: add a data attribute which is currently missing). Then we'd need a good pattern to smoothly handle the other cases. The latter seems like the main challenge. |
I could answer them myself. Older books have markup where aufm creates an attrib after a paragraph without opening a new paragraph. But texml does that nowadays (see the link above). |
first idea: recurseTheDomRedirected = (htmlParentNode, xmlnode) => {
this.recurseTheDom(htmlParentNode, xmlnode);
xmlnode.remove();
}; |
Initial refactoring looks good but extending this pattern to label is proving more complex. To be continued. |
It looks a bit like label, cf. #452.
The text was updated successfully, but these errors were encountered: