Coder Social home page Coder Social logo

jats-conversion's People

Contributors

c-cooperjones avatar hubgit avatar jjhoyt avatar keisetsu avatar nlisgo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jats-conversion's Issues

Allow code language to be specified

Currently

<preformat preformat-type="code">…</preformat>

will be converted to

<pre><code></code></pre>

To specify the language, e.g. for code highlighting, the output should contain a class="language-* attribute on the code element, e.g. <code class="language-python">.

NLM style checker errors

I receive two errors with the NLM style checker that I don't understand:

  • <ext-link ext-link-type="doi"> validates only if DOI is not given as URL (i.e. with http://dx.doi.org prefix). This is conflicting with the CrossRef DOI display guidelines.
  • Publication dates in a <date> element in <element-citation> raise a warning: date check: date inside history should have date-type attribute with value from [accepted received rev-request rev-recd ], not [].

Both errors are probably not directly related to your tool, but I wanted to check here first (especially feedback regarding the first item).

Support extra media elements in figures

e.g. <media mimetype="video" mime-subtype="mp4" xlink:href="filename.mp4> should be embedded as a "Download video" link, and converted to a video player with JS if the browser supports this format.

Handle person-group in references

e.g.

  <person-group person-group-type="director">
    <name>
      <surname>Wachowski</surname>
      <given-names>A</given-names>
    </name>
    <name>
      <surname>Wachowski</surname>
      <given-names>L</given-names>
    </name>
  </person-group>

Use list-type="simple" instead of list-type="labelled"

Render in ul.
Use list-style-type:none and display: table.
Use display: table-row for li.
Inside each list item, add a div for the label (if there is one), and a div for the content, each with display: table-cell.

Documentation

Shouldn't the README say:

  • Run tests/validate.sh filename to validate a JATS XML file.

e.g. testsinstead of scripts?

Handle software citations in conversion to HTML

Example markup:

<element-citation publication-type="software">
  <person-group person-group-type="author">
    <name>
      <surname>Goddard</surname>
      <given-names>TD</given-names>
    </name>
    <name>
      <surname>Kneller</surname>
      <given-names>DG</given-names>
    </name>
  </person-group>
  <source>SPARKY 3</source>
  <edition>v3.114, Windows</edition>
  <year iso-8601-date="2007">2007</year>
  <publisher-loc>San Francisco</publisher-loc>
  <publisher-name>University of California</publisher-name>
  <comment>Available from: <uri>http://www.cgl.ucsf.edu/home/sparky/</uri></comment>
</element-citation>

Handle multiple reference lists when generating CrossRef XML

e.g. a "further reading" list

Rather than including all reference lists when submitting citations to CrossRef, assume that the first ref-list is the list of cited articles and that any others are supplementary and should not be submitted.

It may be possible to specifically include/exclude ref-list elements based on content-type attribute, if needed.

Remove the <main> element

Instead of article > .body > main > section, just have article > section.

Need to assess whether scripts need some indicator of the body of the article.

Add srcset and sizes attributes to figure img tags

To allow browsers to choose the most appropriate figure image file to download, add the srcset attribute to specify image file sizes and the sizes attribute to specify rendered image sizes at different screen widths.

Improve support for software citations

e.g. for <element-citation publication-type="software">, when <source> and <uri> are present, without <article-title> or <comment>:

<element-citation publication-type="software">
  <person-group person-group-type="author">
    <name><surname>Pinheiro</surname><given-names>J</given-names></name>
    <name><surname>Bates</surname><given-names>D</given-names></name>
    <name><surname>DebRoy</surname><given-names>S</given-names></name>
    <name><surname>Sarkar</surname><given-names>D</given-names></name>
    <collab>R Core Team</collab>
  </person-group>
  <source>nlme: linear and nonlinear mixed effects models</source>
  <edition designator="3.1-121">R package version 3.1-121</edition>
  <uri>http://cran.r-project.org/package=nlme</uri>
  <year>2015</year>
</element-citation>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.