MartinPaulEve / meTypeset

meTypeset is a tool to convert from Microsoft Word .docx format to NLM/JATS-XML for scholarly/scientific article typesetting.
Other
89 stars 32 forks source link

JATS/NLM with mixed-citation tags instead of element-citation tags, even using Zotero local database #103

Open juanCure opened 7 years ago

juanCure commented 7 years ago

Hi @MartinPaulEve I am using meTypeset for convert a docx file to JATS Xml file, I used the command meTypeset with the option - - zotero and changed the mt:zotero setting in the bin/settings.xml to use my local zotero database that contains my reference list that appeared in my document, when I checked the resulting xml file, some references in the xml file were parsed with the element-citation tag, however others were parsed with the mixed-citation tag. I have to say that all my bibliographic references are in my local zotero database but I don't know why no all my references were parsed with the element-citation tag of JATS/NLM? I hope you can help me to resolve this case. Thanks a lot.

MartinPaulEve commented 7 years ago

Hi Juan,

Thanks for this.

So, if you run meTypeset with the --debug option it should output more about what it's doing and why (or not) it's not working.

When an element is output as a mixed-citation tag, this indicates that meTypeset was unable to convert the reference to match an entry in Zotero...

Best wishes,

Martin

On 17/01/17 01:53, Juan Manuel Rodríguez Martínez wrote:

Hi @MartinPaulEve https://github.com/MartinPaulEve I am using meTypeset for convert a docx file to JATS Xml file, I used the command meTypeset with the option - - zotero and changed the mt:zotero setting in the bin/settings.xml to use my local zotero database that contains my reference list that appeared in my document, when I checked the resulting xml file, some references in the xml file were parsed with the element-citation tag, however others were parsed with the mixed-citation tag. I have to say that all my bibliographic references are in my local zotero database but I don't know why no all my references were parsed with the element-citation tag of JATS/NLM? I hope you can help me to resolve this case. Thanks a lot.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MartinPaulEve/meTypeset/issues/103, or mute the thread https://github.com/notifications/unsubscribe-auth/AA_ot-N8ZZanR5kHcTwMPh9NOdexr8rrks5rTB8ugaJpZM4LlJVN.

-- Professor Martin Paul Eve Chair of Literature, Technology and Publishing Birkbeck, University of London

T: 0203 073 8420 E: martin.eve@bbk.ac.uk W: https://www.martineve.com R: 416, 43 Gordon Square, London, WC1H 0PD

Books: https://www.martineve.com/books/ Articles: https://www.martineve.com/c-v/

Series Editor: New Horizons in Contemporary Writing (Bloomsbury) Director, Birkbeck Centre for Technology and Publishing Founder, Open Library of the Humanities (https://www.openlibhums.org) Chief Editor, Orbit (https://www.pynchon.net) Senior Online Editor, Alluvium, (http://www.alluvium-journal.org)

juanCure commented 7 years ago

Hi @MartinPaulEve thanks for your answering,

Well I ran meTypeset with the --debug option and the output is very extense however I left it here meTypesetLog.txt in a text file that contains the output. It seems that all works correctly, I leave the document berg.docx that I used in the test. If you opened it then you can see that I have 3 references to the last, and those 3 references are in my local zotero database, however only the last two references were parsed with marked-up JATS element-citation blocks for citations.

I have the doubt when you said in the Readme.md especifically in the section bibliographic database

References from Zotero will only be imported if one and only one match is found for a string

Then I asked me if it's possible have more than one reference in my local Zotero database with the same author but with different title or date, because I have more than one reference in my local zotero database with those characteristics.

Other doubt I have, How is the way that the bibliographic database module of meTypeset makes the matching between a reference in zotero database and my reference in the document. I asked this trying to know if I made a wrong when I added my references to Zotero.

Well I hope you can look up the log file that I uploaded, and answer this doubts. And thanks a lot for your valuable time.

MartinPaulEve commented 7 years ago

Hi again,

Hmm. I'm not entirely sure what's happening here.

The way that meTypeset matches references is to take the entire reference string and sequentially narrow it by removing words from the right-hand side until a single Zotero entry matches.

To debug what's happening here can you temporarily rename other items in Zotero by the same author and retry? You could also try spelling out the first name of the author in the reference to make sure we don't have a bug there?

Best wishes,

Martin

On 18/01/17 03:45, Juan Manuel Rodríguez Martínez wrote:

Hi @MartinPaulEve https://github.com/MartinPaulEve thanks for your answering,

Well I ran meTypeset with the --debug option and the output is very extense however I left it here meTypesetLog.txt https://github.com/MartinPaulEve/meTypeset/files/712989/meTypesetLog.txt in a text file that contains the output. It seems that all works correctly, I leave the document berg.docx https://github.com/MartinPaulEve/meTypeset/files/712997/berg.docx that I used in the test. If you opened it then you can see that I have 3 references to the last, and those 3 references are in my local zotero database, however only the last two references were parsed with marked-up JATS element-citation blocks for citations.

I have the doubt when you said in the Readme.md especifically in the section bibliographic database https://github.com/MartinPaulEve/meTypeset#bibliographic-database

References from Zotero will only be imported if one and only one
match is found for a string

Then I asked me if it's possible have more than one reference in my local Zotero database with the same author but with different title or date, because I have more than one reference in my local zotero database with those characteristics.

Other doubt I have, How is the way that the bibliographic database module of meTypeset makes the matching between a reference in zotero database and my reference in the document. I asked this trying to know if I made a wrong when I added my references to Zotero.

Well I hope you can look up the log file that I uploaded, and answer this doubts. And thanks a lot for your valuable time.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MartinPaulEve/meTypeset/issues/103#issuecomment-273375200, or mute the thread https://github.com/notifications/unsubscribe-auth/AA_ot98JB3Tg54UOhgjXP2gcX9CKBGNwks5rTYrfgaJpZM4LlJVN.

-- Professor Martin Paul Eve Chair of Literature, Technology and Publishing Birkbeck, University of London

T: 0203 073 8420 E: martin.eve@bbk.ac.uk W: https://www.martineve.com R: 416, 43 Gordon Square, London, WC1H 0PD

Books: https://www.martineve.com/books/ Articles: https://www.martineve.com/c-v/

Series Editor: New Horizons in Contemporary Writing (Bloomsbury) Director, Birkbeck Centre for Technology and Publishing Founder, Open Library of the Humanities (https://www.openlibhums.org) Chief Editor, Orbit (https://www.pynchon.net) Senior Online Editor, Alluvium, (http://www.alluvium-journal.org)