From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/18044 Path: news.gmane.org!.POSTED!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: Parsing entities in org input Date: Fri, 18 Aug 2017 23:27:57 +0200 Message-ID: <87ziawtvky.fsf@zeitkraut.de> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1503091708 31125 195.159.176.226 (18 Aug 2017 21:28:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 18 Aug 2017 21:28:28 +0000 (UTC) Cc: Pandoc discuss discuss To: Axel Kielhorn Original-X-From: pandoc-discuss+bncBCZJF7XJTILRB55X3XGAKGQEBUFVL6Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Aug 18 23:28:24 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-wr0-f191.google.com ([209.85.128.191]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1diooT-0007W5-Dy for gtp-pandoc-discuss@m.gmane.org; Fri, 18 Aug 2017 23:28:17 +0200 Original-Received: by mail-wr0-f191.google.com with SMTP id p14sf832567wrg.1 for ; Fri, 18 Aug 2017 14:28:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1503091704; cv=pass; d=google.com; s=arc-20160816; b=Do86juHGJlGWGgoROUHDfSyNlBf4uX5KIoSKLJTVdq4gtmsO1Ud700zfJ7YVuDTNgb LsJfRFAfTdaQVxyO5taa5jit/yTGSTMM8Utv/ASqImFyIXQlKedoPotSQzfRm5PaVCui QSuzdnJNO7W7XI//RbayBrZF6LdTrtsFn9vBPrub2ZjVgJN7JDD+lsrVcgnj4hKh2loI bjkNk4KJBMvx3TO/mZchrTxpM34T2fWbX/YwXyVctU/Nd1A4Qh5TxbGvrQVa80YxLdz/ j8wR2vnPCp3HFgJ233RDaURGqXMWEQJdv2yeGN9PQq1us+r2cKSGKOyN/AjVyw83lcFy LlWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=4khzCXc8iSkfzgSSjwdMAYfzAUlv0E6tyHNbEfq4q8o=; b=MLEjzIlfFzlSWk4JWDy+gikDWGdRGBOEVpoCnMXOSh1H4uEIzEkyj66uDeqqB1XFgz NHTP5nX2MNETmBEe1HqxIrEFPpUjWaTsMF5MYoLeOAmEtMdNRvsl86Wq56QvEnqL5Qdh aTJRis+gcPYPCR8bthWtk6MosFjUKSRE73HxQikpVch75HEyfLgbTjmGvRgunD4GlPiR mv82N+4bg8MbvJxHUDlN+fi5KgmSljb2dkcWBvQWKMJkdjWSW6hdYZeFoyG5zkUqKd33 IoAsROl+a5e8T9xLtbqyf9cb4O72KRgDT/YpkheRyPuULisrmgoIGH1Gr67+VEA0IK1N 02hw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.60.212 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeitkraut.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=4khzCXc8iSkfzgSSjwdMAYfzAUlv0E6tyHNbEfq4q8o=; b=ezhSI2ZUTvJMVIoIh9VWQkKgwP1ychcnNZ+4ZoodlbsmNz/Gj3B1mLwqHuXA4mhkYF DLIGtBxK/fUrxE0SnwW8iytpQbW5pHloO2ZD4cfxGPVk6Fe2jkphgBUCIL5ncbIQnD8v bRiSYFWxhQXopLLQEo6QS5LfKChX+ghzeKUDTlRDse3ggMmZcxsfe0HNzMF4MpBmrobg jFoReh/tyAAWxK6LTbfHrUYXrGZ2SawdBfdQZgy0NCllr7EH4wqkgju6c8id6S/JE7rW KL5RfpgD5j8NIvDbeagY1rgV7RuIkSkQ17Pu2RqKv5xtAp1fO0P/J+CcLqLo7Stfhxga Aznw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:references:date :in-reply-to:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=4khzCXc8iSkfzgSSjwdMAYfzAUlv0E6tyHNbEfq4q8o=; b=q481G1BquI2cq/SxMfCRIa2YfBDdWKe0lgtQntJm5qU7yHnQehICKmAmsNr2ur6/gg o+qGlKl76vbg4XC3ECfcq5vxTAWY1bsrmHrXzgqbrXVVSQb1oyICVdBan3eeXesYfTc3 WlZ0jAcAnQaTwQyx3f+wiVRnpYMvBFJ+XGj/hyXn5pLQgAm7h8x6UQKRH5FoXcSZOP/B ah2VGgLunvqpUpchYscwS2eM+gE2DmjAQKLUYY1Ry/Xw5NyNqTC3551vp+yJ9wbY0/FV QhXBSx/lLQ8Gi7FyeB/bgmagxPVd29DIXKY6q3yq7bhdvHy0MXppaHk0SV9h3VS/Jqn3 VYHA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AHYfb5hsE4/kKS7Of9TIxs558QV5P+Q8DLfC1Yr1xFoL6q+bwxo0cuZh elLaQZAGOimHhA== X-Received: by 10.28.153.143 with SMTP id b137mr5141wme.5.1503091704316; Fri, 18 Aug 2017 14:28:24 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.28.20.198 with SMTP id 189ls480130wmu.12.canary-gmail; Fri, 18 Aug 2017 14:28:23 -0700 (PDT) X-Received: by 10.28.93.144 with SMTP id r138mr494943wmb.28.1503091703365; Fri, 18 Aug 2017 14:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503091703; cv=none; d=google.com; s=arc-20160816; b=qRCG757LGmx+LewmLCKH6s/v72G5s9OO/bsId3YxXJoj4fQM+r6A/3SVO6UXhMQ8Lq Mer7EiQ9JoWR1PqC+wRLW9YiPi5h1IY5Rb1uuhrL3L6z1twPq4GczFLLONFPU+nwAUmE S9dazo6Yu1QRiy8yBHz12a+4ZxI9KndmuwIIeXdwe7pJRNpyGRCLy4eoCszRCUohSeqQ 9kWuF2h+e6ZL/43XhpbfCZ9u9JlsY/UnH8b75H7qfp8jfn7Fb13jZzIUSAF8P4F2M0wi c/ftLgmd68ZX8rFbfNssz89yDbWZfT4jq/ya/RCPeqcBCB506pB1n2MLUkVp8p0Ld7pP 5LAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:in-reply-to:date:references:subject:cc:to :from:arc-authentication-results; bh=6clSg2GgmSOnUdhGQJ0/qdE6k+etAIUKkhig6J7Mq+g=; b=ZMjs3K1E8OIZga9BAdxvje6o46lbR+nXxqAganct07Qk9iYH5DyLFNTJ39O5iDT+Uo 0xrqhRFc5YZ8BmJWA5MZjVojv4gwL+cWT3BGiB4HiZD3+T5sMfmB/+pDeKCHQzMnuklJ GqAiVoZyR/mfRsq3/G3dWRQI45WGCEGjxWf0S6cFAmntQXj0kKwDFoctzwBSBcht4Xi/ BDVa7C9qlMdnTUfG0AlohCjm5fxmVhJQS9Nk0QoK/owuvLxet4wa7IeiI9+KpwRaXY15 UD9O8Nhfkb0QCtd2/Fy4gIVIgz1IHVVEnAp7PxqWVhvT5kq0QnYV8Rw/UVI5F+7APRGc tvjw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.60.212 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeitkraut.de Original-Received: from mx1.mailbox.org (mx1.mailbox.org. [80.241.60.212]) by gmr-mx.google.com with ESMTPS id w5si1292383wmw.4.2017.08.18.14.28.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Aug 2017 14:28:23 -0700 (PDT) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.60.212 as permitted sender) client-ip=80.241.60.212; Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id D8C394258D; Fri, 18 Aug 2017 23:28:22 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id NxHSOh2gxkoO; Fri, 18 Aug 2017 23:28:11 +0200 (CEST) In-Reply-To: (Axel Kielhorn's message of "Wed, 16 Aug 2017 12:37:28 +0200") X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.60.212 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeitkraut.de Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:18044 Archived-At: Hi Alex, apologies for the sluggish reply. Axel Kielhorn writes: > I use entities instead of Unicode characters since they are easier to type on Windows. > When converting to HTML I get the following Warnings, but the characters appear in the output: > > [warning] Skipped '\times ' at line 1 column 8 > [warning] Skipped '\Omega ' at line 1 column 8 > [warning] Skipped '\pm ' at line 1 column 5 > [warning] Skipped '\cdots ' at line 1 column 8 > [warning] Skipped '\permil ' at line 1 column 9 > [warning] Skipped '\le ' at line 1 column 5 > [warning] Skipped '\mu{}' at line 1 column 6 > [warning] Skipped '\geq ' at line 1 column 6 > [warning] Skipped '\Rightarrow ' at line 1 column 13 I believe that this is a side-effect of pandoc's new feature to warn whenever information might be lost. The org parser also tries to read the command as if it was a MathML entity, so it still succeeds. The org reader should handle this better, please open an issue on github for this: > The greek letters are rendered as italic, despite the fact that they > are not in math mode. This is most certainly a bug in the org reader, please report this as well in a separate issue. Note that Emacs org-mode exporters aren't entirely consistent in this regard, either: The LaTeX exporter renders the mu in italics, while the HTML exporter uses a normal font. However, both exporters render the omega in a normal font, while pandoc uses italics; this is a bug in the org reader. Cheers, Albert