From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qJR1NLEf22GY1wAAgWs5BA (envelope-from ) for ; Sun, 09 Jan 2022 18:47:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SORBLbEf22FxUwAAG6o9tA (envelope-from ) for ; Sun, 09 Jan 2022 18:47:29 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 80073312FB for ; Sun, 9 Jan 2022 18:47:29 +0100 (CET) Received: from localhost ([::1]:51378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6cHv-0006VX-Ay for larch@yhetil.org; Sun, 09 Jan 2022 12:47:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6cHY-0006V7-G1 for emacs-orgmode@gnu.org; Sun, 09 Jan 2022 12:47:04 -0500 Received: from ciao.gmane.io ([116.202.254.214]:38458) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6cHX-0002wy-7J for emacs-orgmode@gnu.org; Sun, 09 Jan 2022 12:47:04 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1n6cHT-0005hb-LU for emacs-orgmode@gnu.org; Sun, 09 Jan 2022 18:46:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Andy Moreton Subject: Re: ob-plantuml: Proposal to add 'jar-args' customizable variable Date: Sun, 09 Jan 2022 17:46:52 +0000 Message-ID: <86ee5gvm2b.fsf@gmail.com> References: <5d7eba13-b717-a12a-5f89-7d2c9414917e@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (windows-nt) Cancel-Lock: sha1:VOdfnCf/b/DmZ/N2Q8LQm9ww2Bg= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641750449; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=F6migL4BpgrPoLqc+7Bu3f7fNTuiynpJAV2mA0D8+2g=; b=UVBT8VdHz7LlUSBPmclBZVicvFlllPf/7Fx4HmnHLgl2sPo6cRzqRqDsEJW6FK7/+oUCA7 oeBHnh0UKZZNOHQbE+A2STnMs3XeEX9nCaDe7yUDeI/gf9czZkvBC6I0BvwGR/XxY8gC1o YWb9qHwHqWbupfqsgys/eEsmUsYBQhM2jH3bqw0hmKqsqaftWLo0uPFwK6Ls7Nat5xrOff M5RiLT7jp0/K/oW3CHgw0ufT5HwnGV3PeGZQw2rsiWhbd1wfxPlDr8wqmRTWaAZJF6Je1E vTl2dNFTDiPyZ9yJXQfPiR3nXwtQYRFTwBcmYhZjBKw4ZoiPdAp1umYo0gvSxg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641750449; a=rsa-sha256; cv=none; b=RL0M/+PomF3FUkGYcqvGN0p6zWCAfT5UTuExEO9eu55nZB3xhkXOt1UAetJadoZLg96ixb keQpY+AumPaZsfprjHTOS+LWK30odGVvRJ3TgjWAa8hob7GmTSVRNjHZf6sZrAEXBnz0Sz 434U/guZMgDTEsISshBGqc10lwt1GfkkZQGTTz62HTEGfck6glG3im2UZ6zR0QrsOz2ctO Fou6jLSP9CbFwaLxeMJ0hc/qJ4X1orN5cKEP5Ke49RsHdof6peY/4ja/F17FX6e6qO5YUA 00AMAhs0ebmYhvO23bn4wTwM9c5rJvp2ZA/3tvCtlBNCElleA/NdlJLRCKIe+Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.51 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 80073312FB X-Spam-Score: -2.51 X-Migadu-Scanner: scn1.migadu.com X-TUID: V0CdeH5HIsyi On Fri 03 Dec 2021, Dejan Josifović wrote: > Hi all, > > I use PlantUML integration in org-mode for years now, but only > recently I came across some unwanted behavior. > > Using PlantUML from jar (org-plantuml-jar-path variable) and latest > org-mode, I wanted to render a diagram containing some Unicode > characters (such as '⊥' and '∀'), but the end image had some gibberish > instead. However, > trying this from a standalone file using plantuml-mode[1], the end image > rendered correctly. Here is some sample code which can reproduce the issue: > > #+BEGIN_SRC plantuml :file ./test.png > A -> B: ∀ characters display correctly is ⊥ > #+END_SRC > > Comparing ob-plantuml.el and plantuml-mode.el files I found what is the > problem. plantuml-mode has a customizable variable for specifying > arguments when using PlantUML from jar (plantuml-jar-args (list > "-charset" "UTF-8" ). The charset arguments is what is needed for > the images to render correctly (I confirmed it by implementing it locally). > > I was wondering why such variable doesn't exist in ob-plantuml. I have > searched the mailing list archives, confirmed bugs and help page and > couldn't find anything related. I use this snippet to set the ob-plantuml.el args to match the plantuml-mode.el settings: (setf (alist-get :java org-babel-default-header-args:plantuml) (mapconcat #'identity plantuml-java-args " ") (alist-get :cmdline org-babel-default-header-args:plantuml) (mapconcat #'identity plantuml-jar-args " ")) Hope that helps, AndyM