-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
BITS-enabled JATS reader #9138
BITS-enabled JATS reader #9138
Changes from 6 commits
fa0a9e8
86955cf
3761b15
cbf2407
201ba0d
2c56d2c
7e1dbac
e1bbc81
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
``` | ||
% pandoc -f jats -t native | ||
<article-meta> | ||
<title-group> | ||
<article-title></article-title> | ||
</title-group> | ||
<permissions> | ||
<copyright-statement>© 2023, Ellerman et al</copyright-statement> | ||
<copyright-year>2023</copyright-year> | ||
<copyright-holder>Ellerman et al</copyright-holder> | ||
<license license-type="open-access"> | ||
<ali:license_ref xmlns:ali="http://www.niso.org/schemas/ali/1.0/">https://creativecommons.org/licenses/by/4.0/</ali:license_ref> | ||
<license-p>This document is distributed under a Creative Commons Attribution 4.0 International license.</license-p> | ||
</license> | ||
</permissions> | ||
</article-meta> | ||
^D | ||
[] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this what you intended? Shouldn't this test be run with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Of course. Just added this, plus a few additional tests for metadata in both book and book-part-wrapper cases. Thanks for pointing out! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also separate tests from when we just want to see content, not metadata. |
||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
``` | ||
% pandoc -f jats -t native | ||
<sec> | ||
<title>THE EUROPEAN UNION EXPLAINED</title> | ||
</sec> | ||
^D | ||
[ Header | ||
1 | ||
( "" , [] , [] ) | ||
[ Str "THE" | ||
, Space | ||
, Str "EUROPEAN" | ||
, Space | ||
, Str "UNION" | ||
, Space | ||
, Str "EXPLAINED" | ||
] | ||
] | ||
``` | ||
|
||
``` | ||
% pandoc -f jats -t native | ||
<sec> | ||
<title display-as="3">THE EUROPEAN UNION EXPLAINED</title> | ||
</sec> | ||
^D | ||
[ Header | ||
3 | ||
( "" , [] , [] ) | ||
[ Str "THE" | ||
, Space | ||
, Str "EUROPEAN" | ||
, Space | ||
, Str "UNION" | ||
, Space | ||
, Str "EXPLAINED" | ||
] | ||
] | ||
``` | ||
|
||
``` | ||
% pandoc -f jats -t native | ||
<body> | ||
<sec> | ||
<title>The European Parliament</title> | ||
<p>Members of the European Parliament (MEPs) are directly elected by EU citizens.</p> | ||
<sec> | ||
<title display-as="3">Composition of the European Parliament</title> | ||
<p>The seats in the European Parliament are allocated among the Member States.</p> | ||
</sec> | ||
<sec> | ||
<title>Composition of the European Parliament - II </title> | ||
<p>Most MEPs are associated with a national political party in their home country.</p> | ||
</sec> | ||
</sec> | ||
</body> | ||
^D | ||
[ Header | ||
1 | ||
( "" , [] , [] ) | ||
[ Str "The" | ||
, Space | ||
, Str "European" | ||
, Space | ||
, Str "Parliament" | ||
] | ||
, Para | ||
[ Str "Members" | ||
, Space | ||
, Str "of" | ||
, Space | ||
, Str "the" | ||
, Space | ||
, Str "European" | ||
, Space | ||
, Str "Parliament" | ||
, Space | ||
, Str "(MEPs)" | ||
, Space | ||
, Str "are" | ||
, Space | ||
, Str "directly" | ||
, Space | ||
, Str "elected" | ||
, Space | ||
, Str "by" | ||
, Space | ||
, Str "EU" | ||
, Space | ||
, Str "citizens." | ||
] | ||
, Header | ||
3 | ||
( "" , [] , [] ) | ||
[ Str "Composition" | ||
, Space | ||
, Str "of" | ||
, Space | ||
, Str "the" | ||
, Space | ||
, Str "European" | ||
, Space | ||
, Str "Parliament" | ||
] | ||
, Para | ||
[ Str "The" | ||
, Space | ||
, Str "seats" | ||
, Space | ||
, Str "in" | ||
, Space | ||
, Str "the" | ||
, Space | ||
, Str "European" | ||
, Space | ||
, Str "Parliament" | ||
, Space | ||
, Str "are" | ||
, Space | ||
, Str "allocated" | ||
, Space | ||
, Str "among" | ||
, Space | ||
, Str "the" | ||
, Space | ||
, Str "Member" | ||
, Space | ||
, Str "States." | ||
] | ||
, Header | ||
2 | ||
( "" , [] , [] ) | ||
[ Str "Composition" | ||
, Space | ||
, Str "of" | ||
, Space | ||
, Str "the" | ||
, Space | ||
, Str "European" | ||
, Space | ||
, Str "Parliament" | ||
, Space | ||
, Str "-" | ||
, Space | ||
, Str "II" | ||
] | ||
, Para | ||
[ Str "Most" | ||
, Space | ||
, Str "MEPs" | ||
, Space | ||
, Str "are" | ||
, Space | ||
, Str "associated" | ||
, Space | ||
, Str "with" | ||
, Space | ||
, Str "a" | ||
, Space | ||
, Str "national" | ||
, Space | ||
, Str "political" | ||
, Space | ||
, Str "party" | ||
, Space | ||
, Str "in" | ||
, Space | ||
, Str "their" | ||
, Space | ||
, Str "home" | ||
, Space | ||
, Str "country." | ||
] | ||
] | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to use localized (translated) versions of these names rather than the English.
However, we don't currently have localizations for these, so this will have to wait.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. The rationale is that, if there are non-English language named sections, then these will probably have a
<title>
, captured in the case just above. But might still be something to consider in the future.