From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [patch][org-entities] More symbols Date: Mon, 19 Aug 2013 10:55:16 +0200 Message-ID: <87pptat5zf.fsf@gmail.com> References: <87y57zouv5.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBLEz-0006CD-HA for emacs-orgmode@gnu.org; Mon, 19 Aug 2013 04:55:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VBLEt-0007ey-Cx for emacs-orgmode@gnu.org; Mon, 19 Aug 2013 04:55:09 -0400 Received: from mail-wg0-x235.google.com ([2a00:1450:400c:c00::235]:61190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBLEs-0007d0-Th for emacs-orgmode@gnu.org; Mon, 19 Aug 2013 04:55:03 -0400 Received: by mail-wg0-f53.google.com with SMTP id c11so3300714wgh.20 for ; Mon, 19 Aug 2013 01:55:02 -0700 (PDT) In-Reply-To: <87y57zouv5.fsf@gmx.us> (rasmus@gmx.us's message of "Sun, 18 Aug 2013 17:56:46 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus 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 =3D" on the character and look at "preferred charset" property. > 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. > 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". As a rule of thumb, I think we should avoid requiring new packages for org-entities. > 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" "=C9=B8 ") Why is there a space in UTF-8 code? > + ("preccurlyeq" "\\preccurlyeq" t "≼" "[precedes or equal]" "[p= recedes or equal]" "=E2=89=BC") This one is LaTeX specific, it may be more appropriate in `org-entities-user'. > + ("succcurlyeq" "\\succeq" t "≽" "[succeeds or equal]" "[succee= ds or equal]" "=E2=89=BD") Ditto. Also, the LaTeX code looks wrong. > + ("nexist" "\\exists" t "∃" "[there does not exists]" "[there d= oes not exists]" "=E2=88=84") > + ("nexists" "\\exists" t "∃" "[there does not exists]" "[there = does not exists]" "=E2=88=84") Didn't you forget a "\not" in LaTeX entry? > ("lArr" "\\Leftarrow" t "⇐" "<=3D" "<=3D" "=E2=87=90") > ("Leftarrow" "\\Leftarrow" t "⇐" "<=3D" "<=3D" "=E2=87=90") > + ("impliedby" "\\impliedby" t "⇐" "<=3D" "<=3D" "=E2=87=90") Is is really needed? There are already two entities producing the same code. > ("rArr" "\\Rightarrow" t "⇒" "=3D>" "=3D>" "=E2=87=92") > ("Rightarrow" "\\Rightarrow" t "⇒" "=3D>" "=3D>" "=E2=87=92") > + ("implies" "\\implies" t "⇒" "=3D>" "=3D>" "=E2=87=92") Ditto. > ("Leftrightarrow" "\\Leftrightarrow" t "⇔" "<=3D>" "<=3D>" "=E2= =87=94") > + ("iff" "\\iff" t "⇔" "<=3D>" "<=3D>" "=E2=87=94") Ditto. Regards, --=20 Nicolas Goaziou