* arthur/xml_transform/README
* arthur/xml_transform/main.cc
* arthur/xml_transform/TODO: New.
---
scribo/sandbox/ChangeLog | 8 ++++++++
scribo/sandbox/arthur/xml_transform/README | 24 +++++++++++++-----------
scribo/sandbox/arthur/xml_transform/main.cc | 9 +++++----
3 files changed, 26 insertions(+), 15 deletions(-)
diff --git a/scribo/sandbox/ChangeLog b/scribo/sandbox/ChangeLog
index d8ce704..80366c0 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 33c4dd3..c594992 100644
--- a/scribo/sandbox/arthur/xml_transform/README
+++ b/scribo/sandbox/arthur/xml_transform/README
@@ -3,34 +3,36 @@ OPTIONS:
HTML output:
--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.
+ --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 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.
+ --pdf-base64 input.xml output.pdf Same as --pdf but input is a XML file with
images encoded in base 64 inside.
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.
+ --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:
- --oo-doc input.xml image output.odt Creates Open Document Writer (odt) file.
+ --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.
Requirements:
PDF : fop >= 0.95
HTML : xsltproc
SVG : trunk version of fop
-OpenDocument : ooconvert (included)
+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 d35e80d..2de4c0d 100644
--- a/scribo/sandbox/arthur/xml_transform/main.cc
+++ b/scribo/sandbox/arthur/xml_transform/main.cc
@@ -34,13 +34,14 @@ int main(int argc, char **argv)
"OpenDocument output:\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\n"
+ "\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"
@@ -50,7 +51,7 @@ int main(int argc, char **argv)
"PDF : fop >= 0.95\n"
"HTML : xsltproc\n"
"SVG : trunk version of fop\n"
- "OpenDocument : ooconvert (included)";
+ "OpenDocument : ooconvert (included) and OpenOffice >= 3.xx";
if (argc > 4)
{
std::string html = "--html";
--
1.5.6.5
Show replies by date