From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hideki Saito Subject: Re: Japanese strings for Org-mode export Date: Sat, 3 Mar 2012 23:29:43 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=20cf305e287963219704ba65c889 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S45tj-0001QK-I2 for emacs-orgmode@gnu.org; Sun, 04 Mar 2012 02:30:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S45th-0006l5-6n for emacs-orgmode@gnu.org; Sun, 04 Mar 2012 02:30:27 -0500 Received: from mail-yw0-f41.google.com ([209.85.213.41]:57370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S45tg-0006kz-Tz for emacs-orgmode@gnu.org; Sun, 04 Mar 2012 02:30:25 -0500 Received: by yhr47 with SMTP id 47so1563714yhr.0 for ; Sat, 03 Mar 2012 23:30:23 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Takaaki ISHIKAWA , emacs-orgmode@gnu.org --20cf305e287963219704ba65c889 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable The attached is alternative of the patch using utf-8 encoding. Hideki Saito On Sat, Mar 3, 2012 at 10:26 PM, Hideki Saito 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 > > > > > 2012/3/3 Takaaki ISHIKAWA : >> 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 >>> >>> 2012/3/3 Takaaki ISHIKAWA : >>>> 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" "=E8=91=97=E8=80=85" "=E6=97=A5=E4=BB=98" "=E7=9B=AE=E6=AC=A1" "= =E8=84=9A=E6=B3=A8") >>>> ---- >>>> 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 >>>>> >>>>> >>>>> On Fri, Mar 2, 2012 at 5:55 PM, Hideki Saito wrot= e: >>>>>> 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\"." >>>>>> =C2=A0 =C2=A0 ("hu" "Szerzõ" "Dátum" "Tartalomjegyz&ea= cute;k" >>>>>> "Lábjegyzet") >>>>>> =C2=A0 =C2=A0 ("is" "Höfundur" "Dagsetning" "Efnisyfirlit" >>>>>> "Aftanmálsgreinar") >>>>>> =C2=A0 =C2=A0 ("it" "Autore" =C2=A0 =C2=A0 "Data" =C2=A0"Indice" "No= te a piè di pagina") >>>>>> + =C2=A0 =C2=A0("ja" "\x8457\x8005" "\x65e5\x4ed8" "\x76ee\x6b21" "\= x811a\x6ce8") >>>>>> =C2=A0 =C2=A0 ("nl" "Auteur" =C2=A0 =C2=A0 "Datum" "Inhoudsopgave" "= Voetnoten") >>>>>> =C2=A0 =C2=A0 ("no" "Forfatter" =C2=A0"Dato" =C2=A0"Innhold" "Fotnot= er") >>>>>> =C2=A0 =C2=A0 ("nb" "Forfatter" =C2=A0"Dato" =C2=A0"Innhold" "Fotnot= er") =C2=A0;; nb =3D Norsk (bokm.l) >>>>> >>>> >> --20cf305e287963219704ba65c889 Content-Type: application/octet-stream; name="orgmode-japanese-export-utf8.patch" Content-Disposition: attachment; filename="orgmode-japanese-export-utf8.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gzdrff7q0 ZGlmZiAtLWdpdCBhL2xpc3Avb3JnLWV4cC5lbCBiL2xpc3Avb3JnLWV4cC5lbAppbmRleCAxNzQ2 MTlhLi42ZmIxZDcwIDEwMDY0NAotLS0gYS9saXNwL29yZy1leHAuZWwKKysrIGIvbGlzcC9vcmct ZXhwLmVsCkBAIC0xLDMgKzEsNCBAQAorOzs7IC0qLSBjb2Rpbmc6IHV0Zi04IC0qLQogOzs7IG9y Zy1leHAuZWwgLS0tIEFTQ0lJLCBIVE1MLCBYT1hPIGFuZCBpQ2FsZW5kYXIgZXhwb3J0IGZvciBP cmctbW9kZQogCiA7OyBDb3B5cmlnaHQgKEMpIDIwMDQtMjAxMiBGcmVlIFNvZnR3YXJlIEZ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