-
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
Request to support bibtex import #329
Comments
From @ghobona:
|
@ronaldtse do we consider this ticket implemented? |
I verified that a bibtex file can indeed be imported. The screenshot is below. The bibtex file contained the following content.
I followed the instructions described in this commit. As shown in the screenshot above, although the bibtex file is indeed imported, the reference is not correctly formatted. There shouldn't be any curly brackets displayed around the title of the article. |
Bug with BibTeX import. @andrew2net Please use the attached files to replicate this. The Bibtex file:
is importing into Relaton with the following results:
The following issues arise:
|
@opoudjis we already remove curly brackets around titles, but the title has doubled curly brackets:
Is the title correct? Do we really need to remove inner brackets? |
Yes, because it turns out double brackets have a distinct function in BibTex: From what i'm seeing, braces can be nested indefinitely in BibTex, and BIbTex processors are meant to respect case in deeper-nested braces. This is also mentioned (very briefly) in https://www.bibtex.org/Format/ This is news to me too :( Please have a look at https://mirror.cse.unsw.edu.au/pub/CTAN/biblio/bibtex/contrib/doc/btxFAQ.pdf In case there are other hidden bad surprises like that. |
@opoudjis @ghobona I found that the Anyway, the bibtex-ruby gem doesn't parse the |
@andrew2net In the past we used Given that metanorma handles references to OGC Standards centrally, it is not necessary to implement a new parser for Supporting the properties listed at https://www.bibtex.com/e/entry-types/ would be sufficient. |
@opoudjis @ghobona fixed in relaton-bib v1.16.5. The XML output now is: <bibitem id="VanZyl2009" type="article" schema-version="v1.2.5">
<title type="main" format="text/plain">The Sensor Web: Systems of Sensor Systems</title>
<uri type="doi">10.1080/17538940802439549</uri>
<docidentifier type="isbn">1753894080243</docidentifier>
<docidentifier type="issn">1753-8947</docidentifier>
<date type="published">
<on>2009-03-01</on>
</date>
<contributor>
<role type="author"/>
<person>
<name>
<forename>Terence</forename>
<surname>van Zyl</surname>
</name>
</person>
</contributor>
<contributor>
<role type="author"/>
<person>
<name>
<forename>Ingo</forename>
<surname>Simonis</surname>
</name>
</person>
</contributor>
<contributor>
<role type="author"/>
<person>
<name>
<forename>Graeme</forename>
<surname>McFerren</surname>
</name>
</person>
</contributor>
<note type="howpublished">\publisher{Taylor {\&} Francis},\url{http://www.tandfonline.com/doi/abs/10.1080/17538940802439549}</note>
<series type="journal">
<title format="text/plain">International Journal of Digital Earth</title>
<number>1</number>
</series>
<extent type="page">
<referenceFrom>16</referenceFrom>
<referenceTo/>
</extent>
<extent type="volume">
<referenceFrom>2</referenceFrom>
</extent>
<keyword>Sensor Web</keyword>
<keyword>data acquisition</keyword>
<keyword>digital earth architecture</keyword>
<keyword>earth observation</keyword>
<keyword>systems of systems</keyword>
</bibitem> |
@andrew2net there is a problem with the publisher, it should be parsed? <note type="howpublished">\publisher{Taylor {\&} Francis},\url{http://www.tandfonline.com/doi/abs/10.1080/17538940802439549}</note> |
The issue with In modern BibTeX, The problem is that the ![]() And the I think what we can do here is to update the relaton-bibtex importer to parse |
@ronaldtse I was going to implement the parser, but @ghobona said that we don't need it
|
@andrew2net while OGC standards don't need to be parsed this way, the other BibTeX entries like:
Have |
@ronaldtse so the "Taylor & Francis" is a |
I believe so. |
Implemented in v1.17.2 |
From @cportele and @gbuehler
That said, we already implement BibTeX support in Relaton and we have previously developed the asciidoctor-bibliography plugin.
It shouldn't be difficult to re-implement that support in Metanorma. At least we should let people have a way to migrate BibTeX files into either Relaton files or Metanorma ADoc.
And of course, we already have that ticket here: metanorma/metanorma-standoc#319.
The text was updated successfully, but these errors were encountered: