From: Ulf Stegemann <ulf-news@zeitform.de>
To: emacs-orgmode@gnu.org
Subject: Org Entities (was: Add \EUR to `org-html-entities')
Date: Thu, 17 Dec 2009 10:04:18 +0100 [thread overview]
Message-ID: <zf.upnmy1ij7jh.fsf@zeitform.de> (raw)
In-Reply-To: 4B29781A-D02A-45CE-BF6F-998FCCF56A05@gmail.com
Hi Carsten,
Carsten Dominik <carsten.dominik@gmail.com> wrote:
> I have added your symbols.
thanks, works great.
I was wondering if there's a more general problem lurking behind this
(thus the change of subject): the problem of encoding entities in org
for various export formats, namely HTML, LaTeX, plain ASCII text (and
maybe plain unicode text).
As an example, let's assume we have an org file that should eventually
be available as HTML, PDF and plain text. Let's assume further, that for
whatever reasons (e.g. ugly double quotes in the needed font) the
document should use French quoting. Ideally
`\SomeMagicOrgEncoding{}Quote\AnotherMagicOrgEncoding{}' in the org file
would export to
HTML -> «Quote»
LaTeX -> \flqq{}Quote\frqq{}
ASCII -> "Quote"
(Unicode -> «Quote»)
Resorting to `org-html-entities' we could use
--8<--------------------------snip-------------------------->8---
#+LATEX_HEADER: \newcommand{\laquo}{\flqq} \newcommand{\raquo}{\frqq}
[...]
\laquo{}Quote\raquo{}
--8<--------------------------snap-------------------------->8---
to get the HTML and LaTeX output right but this leaves us with
`\laquo{}' in ASCII export and is generally a rather cumbersome
approach.
Maybe there's a simpler solution to address this but I haven't come
across it, yet (Note that `Use unicode!' isn't an option sometimes.).
Quoting is just one example that strikes my quite often, but the same
applies for all sorts of special characters; think of arrows, accented
characters etc.
This is certainly not a very pressing issue but it might be worth
thinking about how to handle this. What do you think?
Ulf
next prev parent reply other threads:[~2009-12-17 9:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-02 7:38 Add \EUR to `org-html-entities' Ulf Stegemann
2009-12-03 14:38 ` Carsten Dominik
2009-12-03 15:42 ` Ulf Stegemann
2009-12-16 23:17 ` Carsten Dominik
2009-12-16 23:25 ` Nick Dokos
2009-12-16 23:38 ` Carsten Dominik
2009-12-17 9:04 ` Ulf Stegemann [this message]
2009-12-17 12:49 ` Org Entities (was: Add \EUR to `org-html-entities') Carsten Dominik
2009-12-17 16:06 ` Org Entities Ulf Stegemann
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=zf.upnmy1ij7jh.fsf@zeitform.de \
--to=ulf-news@zeitform.de \
--cc=emacs-orgmode@gnu.org \
/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).