bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

calendar.el


From: mar
Subject: calendar.el
Date: Thu, 13 Apr 2006 21:08:16 +0200

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 address@hidden 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:
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <down-mouse-1> <mouse-1> L e d e n M-d <down> 
<up> <right> <right> <right> <right> <right> <right> 
<right> <right> <left> <left> <left> <left> <left> 
<left> <left> <left> <backspace> <backspace> <backspace> 
<backspace> <backspace> J a n u a r y <prior> <prior> 
<prior> <prior> <prior> <prior> <prior> <prior> <prior> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<menu-bar> <help-menu> <report-emacs-bug>

Recent messages:
(make-frame-visible (#<frame  SPEEDBAR 0x89f14a8\ >))
call-interactively: Beginning of buffer [3 times]
Mark saved where search started
call-interactively: Beginning of buffer [7 times]
Auto-saving...done
(iconify-frame (#<frame Speedbar 0.15beta2 0x89f14a8\ >))
(iconify-frame (#<frame kalendar_c_2006.tex 0x84f3238\ >))
(make-frame-visible (#<frame  SPEEDBAR 0x89f14a8\ >))
(make-frame-visible (#<frame kalendar_c_2006.tex 0x84f3238\ >))
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{%
address@hidden@address@hidden@address@hidden@address@hidden@{\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{%
address@hidden@address@hidden@address@hidden@address@hidden@{\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{%
address@hidden@address@hidden@address@hidden@address@hidden@{\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{%
address@hidden@address@hidden@address@hidden@address@hidden@{\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{%
address@hidden@address@hidden@address@hidden@address@hidden@{\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{%
address@hidden@address@hidden@address@hidden@address@hidden@{\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{%
address@hidden@address@hidden@address@hidden@address@hidden@{\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{%
address@hidden@address@hidden@address@hidden@address@hidden@{\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{%
address@hidden@address@hidden@address@hidden@address@hidden@{\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{%
address@hidden@address@hidden@address@hidden@address@hidden@{\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{%
address@hidden@address@hidden@address@hidden@address@hidden@{\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{%
address@hidden@address@hidden@address@hidden@address@hidden@{\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}{}% 
============================================================




reply via email to

[Prev in Thread] Current Thread [Next in Thread]