From mboxrd@z Thu Jan 1 00:00:00 1970 From: Henrik Koschitzki Subject: [PATCH] ob-plantuml.el support for non-UML diagrams Date: Thu, 1 Aug 2019 15:57:24 +0200 (CEST) Message-ID: <893890293.19079.1564667844201@office.mailbox.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_19077_528501120.1564667844199" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48879) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htBaL-0000Nc-Lj for emacs-orgmode@gnu.org; Thu, 01 Aug 2019 09:57:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htBaK-0007xv-Io for emacs-orgmode@gnu.org; Thu, 01 Aug 2019 09:57:37 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:56452) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1htBaJ-0007rb-Uy for emacs-orgmode@gnu.org; Thu, 01 Aug 2019 09:57:36 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id DBB87519E9 for ; Thu, 1 Aug 2019 15:57:31 +0200 (CEST) Received: from smtp1.mailbox.org ([80.241.60.240]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id NWOil3cKuOmB for ; Thu, 1 Aug 2019 15:57:25 +0200 (CEST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org ------=_Part_19077_528501120.1564667844199 Content-Type: multipart/alternative; boundary="----=_Part_19078_826238209.1564667844199" ------=_Part_19078_826238209.1564667844199 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello, ob-plantuml encloses the body of PlantUML ( http://plantuml.com) diagram code with @startuml/@enduml clauses. Recent versions of PlantUML support non-UML diagrams like gantt, mindmap and others that needs to be enclosed with @startgantt/@endgantt and @startmindmap/@endmindmap clauses. I created a patch that only inserts @startuml and @enduml if the body does not already starts with the string "@start". This patch allows the execution of existing UML diagrams without @startuml/@enduml as well as non-UML diagrams that contain any @start-/@end- clause. Regards Henrik Koschitzki ------=_Part_19078_826238209.1564667844199 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
Hello,
ob-plantuml encloses the body of PlantUML ( http://plantuml.com) diagram code with @startuml/@enduml clauses. Recent versions of PlantUML support non-UML diagrams like gantt, mindmap and others that needs to be enclosed with @startgantt/@endgantt and @startmindmap/@endmindmap clauses. 

I created a patch that only inserts @startuml and @enduml if the body does not already starts with the string "@start". This patch allows the execution of existing UML diagrams without @startuml/@enduml as well as non-UML diagrams that contain any @start-/@end- clause.

Regards

Henrik Koschitzki
------=_Part_19078_826238209.1564667844199-- ------=_Part_19077_528501120.1564667844199 Content-Type: application/octet-stream; name=0001-ob-plantuml-Allow-different-start-end-clauses.patch Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=0001-ob-plantuml-Allow-different-start-end-clauses.patch X-Part-Id: a7bcaafcee124720bcfcf836b1be7a4c RnJvbSBiZWZhNmRiOTg1Nzk5NTZkZTMyMTQ4NjU1NzVmMzg3MzU4NjE4MjA0IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBIZW5yaWsgS29zY2hpdHpraSA8aC5rb3NjaGl0emtpQG1haWxi b3gub3JnPgpEYXRlOiBUaHUsIDEgQXVnIDIwMTkgMTU6MDM6NTUgKzAyMDAKU3ViamVjdDogW1BB VENIXSBvYi1wbGFudHVtbDogQWxsb3cgZGlmZmVyZW50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wbGFudHVt bCAoYm9keSBwYXJhbXMpCiAgICJFeGVjdXRlIGEgYmxvY2sgb2YgcGxhbnR1bWwgY29kZSB3aXRo IG9yZy1iYWJlbC4KLS0gCjIuMjIuMC53aW5kb3dzLjEKCg== ------=_Part_19077_528501120.1564667844199-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Fraga, Eric" Subject: Re: [PATCH] ob-plantuml.el support for non-UML diagrams Date: Thu, 1 Aug 2019 15:18:43 +0000 Message-ID: <87wofwzzfy.fsf@ucl.ac.uk> References: <893890293.19079.1564667844201@office.mailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36251) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htCqt-0006MV-5E for emacs-orgmode@gnu.org; Thu, 01 Aug 2019 11:18:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htCqs-0001EB-A8 for emacs-orgmode@gnu.org; Thu, 01 Aug 2019 11:18:47 -0400 Received: from mail-eopbgr80108.outbound.protection.outlook.com ([40.107.8.108]:59775 helo=EUR04-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1htCqr-0001DU-Vl for emacs-orgmode@gnu.org; Thu, 01 Aug 2019 11:18:46 -0400 In-Reply-To: <893890293.19079.1564667844201@office.mailbox.org> (Henrik Koschitzki's message of "Thu, 1 Aug 2019 15:57:24 +0200 (CEST)") Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Henrik Koschitzki Cc: "emacs-orgmode@gnu.org" Thanks for this. I've not tested but I appreciate the head's up on the new features in plantuml! --=20 Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-399-g4e6222 From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: Re: [PATCH] ob-plantuml.el support for non-UML diagrams Date: Mon, 07 Oct 2019 10:54:44 +0800 Message-ID: <87k19hi7t7.fsf@gmail.com> References: <893890293.19079.1564667844201@office.mailbox.org> Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45865) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHJAe-00015X-HE for emacs-orgmode@gnu.org; Sun, 06 Oct 2019 22:54:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iHJAd-0003f9-Jv for emacs-orgmode@gnu.org; Sun, 06 Oct 2019 22:54:48 -0400 Received: from [220.187.135.75] (port=58360 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iHJAd-0003es-AG for emacs-orgmode@gnu.org; Sun, 06 Oct 2019 22:54:47 -0400 In-reply-to: <893890293.19079.1564667844201@office.mailbox.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Sounds great, is it merged now? Henrik Koschitzki writes: > Hello, > ob-plantuml encloses the body of PlantUML ( http://plantuml.com) diagram code with @startuml/@enduml clauses. Recent versions of PlantUML support non-UML diagrams > like gantt, mindmap and others that needs to be enclosed with @startgantt/@endgantt and @startmindmap/@endmindmap clauses. > > I created a patch that only inserts @startuml and @enduml if the body does not already starts with the string "@start". This patch allows the execution of existing > UML diagrams without @startuml/@enduml as well as non-UML diagrams that contain any @start-/@end- clause. > > Regards > > Henrik Koschitzki -- [ stardiviner ] I try to make every word tell the meaning what I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3