[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] BUG: swapped utf-8 symbols in org-entities
From: |
Nick Dokos |
Subject: |
Re: [O] BUG: swapped utf-8 symbols in org-entities |
Date: |
Tue, 28 Jun 2016 16:10:48 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Rasmus <address@hidden> writes:
> 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 "ϒ" "upsilon" "upsilon" "ϒ")
>> ("upsilon" "\\upsilon" t "υ" "upsilon" "upsilon" "υ")
>> ("Phi" "\\Phi" t "Φ" "Phi" "Phi" "Φ")
>> - ("phi" "\\phi" t "φ" "phi" "phi" "φ")
>> - ("varphi" "\\varphi" t "ϕ" "varphi" "varphi" "ɸ")
>> + ("phi" "\\phi" t "φ" "phi" "phi" "ɸ")
>> + ("varphi" "\\varphi" t "ϕ" "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 → ϕ
>
That's not what Lamport says (p.41, 2nd ed.) Maybe the input method
got it wrong?
> Your suggestion is correct with reference to HTML.
>
> I’d tend to favor the TeX interpretation even if it’s technically wrong.
>
> Rasmus
--
Nick