emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] BUG: swapped utf-8 symbols in org-entities


From: Rasmus
Subject: Re: [O] BUG: swapped utf-8 symbols in org-entities
Date: Tue, 28 Jun 2016 21:21:30 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Konstantin Kliakhandler <address@hidden> writes:

> Hello,
>
> The unicode letters for 'varphi' and for 'phi' are swapped.
>
> Here is a patch correcting this:
>
> diff --git a/lisp/org-entities.el b/lisp/org-entities.el
> index 4044432..6f6d054 100644
> --- a/lisp/org-entities.el
> +++ b/lisp/org-entities.el
> @@ -204,9 +204,8 @@ packages to be loaded, add these packages to
> `org-latex-packages-alist'."
>      ("upsih" "\\Upsilon" t "&upsih;" "upsilon" "upsilon" "ϒ")
>      ("upsilon" "\\upsilon" t "&upsilon;" "upsilon" "upsilon" "υ")
>      ("Phi" "\\Phi" t "&Phi;" "Phi" "Phi" "Φ")
> -    ("phi" "\\phi" t "&phi;" "phi" "phi" "φ")
> -    ("varphi" "\\varphi" t "&varphi;" "varphi" "varphi" "ɸ")
> +    ("phi" "\\phi" t "&phi;" "phi" "phi" "ɸ")
> +    ("varphi" "\\varphi" t "&varphi;" "varphi" "varphi" "φ")

It's not straight forward.

The behavior is "correct" with reference to (La)TeX.  E.g.

    M-x set-input-method RET TeX RET

Then,

    \phi → φ
    \varphi → ϕ

Your suggestion is correct with reference to HTML.

I’d tend to favor the TeX interpretation even if it’s technically wrong.

Rasmus

-- 
May contains speling mistake




reply via email to

[Prev in Thread] Current Thread [Next in Thread]