# HG changeset patch # User Oleksandr Gavenko # Date 1288600426 -7200 # Node ID 2fd37a2d3aefa8d88f17d89133f476439b9f6721 # Parent 2a0bed0e3bba406acdf54fa6045141742c1d81f9# Parent a1c4d8b5711b32ce74aaeb2b20ab77d75792f570 Automated merge with file:///cygdrive/d/srv/hg-home/tips diff -r a1c4d8b5711b -r 2fd37a2d3aef djvu.rst --- a/djvu.rst Mon Nov 01 10:33:34 2010 +0200 +++ b/djvu.rst Mon Nov 01 10:33:46 2010 +0200 @@ -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 a1c4d8b5711b -r 2fd37a2d3aef emacs.rst --- a/emacs.rst Mon Nov 01 10:33:34 2010 +0200 +++ b/emacs.rst Mon Nov 01 10:33:46 2010 +0200 @@ -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 a1c4d8b5711b -r 2fd37a2d3aef xml.rst --- a/xml.rst Mon Nov 01 10:33:34 2010 +0200 +++ b/xml.rst Mon Nov 01 10:33:46 2010 +0200 @@ -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