mkouhei / Genenga

Generate Nengajo(Japanese new year card) pdf, from address list.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Genenga is generator PDF of Nengajo from address list.

This utility is generate PDF for printing address "Happy new year card", a.k.a. "Nengajo" in Japanese.

https://secure.travis-ci.org/mkouhei/Genenga.png?branch=master https://coveralls.io/repos/mkouhei/Genenga/badge.png?branch=master https://pypip.in/v/Genenga/badge.png Documentation Status

Requirement

Debian Packages

  • texlive-binaries (>= 2018.20181218.449446)
  • texlive-lang-japanese
  • libc-bin
  • python3.5 over
  • fonts-takao-gothic
  • fonts-takao-mincho
  • make
  • python3-pystache

format of address.csv

address list is CSV. It is syntax is below:

status,PersonLastName,PersonFirstName1,PersonFirstName2,address,address2,address3,PostalCode1,PostalCode2,PostalCode3,PostalCode4,PostalCode5,PostalCode6,PostalCode7

Example

1,子猫,にゃんこ,ねこちゃん,東京都**区ねこまた町0ー0,,,0,0,0,0,0,0,0
1,猫山,にゃんごろ,,東京都太田区ねこむら町0ー0,キャットマンション101,,0,0,0,0,0,0,0
1,猫村,にゃん太,にゃんこ,東京都新宿区ねこ町0ー0,,,0,0,0,0,0,0,0
0,猫太,ねこのすけ,,東京都三鷹市こねこ町0ー0,,,0,0,0,0,0,0,0
1,猫野,ねこ太,ねこ助,神奈川県横浜市こねこ町0ー0,,,0,0,0,0,0,0,0

Warning

The csv format has changed in v0.5.0. address3 is inserted before PostalCode1.

Flag of address first field

  1. target this year.
  2. next year target but not sent this year.
  3. sent the before last.
  4. remove.

Usage

  1. Update address.csv

    1. Reset last year status.
    2. Update latest status.
  2. convert photo, extractbb photoimage

  3. edit nenga-yoko.tex

  4. make, generate nenga-yoko.pdf, print this pdf

  5. generate atena.pdf, print this:

    $ genenga -t path/to/yourtemplate.mustache address.csv
    

About

Generate Nengajo(Japanese new year card) pdf, from address list.

License:GNU General Public License v3.0


Languages

Language:Python 73.1%Language:TeX 16.8%Language:HTML 6.9%Language:Makefile 2.3%Language:Shell 0.9%