ietf-tools / xml2rfc

Generate RFCs and IETF drafts from document source in XML according to the IETF xml2rfc v2 and v3 vocabularies
https://ietf-tools.github.io/xml2rfc/
BSD 3-Clause "New" or "Revised" License
71 stars 39 forks source link

fix(text): Update non-ASCII art text #1140

Closed kesara closed 2 months ago

kesara commented 4 months ago

Fixes #617

This change introduces two new command line options for text:

       --rfc-html-archive-url
          Default value: https://www.rfc-editor.org/rfc/
          URL for HTML file archive of RFCs.

       --id-html-archive-url
          Default value: https://www.ietf.org/archive/id/
          URL for HTML file archive Internet-Drafts.
Update text outputs:

For I-Ds:

(Artwork only available as svg: see https://www.ietf.org/archive/id/<docname>.html)

For RFCs:

(Artwork only available as svg: see https://www.rfc-editor.org/rfc/rfc<rfc number>.html)
cabo commented 4 months ago

Is it possible to link to the actual figure?

kesara commented 4 months ago

@cabo figure for artwork is optional. HTML processor adds anchors when there is no figure for artwork. HTML processing and text processing are two separate processors. It is hard to guess the HTML anchors by text processor accurately.