Giter Club home page Giter Club logo

callirhoe's Introduction

=============================================
 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 !!

callirhoe's People

Contributors

geotz avatar ph4ntome avatar petrm97 avatar

Stargazers

Markus Geiger avatar Christoph Heuel avatar Carlo Mandelli avatar  avatar eadmaster avatar Senthil Nayagam avatar Jocelyn Sunseri avatar  avatar Alex Monastiriotis avatar Anargyros Tsadimas avatar  avatar David Chappell avatar Tomasz Goliński avatar

Watchers

James Cloos avatar  avatar  avatar

callirhoe's Issues

Inconsistent font size for holidays?

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.

fix links

we have to fix links in INSTALL/README/AUTHORS ...

Problem generating a single month calendar

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.

Support for more languages by using babel

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

Possible to start week on Sunday instead of Monday?

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.

python2 interpreter executable

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

Possible to get this formatting?

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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.