* scribo/sandbox/arthur/xml_transform/README
* scribo/sandbox/arthur/xml_transform/image_crop.cc: Delete verbose mode.
* scribo/sandbox/arthur/xml_transform/main.cc: Small fix.
---
scribo/ChangeLog | 9 +++++++++
scribo/sandbox/arthur/xml_transform/README | 7 ++++++-
scribo/sandbox/arthur/xml_transform/image_crop.cc | 8 ++++----
scribo/sandbox/arthur/xml_transform/main.cc | 6 +++---
4 files changed, 22 insertions(+), 8 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 7692dea..3f24ec5 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,5 +1,14 @@
2010-07-21 Arthur Crepin-Leblond <crepin(a)ptaouchnok.lrde.epita.fr>
+ Small changes in xml_transform.
+
+ * scribo/sandbox/arthur/xml_transform/README
+
+ * scribo/sandbox/arthur/xml_transform/image_crop.cc: Delete verbose mode.
+ * scribo/sandbox/arthur/xml_transform/main.cc: Small fix.
+
+2010-07-21 Arthur Crepin-Leblond <crepin(a)ptaouchnok.lrde.epita.fr>
+
Files headers change + base64 data hide in xml tree.
* scribo/demo/viewer/README,
diff --git a/scribo/sandbox/arthur/xml_transform/README
b/scribo/sandbox/arthur/xml_transform/README
index 1f358e3..aedf220 100644
--- a/scribo/sandbox/arthur/xml_transform/README
+++ b/scribo/sandbox/arthur/xml_transform/README
@@ -21,4 +21,9 @@ Base 64 operations:
BUILD:
-Chnage the environment variable QMAKE_CXXFLAGS to indicate the correct paths to milena
and olena in the .pro file then, just type qmake and make.
\ No newline at end of file
+Chnage the environment variable QMAKE_CXXFLAGS in xml_transfrom.pro then
+
+mkdir _build
+cd _build
+qmake ../xml_transfrom.pro
+make
\ No newline at end of file
diff --git a/scribo/sandbox/arthur/xml_transform/image_crop.cc
b/scribo/sandbox/arthur/xml_transform/image_crop.cc
index 8aafe45..ffe2b44 100644
--- a/scribo/sandbox/arthur/xml_transform/image_crop.cc
+++ b/scribo/sandbox/arthur/xml_transform/image_crop.cc
@@ -61,10 +61,10 @@ void ImageCrop::save_image(QString file)
else
filename = file;
- std::cout << "Saving " << image_.toStdString() << " to
"
- << output_dir_.toStdString() << "img/"
- << filename.toStdString() << ".png"
- << std::endl;
+ // std::cout << "Saving " << image_.toStdString() <<
" to "
+ // << output_dir_.toStdString() << "img/"
+ // << filename.toStdString() << ".png"
+ // << std::endl;
io::magick::save(ima, output_dir_.toStdString() + "img/" +
filename.toStdString() + ".png");
}
diff --git a/scribo/sandbox/arthur/xml_transform/main.cc
b/scribo/sandbox/arthur/xml_transform/main.cc
index e097430..c259c76 100644
--- a/scribo/sandbox/arthur/xml_transform/main.cc
+++ b/scribo/sandbox/arthur/xml_transform/main.cc
@@ -9,15 +9,15 @@ int main(int argc, char **argv)
man = "xml_transform\n";
man += "OPTIONS:\n\n";
man += "HTML output:\n";
- man += "\t--html <xml> <ppm> <out_dir> : HTML output with
non-text regions croped into many png files.\n";
+ man += "\t--html <xml> <ppm> <out_dir> : HTML output with
non-text regions cropped into many png files.\n";
man += "\t--html-base64 <xml> <out_dir> : HTML output from a container
XML file.\n\n";
man += "PDF output:\n";
- man += "\t--pdf <xml> <ppm> <out_dir> : PDF output with non-text
regions croped into many png files.\n";
+ man += "\t--pdf <xml> <ppm> <out_dir> : PDF output with non-text
regions cropped into many png files.\n";
man += "\t--pdf-no-crop <xml> <ppm> <out_dir>: PDF output with
the entire picture displayed over the text.\n";
man += "\t--pdf-base64 <xml> <out_dir> : PDF output from a container
XML file.\n";
man += "\t--pdf-base64-no-crop <xml> <ppm> <out_dir> : PDF with
the entire picture displayed over the text, the picture is loaded from a container XML
file.\n\n";
man += "Base 64 operations:\n";
- man += "\t--to-base64 <xml> <ppm> <out_xml> : Produces a
container XML file by converting croped pictures into base 64 format.\n";
+ man += "\t--to-base64 <xml> <ppm> <out_xml> : Produces a
container XML file by converting cropped pictures into base 64 format.\n";
man += "\t--to-base64-no-crop <xml> <ppm> <out_xml> : Same as
to-base64 but only the picture is converted in base 64.\n";
man += "\t--from-base64 <xml> <out_dir> : Decodes a XML container file
to produce original image files.\n";
--
1.5.6.5