emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Yasushi SHOJI <yashi@atmark-techno.com>
To: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Table continuation strings
Date: Sun, 22 Dec 2013 06:59:45 +0900	[thread overview]
Message-ID: <87iouhc1bi.wl@dns1.atmark-techno.com> (raw)
In-Reply-To: <87k3eyk200.fsf@gmail.com>

HI,

At Sat, 21 Dec 2013 10:05:35 +0100,
Nicolas Goaziou wrote:
> 
> Yasushi SHOJI <yashi@atmark-techno.com> writes:
> 
> > The thing I don't understand is the reason all Japanese entries have
> > `:utf-8'. Would you kindly enlighten me the relationship among the
> > followings:
> >
> >  - transtion coding key (ie :utf-8, :default, :html)
> >  - your current buffer coding system
> >  - `buffer-file-coding-system' and friends
> 
> Coding keys are related to export back-ends. Therefore :latex entry will
> be used for `latex' export, :html for `html' export, `:utf-8' for both
> text (utf-8) and odt export, and so on.
> 
> As its name suggests, :default key is used as a fallback value when no
> appropriate property is found. It makes up for a handy shortcut when
> some strings are identical.

Ah, OK.  Those coding keys are for the back-ends to select proper
strings, not for the string encoding.

Then, is there any restriction with HTML back-ends? Why does it need
numeric character reference instead of just plain characters, if the
coding system is not a concern?

> Coding system is a different thing. When `org-export-coding-system' is
> non-nil, it will be used as the coding system for output (note that some
> export back-ends override this behaviour). Otherwise, output will have
> the same encoding as the source buffer.

Correct me if I'm wrong.  My understainding is as follows: All
translation strings is in `emacs-internal' coding system, since it is
defined in .el.  A org file ready to be exported has a coding system
specific to the buffer, ie. utf-8, iso-latin-1, euc-jp, etc.

Org export back-ends get a strings for the back-ends from the
translation table when appropriate.  At that time Emacs converts the
strings encoding system to match the buffer encoding system (or does
Emacs convert all encoding when it writes to file?).  Back-ends uses
`org-export-coding-system' if set, otherwise use the current buffer
coding system.


If my understanding is ok, all entries of Japanese translation should
have :default instead of :utf-8.

Thanks,
-- 
            yashi

  reply	other threads:[~2013-12-21 22:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-30  0:44 [PATCH] Table continuation strings Thomas S. Dye
2013-10-30  8:28 ` Michael Strey
2013-10-30 10:15 ` Nicolas Goaziou
2013-10-30 15:59   ` Thomas S. Dye
2013-12-21  3:15   ` Yasushi SHOJI
2013-12-21  9:05     ` Nicolas Goaziou
2013-12-21 21:59       ` Yasushi SHOJI [this message]
2013-12-22  8:20         ` Nicolas Goaziou
2013-12-22 16:13           ` Yasushi SHOJI
2013-12-23  9:09             ` Nicolas Goaziou
2014-01-02  8:15               ` Yasushi SHOJI
2014-01-02  8:29                 ` Yasushi SHOJI
2014-01-03  8:59                   ` Nicolas Goaziou
2014-01-03  8:59                 ` Nicolas Goaziou

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=87iouhc1bi.wl@dns1.atmark-techno.com \
    --to=yashi@atmark-techno.com \
    --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).