GNU bug report logs - #2666
23.0.91; TeX calendar and UTF-8 encoding

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Peter Dyballa <Peter_Dyballa@HIDDEN>; dated Fri, 13 Mar 2009 21:25:04 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug reassigned from package 'emacs,calendar' to 'emacs'. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 2666@HIDDEN:


Received: (at 2666) by emacsbugs.donarmstrong.com; 13 Mar 2009 23:29:49 +0000
From Peter_Dyballa@HIDDEN Fri Mar 13 16:29:49 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from mout0.freenet.de (mout0.freenet.de [195.4.92.90])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2DNTjKl031795
	for <2666@HIDDEN>; Fri, 13 Mar 2009 16:29:47 -0700
Received: from [195.4.92.23] (helo=13.mx.freenet.de)
	by mout0.freenet.de with esmtpa (ID peter_dyballa@HIDDEN) (port 25) (Exim 4.69 #79)
	id 1LiGoy-00071X-A5; Sat, 14 Mar 2009 00:29:44 +0100
Received: from p5b23e8ef.dip.t-dialin.net ([91.35.232.239]:62074 helo=[192.168.1.2])
	by 13.mx.freenet.de with esmtpsa (ID peter_dyballa@HIDDEN) (TLSv1:AES128-SHA:128) (port 25) (Exim 4.69 #76)
	id 1LiGoy-0000gQ-45; Sat, 14 Mar 2009 00:29:44 +0100
In-Reply-To: <vlsklhhvcx.fsf@HIDDEN>
References: <94C0B520-AA49-4CA7-A4B3-93EC463793D2@HIDDEN> <vlsklhhvcx.fsf@HIDDEN>
Mime-Version: 1.0 (Apple Message framework v753.1)
Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed
Message-Id: <E724A434-B056-4636-AE60-8878B572AFB0@HIDDEN>
Cc: 2666 <at> debbugs.gnu.org
Content-Transfer-Encoding: quoted-printable
From: Peter Dyballa <Peter_Dyballa@HIDDEN>
Subject: Re: bug#2666: 23.0.91; TeX calendar and UTF-8 encoding
Date: Sat, 14 Mar 2009 00:29:34 +0100
To: Glenn Morris <rgm@HIDDEN>
X-Mailer: Apple Mail (2.753.1)


Am 14.03.2009 um 00:10 schrieb Glenn Morris:

> That results in the value being set to what it says in the doc-string.


Can't customise be customised to correct some doc-strings? Or should =20
I send a new bug report?

--
Greetings

   Pete

When in doubt, use brute force.
				=96 Ken Thompson







Acknowledgement sent to Peter Dyballa <Peter_Dyballa@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>, owner@HIDDEN. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>, owner@HIDDEN:
bug#2666; Package emacs,calendar. Full text available.
Severity set to `wishlist' from `normal' Request was from Glenn Morris <rgm@HIDDEN> to control@HIDDEN. Full text available.
bug reassigned from package `emacs' to `emacs,calendar'. Request was from Glenn Morris <rgm@HIDDEN> to control@HIDDEN. Full text available.

Message received at 2666@HIDDEN:


Received: (at 2666) by emacsbugs.donarmstrong.com; 13 Mar 2009 23:11:35 +0000
From rgm@HIDDEN Fri Mar 13 16:11:35 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-8.0 required=4.0 tests=HAS_BUG_NUMBER,
	VALID_BTS_CONTROL,X_DEBBUGS_NO_ACK autolearn=ham
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2DNAuwl028078;
	Fri, 13 Mar 2009 16:10:57 -0700
Received: from rgm by fencepost.gnu.org with local (Exim 4.67)
	(envelope-from <rgm@HIDDEN>)
	id 1LiGWk-0004G0-Sf; Fri, 13 Mar 2009 19:10:54 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Peter Dyballa <Peter_Dyballa@HIDDEN>
Cc: 2666 <at> debbugs.gnu.org
Subject: Re: bug#2666: 23.0.91; TeX calendar and UTF-8 encoding
References: <94C0B520-AA49-4CA7-A4B3-93EC463793D2@HIDDEN>
X-Spook: red noise ASO Bosnia electronic surveillance PLO CDC
X-Ran: +<j7[lt3bC7>@wsA02-~%0e6wJjgoT4aR?=G,;y9+#L"J~K$V\a5[^!I[#6DZ@'$eOc54t
X-Hue: blue
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Fri, 13 Mar 2009 19:10:54 -0400
In-Reply-To: <94C0B520-AA49-4CA7-A4B3-93EC463793D2@HIDDEN> (Peter
	Dyballa's message of "Fri, 13 Mar 2009 22:16:53 +0100")
Message-ID: <vlsklhhvcx.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

reassign 2666 emacs,calendar
severity 2666 wishlist
stop

Peter Dyballa wrote:

> I have some difficulties with the documentation of cal-tex-preamble- 
> extra. Its doc-string contains
>
>    For example, to include extra packages:
>    "\\usepackage{foo}\n\\usepackage{bar}\n".
>
> but when I use \\ and \n in the customisation interface these appear  
> unchanged in the calendar.tex buffer.

The above is what you need to use if you _don't_ use customize.
It seems that customize tries to be helpful and does extra quoting of
values you insert. So in the customize input field, you just type:

\usepackage{foo}C-q C-j
\usepackage{bar}

That results in the value being set to what it says in the doc-string.

I can add a comment along these lines, but it's a general customize
feature.


The other items are wishlists.




Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#2666; Package emacs. Full text available.

Message received at submit@HIDDEN:


Received: (at submit) by emacsbugs.donarmstrong.com; 13 Mar 2009 21:17:16 +0000
From Peter_Dyballa@HIDDEN Fri Mar 13 14:17:16 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2DLHCu9031265
	for <submit@HIDDEN>; Fri, 13 Mar 2009 14:17:13 -0700
Received: from mail.gnu.org ([199.232.76.166]:56845 helo=mx10.gnu.org)
	by fencepost.gnu.org with esmtp (Exim 4.67)
	(envelope-from <Peter_Dyballa@HIDDEN>)
	id 1LiEkh-0008Vd-IK
	for emacs-pretest-bug@HIDDEN; Fri, 13 Mar 2009 17:17:11 -0400
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60)
	(envelope-from <Peter_Dyballa@HIDDEN>)
	id 1LiEkd-0005X7-QJ
	for emacs-pretest-bug@HIDDEN; Fri, 13 Mar 2009 17:17:11 -0400
Received: from mout0.freenet.de ([195.4.92.90]:32769)
	by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60)
	(envelope-from <Peter_Dyballa@HIDDEN>)
	id 1LiEkd-0005Wf-BR
	for emacs-pretest-bug@HIDDEN; Fri, 13 Mar 2009 17:17:07 -0400
Received: from [195.4.92.15] (helo=5.mx.freenet.de)
	by mout0.freenet.de with esmtpa (ID peter_dyballa@HIDDEN) (port 25) (Exim 4.69 #79)
	id 1LiEkZ-0004EY-Cl
	for emacs-pretest-bug@HIDDEN; Fri, 13 Mar 2009 22:17:03 +0100
Received: from p5b23e8ef.dip.t-dialin.net ([91.35.232.239]:61974 helo=[192.168.1.2])
	by 5.mx.freenet.de with esmtpsa (ID peter_dyballa@HIDDEN) (TLSv1:AES128-SHA:128) (port 25) (Exim 4.69 #79)
	id 1LiEkY-0006f2-UJ
	for emacs-pretest-bug@HIDDEN; Fri, 13 Mar 2009 22:17:03 +0100
Mime-Version: 1.0 (Apple Message framework v753.1)
Content-Transfer-Encoding: quoted-printable
Message-Id: <94C0B520-AA49-4CA7-A4B3-93EC463793D2@HIDDEN>
Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed
To: emacs-pretest-bug@HIDDEN
From: Peter Dyballa <Peter_Dyballa@HIDDEN>
Subject: 23.0.91; TeX calendar and UTF-8 encoding
Date: Fri, 13 Mar 2009 22:16:53 +0100
X-Mailer: Apple Mail (2.753.1)
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)

Hello!

I have localised calendar to show month and day names in German. This =20=

month is M=E4rz. When I create a (La)TeX calendar, it's in UTF-8 =20
(because of my shell environment), the =E4 is 0xC3 0xA4 or =C3=A4 in ISO =
=20
8859-1 or =C3=80 in ISO 8859-15. The latter is my preferred LaTeX input =20=

encoding since it allows to use our currency sign, the =80. This now =20
makes it necessary to use the textcomp package in LaTeX.

Is it possible to make the output produced or its encoding more =20
flexible, adapt itself to the default encoding of GNU Emacs? If not, =20
could the documentation be updated to state which encoding is used =20
and that the user should use cal-tex-preamble-extra to adapt for that?

I have some difficulties with the documentation of cal-tex-preamble-=20
extra. Its doc-string contains

    For example, to include extra packages:
    "\\usepackage{foo}\n\\usepackage{bar}\n".

but when I use \\ and \n in the customisation interface these appear =20
unchanged in the calendar.tex buffer. (Actually LaTeX does not =20
complain when a few commands are concatenated to build a long line.) =20
I haven't yet saved my customisation =96 if this explains the =20
difference between theory and practise.


I'd also recommend to use the report class instead of article in the =20
LaTeX output generated: no useless AUX file is created then. Other =20
differences won't show up.

Another improvement would be to update some old LaTeX code, for =20
example the

	\special{landscape}{}%

This would only work for ancient DVI output. Modern XeTeX and pdfTeX =20
do not understand this. A completely orthogonal solution is:

	\usepackage[landscape]{geometry}

Between ``[=B4=B4 and ``]=B4=B4 is also the correct place to define the =
margin:

	=
\usepackage[landscape,nomarginpar,top=3D0pt,margin=3D{-2cm,-2cm}]{geometry=
}

It should be OK to just use:

	\usepackage[landscape,nomarginpar,top=3D0pt]{geometry}

It's not necessary to set \textwidth and \textheight. There is =20
probably no-one using a TeX distribution elder then 15 years, i.e., =20
it will be teTeX or TeX Live based. In these distributions a TeX =20
configuration file sets the default paper size. To switch from =20
landscape to portrait just remove the ``landscape,=B4=B4 option from the =
=20
line loading the geometry package or set clearly:

	\usepackage[portrait,nomarginpar,top=3D0pt]{geometry}

This package is in all TeX distributions. Since some years (<10) this =20=

is also true for the Latin Modern fonts (texdoc lm-info), which are =20
planned as a modernised update and substitute of all CM fonts in a =20
modern font format (OTF), which can be loaded via

	\usepackage{lmodern}

(actually PostScript fonts are used here). It could also be thought =20
of making the LaTeX output XeTeX compatible (loading ifpdf and =20
ifxetex packages, loading the fontspec package for XeTeX and setting =20
a system font, for example Times, or leaving the default Latin Modern).

In GNU Emacs 23.0.91.1 (powerpc-apple-darwin8.11.0, GTK+ Version 2.14.7)
  of 2009-03-13 on localhost
Windowing system distributor `The XFree86 Project, Inc', version =20
11.0.40400000
configured using `configure  '--without-sound' '--without-pop' '--=20
with-dbus' '--with-libotf' '--x-includes=3D/opt/local/include' '--x-=20
libraries=3D/opt/local/lib' '--enable-locallisppath=3D/Library/=20
Application Support/Emacs/calendar23:/Library/Application Support/=20
Emacs' 'PKG_CONFIG_PATH=3D/opt/local/lib/pkgconfig:/usr/local/lib/=20
pkgconfig:/usr/lib/pkgconfig' 'CFLAGS=3D-Wno-pointer-sign -H -pipe -=20
fPIC -mcpu=3D7450 -mtune=3D7450 -fast -mpim-altivec -ftree-vectorize -=20=

foptimize-register-move -freorder-blocks -freorder-blocks-and-=20
partition -fthread-jumps -fpeephole -fno-crossjumping' 'LDFLAGS=3D-=20
dead_strip -multiply_defined suppress -L/opt/local/lib' 'CPPFLAGS=3D''

Important settings:
   value of $LC_ALL: nil
   value of $LC_COLLATE: nil
   value of $LC_CTYPE: de_DE.UTF-8
   value of $LC_MESSAGES: nil
   value of $LC_MONETARY: nil
   value of $LC_NUMERIC: nil
   value of $LC_TIME: nil
   value of $LANG: de_DE.UTF-8
   value of $XMODIFIERS: nil
   locale-coding-system: utf-8-unix
   default-enable-multibyte-characters: t

Major mode: Info

Minor modes in effect:
   shell-dirtrack-mode: t
   diff-auto-refine-mode: t
   show-paren-mode: t
   display-time-mode: t
   desktop-save-mode: t
   tooltip-mode: t
   mouse-wheel-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   global-auto-composition-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   column-number-mode: t
   line-number-mode: t
   transient-mark-mode: t

--
Mit friedvollen Gr=FC=DFen

   Pete

Imbecility, n.:
	A kind of divine inspiration, or sacred fire affecting
	censorious critics of this dictionary.
			=96 Ambrose Bierce: _The Devil's Dictionary_





Acknowledgement sent to Peter Dyballa <Peter_Dyballa@HIDDEN>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Report forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#2666; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.