From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan-Mark Batke Subject: Re: [bug] latex export ascii encoding Date: Wed, 31 Jul 2013 08:57:51 +0000 Message-ID: References: <87r4f483mo.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b15a465a5f9ad04e2caeb35 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4SEL-0005uM-JH for emacs-orgmode@gnu.org; Wed, 31 Jul 2013 04:58:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V4SED-00015i-Fb for emacs-orgmode@gnu.org; Wed, 31 Jul 2013 04:58:01 -0400 Received: from mail-pd0-x229.google.com ([2607:f8b0:400e:c02::229]:60098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4SED-00014f-1M for emacs-orgmode@gnu.org; Wed, 31 Jul 2013 04:57:53 -0400 Received: by mail-pd0-f169.google.com with SMTP id y11so514726pdj.14 for ; Wed, 31 Jul 2013 01:57:51 -0700 (PDT) In-Reply-To: <87r4f483mo.fsf@gmail.com> 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: Nicolas Goaziou Cc: Org-Mode --047d7b15a465a5f9ad04e2caeb35 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Nicolas, thanks for response and sorry for delayed answer, I was on vacation and absent to my emacs :/ An ECM would be a file just containing some umlauts. In more detail: using emacs GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.2) of 2013-06-25 on sochi, modified by Debian I export a text =3Dtestumlaut1.org=3D just containing : =F6=E4=FC =D6=C4=DC from a latin-1 buffer : 1 -- iso-latin-1-unix (alias: iso-8859-1-unix latin-1-unix) : : ISO 2022 based 8-bit encoding for Latin-1 (MIME:ISO-8859-1). : Type: charset (charset) : EOL type: LF : This coding system encodes the following charsets: : iso-8859-1 with =3DC-c C-e l l=3D which results in : % Created 2013-07-31 Mi 08:39 : \documentclass[11pt]{article} : \usepackage[latin1]{inputenc} : \usepackage[T1]{fontenc} : \usepackage{fixltx2e} : \usepackage{graphicx} : \usepackage[normalem]{ulem} : \usepackage{textcomp} : \usepackage{latexsym} : \usepackage{amssymb} : \usepackage{amstext} : \author{Jan-Mark Batke} : \date{\today} : \title{testumlaut1} : \hypersetup{ : pdfkeywords=3D{}, : pdfsubject=3D{}, : pdfcreator=3D{Emacs 24.3.1 (Org mode 8.0.6)}} : \begin{document} : : \maketitle : \tableofcontents : : =C3=B6=C3=A4=C3=BC =C3=96=C3=84=C3=9C : % Emacs 24.3.1 (Org mode 8.0.6) : \end{document} The file is as well encoded in : 1 -- iso-latin-1-unix (alias: iso-8859-1-unix latin-1-unix) : : ISO 2022 based 8-bit encoding for Latin-1 (MIME:ISO-8859-1). : Type: charset (charset) : EOL type: LF : This coding system encodes the following charsets: : iso-8859-1 Interestingly, exporting in a buffer using =3DC-c C-e l L=3D results in : % Created 2013-07-31 Mi 08:45 : \documentclass[11pt]{article} : \usepackage[latin1]{inputenc} : \usepackage[T1]{fontenc} : \usepackage{fixltx2e} : \usepackage{graphicx} : \usepackage[normalem]{ulem} : \usepackage{textcomp} : \usepackage{latexsym} : \usepackage{amssymb} : \usepackage{amstext} : \author{Jan-Mark Batke} : \date{\today} : \title{testumlaut1} : \hypersetup{ : pdfkeywords=3D{}, : pdfsubject=3D{}, : pdfcreator=3D{Emacs 24.3.1 (Org mode 8.0.6)}} : \begin{document} : : \maketitle : \tableofcontents : : =F6=E4=FC =D6=C4=DC : % Emacs 24.3.1 (Org mode 8.0.6) : \end{document} but the buffer is : U -- utf-8-unix (alias: mule-utf-8-unix) : : UTF-8 (no signature (BOM)) : Type: utf-8 (UTF-8: Emacs internal multibyte form) : EOL type: LF : This coding system encodes the following charsets: : unicode No problems occur using utf-8 encoding. On windows, it is vice versa, latin-1 does work, utf-8 not. I am not sure this problem depends more on emacs or org-mode. Best regards Jan-Mark 2013/7/12 Nicolas Goaziou > Hello, > > Jan-Mark Batke writes: > > > exporting latex causes some trouble here. > > > > - exporting utf-8 ascii does work > > - exporting latin-1 ascii does not work, > > - the file format is set correctly (1 in mode-line displayed) > > - inputenc option is set to latin1 > > - content is corrupted, e.g. =FC=F6=E4 becomes =C3=BC=C3=B6=C3=A4 > > I cannot reproduce the problem. Could you post an ECM for that? > > > Regards, > > -- > Nicolas Goaziou > --=20 Jan-Mark Batke badkey@gmx.net FON +49 511 33 64 800 FAX +49 511 22 09 521 --047d7b15a465a5f9ad04e2caeb35 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Nicolas,

thanks for response and sor= ry for delayed answer, I was on vacation and absent to my emacs :/

An ECM would be a file just containing some umlauts. In mo= re detail:

using emacs GNU Emacs 24.3.1 (x86_64-pc-linux-gnu,= GTK+ Version 3.8.2)
of 2013-06-25 on sochi, modified by Debian
I export a text =3Dtestumlaut1.= org=3D just containing

: =F6=E4=FC =D6=C4=DC

from a l= atin-1 buffer=A0

: 1 -- iso-latin-1-unix (alias: i= so-8859-1-unix latin-1-unix)
:=A0
: ISO 2022 based 8-bi= t encoding for Latin-1 (MIME:ISO-8859-1).
: Type: charset (charset)
: EOL type: LF
: This co= ding system encodes the following charsets:
: =A0 iso-8859-1

with =3DC-c C-e l l=3D which results in=A0
<= br>
: % Created 2013-07-31 Mi 08:39
: \documentclass[11pt]{artic= le}
: \usepackage[latin1]{inputenc}
: \usepackage[T1]{f= ontenc}
: \usepackage{fixltx2e}
: \usepackage{graphicx}=
: \usepackage[normalem]{ulem}
: \usepackage{textcomp}
<= div>: \usepackage{latexsym}
: \usepackage{amssymb}
: \u= sepackage{amstext}
: \author{Jan-Mark Batke}
: \date{\t= oday}
: \title{testumlaut1}
: \hypersetup{
: =A0 pdfkeyw= ords=3D{},
: =A0 pdfsubject=3D{},
: =A0 pdfcreator=3D{E= macs 24.3.1 (Org mode 8.0.6)}}
: \begin{document}
:=A0<= /div>
: \maketitle
: \tableofcontents
:=A0
: =C3=B6= =C3=A4=C3=BC =C3=96=C3=84=C3=9C
: % Emacs 24.3.1 (Org mode 8.0.6)=
: \end{document}

The file is as well en= coded in=A0

: 1 -- iso-latin-1-unix (alias: iso-8859-1-unix latin-1-unix)
:=A0
: ISO 2022 based 8-bit encoding for Latin-1 (MIME:IS= O-8859-1).
: Type: charset (charset)
: EOL type: LF
: This coding system encodes the following charsets:
: =A0 i= so-8859-1

Interestingly, exporting in a buffer usi= ng =3DC-c C-e l L=3D results in=A0

: % Created 201= 3-07-31 Mi 08:45
: \documentclass[11pt]{article}
: \usepackage[latin1]{inpute= nc}
: \usepackage[T1]{fontenc}
: \usepackage{fixltx2e}<= /div>
: \usepackage{graphicx}
: \usepackage[normalem]{ulem}
: \usepackage{textcomp}
: \usepackage{latexsym}
: = \usepackage{amssymb}
: \usepackage{amstext}
: \author{J= an-Mark Batke}
: \date{\today}
: \title{testumlaut1}
: \hypersetup{
: =A0 pdfkeywords=3D{},
: =A0 pdfsu= bject=3D{},
: =A0 pdfcreator=3D{Emacs 24.3.1 (Org mode 8.0.6)}}
: \begin{document}
:=A0
: \maketitle
: \tableofcontents
:=A0
: =F6=E4=FC =D6=C4=DC
: % Emacs 24.3.1 (Org m= ode 8.0.6)
: \end{document}

but the buff= er is=A0

: U -- utf-8-unix (alias: mule-utf-8-unix= )
:=A0
: UTF-8 (no signature (BOM))
: Type: utf-8 (UTF-8:= Emacs internal multibyte form)
: EOL type: LF
: This c= oding system encodes the following charsets:
: =A0 unicode
<= /div>

No problems occur using utf-8 enc= oding. On windows, it is vice versa, latin-1 does work, utf-8 =A0not.
=

I am not su= re this problem depends more on emacs or org-mode.

Best regard= s

Jan-= Mark


2013/7/12 Nicolas Goaziou <n.= goaziou@gmail.com>
Hello,

Jan-Mark Batke <badkey@gmx.net>= writes:

> exporting latex causes some trouble here.
>
> - exporting utf-8 ascii does work
> - exporting latin-1 ascii does not work,
> =A0 - the file format is set correctly (1 in mode-line displayed)
> =A0 - inputenc option is set to latin1
> =A0 - content is corrupted, e.g. =FC=F6=E4 becomes =C3=BC=C3=B6=C3=A4<= br>
I cannot reproduce the problem. Could you post an ECM for that?


Regards,

--
Nicolas Goaziou



-- Jan-Mark Batke=A0=A0b= adkey@gmx.net=A0
FON +49 511 33 64 800=A0
FAX +49 511 22 = 09 521
--047d7b15a465a5f9ad04e2caeb35--