# HG changeset patch # User Oleksandr Gavenko # Date 1288215904 -10800 # Node ID a360ae19b5a3cc54b88eca58631a7a464b948d4d # Parent 26f0d8c50fb942ad13402f5ca4d98a9f96a7ec27# Parent fc4f97c313ef8e58d457c5a384e2f2878114bb6d merged diff -r 26f0d8c50fb9 -r a360ae19b5a3 djvu.rst --- a/djvu.rst Wed Oct 27 17:20:08 2010 +0300 +++ b/djvu.rst Thu Oct 28 00:45:04 2010 +0300 @@ -1,5 +1,10 @@ -*- mode:outline; coding: utf-8 -*- +* About djvu. + + http://djvu.org/links/ + many useful links + * Viewer. * DjVuLibre (all OS). @@ -26,3 +31,45 @@ Currently not maintained. http://www.djvu.org/resources/ + +* djvu to pdf. + +** djvulibre. + + $ ddjvu -format=tiff book.djvu book.tiff + $ tiff2pdf -o book.pdf book.tiff + +* pdf to djvu. + +** djvulibre. + +For 'pdftoppm' install xpdf (both Linux and Cygwin). + + $ pdftoppm -mono -r 600 -aa yes $PDF $PDF + $ for PBM in $PDF*.pbm; do cjb2 -dpi $DPI $PBM $PBM.djvu; rm -f $PBM; done + + $ djvm -c $OUTFILE $MASK*.pbm.djvu + +** pdf2djvu. + + $ pdf2djvu file.pdf + + http://code.google.com/p/pdf2djvu/ + home page + +* jpg to djvu. + +** JPEG to bitonal DjVu. + + $ anytopnm page.djvu | ppmtopgm | pgmtopbm -value 0.499 > page.pbm + $ cjb2 -dpi $DPI page.pbm page.djvu + + $ djvm -c $OUTFILE $MASK.djvu # Many .djvu to single .djvu. + + +** JPEG to low colour DjVu. + + $ cpaldjvu -dpi $DPI -colors $NCOLORS $i $i.djvu + + $ djvm -c $OUTFILE $MASK.djvu # Many .djvu to single .djvu. + diff -r 26f0d8c50fb9 -r a360ae19b5a3 emacs.rst --- a/emacs.rst Wed Oct 27 17:20:08 2010 +0300 +++ b/emacs.rst Thu Oct 28 00:45:04 2010 +0300 @@ -264,3 +264,18 @@ * Debugging C code. -*- mode: grep; mode: auto-revert-tail; default-directory: "~/devel/proj" -*- + +* XML modes. + +** XSLT-process. + +XSLT-process is a minor mode for GNU Emacs/XEmacs which transforms it into a powerful editor with +XSLT processing and debugging capabilities. + +The mode currently supports two Java XSLT processors: + + * Saxon - fully supported, including debugging capabilities. + * Xalan - fully supported, including debugging capabilities. + + http://xslt-process.sourceforge.net/ + home page diff -r 26f0d8c50fb9 -r a360ae19b5a3 xml.rst --- a/xml.rst Wed Oct 27 17:20:08 2010 +0300 +++ b/xml.rst Thu Oct 28 00:45:04 2010 +0300 @@ -12,8 +12,22 @@ * CLI utilities for processing xml. +** xmlstar. + +XMLStarlet is a set of command line utilities (tools) which can be used to transform, +query, validate, and edit XML documents and files using simple set of shell commands in +similar way it is done for plain text files using UNIX grep, sed, awk, diff, patch, join, +etc. + + http://xmlstar.sourceforge.net/overview.php + home page + ** Cygwin. cmd# setup.exe -p libxml2,libxslt 'libxslt' provide 'xsltproc, 'libxml2' provide 'xmlcatalog' and 'xmllint' + +** XPath query from CLI. + + $ xmllint --xpath $XPATH file.xml