(archive 'newLISPer)

December 12, 2007

Christmas lunacy

Filed under: newLISP — newlisper @ 15:29

If you’re stuck for gift ideas this christmas, how about printing out a paper version of this 2008 lunar calendar, generated and drawn by a newLISP script with some help from PostScript and PDF?

I spent a few minutes trying to generate this calendar in languages other than English. (That “en” is a clue!) It was easy enough to produce the month and day names in the different languages, using newLISP’s set-locale function:

(set-locale "nl_NL")

; netherlands
(set 'day-of-week
    (date start-date 0 {%A}))

;-> "woensdag"
(set-locale "C")

; quickly back to default locale

But unfortunately I think PostScript isn’t very clever when it comes to Unicode, and it failed to translate the strings properly. It’s not much of a problem for some languages, but it’s more serious for others (and disastrous for Russian):


so until I work out how to get Unicode strings from newLISP to PDF via PostScript, I’m going to stick with English. If you have any clues, please let me know – the internet has let me down, again!


Leave a Comment »

No comments yet.

RSS feed for comments on this post.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at WordPress.com.

%d bloggers like this: