# (C) under GPL2 , Hironobu SUZUKI --------------------- THIS IS "README" FILE ---------------------- See README.j for Japanese Language ---- PHE --- Photograph Essay tool Generate HTML file from plain text file. INSTALL ------- tar zxvf mkphe.tar.gz mv mkphe /any/place/you/want cd /any/place/you/want sh install.sh JPEG handle Commands --------------------- mkphe's subprogram require two jpeg handle commands "rdjpgcom" and "wrjpgcom" Windows and MacOS ----------------- Some mkphe subprograms are required bash and jpeg commands. If you don't have it, you can only use mkphe.pl with perl command. It's small problem to use mkphe. Step1: Make small jpeg file by your favorite graphic tools on your platform. Small size of jpeg file name must use 's+' (ex sIMG_9999.JPG). Middle size of jpeg file name must use 'm+' prefix (ex mIMG_9999.JPG ). Step 2: Make filename.phe for jpeg size list. format ------ filename1 width hight example ------- IMG_1403.JPG 1280 960 mIMG_1403.JPG 640 480 sIMG_1403.JPG 120 90 .... HOWTO USE ========= 1) Copy jpeg files from PCMCIA card and treat it by xv, gimp or something for as you like. It note that file name must be IMG_9999.JPG or AUT_9999.JPG style which is CANNON digital camera naming rule. 2) run do-all-IMG.sh for making middle and small jpeg files. All of IMG_9999.JPG files in current directory will be applied. % sh do-all-IMG.sh 2.2) If you put your comments into jpeg file, make comment.phe in same directory and execute shell command putcomment.sh % sh putcomment.sh 3) write text.phe file by yourself. sub-pic-list.sh is used for creating HTML format reference list which help for writing. % sh sub-pic-list.sh > list.html 4) run do-all-JPG-size.sh then filesize.phe will be created. filesize.phe is a list of jpeg file name and size (width and heigth) and is used by mkphe.pl. % sh do-all-JPG-size.sh 5) run do-makeindex.sh then index.html will be created. See inside of do-makeindex.sh file and check file path of mkphe.pl. % sh do-makeindex.sh 6) do-archives.sh create an archive file. % sh do-archives.sh 7) do-clean.sh do clean in current directory. % sh do-clean.sh Format of text.phe ================== Lang: jp or en Language (default jp) ex) Lang: en Dir: directory_name directory name for distribution directory. ex) Dir: SFO1999DecPart1 Title: subtitle message Page title. ex) Title: San Francisco with my family Auhtor: name Author's name ex) Auhtor: Hironobu SUZUKI Subtitle: subtitle message Subtitle in this page ex) Subtitle: My wife and daughters. --- Separator ex) ...... ... .. ...... --- ......... .. .. .... . . ... Pic: filename Original file name of jpeg file. ex) Pic: IMG_0001.JPG End: End of text. ex) End: Notice: notice message Notice message. ex) Notice: (C) 2000 Hironobu SUZUKI, All rights reserved. Adapt Other File Name Rule ============================ It's easy. do-all-IMG.sh around 13 lines > for i in IMG*.JPG < for i in ANYTHING-YOU-WANT-REGEXPR-RULE sub-pic-list.sh around 6 lines > for i in sIMG*.JPG < for i in s+ANYTHING-YOU-WANT-REGEXPR-RULE Author ======= Hironobu SUZUKI H2NP Photo Project COPYRIGHT ========= THIS PHE TOOL COPYRIGHT IS UNDER GPL 2. # $Id: README,v 1.6 2000/10/30 02:32:49 hironobu Exp hironobu $