[Rfc-markdown] 1.3.8: supporting plantuml in -3 mode

Carsten Bormann <cabo@tzi.org> Sun, 31 May 2020 08:26 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: rfc-markdown@ietfa.amsl.com
Delivered-To: rfc-markdown@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1A4753A1335 for <rfc-markdown@ietfa.amsl.com>; Sun, 31 May 2020 01:26:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.895
X-Spam-Level:
X-Spam-Status: No, score=-1.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DC_PNG_UNO_LARGO=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2CDCs8RikA7t for <rfc-markdown@ietfa.amsl.com>; Sun, 31 May 2020 01:26:33 -0700 (PDT)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6A58B3A1334 for <rfc-markdown@ietf.org>; Sun, 31 May 2020 01:26:33 -0700 (PDT)
Received: from [192.168.217.116] (p5089ae91.dip0.t-ipconnect.de [80.137.174.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 49ZWc71MypzyYM; Sun, 31 May 2020 10:26:31 +0200 (CEST)
Content-Type: multipart/alternative; boundary="Apple-Mail=_72F289E3-D1E3-4C0D-AF44-C49D0BC98508"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <BDC6F700-9DF3-42E2-80C6-DB278A2ABB1A@tzi.org>
Date: Sun, 31 May 2020 10:26:30 +0200
X-Mao-Original-Outgoing-Id: 612606390.675624-57636fc05ff187c0793882b9f756a7a5
Message-Id: <602E7DC9-2181-4926-B5C6-A921673C8F52@tzi.org>
References: <E1jduEw-0007if-7I@durif.tools.ietf.org> <93E5295E-CE96-4121-B3F5-C04540D542FD@tzi.org> <D6806E5D-2B6E-4464-9126-44F3F5C808F7@tzi.org> <1a5cfced-2718-0a4a-41ef-b366543ec5a2@gmail.com> <3E78C586-228A-457E-BADD-D66117FFD1C0@tzi.org> <D00FAAF2-E308-462C-9E35-825DB8DC2710@tzi.org> <20200531060040.GA136848@miek.nl> <BDC6F700-9DF3-42E2-80C6-DB278A2ABB1A@tzi.org>
To: rfc-markdown@ietf.org
X-Mailer: Apple Mail (2.3608.80.23.2.2)
Archived-At: <https://mailarchive.ietf.org/arch/msg/rfc-markdown/iaG7RtWNfpUUGyMleDUksREMt1U>
Subject: [Rfc-markdown] 1.3.8: supporting plantuml in -3 mode
X-BeenThere: rfc-markdown@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "rfc-markdown is a discussion list for people writing I-Ds and RFCs in Markdown and the authors of the tools used for that." <rfc-markdown.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rfc-markdown>, <mailto:rfc-markdown-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rfc-markdown/>
List-Post: <mailto:rfc-markdown@ietf.org>
List-Help: <mailto:rfc-markdown-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rfc-markdown>, <mailto:rfc-markdown-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 31 May 2020 08:26:37 -0000

On 2020-05-31, at 09:11, Carsten Bormann <cabo@tzi.org> wrote:
> 
> On another note, I just found plantuml’s ascii_art mode; if sequence diagrams are good enough, this might solve the plaintext vs. svg issue one has with mscgen.  Next on the todo list now…

OK, I also found “skinparam handwritten true”, so it had to be done.

~~~ plantuml-utxt
skinparam handwritten true
actor Alice
database Bob
Alice -> Bob : Hi
Bob -> Alice : Who are you?
Alice -> Bob : Alice
Bob -> Alice : You are in!
~~~

The -utxt means that the ascii_art part of the artset (which isn’t ASCII any more) also is processed by plantuml, a bare plantuml gives you the source in the plaintext version.

-utxt output in Plaintext:


          ┌─┐           ,.-^^-._
          ║"│          |-.____.-|
          └┬┘          |        |
          ┌┼┐          |        |
           │           |        |
          ┌┴┐          '-.____.-'
         Alice            Bob
           │      Hi       │
           │──────────────>│
           │               │
           │ Who are you?  │
           │<──────────────│
           │               │
           │    Alice      │
           │──────────────>│
           │               │
           │ You are in!   │
           │<──────────────│
         Alice            Bob
          ┌─┐           ,.-^^-._
          ║"│          |-.____.-|
          └┬┘          |        |
          ┌┼┐          |        |
           │           |        |
          ┌┴┐          '-.____.-‘

Screenshot from output in HTML below.

Grüße, Carsten