From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cecil Westerhof Subject: English and Dutch version of a Graphviz picture Date: Sat, 1 Sep 2018 12:38:54 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000032bdcc0574ccea4a" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fw3VH-00043K-4q for emacs-orgmode@gnu.org; Sat, 01 Sep 2018 06:51:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fw3Iu-0007m3-6o for emacs-orgmode@gnu.org; Sat, 01 Sep 2018 06:38:57 -0400 Received: from mail-oi0-x229.google.com ([2607:f8b0:4003:c06::229]:38411) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fw3It-0007lp-Ug for emacs-orgmode@gnu.org; Sat, 01 Sep 2018 06:38:56 -0400 Received: by mail-oi0-x229.google.com with SMTP id x197-v6so26076406oix.5 for ; Sat, 01 Sep 2018 03:38:55 -0700 (PDT) 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 --00000000000032bdcc0574ccea4a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I have the following: #+BEGIN_SRC dot :file Graphviz/habitLoop.png :cmdline -Kfdp -Tpng digraph habitLoop { bgcolor =3D steelblue edge [penwidth =3D 4.0 ] node [fontcolor =3D white, fontsize =3D 60, style =3D filled] spur [pos =3D "4,4!" color =3D red] habit [pos =3D "7,1!" color =3D darkgreen] reward [pos =3D "1,1!" color =3D blue] spur:e -> habit:n habit:w -> reward:e reward:n -> spur:w copyright [ pos =3D "4,.75!" color =3D steelblue, fontcolor =3D black, fontsize =3D 14, label =3D "=C2=A9 Cecil Westerhof\nTimeManagement@Deceb= al.nl", shape =3D plaintext ] spur [label =3D "Spur"] habit [label =3D "Habit"] reward [label =3D "Reward"] } #+END_SRC But I also want to have a Dutch version. So I also have: #+BEGIN_SRC dot :file Graphviz/gewoonteLoop.png :cmdline -Kfdp -Tpng digraph habitLoop { bgcolor =3D steelblue edge [penwidth =3D 4.0 ] node [fontcolor =3D white, fontsize =3D 60, style =3D filled] spur [pos =3D "4,4!" color =3D red] habit [pos =3D "7,1!" color =3D darkgreen] reward [pos =3D "1,1!" color =3D blue] spur:e -> habit:n habit:w -> reward:e reward:n -> spur:w copyright [ pos =3D "4,.75!" color =3D steelblue, fontcolor =3D black, fontsize =3D 14, label =3D "=C2=A9 Cecil Westerhof\nTimeManagement@Deceb= al.nl", shape =3D plaintext ] spur [label =3D "Prikkel"] habit [label =3D "Gewoonte"] reward [label =3D "Beloning"] } #+END_SRC The only difference are the three label statements. Can this be done more efficient? Because now I need to do updates at two places. That is an accident waiting to happen. --=20 Cecil Westerhof --00000000000032bdcc0574ccea4a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: base64 PGRpdiBkaXI9Imx0ciI+PGRpdiBkaXI9Imx0ciI+PGRpdiBkaXI9Imx0ciI+PGRpdiBjbGFzcz0i Z21haWxfZGVmYXVsdCIgc3R5bGU9ImZvbnQtZmFtaWx5OiBjb3VyaWVyXCBuZXcsIG1vbm9zcGFj ZTsiPkkgaGF2ZSB0aGUgZm9sbG93aW5nOjxicj4jK0JFR0lOX1NSQyBkb3QgOmZpbGUgR3JhcGh2 aXovaGFiaXRMb29wLnBuZyA6Y21kbGluZSAtS2ZkcCAtVHBuZzxicj5kaWdyYXBoIGhhYml0TG9v cCB7PGJyPsKgwqDCoCBiZ2NvbG9yID0gc3RlZWxibHVlPGJyPsKgwqDCoCBlZGdlIFtwZW53aWR0 aCA9IDQuMCBdPGJyPsKgwqDCoCBub2RlIFtmb250Y29sb3IgPSB3aGl0ZSwgZm9ud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