Origin:The original script is from
https://www.gimphelp.org/other_calendar_month.html (I have it from ages)
Then recently I discovered the same but with the possibility for the year to chose from month to month
https://www.gimpscripts.net/2020/12/sg-calendar.html this later script has no Ctrl+Z capabilities (I did try to fix it, but nope I got more errors) and can be buggy as well as you do need to go to Select > None after that script did run)
Why:It all started when I tried the script from gimpscripts, I saw there was a Russian version in this script, I told myself, "it misses the Ukrainian language!".
Then I just wanted to add a slider or two and change some default values and extend the max year on the one I did have from gimphelp, then testing it many times, I did many things to suit my needs like changing some others default values, then finally add the Ukrainian language, fixing a bug in the "Date position" as it was a mess in the drop-down list about the order, changing labels to be more specific as my test gave me a better understanding how it works, etc... (once I was in, I couldn't stop
![hee hee :hehe](./images/smilies/hihi.gif)
)
So two scripts -> which one:I did work and tested thoroughly on the one from gimphelp
sg-calendar-from-gh-210.scm, and just reported few changes on the other one
sg-calendar-from-gs.scm, I did took some translations from the later that
sg-calendar-from-gh-210.scm did not have, add also Ukrainian to the one from gimpscripts...
But overall this one ->
sg-calendar-from-gh-210.scm is the one I use, is less buggy (maybe a point of view?), has the Ctrl+Z option working, and left the canvas
without an active selection thus I like it better -> for sure it's just because I did all with it that I like it better
![hee hee :hehe](./images/smilies/hihi.gif)
, I'm not fair at this point.
On the other hand ->
sg-calendar-from-gs.scm can make a year calendar from a month and ends to another month that you chose, where the other one gives you a full year. And let's face it,
I just reported few things on it, not really doing things, and just tried it not fully testing it! Thus I don't really know this one.
I'm not a programmer:I did not touch the core code, nor algorithms, etc... I did made a lot of changes from line 1 to 176 and from 761 to 812 in sg-calendar-from-gh-210.scm.
THUS, the usual warning -> if you download those scripts, you should know that they WILL BURN your computer, maybe your house with it...
So if you want to keep your car, park it outside of your garage, two or three blocks away from your house.
Both scripts are inside, you should not put them together, but I did some slight changes and they can be installed together in the
script directory/folder.
On the menu
Filters > Render > Calendar > (the entries starting with "Gs" is the script from gimpscript)
Attachment:
calendars.7z [11.91 KiB]
Downloaded 54 times
Example Year 2077
![Image](http://gimpchat.com/files/7489_year-2077.jpg)
Example January 2099
![Image](http://gimpchat.com/files/7489_january-2099.jpg)
Few things to know that can help:
There is an option called "
Right Justify:...", this option affect only the numbers composed with one digit only -> if
UNchecked, numbers 1 to 9 will be aligned vertically
on the first digit of the numbers with 2 digits.
See?
Attachment:
screenshot_20231007-103134.jpg [ 140.81 KiB | Viewed 1084 times ]
When checked this option will align vertically the numbers composed with 1 digit, in the middle of the numbers composed with 2 digits
See?
Attachment:
screenshot_20231007-103354.jpg [ 155.84 KiB | Viewed 1084 times ]
Also the "Padding" in the year calendar (only in the year), will increase the space of the banner for the month's name, as well as the space BETWEEN rows, but it has a counter effect, it will decrease the size of the month's grids.
Roughly a month's name cannot be larger than the month's grid (see November/December, the biggest names), thus when a big name reach the wideness of its grid,
if you continue to increase the Padding, this will start to add more space between rows -> thus decreasing the size of the months grid even faster -> as a name cannot be bigger that its grid -> now also decrease the month's name and increase even more the space between rows.
I don't know if you understand my explanations... but I discovered this during my tests. I found it quite genius once I understood, tough, but you should understand how it works, it's quite simple
Padding at 10 100% view
![Image](http://gimpchat.com/files/7489_screenshot_20231007-105149.jpg)
Padding at 30 100% view (see the month's grid already decrease while the month's names did increase
![Image](http://gimpchat.com/files/7489_screenshot_20231007-110439.jpg)
You will find bugs, ants, and maybe some fishes!
Please I can only help (a very little) with
sg-calendar-from-gh-210.scm, that's the only one I truly tested up to the other side of our galaxy.