Automated merge with file:///cygdrive/d/srv/hg-home/tips
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 01 Nov 2010 10:33:46 +0200
changeset 651 2fd37a2d3aef
parent 644 2a0bed0e3bba (diff)
parent 650 a1c4d8b5711b (current diff)
child 652 6ae882e8e7a5
Automated merge with file:///cygdrive/d/srv/hg-home/tips
--- 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.
+
--- 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
--- 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