emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Ulf Stegemann <ulf-news@zeitform.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Org Entities (was: Add \EUR to `org-html-entities')
Date: Thu, 17 Dec 2009 13:49:46 +0100	[thread overview]
Message-ID: <DE8705F1-C752-412B-AB82-74A08CF3B6A4@gmail.com> (raw)
In-Reply-To: <zf.upnmy1ij7jh.fsf@zeitform.de>

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 <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       ->         &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.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

  reply	other threads:[~2009-12-17 12:50 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       ` Org Entities (was: Add \EUR to `org-html-entities') Ulf Stegemann
2009-12-17 12:49         ` Carsten Dominik [this message]
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=DE8705F1-C752-412B-AB82-74A08CF3B6A4@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ulf-news@zeitform.de \
    /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).