[Cuis-dev] Calendar for 2025 and beyond...

H. Hirzel hannes.hirzel at gmail.com
Sat Dec 21 15:20:57 PST 2024


Hi all

The new year is approaching quickly. Time to do a calendar in Cuis 
Smalltalk!

https://github.com/hhzl/Calendars/blob/master/GeneratingCalendars/YearInMarkDown.md

has code in script 7 which produces a calendar with a block for each 
month in markdown notation.

With pandoc you may generate versions for LibreOffice Writer, Microsoft 
Word, Adobe InDesign and also HTML.


- The scripts 1 to 6 show with increasing complexity how the script was 
developed.

- The code aims at being easy to understand for someone who has little 
Smalltalk knowledge. Thus the script format was used.

- What I have not yet done yet is to hook up the data for 13 languages in

https://github.com/hhzl/Calendars/blob/master/GeneratingCalendars/Calendarium-Data.pck.st

taken from https://github.com/fccm/ocaml-cal-svg/blob/master/cal_svg.ml

I thought I share the result as it is now because it is useful as is 
and  the day and month names may also be changed manually. Events may be 
easily added as they are just dates in a Dictionary object.

Feedback and contribution of more language data/ calendar types/ 
formatting changes  is welcome.

Some links are provided for this.

Regards

Hannes


P.S. https://github.com/fccm/ocaml-cal-svg also has a demo of nice SVG 
calendars at

http://decapode314.free.fr/cal/2022/

This may also be an option to be implemented (not necessarily be me :-) )





More information about the Cuis-dev mailing list