From nobody Mon Feb 20 13:23:25 2023 X-Original-To: freebsd-doc@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PL35X5Pvxz3snpy for ; Mon, 20 Feb 2023 13:23:28 +0000 (UTC) (envelope-from bofh@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PL35X4sb6z3n4Z; Mon, 20 Feb 2023 13:23:28 +0000 (UTC) (envelope-from bofh@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676899408; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FcIbvCBQ0ORYYPBcFVpMUAYyVmywAn7d4KVxa/+Bc/M=; b=vIIn/UN1Q9BtaHnHmXDJbo49EjZrYG/TzpTpEG/102xaiHAb5eLCkUiUzaO2F/wsl4IGlE QJmDfsrcvO/mv/1HJPumaNJritNXBj5+x1TJqEfujqQMq7JXZDV6GFm46y88cMfoCP9G6b 5XlrM9rws9BFrf67aUKQr740eaJ1QOK024eulnzi9ahte2B7AEN1Zt0ph56wgRzZ/ZTHvV YA7KwN2BTqk9rUIpCgka6znn3V6Ve39OlC8DgaV0JCGGKlPZTxjVdDS9KWHCCQxfx/fVHo NNM7nTNr8P1kKjUjyg0Z55VsGSeqLkabNb6eLGyJxU94gO1jZKXcgGvi9WN1HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676899408; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FcIbvCBQ0ORYYPBcFVpMUAYyVmywAn7d4KVxa/+Bc/M=; b=XfadO5CADQ7+6RgPa5uylZR0cVbmwxi8WYW1YIOjdIbTMWegJKfDcJ6ukrwtG2fHrWAS2F uyUoL37PDdkpwOEsnvgiJBt6NOGJ1dtOr4ZUpILd0LOBhsPu/J4CT1NRvFf+O7A+8mnS/d 100gJRJcDEhtiSpXnxn4VMrmDn9IT3rmUoRz2dKb8Kz+aN9u1ndpg0mk0W6IXfHvuNeLIj PoRtWhea6cW2dY0pWKs0m3LzxQbPcrQd8Q1RcovvtHVnrs8nhCMVrK0A2TFXUnPYYIH892 ROdfHa7PfuOhRlWa40R2FTO8DsdQpZmWP8U28IsZL47YWUU08w8FsiOzyGUsAA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676899408; a=rsa-sha256; cv=none; b=xHNH08XE0EB277Cjyv/ckjzsrazcmbfalLsx1dOQ9YTArQ9eVP4XohBg4r6g3R4QvHzYtV cWq6VcpVE+MJELTcwDeOFBkS/InRa3/QioUwfktsfNI7zqQa4mGcIQ4OzoQoLbydx1FOeL gYu5T3Tn03iPz37G1t+0INyyw9sunmS5OJEmUpxR/qjeB4ZTKQSMNd9X201S0k/PdvcSM5 PvzI5LiypzRb50K78VC3LJv+M65N0QTNM17npUdGxrEcc3xkapfE9HO7DuveEOoqEF028Q TOn12iUIZ4ifgjJPS3RhZGa5EAFlWCy6nceyvWL5TvOtJ0Qq6kRxRa6qFZBtmA== Received: from mx.bofh.network (mx.bofh.network [IPv6:2a0d:2787:2::28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.bofh.network", Issuer "R3" (verified OK)) (Authenticated sender: bofh/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4PL35X1V3pz15X5; Mon, 20 Feb 2023 13:23:28 +0000 (UTC) (envelope-from bofh@freebsd.org) Received: from smtpclient.apple (gw.office.cyso.net [95.97.78.194]) by mx.bofh.network (OpenSMTPD) with ESMTPSA id fd5adabc (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 20 Feb 2023 13:23:25 +0000 (UTC) From: Moin Rahman Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_4E09E3FB-20D2-4CD8-9161-D3884F6349CB" List-Id: Documentation project List-Archive: https://lists.freebsd.org/archives/freebsd-doc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-doc@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: Plantuml support in asciidoctor, some uml formats work, others not so much... Date: Mon, 20 Feb 2023 14:23:25 +0100 In-Reply-To: <6AC7F257-455A-49CC-85D2-E5F2329AD0DA@freebsd.org> Cc: freebsd-doc@freebsd.org To: Chris Watson References: <6AC7F257-455A-49CC-85D2-E5F2329AD0DA@freebsd.org> X-Mailer: Apple Mail (2.3696.120.41.1.1) X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_4E09E3FB-20D2-4CD8-9161-D3884F6349CB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Feb 20, 2023, at 1:15 PM, Moin Rahman wrote: >=20 >=20 >=20 >> On Feb 20, 2023, at 6:35 AM, Chris Watson > wrote: >>=20 >> I felt this was the best list to ask about this, if it's not punt me = in the right direction. >> I have a 13.1-RELEASE-p7 jail with all the 'latest' = rubygem-asciidoctor-* pkg's installed. >> I was just starting to experiment with asciidoctor-diagram and I have = noticed that some of plantumls formats work, and some do not. Here are = two simple examples using this command line "asciidoctor -b html5 -o = index.html -r asciidoctor-diagram example.adoc -w":=20 >>=20 >> plantuml that works: >>=20 >> [plantuml, format=3Dsvg] >> .... >> @startuml <> >> User -> (start) >> User --> (Use the application) : Label >> @enduml <> >> .... >>=20 >> <> >> plantuml that does not work: >>=20 >> [plantuml, format=3Dsvg] >> .... >> @startuml >> object London >>=20 >> map CapitalCity { >> UK *-> London >> USA =3D> Washington >> Germany =3D> Berlin >> } >> @enduml >> .... >>=20 >> The latter gives a syntax error. It's lifted directly from the = plantuml wesbite examples so I'm not sure that error is correct? And I = know that @startuml and @enduml *should* be optional in an asciidoc = document when using asciidoctor-diagram. But it fails even without them. >>=20 >> The error is: >>=20 >> [=46rom string (line 4)] >> @startuml <> >> object London >>=20 >> map CapitalCity { >> Syntax error? >>=20 >> Both work correctly in plantuml.com 's demo = server window that lets you enter uml to render. This also happens when = using other formats like yaml or mindmap which is part of plantuml and = asciidoctor-diagram is supposed to support as well. It seems hit or miss = on what formats asciidoctor-diagram is able to render from the main = plantuml.com page. Is this an issue of = asciidoctor-diagram? is it behind in supporting these formats? is it our = port? Can anyone more well versed in the asciidoctor realm explain = what's going on here? >>=20 >> Thank you very much! >>=20 >> Chris >=20 > We have a very old version of rubygem-asciidoctor-diagram. I am = working on upgrading it. Additionally for plantuml you will also require = java installed. >=20 > Kind regards, > Moin(bofh@ with docs@ hat on) I have updated rubygem-asciidoctor to a later version 2.0.0 which is = also old but as we are planning to use this in our documentation project = I am just not taking the big risk of jumping into latest. However please = check and revert. Kind regards, Moin= --Apple-Mail=_4E09E3FB-20D2-4CD8-9161-D3884F6349CB Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

On Feb 20, 2023, at 1:15 PM, Moin Rahman <bofh@freebsd.org> = wrote:



On Feb 20, 2023, at 6:35 AM, Chris Watson <bsdunix44@gmail.com>= wrote:

I felt this was the = best list to ask about this, if it's not punt me in the right = direction.
I have a 13.1-RELEASE-p7 jail with all the = 'latest' rubygem-asciidoctor-* pkg's installed.
I = was just starting to experiment with asciidoctor-diagram and I have = noticed that some of plantumls formats work, and some do not. Here = are two simple examples using this command line "asciidoctor -b html5 -o = index.html -r asciidoctor-diagram example.adoc -w": 

plantuml that = works:

[plantuml, format=3Dsvg]
....
User -> (start)
User --> (Use the application) : Label
plantuml that does not = work:

[plantuml,= format=3Dsvg]
....
@startumlobject London

map CapitalCity = {
 UK *-> London
 USA =3D> = Washington
 Germany =3D> Berlin
}
@enduml
....

The latter gives a = syntax error. It's lifted directly from the plantuml wesbite examples so = I'm not sure that error is correct? And I know that @startuml = and @enduml *should* be optional in an asciidoc document when using = asciidoctor-diagram. But it fails even without them.

The error is:

[=46rom string (line = 4)]
object London

map CapitalCity {
Syntax error?

Both work correctly in plantuml.com's demo server window that = lets you enter uml to render. This also happens when using = other formats like yaml or mindmap which is part of plantuml and = asciidoctor-diagram is supposed to support as well. It seems hit or miss = on what formats asciidoctor-diagram is able to render from the = main plantuml.com page. Is this an issue of = asciidoctor-diagram? is it behind in supporting these formats? is it our = port? Can anyone more well versed in the asciidoctor realm explain = what's going on here?

Thank you very much!

Chris

We have a very = old version of rubygem-asciidoctor-diagram. I am working on upgrading = it. Additionally for plantuml you will also require java = installed.

Kind = regards,
Moin(bofh@ with docs@ hat = on)

I = have updated rubygem-asciidoctor to a later version 2.0.0 which is also = old but as we are planning to use this in our documentation project I am = just not taking the big risk of jumping into latest. However please = check and revert.

Kind regards,
Moin
= --Apple-Mail=_4E09E3FB-20D2-4CD8-9161-D3884F6349CB--