* arthur/xml_transform/README
* arthur/xml_transform/main.cc
---
scribo/sandbox/ChangeLog | 7 +++++++
scribo/sandbox/arthur/xml_transform/README | 6 +++---
scribo/sandbox/arthur/xml_transform/main.cc | 13 +++++++++----
3 files changed, 19 insertions(+), 7 deletions(-)
diff --git a/scribo/sandbox/ChangeLog b/scribo/sandbox/ChangeLog
index 7f2e9a1..1a84b5f 100644
--- a/scribo/sandbox/ChangeLog
+++ b/scribo/sandbox/ChangeLog
@@ -1,3 +1,10 @@
+2010-08-06 Arthur Crepin-Leblond <crepin(a)lrde.epita.fr>
+
+ Fix man error.
+
+ * arthur/xml_transform/README
+ * arthur/xml_transform/main.cc
+
2010-08-05 Arthur Crepin-Leblond <crepin(a)lrde.epita.fr>
Output change in xml_tranform.
diff --git a/scribo/sandbox/arthur/xml_transform/README b/scribo/sandbox/arthur/xml_transform/README
index 9ac4973..cb04495 100644
--- a/scribo/sandbox/arthur/xml_transform/README
+++ b/scribo/sandbox/arthur/xml_transform/README
@@ -21,9 +21,9 @@ OpenDocument output:
--open <xml> <ppm> <out_dir> : OpenDocument output (odt, odf).
Base 64 operations:
- --to-base64 <xml> <ppm> <out_xml> : Produces a container XML file by converting cropped pictures into base 64 format.
- --to-base64-no-crop <xml> <ppm> <out_xml> : Same as to-base64 but only the picture is converted in base 64.
- --from-base64 <xml> <out_dir> : Decodes a XML container file to produce original image files.
+ --to-base64 input.xml image output.xml Creates a container XML file. It will contain regions which are cropped and converted in base 64.
+ --to-base64-no-crop input.xml image output.xml Same as --to-base64 but only the full picture will be converted, regions are not cropped
+ --from-base64 input.xml output_dir Decodes a XML file which has been encoded in base 64, regions will be converted into png files and saved in output_dir.
For PDF/HTML/SVG/OD output, Bourne shell scripts are provided to produce the outputs, just run sh *_generator.sh
Requirements:
diff --git a/scribo/sandbox/arthur/xml_transform/main.cc b/scribo/sandbox/arthur/xml_transform/main.cc
index 34a1b6e..9c2b5ce 100644
--- a/scribo/sandbox/arthur/xml_transform/main.cc
+++ b/scribo/sandbox/arthur/xml_transform/main.cc
@@ -24,10 +24,15 @@ int main(int argc, char **argv)
"OpenDocument output:\n"
"\t--open <xml> <ppm> <out_dir> : OpenDocument output (odt, odf).\n\n"
"Base 64 operations:\n"
- "\t--to-base64 <xml> <ppm> <out_xml> : Produces a container XML file by converting cropped pictures into base 64 format.\n"
- "\t--to-base64-no-crop <xml> <ppm> <out_xml> : Same as to-base64 but only the picture is converted in base 64.\n"
- "\t--from-base64 <xml> <out_dir> : Decodes a XML container file to produce original image files.\n\n"
- "For PDF/HTML/SVG/OD output, Bourne shell scripts are provided to produce the outputs, just run sh *_generator.sh \n"
+ "\t\033[01m--to-base64\033[00m \033[04minput.xml\033[00m \033[04mimage\033[00m \033[04moutput.xml\033[00m"
+ "\t\t\tCreates a container XML file. It will contain regions which are cropped and converted in base 64.\n"
+
+ "\t\033[01m--to-base64-no-crop\033[00m \033[04minput.xml\033[00m \033[04mimage\033[00m \033[04moutput.xml\033[00m"
+ "\t\tSame as --to-base64 but only the full picture will be converted, regions are not cropped\n"
+
+ "\t\033[01m--from-base64\033[00m \033[04minput.xml\033[00m \033[04moutput_dir\033[00m"
+ "\t\t\tDecodes a XML file which has been encoded in base 64, regions will be converted into png files and saved in output_dir.\n\n"
+
"Requirements:\n"
"PDF : fop >= 0.95\n"
"HTML : xsltproc\n"
--
1.5.6.5
* arthur/xml_transform/README
* arthur/xml_transform/main.cc
* arthur/xml_transform/TODO: New.
---
scribo/sandbox/ChangeLog | 8 ++++++
scribo/sandbox/arthur/xml_transform/README | 33 +++++++++++++--------------
scribo/sandbox/arthur/xml_transform/main.cc | 11 +++++---
3 files changed, 31 insertions(+), 21 deletions(-)
diff --git a/scribo/sandbox/ChangeLog b/scribo/sandbox/ChangeLog
index 1a84b5f..052bd6d 100644
--- a/scribo/sandbox/ChangeLog
+++ b/scribo/sandbox/ChangeLog
@@ -1,5 +1,13 @@
2010-08-06 Arthur Crepin-Leblond <crepin(a)lrde.epita.fr>
+ Open Document bug warning.
+
+ * arthur/xml_transform/README
+ * arthur/xml_transform/main.cc
+ * arthur/xml_transform/TODO: New.
+
+2010-08-06 Arthur Crepin-Leblond <crepin(a)lrde.epita.fr>
+
Fix man error.
* arthur/xml_transform/README
diff --git a/scribo/sandbox/arthur/xml_transform/README b/scribo/sandbox/arthur/xml_transform/README
index cb04495..5c22a15 100644
--- a/scribo/sandbox/arthur/xml_transform/README
+++ b/scribo/sandbox/arthur/xml_transform/README
@@ -2,39 +2,38 @@ xml_transform
OPTIONS:
HTML output:
- --html <xml> <ppm> <out_dir> : HTML output with non-text regions cropped into many png files.
- --html-base64 <xml> <out_dir> : HTML output from a container XML file.
+ --html input.xml image output.html Creates HTML file, images are embedded inside in base 64 format.
+ --html-base64 input.xml output.html Same as --html but input is a XML file with images encoded in base 64 inside.
+ --html-full input.xml image output_dir Creates HTML file without converting images in base 64. Images + HTML file are placed in output_dir.
PDF output:
- --pdf <xml> <ppm> <out_dir> : PDF output with non-text regions cropped into many png files.
- --pdf-no-crop <xml> <ppm> <out_dir>: PDF output with the entire picture displayed over the text.
- --pdf-base64 <xml> <out_dir> : PDF output from a container XML file.
- --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.
+ --pdf input.xml image output.pdf Creates PDF file, images are embedded inside in base 64 format.
+ --pdf-base64 input.xml output.pdf Same as --pdf but input is a XML file with images encoded in base 64 inside.
-SVG output:
- --svg <xml> <out_dir> : SVG output (works only with base 64 xml encoded.
-
-Base 64 operations:
- --to-base64 <xml> <ppm> <out_xml> : Produces a container XML file by converting cropped pictures into base 64 format.
+SVG output (experimental, may not work with all files):
+ --svg input.xml image output.svg Creates SVG file, images are embedded inside in base 64 format.
+ --svg-base64 input.xml output.svg Same as --svg but input is a XML file with images encoded in base 64 inside.
OpenDocument output:
- --open <xml> <ppm> <out_dir> : OpenDocument output (odt, odf).
+ --oo-doc input.xml image output.odt Creates Open Document Writer (odt) file.
+ This is experimental, Open Office will warn you and ask you to repair the file which is corrupted, click on repair.
Base 64 operations:
- --to-base64 input.xml image output.xml Creates a container XML file. It will contain regions which are cropped and converted in base 64.
- --to-base64-no-crop input.xml image output.xml Same as --to-base64 but only the full picture will be converted, regions are not cropped
- --from-base64 input.xml output_dir Decodes a XML file which has been encoded in base 64, regions will be converted into png files and saved in output_dir.
+ --to-base64 input.xml image output.xmlc Creates a container XML file. It will contain regions which are cropped and converted in base 64.
+ --to-base64-no-crop input.xml image output.xmlc Same as --to-base64 but only the full picture will be converted, regions are not cropped
+ --from-base64 input.xml output_dir Decodes a XML file which has been encoded in base 64, regions will be converted into png files and saved in output_dir.
For PDF/HTML/SVG/OD output, Bourne shell scripts are provided to produce the outputs, just run sh *_generator.sh
Requirements:
PDF : fop >= 0.95
HTML : xsltproc
SVG : trunk version of fop
-OpenDocument : ooconvert
+OpenDocument : ooconvert (included) and OpenOffice >= 3.xx
+
BUILD:
-Chnage the environment variable QMAKE_CXXFLAGS in xml_transfrom.pro then
+Change the environment variable QMAKE_CXXFLAGS in xml_transfrom.pro then
mkdir _build
cd _build
diff --git a/scribo/sandbox/arthur/xml_transform/main.cc b/scribo/sandbox/arthur/xml_transform/main.cc
index 9c2b5ce..8489376 100644
--- a/scribo/sandbox/arthur/xml_transform/main.cc
+++ b/scribo/sandbox/arthur/xml_transform/main.cc
@@ -22,12 +22,15 @@ int main(int argc, char **argv)
"\t--to-base64 <xml> <ppm> <out_xml> : Produces a container XML file by converting cropped pictures into base 64 format.\n\n"
"OpenDocument output:\n"
- "\t--open <xml> <ppm> <out_dir> : OpenDocument output (odt, odf).\n\n"
+ "\t\033[01m--oo-doc\033[00m \033[04minput.xml\033[00m \033[04mimage\033[00m \033[04moutput.odt\033[00m"
+ "\t\t\tCreates Open Document Writer (odt) file.\n"
+ "\tThis is experimental, Open Office will warn you and ask you to repair the file which is corrupted, click on repair.\n\n"
+
"Base 64 operations:\n"
- "\t\033[01m--to-base64\033[00m \033[04minput.xml\033[00m \033[04mimage\033[00m \033[04moutput.xml\033[00m"
+ "\t\033[01m--to-base64\033[00m \033[04minput.xml\033[00m \033[04mimage\033[00m \033[04moutput.xmlc\033[00m"
"\t\t\tCreates a container XML file. It will contain regions which are cropped and converted in base 64.\n"
- "\t\033[01m--to-base64-no-crop\033[00m \033[04minput.xml\033[00m \033[04mimage\033[00m \033[04moutput.xml\033[00m"
+ "\t\033[01m--to-base64-no-crop\033[00m \033[04minput.xml\033[00m \033[04mimage\033[00m \033[04moutput.xmlc\033[00m"
"\t\tSame as --to-base64 but only the full picture will be converted, regions are not cropped\n"
"\t\033[01m--from-base64\033[00m \033[04minput.xml\033[00m \033[04moutput_dir\033[00m"
@@ -37,7 +40,7 @@ int main(int argc, char **argv)
"PDF : fop >= 0.95\n"
"HTML : xsltproc\n"
"SVG : trunk version of fop\n"
- "OpenDocument : ooconvert";
+ "OpenDocument : ooconvert (included) and OpenOffice >= 3.xx";
if (argc > 4)
{
--
1.5.6.5
* demo/review/Makefile.am: Make use of autotroll.
* demo/review/src/mainwindow.cc: Remove useless includes.
* demo/review/src/mainwindow.hh: Update include.
* demo/review/review.pro: Remove since useless.
---
scribo/ChangeLog | 12 +++++++++
scribo/demo/review/Makefile.am | 45 ++++++++++++++++++++++++++++-----
scribo/demo/review/review.pro | 16 ------------
scribo/demo/review/src/mainwindow.cc | 7 +----
scribo/demo/review/src/mainwindow.hh | 2 +-
5 files changed, 53 insertions(+), 29 deletions(-)
delete mode 100644 scribo/demo/review/review.pro
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 3978884..8285b94 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,5 +1,17 @@
2010-08-26 Guillaume Lazzara <z(a)lrde.epita.fr>
+ Make use of autotroll in demo/review.
+
+ * demo/review/Makefile.am: Make use of autotroll.
+
+ * demo/review/src/mainwindow.cc: Remove useless includes.
+
+ * demo/review/src/mainwindow.hh: Update include.
+
+ * demo/review/review.pro: Remove since useless.
+
+2010-08-26 Guillaume Lazzara <z(a)lrde.epita.fr>
+
Install Scribo headers in include/scribo.
* Makefile.am: Update call to generate_dist_headers.sh.
diff --git a/scribo/demo/review/Makefile.am b/scribo/demo/review/Makefile.am
index b51084e..cd793db 100644
--- a/scribo/demo/review/Makefile.am
+++ b/scribo/demo/review/Makefile.am
@@ -1,11 +1,42 @@
-## Process this file through Automake to create Makefile.in.
+# Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
+# (LRDE).
+#
+# This file is part of Olena.
+#
+# Olena is free software: you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation, version 2 of the License.
+#
+# Olena is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Olena. If not, see <http://www.gnu.org/licenses/>.
-include $(top_srcdir)/scribo/scribo.mk
+include $(top_srcdir)/build-aux/autotroll.mk
-.PHONY : demo
+bin_PROGRAMS = scribo-review
+scribo_review_SOURCES = $(BUILT_SOURCES) \
+ src/main.cc \
+ src/mainwindow.cc
-Makefile.demo:
- qmake-qt4 $(srcdir)/demo/demo.pro -o Makefile.demo
+scribo_review_CPPFLAGS = $(QT_CPPFLAGS) $(AM_CPPFLAGS) \
+ -DNDEBUG \
+ -I$(srcdir) \
+ -I$(builddir)/ui
+scribo_review_CXXFLAGS = $(QT_CXXFLAGS) $(AM_CXXFLAGS) -O3
+scribo_review_LDFLAGS = $(QT_LDFLAGS) $(LDFLAGS)
+scribo_review_LDADD = $(QT_LIBS) $(LDADD)
-demo: Makefile.demo
- make -f Makefile.demo all
+BUILT_SOURCES = src/mainwindow.moc.cc \
+ ui/mainwindow.ui.h
+
+noinst_HEADERS = src/mainwindow.hh
+
+
+
+EXTRA_DIST = \
+ README \
+ review.qrc
diff --git a/scribo/demo/review/review.pro b/scribo/demo/review/review.pro
deleted file mode 100644
index 3ee66e9..0000000
--- a/scribo/demo/review/review.pro
+++ /dev/null
@@ -1,16 +0,0 @@
-######################################################################
-# Automatically generated by qmake (2.01a) Mon Jun 1 10:28:31 2009
-######################################################################
-
-TEMPLATE = app
-TARGET =
-DEPENDPATH += . src ui
-INCLUDEPATH += . src ../../../ ../../../milena
-DEFINES += NDEBUG
-
-# Input
-HEADERS += src/mainwindow.hh
-FORMS += ui/mainwindow.ui
-SOURCES += src/main.cc src/mainwindow.cc
-
-RESOURCES = review.qrc
diff --git a/scribo/demo/review/src/mainwindow.cc b/scribo/demo/review/src/mainwindow.cc
index f2d10a2..2f09ad7 100644
--- a/scribo/demo/review/src/mainwindow.cc
+++ b/scribo/demo/review/src/mainwindow.cc
@@ -1,4 +1,5 @@
-// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
+// (LRDE)
//
// This file is part of Olena.
//
@@ -26,10 +27,6 @@
#include <QtCore>
#include <QtGui>
-#include <mln/core/image/image2d.hh>
-#include <mln/logical/not.hh>
-#include <mln/io/pbm/all.hh>
-
#include <src/mainwindow.hh>
diff --git a/scribo/demo/review/src/mainwindow.hh b/scribo/demo/review/src/mainwindow.hh
index cb32e30..5f92d5a 100644
--- a/scribo/demo/review/src/mainwindow.hh
+++ b/scribo/demo/review/src/mainwindow.hh
@@ -31,7 +31,7 @@
# include <QProcess>
# include <QtGui/QWidget>
# include <QProgressDialog>
-# include <ui_mainwindow.h>
+# include <mainwindow.ui.h>
namespace scribo
{
--
1.5.6.5