pscal

pscal is a simple shell script that creates PostScript calendars. It's not the most advanced calendar creator available, but for quick, nice looking calendars, it's very handy to have sitting in your bin directory. Features include: font selection, user-defined holidays, phase of moon, and days past/remaining in the year.

Tags Scientific/Engineering Astronomy Utilities
Operating Systems POSIX
Implementation Unix Shell

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  01 Jan 2005 15:10
  • Rrelease-after

Changes: The %%Orientation comment was added to the PS prolog. Russian and Slovak translations were added. A sample Slovak .holiday file was added.

  • Rrelease-mid
  •  12 Jan 2002 21:16
  • Rrelease-after

Changes: Updated Esperanto and Polish translations, and new Serbian and Turkish translations.

  • Rrelease-mid
  •  23 Dec 2001 15:55
  • Rrelease-after

Changes: New Danish and Finnish translations, an updated Polish translation, and an option to start the week on Monday. It also corrects bugs with no leading zeros in the .holiday file, and incorrect handling of the language when $LANG was set to "C".

  • Rrelease-mid
  •  16 Apr 2001 01:02
  • Rrelease-after

Changes: New Italian and Spanish translations and a fix for the -R option.

  • Rrelease-mid
  •  14 Apr 2001 21:25
  • Rrelease-after

Changes: New Catalan and Esperanto (h-System) translations.

Rss Recent comments

Rcomment-before 28 Jan 2009 18:59 Rcomment-trans rnturner Rcomment-after

Re: pscal's output broken beginning in 2009

> The calendars produced beginning in 2009

> are off by one day. For example,

> 2008-12-31 and 2009-01-01 are both on

> Wednesday.

Ouch. The problem I ran into above wasn't for the latest release. However, there does appear to be another LANG-related problem for some users. (Different than the older comment regarding the LANG setting.) "en_US" isn't recognized as a valid language setting; at least not on SuSE-based systems or even an old RH8.0 I have access to. Changing the assignment on line 127 to "en_US.UTF-8" fixes that problem. Prefixing a recognized LANG setting to the command (i.e., "LANG=C pscal mm yyyy") works, too.

Rcomment-before 28 Jan 2009 13:47 Rcomment-trans rnturner Rcomment-after

pscal's output broken beginning in 2009
The calendars produced beginning in 2009 are off by one day. For example, 2008-12-31 and 2009-01-01 are both on Wednesday. I hope this can be fixed as pscal has been so useful over the years.

Rcomment-before 09 Feb 2001 17:14 Rcomment-trans devphil Rcomment-after

Bug in 1.11 -- checking against POSIX LANG values falls short
First, the SYNOPSIS in the comments at the start of the script is utterly outdated. Anyhow...

The default setting of LANGUAGE picks up $LANG from the environment, but then doesn't test for the POSIX "sublanguage" strings. For example, en_US (American English) is the default LANG setting in all of our systems out of the box, but pscal warns about an unknown language. (It tests for "en", but nothing more.)

Unfortunately, warning isn't enough, because it generates bad PostScript as output.

Anyhow, it's good to see that someone is maintaining pscal. It's been so useful over the years!

Rcomment-before 18 Mar 2000 06:49 Rcomment-trans martinmv Rcomment-after

Sunrises and sunsets in the calendar
There are scripts for put sunrises and sunsets into calendar.

http://www.penguin.cz/~martinmv/index_eng.html

No-screenshot

Project Spotlight

katso

An eclectic data scoring tool.

No-screenshot

Project Spotlight

msn-pecan

An alternative MSN protocol plug-in for libpurple.