Difference between revisions of "SFN:HowTo make djvu"
(Created page with "← HowTo ---- * Create a directory, namely, <code>djvu</code> in your <code>HOME</code>. * Change your working directory to this newly created one. * Decompres...") |
m (Cvr moved page HowTo make djvu to SF:HowTo make djvu without leaving a redirect) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 26: | Line 26: | ||
# Provide the target directory of your choice below. | # Provide the target directory of your choice below. | ||
targetdir=/opt/Dropbox/cvr/gsk/djvu | targetdir=/opt/Dropbox/cvr/gsk/djvu | ||
| + | |||
| + | all: bring djvu view move | ||
| + | |||
| + | bring: | ||
| + | mv ../$(dir)/$(prfx)$(file)PAGE*.jpg . | ||
| + | mv ../$(dir)/$(prfx)$(file)CONTENTS.jpg . | ||
| + | # mv ../$(dir)/$(prfx)$(file)VELA*.jpg . | ||
| + | |||
| + | djvu: | ||
| + | ./jpeg-djvu.sh | ||
| + | |||
| + | view: | ||
| + | evince final/outfile.djvu | ||
| + | |||
| + | move: | ||
| + | # cp final/outfile.djvu /opt/Dropbox/DanubeRishi/djvu/$(prfx)-$(file).djvu | ||
| + | # mv final/outfile.djvu /opt/Dropbox/cvr/gsk/djvu/$(prfx)-$(file).djvu | ||
| + | # ls -ltr /opt/Dropbox/cvr/gsk/djvu/$(prfx)* | ||
| + | mv final/outfile.djvu /$(targetdir)/$(prfx)-$(file).djvu | ||
| + | ls -ltr /$(targetdir)/*.djvu | ||
| + | |||
| + | del: | ||
| + | rm -rf final ; | ||
| + | rm *.djvu *.png *.jpg ; | ||
| + | ls ../$(dir)/*.jpg | ||
| + | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| + | |||
| + | * The targets are self explanatory. If you have any doubts, please use the [[Talk:HowTo_make_djvu|Talk]] page to tell your problems so that I will get an alert immediately. | ||
| + | |||
[[Category:SF Documentation]] | [[Category:SF Documentation]] | ||
Latest revision as of 09:54, 18 August 2014
← HowTo
- Create a directory, namely,
djvuin yourHOME. - Change your working directory to this newly created one.
- Decompress the archive,
palm-djvu.zipin this directory. This will create atmpfolder in your working directory. - Decompress the archive containing the
jpgimages of the scan in your working directory. - make a listing of the
*.jpgimages with the command,ls -l - Select the article number of the first set to be dejavu'ed.
- Change to the
tmpwith the commandcd tmp. Now you're in thetmpfolder. - Open the
Makefileingeditwhich will look like as given below:
#
# Give the article number against "file" variable.
file=594
# Give the name of directory if the *.jpg files are in a directory.
# If it is one directory behind, leave blank.
dir=
# Give the name of journal abbreviation like "KK" for Kalakaumudi
# "MV" for Malayalam Varika and "MN" for Malayala Nadu.
prfx=KK
# Provide the target directory of your choice below.
targetdir=/opt/Dropbox/cvr/gsk/djvu
all: bring djvu view move
bring:
mv ../$(dir)/$(prfx)$(file)PAGE*.jpg .
mv ../$(dir)/$(prfx)$(file)CONTENTS.jpg .
# mv ../$(dir)/$(prfx)$(file)VELA*.jpg .
djvu:
./jpeg-djvu.sh
view:
evince final/outfile.djvu
move:
# cp final/outfile.djvu /opt/Dropbox/DanubeRishi/djvu/$(prfx)-$(file).djvu
# mv final/outfile.djvu /opt/Dropbox/cvr/gsk/djvu/$(prfx)-$(file).djvu
# ls -ltr /opt/Dropbox/cvr/gsk/djvu/$(prfx)*
mv final/outfile.djvu /$(targetdir)/$(prfx)-$(file).djvu
ls -ltr /$(targetdir)/*.djvu
del:
rm -rf final ;
rm *.djvu *.png *.jpg ;
ls ../$(dir)/*.jpg- The targets are self explanatory. If you have any doubts, please use the Talk page to tell your problems so that I will get an alert immediately.