close
Sayahna Sayahna
Search

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...")
 
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]] page to tell your problems so that I will get an alert immediately.
 +
  
 
[[Category:SF Documentation]]
 
[[Category:SF Documentation]]

Revision as of 07:48, 3 July 2014

HowTo


  • Create a directory, namely, djvu in your HOME.
  • Change your working directory to this newly created one.
  • Decompress the archive, palm-djvu.zip in this directory. This will create a tmp folder in your working directory.
  • Decompress the archive containing the jpg images of the scan in your working directory.
  • make a listing of the *.jpg images with the command, ls -l
  • Select the article number of the first set to be dejavu'ed.
  • Change to the tmp with the command cd tmp. Now you're in the tmp folder.
  • Open the Makefile in gedit which 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.