From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gI45F8+gqmH3SAAAgWs5BA (envelope-from ) for ; Fri, 03 Dec 2021 23:57:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id ygb2Es+gqmGQaAAA1q6Kng (envelope-from ) for ; Fri, 03 Dec 2021 22:57:19 +0000 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 0000D28151 for ; Fri, 3 Dec 2021 23:57:18 +0100 (CET) Received: from localhost ([::1]:58348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtHUT-0004Jl-No for larch@yhetil.org; Fri, 03 Dec 2021 17:57:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtHTx-0004JT-5Z for emacs-orgmode@gnu.org; Fri, 03 Dec 2021 17:56:45 -0500 Received: from [2a00:1450:4864:20::533] (port=41741 helo=mail-ed1-x533.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtHTv-0005xh-8Z for emacs-orgmode@gnu.org; Fri, 03 Dec 2021 17:56:44 -0500 Received: by mail-ed1-x533.google.com with SMTP id g14so16976338edb.8 for ; Fri, 03 Dec 2021 14:56:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:content-language:to:from :subject:content-transfer-encoding; bh=KPLQad5j0U5RoDS4+7E1yz3Nm4jk7CAA9ReVghwF25I=; b=BMDPpMSANvAd7hGusxrPP+KlipvMYKuhocQ1F/Duuw9KEodX+BI05lPTvsjJ9/uNpE y3Umj4Edpc8sZ3t0oebm4haBYggP+xizxrshva3mm9kS9CMqYe7MJLSqOYlvpo0/Ayzn a6vkZml6FuiQtIgz3d1PaRO6lI8x4jnNoD3breIiqgSJonFK3ItqTQbBlWa/0TOfY1Tm CtL9HFK3Mra25kYFpstWdnUz95PzmtgismPG9NfWAv+46Ag8/nf/VcTun2G/SPyh/2pX li8OaRrM4gYdVTliF7a+Cb2+yMD9s3pYotn0BGEbjcaKWMElt1SwB9CrijnCxwsya5/Z 3FjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:from:subject:content-transfer-encoding; bh=KPLQad5j0U5RoDS4+7E1yz3Nm4jk7CAA9ReVghwF25I=; b=kiI0pXWY4pZx+/g4EiqLrYZ4vQ5Eb/F3nwkUIvcFdCo57OisRXbym+82RmueToIHnX PxPdNh0nBAB0LZENiuXXIpS1ubxVgtpCeJ68R4QdE+ygrMnqeF5klaXUqees6JHIGhWI c3adwBnoltyE1LjdNVtqrjT++igT8O4KtuNK2EBPGF6E56gETK0AlKYHZFhWp77xG8D+ NDEyUYvpjxrzEwgAaIpHTdkn4+KPvdp/6E/v0yRuNJJC34nyHXEGxRE3IMnjOyiTnYeh J20zsMjil/qtQ6Ek7C6efepqJLNtHoSHo2vXRQfgMXoSlFCc2Er8OxYZdYXIkms6jR24 iwJQ== X-Gm-Message-State: AOAM533S0wrTd2MvJ8B2SN9pDYijlwAY9zdtQIaoO0klbUWo1pDCEFCm CLIiUnoaWXuTebBXMamCzz/Rg1eJqnhn1A== X-Google-Smtp-Source: ABdhPJzhlPc+4Cqe0up+O0ye+AkuqIDax2ZuVKGzKN/0IFxOEK/lDEN1irsnHxvfcyoEM/2/h6WSPQ== X-Received: by 2002:a17:906:c111:: with SMTP id do17mr26879250ejc.284.1638572200995; Fri, 03 Dec 2021 14:56:40 -0800 (PST) Received: from [10.9.18.6] ([146.70.54.27]) by smtp.gmail.com with ESMTPSA id w5sm2926578edc.58.2021.12.03.14.56.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Dec 2021 14:56:40 -0800 (PST) Message-ID: <5d7eba13-b717-a12a-5f89-7d2c9414917e@gmail.com> Date: Fri, 3 Dec 2021 23:56:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Content-Language: en-US To: emacs-orgmode@gnu.org From: =?UTF-8?Q?Dejan_Josifovi=c4=87?= Subject: ob-plantuml: Proposal to add 'jar-args' customizable variable Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::533 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::533; envelope-from=www.paranoidtimes@gmail.com; helo=mail-ed1-x533.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, 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=1638572239; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=KPLQad5j0U5RoDS4+7E1yz3Nm4jk7CAA9ReVghwF25I=; b=YBYT2QDB4ZDTJ0Kn/1HQ7fs6pO5O8qv/8IQ/6KUkLIy0/SGc0PwsrqZWNMA50ZmOH+U6Ok mHzbu4Ev4c7/NVc6QBNSyaVW92uH0xEE/yJ2MbbTyAZT5S5xeWUY67SganmH+bjlDZObS+ oPTogGmzyRMckR+eZ/8y6oF7gFo3LRcWd2wEEvKGLgAhfsV58+Ahc5cPxHsp4zHgJzVldb BNZGnlvcxGzMJqmbzz8LY42mOhKgy078UYSxMzvfLf2GP7hk++rC3vB7nSZIRO5W+wC5zJ OTm3WUJyxMNXnhQxhEL0tQZBi6Imbadqq5b3Q/hEhVM313ETlSqntZAyZflHMA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638572239; a=rsa-sha256; cv=none; b=i9T5s+65JErlUI5bu5mof/ZZysDDJl02oKLcHbHi95EBk+UwAHilXHJapPEMkriLmfvgwJ Yhrp2RqdC1gL4QtmN6VpglcIsFH/TVGAn+z3Uhu2e+RFdjUmNdPRbZSlCqnPOxqe98Oc/e enmtV39JFGRB779TUzQ1RNla58eKvoWd8Bg3pOqMUIQV0b2YgXT4AhnXpQa0HZXNkzZ70h WcrYumPdQ2Gw5iOXvnE1u+x+1icf9/xdH0bIGvj/H1vLrCthcjKu8AHqoYTjKz5YfVCA3t DRAmA+WFOinCHsk0HlR8FUoe9iZgCWuKqqx7pzLtPlnvpdqdRiuGcb6dn54tNA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=BMDPpMSA; dmarc=pass (policy=none) header.from=gmail.com; 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: -4.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=BMDPpMSA; dmarc=pass (policy=none) header.from=gmail.com; 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: 0000D28151 X-Spam-Score: -4.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: a1APtP9Zy87T 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. Does anyone from the community know if such variable was deliberately omitted? If so, what is the reason? If this is indeed a wanted feature, I will be more than happy to provide a patch. [1] https://github.com/skuro/plantuml-mode Thanks and regards, -- Dejan Josifović | Дејан Јосифовић Software engineer | Софтверски инжењер https://theparanoidtimes.org () ascii ribbon campaign /\ www.asciiribbon.org