emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Hideki Saito <hidekis@gmail.com>
To: Takaaki ISHIKAWA <takaxp@ieee.org>, emacs-orgmode@gnu.org
Subject: Re: Japanese strings for Org-mode export
Date: Sat, 3 Mar 2012 23:29:43 -0800	[thread overview]
Message-ID: <CAAaRP5vMoxfqo6=DnWXktxYbnah_cOKHMYpcHtcHiWPO73ZU_A@mail.gmail.com> (raw)
In-Reply-To: <CAAaRP5uQzX9FGySCnL2O7W_Ju9abA2O2wzV7DWK1tHYx9LL-mA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3567 bytes --]

The attached is alternative of the patch using utf-8 encoding.

Hideki Saito <hidekis@gmail.com>



On Sat, Mar 3, 2012 at 10:26 PM, Hideki Saito <hidekis@gmail.com> wrote:
> Hello Ishikiawa-san
> It is OSX at work, and it's still on Snow Leopard -- I haven't updated
> the console version of it, so I will have to check to see which
> version was it. It is now sound like to me that the way I've done on
> the patch is platform dependent at best -- which is strange as this
> notation was used in other languages in same entry, but not as
> extensive as in case for Japanese...
>
> Hideki Saito <hidekis@gmail.com>
>
>
>
>
> 2012/3/3 Takaaki ISHIKAWA <takaxp@ieee.org>:
>> Dear Saito-san,
>>
>> Thank you for comment.
>> You mean OSX+emacs23 users cannot compile using the patch, right?
>> (Or something wrong with me...)
>> And I can compile it in SuSE Linux :-)
>>
>> Best regards,
>> Takaaki Ishikawa
>>
>> On 2012/03/04, at 14:37, Hideki Saito wrote:
>>
>>> Ishikawa-san,
>>> I've had that problem when I tried to do "make' on Mac OS X, which I
>>> realized it was compiling in obsolete version of emacs. (like emacs
>>> 22) I believe it was happening when (require 'org-exp.el)
>>>
>>> In fact, I did see this would work if UTF-8ed in your example even in
>>> the above environment, but I thought it was inappropriate as coding
>>> wasn't encoded in UTF-8. If UTF-8 strings are acceptable in org-mode
>>> source tree, I guess doing it so will make it most compatible.
>>>
>>> I verified the patch worked under Emacs 24 and in fact, I am right now
>>> using the code on my Mac and on Windows.
>>>
>>> Hideki Saito <hidekis@gmail.com>
>>>
>>> 2012/3/3 Takaaki ISHIKAWA <takaxp@ieee.org>:
>>>> Dear Saito-san,
>>>>
>>>> I've tried to compile your patch with the latest org-mode.
>>>> I got an error message:
>>>> Error: Invalid character: 33879, #o102127, #x8457
>>>>
>>>> I can apply the following line directly under UTF-8 env.:
>>>> ("ja" "著者" "日付" "目次" "脚注")
>>>> ----
>>>> Emacs 23.4 (nextstep)
>>>> Org-version 7.8.03
>>>> ----
>>>>
>>>> Could you give me your environment around Emacs?
>>>>
>>>> Best regards,
>>>> Takaaki Ishikawa
>>>>
>>>>
>>>> On 2012/03/03, at 16:06, Hideki Saito wrote:
>>>>
>>>>> I think Gmail did bad to the patch snippet. Obviously, I haven't done
>>>>> much of patch contributions :-)
>>>>>
>>>>> I've attached one, or you can refer to:
>>>>> https://gist.github.com/1964802
>>>>>
>>>>> Thank you.
>>>>>
>>>>> Hideki Saito <hidekis@gmail.com>
>>>>>
>>>>>
>>>>> On Fri, Mar 2, 2012 at 5:55 PM, Hideki Saito <hidekis@gmail.com> wrote:
>>>>>> diff --git a/lisp/org-exp.el b/lisp/org-exp.el
>>>>>> index 174619a..43c54b5 100644
>>>>>> --- a/lisp/org-exp.el
>>>>>> +++ b/lisp/org-exp.el
>>>>>> @@ -194,6 +194,7 @@ This option can also be set with the +OPTIONS
>>>>>> line, e.g. \"-:nil\"."
>>>>>>     ("hu" "Szerz&otilde;" "D&aacute;tum" "Tartalomjegyz&eacute;k"
>>>>>> "L&aacute;bjegyzet")
>>>>>>     ("is" "H&ouml;fundur" "Dagsetning" "Efnisyfirlit"
>>>>>> "Aftanm&aacute;lsgreinar")
>>>>>>     ("it" "Autore"     "Data"  "Indice" "Note a pi&egrave; di pagina")
>>>>>> +    ("ja" "\x8457\x8005" "\x65e5\x4ed8" "\x76ee\x6b21" "\x811a\x6ce8")
>>>>>>     ("nl" "Auteur"     "Datum" "Inhoudsopgave" "Voetnoten")
>>>>>>     ("no" "Forfatter"  "Dato"  "Innhold" "Fotnoter")
>>>>>>     ("nb" "Forfatter"  "Dato"  "Innhold" "Fotnoter")  ;; nb = Norsk (bokm.l)
>>>>> <org-japanese-export.patch>
>>>>
>>

[-- Attachment #2: orgmode-japanese-export-utf8.patch --]
[-- Type: application/octet-stream, Size: 885 bytes --]

diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 174619a..6fb1d70 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -1,3 +1,4 @@
+;;; -*- coding: utf-8 -*-
 ;;; org-exp.el --- ASCII, HTML, XOXO and iCalendar export for Org-mode
 
 ;; Copyright (C) 2004-2012 Free Software Foundation, Inc.
@@ -194,6 +195,7 @@ This option can also be set with the +OPTIONS line, e.g. \"-:nil\"."
     ("hu" "Szerz&otilde;" "D&aacute;tum" "Tartalomjegyz&eacute;k" "L&aacute;bjegyzet")
     ("is" "H&ouml;fundur" "Dagsetning" "Efnisyfirlit" "Aftanm&aacute;lsgreinar")
     ("it" "Autore"     "Data"  "Indice" "Note a pi&egrave; di pagina")
+    ("ja" "著者"       "日付"  "目次"          "脚注")
     ("nl" "Auteur"     "Datum" "Inhoudsopgave" "Voetnoten")
     ("no" "Forfatter"  "Dato"  "Innhold" "Fotnoter")
     ("nb" "Forfatter"  "Dato"  "Innhold" "Fotnoter")  ;; nb = Norsk (bokm.l)

  reply	other threads:[~2012-03-04  7:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-03  1:55 Japanese strings for Org-mode export Hideki Saito
2012-03-03  7:06 ` Hideki Saito
2012-03-04  5:29   ` Takaaki ISHIKAWA
2012-03-04  5:37     ` Hideki Saito
2012-03-04  6:20       ` Takaaki ISHIKAWA
2012-03-04  6:26         ` Hideki Saito
2012-03-04  7:29           ` Hideki Saito [this message]
2012-03-04  8:23             ` Takaaki ISHIKAWA
2012-03-18 19:01             ` David Maus
2012-03-18 20:15               ` Hideki Saito
2012-03-04  8:34       ` Jambunathan K
2012-03-04  9:20         ` Hideki Saito

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='CAAaRP5vMoxfqo6=DnWXktxYbnah_cOKHMYpcHtcHiWPO73ZU_A@mail.gmail.com' \
    --to=hidekis@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=takaxp@ieee.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).