Internet-Draft SVG Tests March 2020
Fossati Expires 14 September 2020 [Page]
Workgroup:
None
Internet-Draft:
draft-fossati-svg-test-02
Published:
Intended Status:
Experimental
Expires:
Author:
T. Fossati

SVG Tests

Abstract

This memo is for experimenting with SVG in the context of RFC production.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

This Internet-Draft will expire on 14 September 2020.

Table of Contents

1. Introduction

This memo is for experimenting with SVG in the context of RFC production.

This document assumes a kramdown-rfc2629 based editing flow.

1.1. Conventions used in this document

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

1.2. Tools

Install goat and svgcheck (Go and Python are obvious preconditions):

$ go get github.com/blampe/goat
$ pip install svgcheck

Install kramdown-rfc2629 (at least 1.3.2):

# gem install kramdown-rfc2629 -v '>= 1.3.2'

2. Draw

Two options:

    ~~~ goat
     .-.
    |o o|
   C| | |D
    | - |
    '___'
    ~~~
    ~~~ goat
    {::include my-diagram.txt}
    ~~~
    {: #dia-1 title="My Diagram"}

3. Build

To go from markdown to XML, HTML and TXT:

$ kdrfc -3h draft-fossati-svg-test.md
$ xml2rfc --preptool --v3 draft-fossati-svg-test.xml

The "prepped" file, draft-fossati-svg-test.prepped.xml, can now be submitted to the datatracker.

4. Examples

4.1. Hello World

! ` ` 0 0 , ) Y o

4.2. An Inlined Sequence Diagram

e g i i r i i ) R q g S g t C n o i ~ w E e e E n i C d < s f n g ~ f t r d e h t t u O i d S a f t i r e [ . t o i u S c ( e t a D d n l e i i u r l e e z u e t u v v a e r ) o n r e e E e n ~ l G h n t t r i m c # c e a S n C i t r n t i t s n a [ g r ~ n ~ S ' o n r ~ > i a S n i s 1 a k c i t r t e c ( 2 a a a ] d h ~ ) i d T t I e t a a l r e t e O N s p e a i . r n > a i T e t i a u c a # # e d u a u t u t t A o d a e r C V t r R c n i t R C l r t o u h e e e u n u e i a e i A t o c c r y w g ~ A ( R f e i C m e t a S d c a ~ n e u T e a n d i c i l i e a e . A t n e e i S i i t e O ~ a t n C r d R - f c i r n A n A s G e < t f ] n w R s c T S e S t e t e ~ r k e u A ~ a i A g i A < G S [ o w S ~ t T v d n r R c > t t n t ] e s t C T a N u ~ s ~ c C i c e

4.3. A Sourced Box and Arrows Diagram

A 1 l A C 6 e S R S 5 A P l i S 4 r T S 1 e H T A S l e 3 2 e T A P l s 7 c C R T v E T e M T A d e l R H T 2 R P S P d T c d i
Figure 1: STIR Delegation Flow

5. IANA Considerations

No requests are made to IANA.

6. Security Considerations

There are none.

7. Acknowledgments

Yaron for pointing out the current limitations in the tooling and providing the workaround. Carsten for working the kramdown magic.

8. Normative References

[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/info/rfc2119>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/info/rfc8174>.

Author's Address

Thomas Fossati