Konstantin Kliakhandler <ko...@slumpy.org> 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