From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [patch][org-entities] More symbols Date: Sat, 31 Aug 2013 18:02:05 +0200 Message-ID: <87bo4dkfwi.fsf@gmx.us> References: <87y57zouv5.fsf@gmx.us> <87pptat5zf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFncu-00039k-3g for emacs-orgmode@gnu.org; Sat, 31 Aug 2013 12:02:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VFncn-0007rZ-L4 for emacs-orgmode@gnu.org; Sat, 31 Aug 2013 12:02:16 -0400 Received: from mout.gmx.net ([212.227.15.19]:51237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFncn-0007qe-81 for emacs-orgmode@gnu.org; Sat, 31 Aug 2013 12:02:09 -0400 Received: from dhcppc0 ([94.34.251.221]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0LpPg1-1Vutb80sRp-00f8ax for ; Sat, 31 Aug 2013 18:02:07 +0200 In-Reply-To: <87pptat5zf.fsf@gmail.com> (Nicolas Goaziou's message of "Mon, 19 Aug 2013 10:55:16 +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: n.goaziou@gmail.com Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Nicolas Goaziou writes: >> 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. The only ones remaining are=20 ("smiley" "\\smiley{}" nil "☺" ":-)" ":-)" "=E2=98=BA") ("blacksmile" "\\blacksmiley{}" nil "☻" ":-)" ":-)" "=E2=98=BB") ("sad" "\\frownie{}" nil "☹" ":-(" ":-(" "=E2=98=B9") > 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, they should all work. >> 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. >> + ("preccurlyeq" "\\preccurlyeq" t "≼" "[precedes or equal]" >> "[precedes or equal]" "=E2=89=BC") > > This one is LaTeX specific, it may be more appropriate in > `org-entities-user'. There are many X-specific entities. . . E.g. lArr is html specific. One important feature of entities is that unicode symbols can be displayed in buffer. If you feel strongly about it, I can remove them. =E2=80=93Rasmus --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-More-org-entities.patch Content-Transfer-Encoding: quoted-printable >From 17c722aab3e94db069884cb8dba1103ff7b6c9a9 Mon Sep 17 00:00:00 2001 From: rasmus Date: Sun, 18 Aug 2013 17:42:33 +0200 Subject: [PATCH] More org-entities. MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit * org-entities.el (org-entities): Add support for ell, imath, jmath, varphi, varpi, aleph, gimel, beth, dalet, cdots, S (=C2=A7), dag, ddag, colon, therefore, because, triangleq, leq, geq, lessgtr, lesseqgtr, ll, lll, gg, ggg, prec, preceq, preccurleyeq, succ, succeq, succurleyeq, setminus, nexist(s), mho, check, frown, diamond. Changes loz, vert, checkmark, smile and tilde. --- lisp/org-entities.el | 59 ++++++++++++++++++++++++++++++++++++++++++++----= ---- 1 file changed, 50 insertions(+), 9 deletions(-) diff --git a/lisp/org-entities.el b/lisp/org-entities.el index a1519b0..638da78 100644 --- a/lisp/org-entities.el +++ b/lisp/org-entities.el @@ -154,6 +154,9 @@ packages to be loaded, add these packages to `org-latex= -packages-alist'." ("real" "\\Re" t "ℜ" "R" "R" "=E2=84=9C") ("image" "\\Im" t "ℑ" "I" "I" "=E2=84=91") ("weierp" "\\wp" t "℘" "P" "P" "=E2=84=98") + ("ell" "\\ell" t "ℓ" "ell" "ell" "=E2=84=93") + ("imath" "\\imath" t "ı" "[dotless i]" "dotless i" "=C4=B1") + ("jmath" "\\jmath" t "ȷ" "[dotless j]" "dotless j" "=C8=B7") =20 "** Greek" ("Alpha" "A" nil "Α" "Alpha" "Alpha" "=CE=91") @@ -203,6 +206,7 @@ packages to be loaded, add these packages to `org-latex= -packages-alist'." ("upsilon" "\\upsilon" t "υ" "upsilon" "upsilon" "=CF=85") ("Phi" "\\Phi" t "Φ" "Phi" "Phi" "=CE=A6") ("phi" "\\phi" t "φ" "phi" "phi" "=CF=86") + ("varphi" "\\varphi" t "ϕ" "varphi" "varphi" "=C9=B8") ("Chi" "X" nil "Χ" "Chi" "Chi" "=CE=A7") ("chi" "\\chi" t "χ" "chi" "chi" "=CF=87") ("acutex" "\\acute x" t "´x" "'x" "'x" "=F0=9D=91=A5=CC=81") @@ -212,10 +216,15 @@ packages to be loaded, add these packages to `org-lat= ex-packages-alist'." ("Omega" "\\Omega" t "Ω" "Omega" "Omega" "=CE=A9") ("omega" "\\omega" t "ω" "omega" "omega" "=CF=89") ("piv" "\\varpi" t "ϖ" "omega-pi" "omega-pi" "=CF=96") + ("varpi" "\\varpi" t "ϖ" "omega-pi" "omega-pi" "=CF=96") ("partial" "\\partial" t "∂" "[partial differential]" "[partial d= ifferential]" "=E2=88=82") =20 "** Hebrew" ("alefsym" "\\aleph" t "ℵ" "aleph" "aleph" "=E2=84=B5") + ("aleph" "\\aleph" t "ℵ" "aleph" "aleph" "=E2=84=B5") + ("gimel" "\\gimel" t "ℷ" "gimel" "gimel" "=E2=84=B7") + ("beth" "\\beth" t "ℶ" "beth" "beth" "=D7=91") + ("dalet" "\\daleth" t "ℸ" "dalet" "dalet" "=D7=93") =20 "** Dead languages" ("ETH" "\\DH{}" nil "Ð" "D" "=C3=90" "=C3=90") @@ -226,6 +235,7 @@ packages to be loaded, add these packages to `org-latex= -packages-alist'." "* Punctuation" "** Dots and Marks" ("dots" "\\dots{}" nil "…" "..." "..." "=E2=80=A6") + ("cdots" "\\cdots{}" t "⋯" "..." "..." "=E2=8B=AF") ("hellip" "\\dots{}" nil "…" "..." "..." "=E2=80=A6") ("middot" "\\textperiodcentered{}" nil "·" "." "=C2=B7" "=C2=B7= ") ("iexcl" "!`" nil "¡" "!" "=C2=A1" "=C2=A1") @@ -253,20 +263,23 @@ packages to be loaded, add these packages to `org-lat= ex-packages-alist'." "* Other" "** Misc. (often used)" ("circ" "\\^{}" nil "ˆ" "^" "^" "=CB=86") - ("vert" "\\vert{}" t "|" "|" "|" "|") + ("vert" "\\vert{}" t "|" "|" "|" "|") ("brvbar" "\\textbrokenbar{}" nil "¦" "|" "=C2=A6" "=C2=A6") + ("S" "\\S" nil "§" "paragraph" "=C2=A7" "=C2=A7") ("sect" "\\S" nil "§" "paragraph" "=C2=A7" "=C2=A7") ("amp" "\\&" nil "&" "&" "&" "&") ("lt" "\\textless{}" nil "<" "<" "<" "<") ("gt" "\\textgreater{}" nil ">" ">" ">" ">") - ("tilde" "\\~{}" nil "˜" "~" "~" "~") + ("tilde" "\\textasciitilde{}" nil "~" "~" "~" "~") ("slash" "/" nil "/" "/" "/" "/") ("plus" "+" nil "+" "+" "+" "+") ("under" "\\_" nil "_" "_" "_" "_") ("equal" "=3D" nil "=3D" "=3D" "=3D" "=3D") ("asciicirc" "\\textasciicircum{}" nil "^" "^" "^" "^") ("dagger" "\\textdagger{}" nil "†" "[dagger]" "[dagger]" "=E2= =80=A0") + ("dag" "\\dag{}" nil "†" "[dagger]" "[dagger]" "=E2=80=A0") ("Dagger" "\\textdaggerdbl{}" nil "‡" "[doubledagger]" "[double= dagger]" "=E2=80=A1") + ("ddag" "\\ddag{}" nil "‡" "[doubledagger]" "[doubledagger]" "= =E2=80=A1") =20 "** Whitespace" ("nbsp" "~" nil " " " " " " " ") @@ -297,6 +310,7 @@ packages to be loaded, add these packages to `org-latex= -packages-alist'." ("plusmn" "\\textpm{}" nil "±" "+-" "=C2=B1" "=C2=B1") ("times" "\\texttimes{}" nil "×" "*" "=C3=97" "=C3=97") ("frasl" "/" nil "⁄" "/" "/" "=E2=81=84") + ("colon" "\\colon" t ":" ":" ":" ":") ("div" "\\textdiv{}" nil "÷" "/" "=C3=B7" "=C3=B7") ("frac12" "\\textonehalf{}" nil "½" "1/2" "=C2=BD" "=C2=BD") ("frac14" "\\textonequarter{}" nil "¼" "1/4" "=C2=BC" "=C2=BC") @@ -326,7 +340,9 @@ packages to be loaded, add these packages to `org-latex= -packages-alist'." ("cap" "\\cap" t "∩" "[intersection]" "[intersection]" "=E2=88=A9") ("cup" "\\cup" t "∪" "[union]" "[union]" "=E2=88=AA") ("int" "\\int" t "∫" "[integral]" "[integral]" "=E2=88=AB") + ("therefore" "\\therefore" t "∴" "[therefore]" "[therefore]" "= =E2=88=B4") ("there4" "\\therefore" t "∴" "[therefore]" "[therefore]" "=E2= =88=B4") + ("because" "\\because" t "∵" "[because]" "[because]" "=E2=88= =B5") ("sim" "\\sim" t "∼" "~" "~" "=E2=88=BC") ("cong" "\\cong" t "≅" "[approx. equal to]" "[approx. equal to]" = "=E2=89=85") ("simeq" "\\simeq" t "≅" "[approx. equal to]" "[approx. equal to= ]" "=E2=89=85") @@ -335,8 +351,26 @@ packages to be loaded, add these packages to `org-late= x-packages-alist'." ("ne" "\\ne" t "≠" "[not equal to]" "[not equal to]" "=E2=89=A0") ("neq" "\\neq" t "≠" "[not equal to]" "[not equal to]" "=E2=89=A0") ("equiv" "\\equiv" t "≡" "[identical to]" "[identical to]" "=E2= =89=A1") + + ("triangleq" "\\triangleq" t "≜" "[defined to]" "[defined to= ]" "=E2=89=9C") ("le" "\\le" t "≤" "<=3D" "<=3D" "=E2=89=A4") + ("leq" "\\le" t "≤" "<=3D" "<=3D" "=E2=89=A4") ("ge" "\\ge" t "≥" ">=3D" ">=3D" "=E2=89=A5") + ("geq" "\\ge" t "≥" ">=3D" ">=3D" "=E2=89=A5") + ("lessgtr" "\\lessgtr" t "≶" "[less than or greater than]" "[l= ess than or greater than]" "=E2=89=B6") + ("lesseqgtr" "\\lesseqgtr" t "⋚" "[less than or equal or gre= ater than or equal]" "[less than or equal or greater than or equal]" "=E2= =8B=9A") + ("ll" "\\ll" t "≪" "<<" "<<" "=E2=89=AA") + ("Ll" "\lll" t "⋘" "<<<" "<<<" "=E2=8B=98") + ("lll" "\lll" t "⋘" "<<<" "<<<" "=E2=8B=98") + ("gg" "\\gg" t "≫" ">>" ">>" "=E2=89=AB") + ("Gg" "\\ggg" t "⋙" ">>>" ">>>" "=E2=8B=99") + ("ggg" "\\ggg" t "⋙" ">>>" ">>>" "=E2=8B=99") + ("prec" "\\prec" t "≺" "[precedes]" "[precedes]" "=E2=89=BA") + ("preceq" "\\preceq" t "≼" "[precedes or equal]" "[precedes or e= qual]" "=E2=89=BC") + ("preccurlyeq" "\\preccurlyeq" t "≼" "[precedes or equal]" "[pre= cedes or equal]" "=E2=89=BC") + ("succ" "\\succ" t "≻" "[succeeds]" "[succeeds]" "=E2=89=BB") + ("succeq" "\\succeq" t "≽" "[succeeds or equal]" "[succeeds or e= qual]" "=E2=89=BD") + ("succcurlyeq" "\\succcurlyeq" t "≽" "[succeeds or equal]" "[suc= ceeds or equal]" "=E2=89=BD") ("sub" "\\subset" t "⊂" "[subset of]" "[subset of]" "=E2=8A=82") ("subset" "\\subset" t "⊂" "[subset of]" "[subset of]" "=E2=8A=82") ("sup" "\\supset" t "⊃" "[superset of]" "[superset of]" "=E2=8A=83= ") @@ -345,9 +379,12 @@ packages to be loaded, add these packages to `org-late= x-packages-alist'." ("sube" "\\subseteq" t "⊆" "[subset of or equal to]" "[subset of = or equal to]" "=E2=8A=86") ("nsup" "\\not\\supset" t "⊅" "[not a superset of]" "[not a super= set of]" "=E2=8A=85") ("supe" "\\supseteq" t "⊇" "[superset of or equal to]" "[superset= of or equal to]" "=E2=8A=87") + ("setminus" "\\setminus" t "∖" "\" "\" "=E2=A7=B5") ("forall" "\\forall" t "∀" "[for all]" "[for all]" "=E2=88=80") ("exist" "\\exists" t "∃" "[there exists]" "[there exists]" "=E2= =88=83") ("exists" "\\exists" t "∃" "[there exists]" "[there exists]" "= =E2=88=83") + ("nexist" "\\nexists" t "∃" "[there does not exists]" "[there do= es not exists]" "=E2=88=84") + ("nexists" "\\nexists" t "∃" "[there does not exists]" "[there d= oes not exists]" "=E2=88=84") ("empty" "\\empty" t "∅" "[empty set]" "[empty set]" "=E2=88=85") ("emptyset" "\\emptyset" t "∅" "[empty set]" "[empty set]" "=E2= =88=85") ("isin" "\\in" t "∈" "[element of]" "[element of]" "=E2=88=88") @@ -366,7 +403,8 @@ packages to be loaded, add these packages to `org-latex= -packages-alist'." ("rfloor" "\\rfloor" t "⌋" "[right floor]" "[right floor]" "=E2= =8C=8B") ("lang" "\\langle" t "⟨" "<" "<" "=E2=9F=A8") ("rang" "\\rangle" t "⟩" ">" ">" "=E2=9F=A9") - ("hbar" "\\hbar" t "ℏ" "hbar" "hbar" "=E2=84=8F") + ("hbar" "\\hbar" t "ℏ" "hbar" "hbar" "=E2=84=8F") + ("mho" "\\mho" t "℧" "mho" "mho" "=E2=84=A7") =20 "** Arrows" ("larr" "\\leftarrow" t "←" "<-" "<-" "=E2=86=90") @@ -437,7 +475,8 @@ packages to be loaded, add these packages to `org-latex= -packages-alist'." ("odot" "\\odot" t "o" "[circled dot]" "[circled dot]" "=CA=98") ("oplus" "\\oplus" t "⊕" "[circled plus]" "[circled plus]" "=E2= =8A=95") ("otimes" "\\otimes" t "⊗" "[circled times]" "[circled times]" = "=E2=8A=97") - ("checkmark" "\\checkmark" t "✓" "[checkmark]" "[checkmark]" "= =E2=9C=93") + ("check" "\\checkmark" t "✓" "[checkmark]" "[checkmark]" "= =E2=9C=93") + ("checkmark" "\\checkmark" t "✓" "[checkmark]" "[checkmark]" "= =E2=9C=93") =20 "** Miscellaneous (seldom used)" ("para" "\\P{}" nil "¶" "[pilcrow]" "=C2=B6" "=C2=B6") @@ -452,7 +491,8 @@ packages to be loaded, add these packages to `org-latex= -packages-alist'." ("rlm" "" nil "‏" "" "" "=E2=80=8F") =20 "** Smilies" - ("smile" "\\smile" t "☺" ":-)" ":-)" "=E2=8C=A3") + ("smile" "\\smile" t "⌣" ":-)" ":-)" "=E2=8C=A3") + ("frown" "\\frown" t "⌢" ":-(" ":-(" "=E2=8C=A2") ("smiley" "\\smiley{}" nil "☺" ":-)" ":-)" "=E2=98=BA") ("blacksmile" "\\blacksmiley{}" nil "☻" ":-)" ":-)" "=E2=98=BB") ("sad" "\\frownie{}" nil "☹" ":-(" ":-(" "=E2=98=B9") @@ -464,10 +504,11 @@ packages to be loaded, add these packages to `org-lat= ex-packages-alist'." ("spadesuit" "\\spadesuit" t "♠" "[spades]" "[spades]" "=E2=99= =A0") ("hearts" "\\heartsuit" t "♥" "[hearts]" "[hearts]" "=E2=99=A5") ("heartsuit" "\\heartsuit" t "♥" "[hearts]" "[hearts]" "=E2= =99=A5") - ("diams" "\\diamondsuit" t "♦" "[diamonds]" "[diamonds]" "=E2=99= =A6") - ("diamondsuit" "\\diamondsuit" t "♦" "[diamonds]" "[diamonds]" "= =E2=99=A6") - ("Diamond" "\\diamond" t "⋄" "[diamond]" "[diamond]" "=E2=8B= =84") - ("loz" "\\diamond" t "◊" "[lozenge]" "[lozenge]" "=E2=97=8A") + ("diams" "\\diamondsuit" t "♦" "[diamonds]" "[diamonds]" "=E2=97= =86") + ("diamondsuit" "\\diamondsuit" t "♦" "[diamonds]" "[diamonds]" "= =E2=97=86") + ("diamond" "\\diamondsuit" t "⋄" "[diamond]" "[diamond]" "=E2= =97=86") + ("Diamond" "\\diamondsuit" t "⋄" "[diamond]" "[diamond]" "=E2= =97=86") + ("loz" "\\lozenge" t "◊" "[lozenge]" "[lozenge]" "=E2=A7=AB") ) "Default entities used in Org-mode to produce special characters. For details see `org-entities-user'.") --=20 1.8.4 --=-=-= Content-Type: text/plain -- Send from my Emacs --=-=-=--