unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: mar@centrum.cz
Subject: calendar.el
Date: Thu, 13 Apr 2006 21:08:16 +0200	[thread overview]
Message-ID: <E1FU7Au-0005GJ-00@barbucha.martin.net> (raw)

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:
<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{%
\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}{}% 
============================================================

             reply	other threads:[~2006-04-13 19:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-13 19:08 mar [this message]
2006-04-24  3:00 ` calendar.el Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1FU7Au-0005GJ-00@barbucha.martin.net \
    --to=mar@centrum.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).