public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Albert Krewinkel <albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
To: Axel Kielhorn <a.kielhorn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Pandoc discuss discuss
	<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Parsing entities in org input
Date: Fri, 18 Aug 2017 23:27:57 +0200	[thread overview]
Message-ID: <87ziawtvky.fsf@zeitkraut.de> (raw)
In-Reply-To: <C20B5963-5AAF-42F1-A230-5A3B496A6440-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> (Axel Kielhorn's message of "Wed, 16 Aug 2017 12:37:28 +0200")

Hi Alex,

apologies for the sluggish reply.

Axel Kielhorn <a.kielhorn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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: <https://github.com/jgm/pandoc/issues>

> 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


  parent reply	other threads:[~2017-08-18 21:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-16 10:37 Axel Kielhorn
     [not found] ` <C20B5963-5AAF-42F1-A230-5A3B496A6440-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-18 21:27   ` Albert Krewinkel [this message]
     [not found]     ` <87ziawtvky.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2017-08-18 21:47       ` John MACFARLANE

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ziawtvky.fsf@zeitkraut.de \
    --to=albert+pandoc-9eawchwdxg8hfhg+jk9f0w@public.gmane.org \
    --cc=a.kielhorn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).