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

Issue with inline-graphic, display-formula and fig tags #23

Open
rajesh2k8 opened this issue Jul 31, 2020 · 4 comments
Open

Issue with inline-graphic, display-formula and fig tags #23

rajesh2k8 opened this issue Jul 31, 2020 · 4 comments

Comments

@rajesh2k8
Copy link

rajesh2k8 commented Jul 31, 2020

Hi,

We have the following tags in our jats xmls:
<inline-graphic xlink:href="ES12366-34-1-001-00" id="ID_8b8883f5-3d03-4d61-adf9-bbae1bb3d9ef"></inline-graphic> <disp-formula><alternatives> <graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="bpasch-38c-2-001-ueqn001"/> </alternatives></disp-formula>
And also following tags is not working inside the table or p tag
<fig><label>Figure 1:</label><caption><p>Plots of <italic>&#x03C1;</italic> v/s c of copper surfactants (derived from fried and unfried oils) solution in benzene.</p></caption> <graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="bpasch-38c-2-001-f001.jpg"/> </fig>

Please help me out from this issue.

After parsing through Vitaliy-1/JATSParser, All data is not coming in html and pdf.

@Vitaliy-1
Copy link
Owner

Vitaliy-1 commented Aug 3, 2020

Hi @rajesh2k8,

And also following tags is not working inside the table or p tag

It's included in the master branch. In general, I'm against using block elements (like figure or tables) inside paragraphs, take a look at this thread: #19

Regarding formulas, I'm planning to start work on this after the next production release. But I'm not considering to support alternatives tag. Can you describe your use-case of this tag, what benefits are you getting to display formulas in different formats? How you foresee displaying it on the front-end? Only the one format or both?

And regarding inline graphics, it's also not yet implemented. Can you describe the use-case in more details?

@rajesh2k8
Copy link
Author

rajesh2k8 commented Aug 3, 2020

Hi @Vitaliy-1 ,

Thanks for your quick response.

As you written, you are against using block elements inside the paragraphs. I am also not prefer but we saw some samples like that. So, I asked you.

I am following below link to check the tag structure:
https://jats.nlm.nih.gov/publishing/tag-library/1.1d1/index.html

alternatives tag used for Alternatives to an equation, including a graphic, XML-tagged MathML, and TeX tagging. If any formula without any title then it can come direct inside the disp-formula tag else inside the alternatives tag.

At present, we are facing major three issues:

  • Fig when it comes inside the p tag or table.
  • Inline-graphic tag
  • display-formula

First points i am checking at my end how to we can handle and remaining two i will wait till your next release.

About the second point- inline graphic is typically a small graphic, such as an icon or a small picture symbol, that is displayed or set in the same line as the text.

If have any idea about the next release date then it will be good for us.

I would like to help you, If i can somewhere then let me know.

Thanks,

@Vitaliy-1
Copy link
Owner

I am following below link to check the tag structure:
https://jats.nlm.nih.gov/publishing/tag-library/1.1d1/index.html

I'm quite far away from supporting all the tag set, rather the aim is to support reasonable enough subset for exchanging data between formats.

alternatives tag used for Alternatives to an equation, including a graphic, XML-tagged MathML, and TeX tagging.

Currently, I don't think that supporting alternative formats for tables, figures or formulas gives additional benefits. Moreover, if support this, how this data should be presented on the front-end? Let's imaging situation when there is a formula in MathML and TeX format, both are parsed and processed with MathJax - in this case on the front-end the formula will be duplicated. Don't you think that it's better to avoid alternatives tag and just use one format?

inline graphic is typically a small graphic, such as an icon or a small picture symbol, that is displayed or set in the same line as the text.

Yeah, and what is your use-case? I've never seen the journal that uses such graphics, thus I have no idea how it should look on the front end.

If have any idea about the next release date then it will be good for us.

Presumably in November.

@rajesh2k8
Copy link
Author

rajesh2k8 commented Aug 4, 2020

Hi @Vitaliy-1 ,

Thanks for the update.

I have one more doubt, which dtd version you are supporting. because right now there is so many dtd version available.

I mean for developing the jatsparser from where you are taking the reference for jats xml tag structure. if you let us know then it will be very good to creating the jats xml because your code base will support.

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

2 participants