From nobody Mon Feb 20 12:15:38 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 4PL1bL31Rsz3sjCT for ; Mon, 20 Feb 2023 12:15:42 +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 4PL1bL2S5rz3PZT; Mon, 20 Feb 2023 12:15:42 +0000 (UTC) (envelope-from bofh@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676895342; 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=2xHYixo2IQ7kiyQq6Ux5Immw3UKLXk2pUYiWaq2QuY8=; b=Np7/R54jy4WzoF8GMnTmMgvYWRSlZysvrfNfVp7g9ynDPJYp0vzkOtf8autVBkFMXie65i bqXQvLVWNPeUcPEcvU5U00VUn0+qLrbEvKGrrY5I/5Vvb/oHLcxSevSLK8i/OiLv7pJbsp D1bIQ0G7t03RLaQZ+Ypv33hMOZ6ivJV5tAxBwxk5Qqa8vgiwGHNQZehbjv9/QfrbFCNioD thuCd8WaUkQWiHleBuoIi3o82xwY36S9JB4G7HnvhCYFqfpJz3emw0WZPvkyP5VmCuhNZQ slLDTeW57bbDqN0Fwr03kqy81m06EiAGLBIfc0TAxvviSy52a5lBE7T8IiXBxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676895342; 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=2xHYixo2IQ7kiyQq6Ux5Immw3UKLXk2pUYiWaq2QuY8=; b=bL7/K7CU9DExRwVCn3+dbD9kcghat11r0TRE4cLWBrnMjc0vX8zeG7FR+9cMfTz41fw4Z4 qOdb+TiqL0Ql8THqhsO0XNYPpe8ZjDZwltrJY0EIySEDLfhwbU1axv0wE8AlOTfMLnxFAp 9ss/+8P3dg7olSLL4f326vrN7i7P0UB1igebAJJl7IsKw4EvRzp9ZrEHAoZ8Nc2Cc5vzvg NkJJUV3JQP+SvnLUjuIFxgPp83ux6iuR3ckiJSJkZtK9WJ5KeVmiANUMicOFdqxuAz+Zkc CpwUQ662+oJ/C3umymczNpCCxUv0uh1oMWwqQhNk61kWhEkEaeNqNYmfEFFirQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676895342; a=rsa-sha256; cv=none; b=Q40A+nyPnjM4KTr8IQoTHoDbVqxI72yeh8Cv4JoNKZv/C2rMtO+rdx38sTiBMivuPkJEcv UXOS0Yh23LsHcm6mCTEcZ/UG2viLqUjWEd+USL7jkKwKjJ6/biJK69Z3gE7j/p9WMsoBb8 UXSZ0FzMSWobt/UHJanW0r5PHYS9ugLO6npFwVSvEp010YB5zvnYkHQ/AUkKzstK+pq26D zV9KRDhK6hUtWj0pg1Is3VQGGKmb20+i55YLoW3+07yT3RZvkOUM4+3f/rNfi5DjbYGPQ9 raOkPEMZLyaT7Wa1abN69CZ1XnDrumEKYzSy7gF8fj30ddqNfJ9q5sqehVpN7w== 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 4PL1bK5wklz14h8; Mon, 20 Feb 2023 12:15:41 +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 0b8bcffd (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 20 Feb 2023 12:15:39 +0000 (UTC) From: Moin Rahman Message-Id: <6AC7F257-455A-49CC-85D2-E5F2329AD0DA@freebsd.org> Content-Type: multipart/alternative; boundary="Apple-Mail=_C4104F0D-42E9-4F84-9BAE-D2B04E881BE0" 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 13:15:38 +0100 In-Reply-To: Cc: freebsd-doc@freebsd.org To: Chris Watson References: X-Mailer: Apple Mail (2.3696.120.41.1.1) X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_C4104F0D-42E9-4F84-9BAE-D2B04E881BE0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > 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 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)= --Apple-Mail=_C4104F0D-42E9-4F84-9BAE-D2B04E881BE0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

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)
= --Apple-Mail=_C4104F0D-42E9-4F84-9BAE-D2B04E881BE0--