geotz / callirhoe Goto Github PK
View Code? Open in Web Editor NEWpdf and photo calendar creator with high quality vector graphics
Home Page: https://geotz.github.io/callirhoe/
License: GNU General Public License v3.0
pdf and photo calendar creator with high quality vector graphics
Home Page: https://geotz.github.io/callirhoe/
License: GNU General Public License v3.0
============================================= callirhoe - high quality calendar rendering (c) 2012-2015 George Tzoumas https://geotz.github.io/callirhoe/ ============================================= First steps: Create a calendar of the current year: $ callirhoe foo.pdf Options: $ callirhoe --help (or just callirhoe) More options: $ callirhoe --list-layouts bars classic sparse $ callirhoe -t classic -? ... $ callirhoe -t sparse -? Examples: $ callirhoe --examples For more info, check out the project's webpage. PHOTO CALENDARS --------------- Use calmagick. Options: $ calmagick --help (or just calmagick) Example usage: $ cd photos $ ls photo001.jpg photo002.jpg ... Create a calendar starting from current month/year, spanning as many months as the photo files: $ calmagick '*.jpg' --range 0:0/0 --outdir=mycalendar - use the -v option for progress output (if you are bored :) ) - use the -j option for multiple threads, e.g. -j 2 - by default the 'transparent' style is used; use the -s option to override Create a calendar for 2015 using the first 12 photo files (in alphabetic order): $ calmagick '*.jpg' --range 1-12/2015 --outdir=mycalendar_2015 Note that we specified where output files (composed images) go: mycaledar_2015/ (folder will be created automatically) Create a calendar for 2015 choosing 12 random photos from all the available ones (if not enough photos available, they will be reused in a round-robin fashion): $ calmagick '*.jpg' --range 1-12/2015 --shuffle --outdir=mycalendar_2015s -- Have fun !!
First off, great project!
I found an issue though (I think) that I can't seem to solve. I'm making heavy use of the "holidays" feature, and the font size for the holidays varies without any reason that I can see.
For example, in this calendar note the difference in header font size between March 5 and 6:
http://sinkingsensation.com/dropbox/clamming_tides-symmetric.pdf
That calendar was generated using the "symmetric" flag, so all the boxes should be the same size.
Is there some way I can set a fixed font size for the holidays?
Here's the command that build that calendar:
/home/callirhoe/callirhoe.py --cols=3 --style=lawsons --padding=0 --no-shadow --no-footer -H /home/callirhoe/clamming_tides-2017.txt --dpi=120 --symmetric /home/callirhoe/a4.pdf
And here's all the files required to build it:
http://sinkingsensation.com/dropbox/clamming_calendar_files.zip
And thanks again for the great work on this project.
we have to fix links in INSTALL/README/AUTHORS ...
I'm trying to build a single PDF for each month in the year. Looking at the help file:
Calendar of 24 consecutive months, starting from current month:
$ callirhoe 0:24 0 my_calendar.pdf
So I think this should make a calendar of just the current month:
callirhoe.py 0:1 1 march.pdf
But it's drawing some other month, and I can't figure out which.
Edited to add: oops, this is solved. The last 1 in "0:1 1" is a year offset, so it's generating the following year. But see below for another issue with the year offset.
I have made a branch where I implemented support for using the external library
babel to translate months and weekday names. This gives support for many
locales (something like 650) in one go.
Would you be interested in merging it?
If so I will do a clean-up to solve some problems that the patch currently have:
* pdfs in Arabic, Chinese and some other languages have missing characters
(most likely a font problem).
* the week_of_year_prefix is currently missing (should be possible to extract
from the date formatting functions).
Link to the code: https://code.google.com/r/jens-babel/source/browse/
Link to babel: http://babel.pocoo.org/
Original issue reported on code.google.com by [email protected]
on 12 Jan 2015 at 7:39
I'm trying to modify my calendar so the week starts with Sunday. Currently my calendar looks like this:
https://gizmoware.net/tides/clamming/lawsons_clam_tides_2023.pdf
I generate that with the following command:
./callirhoe.py --cols=4 --style=lawsonsAnnual --padding=0 --inner_padding=2 --no-shadow -H clamming_tides-2023.txt --lang "ENLong" --no-footer --header_margin=4 --dpi=120 --paper=a4w output.pdf
Looking through the help and examples I'm not seeing a way to make the week start on Sunday. Is there a built-in way to do it?
And thank you for the amazing software by the way.
What steps will reproduce the problem?
1. Run frozen script (zipfile) or provided script make_resources_list
What is the expected output? What do you see instead?
1. Script does not run due to non-existent hardcoded python binary (python2).
Maybe use 'python' or 'python2.7' ?
Original issue reported on code.google.com by geortz
on 1 Nov 2014 at 5:04
I'm using this calendar as a model:
http://gizmoware.net/tides/clamming/model.pdf
This is my current progress:
http://gizmoware.net/tides/clamming/2019.pdf
The main thing I can't figure out is how to add "inner padding" between the calendars. What I mean by that is separating the calendars with some space, but with only a single line between the calendars (as in model.pdf) as opposed to each calendar drawing a border. I think that looks a lot cleaner design wise.
I also can't figure out how to add a little padding above and below the month name.
I'm fine with modifying the code to achieve this. Currently I'm editing layouts/classic.py to remove the boxes around the day names, and layouts/_base.py to get the different colors for different holiday types (in my case that's different levels of low tide to indicate how good the clamming will be on that day).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.