Giter VIP home page Giter VIP logo

Comments (7)

ronaldtse avatar ronaldtse commented on September 5, 2024

I think we should allow RFC entity directives just like MMark does so that we donโ€™t need to pull in the RFC references, but allow xml2rfc to do it.

I have already been downloading RFC references from this site and itโ€™s really annoying.

from asciidoctor-bibliography.

opoudjis avatar opoudjis commented on September 5, 2024

This would mean that, whenever a preformatted reference was known to be available, the gem would need to insert not the preformatted reference in the biblio, but the following:

In the stylesheet of the XML document:

<!ENTITY RFC2119 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml">

and in the bibliography itself:

&RFC2119;

The asciidoctor-rfc would presumably have to have the smarts of rearranging the XML, recognising the entities in the bibliography, and inserting the corresponding entity definitions into the XML stylesheet. (The different locations of the URLs should be inferrable from the anchor text prefix.) Paolo, ascii-bibliography would still need to realise that the entity &RFC2119; corresponds to a citation with anchor RFC2119.

from asciidoctor-bibliography.

ronaldtse avatar ronaldtse commented on September 5, 2024

When asciidoctor-rfc sees a references like <<RFC1234>> or <<I-D.author-topic-num>> (or we give it some prefix, e.g., <<ietf:RFC1234>>, then this reference should be inferred to be an external one, and:

  1. Rendered in the XML stylesheet as <!ENTITY...>
  2. Rendered inside the <references> section
  3. Known by asciidoctor-bibliography that the reference is external.

@opoudjis It's hard to wrap this around my head right now... ๐Ÿ˜‰

from asciidoctor-bibliography.

opoudjis avatar opoudjis commented on September 5, 2024

I can do all of this in isolation from asciidoc-bibliography; it's the interaction with asciidoc-bibliography that I'm worried about.

from asciidoctor-bibliography.

opoudjis avatar opoudjis commented on September 5, 2024

Done in asciidoc-rfc.

from asciidoctor-bibliography.

paolobrasolin avatar paolobrasolin commented on September 5, 2024

I think I might be missing some points. I'll get back to speed with the changes asciidoctor-rfc and report back with some questions.

from asciidoctor-bibliography.

opoudjis avatar opoudjis commented on September 5, 2024

metanorma/asciidoctor-rfc#86 . In accordance with that ticket, the scope of asciidoctor-biblio would be reduced to BibXML/RFC XML conversion...

from asciidoctor-bibliography.

Related Issues (20)

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.