From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: mar@centrum.cz Newsgroups: gmane.emacs.bugs Subject: calendar.el Date: Thu, 13 Apr 2006 21:08:16 +0200 Message-ID: Reply-To: mar@centrum.cz NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1144960772 2169 80.91.229.2 (13 Apr 2006 20:39:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Apr 2006 20:39:32 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 13 22:39:29 2006 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FU8ax-0006RJ-Q5 for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Apr 2006 22:39:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FU8ax-0003OF-DY for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Apr 2006 16:39:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FU7Ay-000754-Vf for bug-gnu-emacs@gnu.org; Thu, 13 Apr 2006 15:08:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FU7Ay-00074O-Ho for bug-gnu-emacs@gnu.org; Thu, 13 Apr 2006 15:08:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FU7Ay-00074G-2b for bug-gnu-emacs@gnu.org; Thu, 13 Apr 2006 15:08:20 -0400 Original-Received: from [89.102.58.26] (helo=barbucha.martin.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FU7GK-0005J2-Ty for bug-gnu-emacs@gnu.org; Thu, 13 Apr 2006 15:13:53 -0400 Original-Received: from martin by barbucha.martin.net with local (Exim 3.36 #1 (Debian)) id 1FU7Au-0005GJ-00 for ; Thu, 13 Apr 2006 21:08:16 +0200 Original-To: bug-gnu-emacs@gnu.org X-Mailman-Approved-At: Thu, 13 Apr 2006 16:38:59 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15042 Archived-At: This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.4.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2005-10-03 on trouble, modified by Debian configured using `configure '--build=i486-linux-gnu' '--host=i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--with-x=yes' '--with-x-toolkit=athena' 'CFLAGS=-DDEBIAN -g -O2' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu'' Important settings: value of $LC_ALL: cs_CZ value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: cs locale-coding-system: iso-8859-2 default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Hi, i just used a calnedar.el and i was forced to lozalize it to czech (i am from czech republic), so i did the following -- i put those lines into my .emacs: - - - - (require 'calendar) (european-calendar) (setq calendar-week-start-day 1 calendar-day-name-array ["Neděle" "Pondělí" "Úterý" "Středa" "Čtvrtek" "Pátek" "Sobota"] calendar-month-name-array ["Leden" "Únor" "Březen" "Duben" "Květen" "Červen" "Červenec" "Srpen" "Září" "Říjen" "Listopad" "Prosinec"]) - - - - (some characters are in iso-8859-2 encoding) everything in Emacs was fine, till i want to print a calendar (using commands 't y' and 't Y') -- the LaTeX output defined a commands for printing the months as used in my native language (so it was \Leden for January) but at the end of file, where the actual command is printed, the "\January" was typed out, for it is hardcoded in calendar.el. See the attachment please. If i may suggest, i will leave the name for LaTeX commands in english, because other languages may use unusual characters -- so have two arrays for month/day -- one for LaTeX commands, one for localized strings to use by this commands. Thanks! Recent input: L e d e n M-d J a n u a r y Recent messages: (make-frame-visible (#)) call-interactively: Beginning of buffer [3 times] Mark saved where search started call-interactively: Beginning of buffer [7 times] Auto-saving...done (iconify-frame (#)) (iconify-frame (#)) (make-frame-visible (#)) (make-frame-visible (#)) Loading emacsbug...done ===File ~/prac/mamus/kalendar/kalendar_a_2006.tex=========== % This buffer was produced by cal-tex.el. % To print a calendar, type % M-x tex-buffer RET % M-x tex-print RET \documentstyle[12pt]{article} \hbadness 20000 \hfuzz=1000pt \vbadness 20000 \lineskip 0pt \marginparwidth 0pt \oddsidemargin -2cm \evensidemargin -2cm \marginparsep 0pt \topmargin 0pt \textwidth 7.5in \textheight 9.5in \newlength{\cellwidth} \newlength{\cellheight} \newlength{\boxwidth} \newlength{\boxheight} \newlength{\cellsize} \newcommand{\myday}[1]{} \newcommand{\caldate}[6]{} \newcommand{\nocaldate}[6]{} \newcommand{\calsmall}[6]{} % \oddsidemargin -1.75cm{}% \def\holidaymult{.06}{}% \fboxsep=0pt \long\def\caldate#1#2#3#4#5#6{% \fbox{\hbox to\cellwidth{% \vbox to\cellheight{% \hbox to\cellwidth{% {\hspace*{1mm}\Large \bf \strut #2}\hspace{.05\cellwidth}% \raisebox{\holidaymult\cellheight}% {\parbox[t]{.75\cellwidth}{\tiny \raggedright #4}}} \hbox to\cellwidth{% \hspace*{1mm}\parbox{.95\cellwidth}{\tiny \raggedright #3}} \hspace*{1mm}% \hbox to\cellwidth{#6}% \vfill% \hbox to\cellwidth{\hfill \tiny #5 \hfill}% \vskip 1.4pt}% \hskip -0.4pt}}} {}% \renewcommand{\myday}[1]% {\makebox[\cellwidth]{\hfill\large\bf#1\hfill}} % {}% \begin{document}{}% \pagestyle{empty}{}% \setlength{\cellwidth}{18cm}% \setlength{\cellwidth}{0.157143\cellwidth} \setlength{\cellheight}{24cm}% \setlength{\cellheight}{1.000000\cellheight} \ \par{}% \vspace*{-3cm}% \vspace*{-3.1cm}% \vfill% \begin{center}{}% {\Huge 2006}% \end{center}{}% \vspace*{1cm}% \begin{center}{}% \parbox[l]{4.3in}{% \noindent\\% \def\month{\hbox to1.1in{% \vbox to1in{% \vfil \hbox to1.1in{% \hfil\scriptsize\begin{tabular}{@{\hspace{0mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{0mm}}}% \multicolumn{7}{c}{Leden 2006}\\[1mm] Po & Út & St & Čt & Pá & So & Ne\\[0.7mm] & & & & & & 1\\[0.5mm] 2 & 3 & 4 & 5 & 6 & 7 & 8\\[0.5mm] 9 & 10 & 11 & 12 & 13 & 14 & 15\\[0.5mm] 16 & 17 & 18 & 19 & 20 & 21 & 22\\[0.5mm] 23 & 24 & 25 & 26 & 27 & 28 & 29\\[0.5mm] 30 & 31 & \end{tabular}\hfil}\vfil}}}% \month\hspace*{0.5in}% \def\month{\hbox to1.1in{% \vbox to1in{% \vfil \hbox to1.1in{% \hfil\scriptsize\begin{tabular}{@{\hspace{0mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{0mm}}}% \multicolumn{7}{c}{Únor 2006}\\[1mm] Po & Út & St & Čt & Pá & So & Ne\\[0.7mm] & & 1 & 2 & 3 & 4 & 5\\[0.5mm] 6 & 7 & 8 & 9 & 10 & 11 & 12\\[0.5mm] 13 & 14 & 15 & 16 & 17 & 18 & 19\\[0.5mm] 20 & 21 & 22 & 23 & 24 & 25 & 26\\[0.5mm] 27 & 28 & \end{tabular}\hfil}\vfil}}}% \month\hspace*{0.5in}% \def\month{\hbox to1.1in{% \vbox to1in{% \vfil \hbox to1.1in{% \hfil\scriptsize\begin{tabular}{@{\hspace{0mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{0mm}}}% \multicolumn{7}{c}{Březen 2006}\\[1mm] Po & Út & St & Čt & Pá & So & Ne\\[0.7mm] & & 1 & 2 & 3 & 4 & 5\\[0.5mm] 6 & 7 & 8 & 9 & 10 & 11 & 12\\[0.5mm] 13 & 14 & 15 & 16 & 17 & 18 & 19\\[0.5mm] 20 & 21 & 22 & 23 & 24 & 25 & 26\\[0.5mm] 27 & 28 & 29 & 30 & 31 & \end{tabular}\hfil}\vfil}}}% \month\hspace*{0.5in}% \\[0.5in]% \def\month{\hbox to1.1in{% \vbox to1in{% \vfil \hbox to1.1in{% \hfil\scriptsize\begin{tabular}{@{\hspace{0mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{0mm}}}% \multicolumn{7}{c}{Duben 2006}\\[1mm] Po & Út & St & Čt & Pá & So & Ne\\[0.7mm] & & & & & 1 & 2\\[0.5mm] 3 & 4 & 5 & 6 & 7 & 8 & 9\\[0.5mm] 10 & 11 & 12 & 13 & 14 & 15 & 16\\[0.5mm] 17 & 18 & 19 & 20 & 21 & 22 & 23\\[0.5mm] 24 & 25 & 26 & 27 & 28 & 29 & 30 \end{tabular}\hfil}\vfil}}}% \month\hspace*{0.5in}% \def\month{\hbox to1.1in{% \vbox to1in{% \vfil \hbox to1.1in{% \hfil\scriptsize\begin{tabular}{@{\hspace{0mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{0mm}}}% \multicolumn{7}{c}{Květen 2006}\\[1mm] Po & Út & St & Čt & Pá & So & Ne\\[0.7mm] 1 & 2 & 3 & 4 & 5 & 6 & 7\\[0.5mm] 8 & 9 & 10 & 11 & 12 & 13 & 14\\[0.5mm] 15 & 16 & 17 & 18 & 19 & 20 & 21\\[0.5mm] 22 & 23 & 24 & 25 & 26 & 27 & 28\\[0.5mm] 29 & 30 & 31 & \end{tabular}\hfil}\vfil}}}% \month\hspace*{0.5in}% \def\month{\hbox to1.1in{% \vbox to1in{% \vfil \hbox to1.1in{% \hfil\scriptsize\begin{tabular}{@{\hspace{0mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{0mm}}}% \multicolumn{7}{c}{Červen 2006}\\[1mm] Po & Út & St & Čt & Pá & So & Ne\\[0.7mm] & & & 1 & 2 & 3 & 4\\[0.5mm] 5 & 6 & 7 & 8 & 9 & 10 & 11\\[0.5mm] 12 & 13 & 14 & 15 & 16 & 17 & 18\\[0.5mm] 19 & 20 & 21 & 22 & 23 & 24 & 25\\[0.5mm] 26 & 27 & 28 & 29 & 30 & \end{tabular}\hfil}\vfil}}}% \month\hspace*{0.5in}% \\[0.5in]% \def\month{\hbox to1.1in{% \vbox to1in{% \vfil \hbox to1.1in{% \hfil\scriptsize\begin{tabular}{@{\hspace{0mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{0mm}}}% \multicolumn{7}{c}{Červenec 2006}\\[1mm] Po & Út & St & Čt & Pá & So & Ne\\[0.7mm] & & & & & 1 & 2\\[0.5mm] 3 & 4 & 5 & 6 & 7 & 8 & 9\\[0.5mm] 10 & 11 & 12 & 13 & 14 & 15 & 16\\[0.5mm] 17 & 18 & 19 & 20 & 21 & 22 & 23\\[0.5mm] 24 & 25 & 26 & 27 & 28 & 29 & 30\\[0.5mm] 31 & \end{tabular}\hfil}\vfil}}}% \month\hspace*{0.5in}% \def\month{\hbox to1.1in{% \vbox to1in{% \vfil \hbox to1.1in{% \hfil\scriptsize\begin{tabular}{@{\hspace{0mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{0mm}}}% \multicolumn{7}{c}{Srpen 2006}\\[1mm] Po & Út & St & Čt & Pá & So & Ne\\[0.7mm] & 1 & 2 & 3 & 4 & 5 & 6\\[0.5mm] 7 & 8 & 9 & 10 & 11 & 12 & 13\\[0.5mm] 14 & 15 & 16 & 17 & 18 & 19 & 20\\[0.5mm] 21 & 22 & 23 & 24 & 25 & 26 & 27\\[0.5mm] 28 & 29 & 30 & 31 & \end{tabular}\hfil}\vfil}}}% \month\hspace*{0.5in}% \def\month{\hbox to1.1in{% \vbox to1in{% \vfil \hbox to1.1in{% \hfil\scriptsize\begin{tabular}{@{\hspace{0mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{0mm}}}% \multicolumn{7}{c}{Září 2006}\\[1mm] Po & Út & St & Čt & Pá & So & Ne\\[0.7mm] & & & & 1 & 2 & 3\\[0.5mm] 4 & 5 & 6 & 7 & 8 & 9 & 10\\[0.5mm] 11 & 12 & 13 & 14 & 15 & 16 & 17\\[0.5mm] 18 & 19 & 20 & 21 & 22 & 23 & 24\\[0.5mm] 25 & 26 & 27 & 28 & 29 & 30 & \end{tabular}\hfil}\vfil}}}% \month\hspace*{0.5in}% \\[0.5in]% \def\month{\hbox to1.1in{% \vbox to1in{% \vfil \hbox to1.1in{% \hfil\scriptsize\begin{tabular}{@{\hspace{0mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{0mm}}}% \multicolumn{7}{c}{Říjen 2006}\\[1mm] Po & Út & St & Čt & Pá & So & Ne\\[0.7mm] & & & & & & 1\\[0.5mm] 2 & 3 & 4 & 5 & 6 & 7 & 8\\[0.5mm] 9 & 10 & 11 & 12 & 13 & 14 & 15\\[0.5mm] 16 & 17 & 18 & 19 & 20 & 21 & 22\\[0.5mm] 23 & 24 & 25 & 26 & 27 & 28 & 29\\[0.5mm] 30 & 31 & \end{tabular}\hfil}\vfil}}}% \month\hspace*{0.5in}% \def\month{\hbox to1.1in{% \vbox to1in{% \vfil \hbox to1.1in{% \hfil\scriptsize\begin{tabular}{@{\hspace{0mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{0mm}}}% \multicolumn{7}{c}{Listopad 2006}\\[1mm] Po & Út & St & Čt & Pá & So & Ne\\[0.7mm] & & 1 & 2 & 3 & 4 & 5\\[0.5mm] 6 & 7 & 8 & 9 & 10 & 11 & 12\\[0.5mm] 13 & 14 & 15 & 16 & 17 & 18 & 19\\[0.5mm] 20 & 21 & 22 & 23 & 24 & 25 & 26\\[0.5mm] 27 & 28 & 29 & 30 & \end{tabular}\hfil}\vfil}}}% \month\hspace*{0.5in}% \def\month{\hbox to1.1in{% \vbox to1in{% \vfil \hbox to1.1in{% \hfil\scriptsize\begin{tabular}{@{\hspace{0mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{1mm}}r@{\hspace{0mm}}}% \multicolumn{7}{c}{Prosinec 2006}\\[1mm] Po & Út & St & Čt & Pá & So & Ne\\[0.7mm] & & & & 1 & 2 & 3\\[0.5mm] 4 & 5 & 6 & 7 & 8 & 9 & 10\\[0.5mm] 11 & 12 & 13 & 14 & 15 & 16 & 17\\[0.5mm] 18 & 19 & 20 & 21 & 22 & 23 & 24\\[0.5mm] 25 & 26 & 27 & 28 & 29 & 30 & 31 \end{tabular}\hfil}\vfil}}}% \month\hspace*{0.5in}% \\[0.5in]% % }% end parbox % \end{center}{}% \vfill% \end{document}{}% ============================================================