emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Org Entities (was: Add \EUR to `org-html-entities')


From: Carsten Dominik
Subject: Re: [Orgmode] Org Entities (was: Add \EUR to `org-html-entities')
Date: Thu, 17 Dec 2009 13:49:46 +0100

Hi Ulf,

feel free to send me a modified version of the definitions of
org-html-entities which contains an ASCII element as the third
element of a list.

I would then use this element for ASCII export.

- Carsten

On Dec 17, 2009, at 10:04 AM, Ulf Stegemann wrote:

Hi Carsten,

Carsten Dominik <address@hidden> 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       ->         &laquo;Quote&raquo;
 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



_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten







reply via email to

[Prev in Thread] Current Thread [Next in Thread]