From: Rasmus <rasmus@gmx.us>
To: n.goaziou@gmail.com
Cc: emacs-orgmode@gnu.org
Subject: Re: [patch][org-entities] More symbols
Date: Wed, 28 Aug 2013 13:38:38 +0200 [thread overview]
Message-ID: <87vc2qqc3l.fsf@gmx.us> (raw)
In-Reply-To: <87pptat5zf.fsf@gmail.com> (Nicolas Goaziou's message of "Mon, 19 Aug 2013 10:55:16 +0200")
Hi Nicolsa,
Sorry about the late reply.
Nicolas Goaziou <n.goaziou@gmail.com> writes:
> Thanks for the patch.
>
>> This patch adds some general interest(?) symbols to org entities that
>> otherwise lived in my init file.
>>
>> 1. I don't know how to easily check whether a glyph is supported by
>> Latin 1, so Latin 1 entries correspond to the ASCII equivalent.
>
> Use "C-u C-x =" on the character and look at "preferred charset"
> property.
OK.
>> 2. HTML symbols have been tested in Firefox. In a few cases I
>> couldn't find a pretty name (like "π") in which case I've
>> supplied the unicode number (like "&960;"). Is that OK? (E.g. can
>> Org produce non-uft8 HTML?)
>
> I think it can: see `org-html-coding-system'. It may be wiser to avoid
> these symbols altogether.
OK.
>> 3. In LaTeX the symbols are mostly defined in amsmath, except coloneqq
>> and eqqcolon which requires something like mathtools or kpfonts or
>> possibly unicode-math. Is that OK?
>
> Any additional package needed must be added to
> `org-latex-default-packages-alist', which means that the package will be
> loaded in every LaTeX export. So, this is clearly not OK for packages
> like "kpfonts".
OK.
> As a rule of thumb, I think we should avoid requiring new packages for
> org-entities.
I agree. I'd wish we could cut down on some of these darn symbol
packages! latexsymb should be fairly easy to get rid of.
>> I also fixed some
>> inconsistencies. E.g. loz was loaded diamond even though loz is
>> defined in amssymb and "~" and "\tilde" produced different results
>> (the latter produces the irritating "\~{}" often observed among
>> (social science?) university professors...).
>
> Sounds good.
>
>> + ("varphi", "\\varphi" t "ϕ" "varphi" "varphi" "ɸ ")
>
> Why is there a space in UTF-8 code?
Bug.
>> + ("preccurlyeq" "\\preccurlyeq" t "≼" "[precedes or equal]"
>> "[precedes or equal]" "≼")
>
> This one is LaTeX specific, it may be more appropriate in
> `org-entities-user'.
We also have stuff like le and rarr, which is clearly HTML-specific.
An important part of entities (IMO) is the unicode display in-buffer.
>> + ("succcurlyeq" "\\succeq" t "≽" "[succeeds or equal]"
>> "[succeeds or equal]" "≽")
>
> Ditto. Also, the LaTeX code looks wrong.
True.
>> + ("nexist" "\\exists" t "∃" "[there does not exists]" "[there
>> does not exists]" "∄")
>> + ("nexists" "\\exists" t "∃" "[there does not exists]"
>> "[there does not exists]" "∄")
>
> Didn't you forget a "\not" in LaTeX entry?
Yup. This is getting embarrassing.
>> ("lArr" "\\Leftarrow" t "⇐" "<=" "<=" "⇐")
>> ("Leftarrow" "\\Leftarrow" t "⇐" "<=" "<=" "⇐")
>> + ("impliedby" "\\impliedby" t "⇐" "<=" "<=" "⇐")
>
> Is is really needed? There are already two entities producing the same
> code.
impliedby, iff and implied are recommended since they use correct
spacing. They are, however, defined in amsmath, which isn't loaded,
although perhaps it should be.
I'll prepare a reduced patch.
–Rasmus
--
Don't panic!!!
next prev parent reply other threads:[~2013-08-28 11:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-18 15:56 [patch][org-entities] More symbols Rasmus
2013-08-19 8:55 ` Nicolas Goaziou
2013-08-28 11:38 ` Rasmus [this message]
2013-09-01 12:57 ` Jambunathan K
2013-09-02 11:30 ` Rasmus
2013-09-02 12:47 ` Jambunathan K
2013-09-02 13:48 ` Rasmus
2013-08-31 16:02 ` Rasmus
2013-08-31 16:19 ` [patch] Remove dependency on latexsym (was: [patch][org-entities] More symbols) Rasmus
2013-09-01 12:34 ` [patch] Remove dependency on latexsym Nicolas Goaziou
2013-09-01 12:33 ` [patch][org-entities] More symbols Nicolas Goaziou
2013-09-02 11:31 ` Rasmus
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vc2qqc3l.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=emacs-orgmode@gnu.org \
--cc=n.goaziou@gmail.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).