[Checkins] SVN: zopyx.convert2/trunk/zopyx/ added

Andreas Jung andreas at andreas-jung.com
Fri Oct 3 09:33:13 EDT 2008


Log message for revision 91694:
  added
  

Changed:
  A   zopyx.convert2/trunk/zopyx/
  A   zopyx.convert2/trunk/zopyx/__init__.py
  A   zopyx.convert2/trunk/zopyx/convert/
  A   zopyx.convert2/trunk/zopyx/convert/CHANGES.txt
  A   zopyx.convert2/trunk/zopyx/convert/LICENSE.txt
  A   zopyx.convert2/trunk/zopyx/convert/README.txt
  A   zopyx.convert2/trunk/zopyx/convert/__init__.py
  A   zopyx.convert2/trunk/zopyx/convert/cli.py
  A   zopyx.convert2/trunk/zopyx/convert/config.py
  A   zopyx.convert2/trunk/zopyx/convert/convert.py
  A   zopyx.convert2/trunk/zopyx/convert/fo.py
  A   zopyx.convert2/trunk/zopyx/convert/fop.py
  A   zopyx.convert2/trunk/zopyx/convert/header.txt
  A   zopyx.convert2/trunk/zopyx/convert/interfaces.py
  A   zopyx.convert2/trunk/zopyx/convert/lib/
  A   zopyx.convert2/trunk/zopyx/convert/lib/csstoxslfo/
  A   zopyx.convert2/trunk/zopyx/convert/lib/csstoxslfo/css2xslfo.jar
  A   zopyx.convert2/trunk/zopyx/convert/logger.py
  A   zopyx.convert2/trunk/zopyx/convert/prince.py
  A   zopyx.convert2/trunk/zopyx/convert/registry.py
  A   zopyx.convert2/trunk/zopyx/convert/tests/
  A   zopyx.convert2/trunk/zopyx/convert/tests/__init__.py
  A   zopyx.convert2/trunk/zopyx/convert/tests/data/
  A   zopyx.convert2/trunk/zopyx/convert/tests/data/__init__.py
  A   zopyx.convert2/trunk/zopyx/convert/tests/data/test1.html
  A   zopyx.convert2/trunk/zopyx/convert/tests/data/test2.html
  A   zopyx.convert2/trunk/zopyx/convert/tests/data/test3.html
  A   zopyx.convert2/trunk/zopyx/convert/tests/testConverters.py
  A   zopyx.convert2/trunk/zopyx/convert/tidy.py
  A   zopyx.convert2/trunk/zopyx/convert/util.py
  A   zopyx.convert2/trunk/zopyx/convert/version.txt
  A   zopyx.convert2/trunk/zopyx/convert/xfc.py
  A   zopyx.convert2/trunk/zopyx/convert/xinc.py

-=-
Added: zopyx.convert2/trunk/zopyx/__init__.py
===================================================================
--- zopyx.convert2/trunk/zopyx/__init__.py	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/__init__.py	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1 @@
+__import__('pkg_resources').declare_namespace(__name__)


Property changes on: zopyx.convert2/trunk/zopyx/__init__.py
___________________________________________________________________
Name: svn:executable
   + *

Added: zopyx.convert2/trunk/zopyx/convert/CHANGES.txt
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/CHANGES.txt	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/CHANGES.txt	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,178 @@
+1.1.7 (26.06.2008)
+------------------
+
+- better support for csstoxslfo commandline options
+
+
+1.1.6 (19.04.2008)
+------------------
+
+- call 'fop' using bash
+- better logger configuration
+- minor code cleanup 
+
+1.1.5 (01.03.2008)
+------------------
+
+- updated documentation
+
+1.1.4 (05.02.2008)
+------------------
+
+- remove duplicate ID attributes
+
+1.1.3 (31.01.2008)
+------------------
+
+- clearified Java requirements for FOP
+
+1.1.2 (22.01.2008)
+------------------
+
+- removed some nasty debugging code
+
+1.1.1 (22.01.2008)
+------------------
+
+- supporting FOP on Windows
+ 
+1.1.0 (20.01.2008)
+------------------
+
+- support for free FOP PDF converter
+
+
+1.0.6 (14.10.2007)
+------------------
+
+- html2fo: added workaround for generated FO code for
+  PRE tags
+
+1.0.5 (05.10.2007)
+------------------
+
+- minor bugfixes
+
+1.0.4 (05.10.2007)
+------------------
+
+- Windows support added
+
+1.0.3 (04.10.2007)
+------------------
+
+- passing -Duser.language=en to java in order to 
+  prevent corrupted FO code caused by locales
+
+
+1.0.2 (03.10.2007)
+------------------
+
+- bugfix
+
+1.0.1 (03.10.2007)
+------------------
+
+- added --test option to command-line frontend
+
+
+1.0.0 (30.09.2007)
+------------------
+
+- update to css2xslfo V 1.5.0
+
+- official 1.0.0 release
+
+0.5.0 (09.09.2007)
+------------------
+
+- replaced mxTidy related code with the BeautifulSoup
+  module (no longer requires any compiling)
+
+- html2fo checks the existence of images
+
+
+0.4.9 (25.07.2007)
+------------------
+
+- support for utidy lib (which is the preferred tidy library).
+  Using mx.Tidy only as fallback
+
+0.4.8 (unreleased)
+------------------
+
+- unreleased
+
+0.4.7 (08.07.2007)
+------------------
+
+- reSTified documentation
+
+0.4.6 (08.07.2007)
+------------------
+
+- fixes in availableFormats()
+
+0.4.5 (07.07.2007)
+------------------
+
+- various FO fixes
+
+0.4.4 (06.07.2007)
+------------------
+
+- using logging module
+
+0.4.3 (05.07.2007)
+------------------
+
+- html2fo: using ElementTree for most FO modifications
+
+0.4.2 (30.06.2007)
+------------------
+
+- converting page-break-after: always back into break-after: page
+
+0.4.1 (24.06.2007)
+------------------
+
+- various fixes 
+
+0.4.0 (24.06.2007)
+------------------
+
+- added zope interfaces
+- converters are now classes
+- added unittests
+
+0.3.1 (18.06.2007)
+------------------
+
+- html2fo() and the converter constructor got a new 'encoding'  
+  parameter in order to specify the input encoding of the 
+  HTML file. This parameter will be passed down to Tidy in order
+  to perform a proper conversion of non-ascii characters.
+
+0.3.0 (unreleased)
+------------------
+
+- using subprocess module of Python
+- new Convert() class for high-level XSLFO access
+- logger added
+- better checks for XINC, XFC
+- updated documentation
+
+
+0.2.0 (16.06.2007)
+------------------
+
+- PDF support added
+- command line interface added
+- mxTidy integration
+
+
+0.1.0 (16.06.2007)
+------------------
+
+- initial release
+

Added: zopyx.convert2/trunk/zopyx/convert/LICENSE.txt
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/LICENSE.txt	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/LICENSE.txt	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,504 @@
+		  GNU LESSER GENERAL PUBLIC LICENSE
+		       Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL.  It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+			    Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+  This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it.  You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+  When we speak of free software, we are referring to freedom of use,
+not price.  Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+  To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights.  These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+  For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you.  You must make sure that they, too, receive or can get the source
+code.  If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it.  And you must show them these terms so they know their rights.
+
+  We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+  To protect each distributor, we want to make it very clear that
+there is no warranty for the free library.  Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+  Finally, software patents pose a constant threat to the existence of
+any free program.  We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder.  Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+  Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License.  This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License.  We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+  When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library.  The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom.  The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+  We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License.  It also provides other free software developers Less
+of an advantage over competing non-free programs.  These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries.  However, the Lesser license provides advantages in certain
+special circumstances.
+
+  For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard.  To achieve this, non-free programs must be
+allowed to use the library.  A more frequent case is that a free
+library does the same job as widely used non-free libraries.  In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+  In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software.  For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+  Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.  Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library".  The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
+
+		  GNU LESSER GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+  A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+  The "Library", below, refers to any such software library or work
+which has been distributed under these terms.  A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language.  (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+  "Source code" for a work means the preferred form of the work for
+making modifications to it.  For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+  Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it).  Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+  
+  1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+  You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+  2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) The modified work must itself be a software library.
+
+    b) You must cause the files modified to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    c) You must cause the whole of the work to be licensed at no
+    charge to all third parties under the terms of this License.
+
+    d) If a facility in the modified Library refers to a function or a
+    table of data to be supplied by an application program that uses
+    the facility, other than as an argument passed when the facility
+    is invoked, then you must make a good faith effort to ensure that,
+    in the event an application does not supply such function or
+    table, the facility still operates, and performs whatever part of
+    its purpose remains meaningful.
+
+    (For example, a function in a library to compute square roots has
+    a purpose that is entirely well-defined independent of the
+    application.  Therefore, Subsection 2d requires that any
+    application-supplied function or table used by this function must
+    be optional: if the application does not supply it, the square
+    root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library.  To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License.  (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.)  Do not make any other change in
+these notices.
+
+  Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+  This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+  4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+  If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library".  Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+  However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library".  The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+  When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library.  The
+threshold for this to be true is not precisely defined by law.
+
+  If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work.  (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+  Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+  6. As an exception to the Sections above, you may also combine or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+  You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License.  You must supply a copy of this License.  If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License.  Also, you must do one
+of these things:
+
+    a) Accompany the work with the complete corresponding
+    machine-readable source code for the Library including whatever
+    changes were used in the work (which must be distributed under
+    Sections 1 and 2 above); and, if the work is an executable linked
+    with the Library, with the complete machine-readable "work that
+    uses the Library", as object code and/or source code, so that the
+    user can modify the Library and then relink to produce a modified
+    executable containing the modified Library.  (It is understood
+    that the user who changes the contents of definitions files in the
+    Library will not necessarily be able to recompile the application
+    to use the modified definitions.)
+
+    b) Use a suitable shared library mechanism for linking with the
+    Library.  A suitable mechanism is one that (1) uses at run time a
+    copy of the library already present on the user's computer system,
+    rather than copying library functions into the executable, and (2)
+    will operate properly with a modified version of the library, if
+    the user installs one, as long as the modified version is
+    interface-compatible with the version that the work was made with.
+
+    c) Accompany the work with a written offer, valid for at
+    least three years, to give the same user the materials
+    specified in Subsection 6a, above, for a charge no more
+    than the cost of performing this distribution.
+
+    d) If distribution of the work is made by offering access to copy
+    from a designated place, offer equivalent access to copy the above
+    specified materials from the same place.
+
+    e) Verify that the user has already received a copy of these
+    materials or that you have already sent this user a copy.
+
+  For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it.  However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+  It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system.  Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+  7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+    a) Accompany the combined library with a copy of the same work
+    based on the Library, uncombined with any other library
+    facilities.  This must be distributed under the terms of the
+    Sections above.
+
+    b) Give prominent notice with the combined library of the fact
+    that part of it is a work based on the Library, and explaining
+    where to find the accompanying uncombined form of the same work.
+
+  8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License.  Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License.  However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+  9. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Library or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+  10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.
+
+  11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded.  In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+  13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation.  If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+  14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission.  For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this.  Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+			    NO WARRANTY
+
+  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+		     END OF TERMS AND CONDITIONS
+
+           How to Apply These Terms to Your New Libraries
+
+  If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change.  You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+  To apply these terms, attach the following notices to the library.  It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the library's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2.1 of the License, or (at your option) any later version.
+
+    This library 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
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this library; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the
+  library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+  <signature of Ty Coon>, 1 April 1990
+  Ty Coon, President of Vice
+
+That's all there is to it!
+
+

Added: zopyx.convert2/trunk/zopyx/convert/README.txt
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/README.txt	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/README.txt	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,138 @@
+=======================================
+A Python interface to XSL-FO libraries. 
+=======================================
+
+The zopyx.convert package helps you to convert HTML to PDF, RTF, ODT, DOCX and
+WML using XSL-FO technology.
+
+
+Requirements
+============
+
+- Java 1.5.0 or higher (FOP 0.94 requires Java 1.6 or higher)
+
+- `csstoxslfo`__ (included)
+
+__ http://www.re.be/css2xslfo
+
+- `XFC-4.0`__ (XMLMind) for ODT, RTF, DOCX and WML support (if needed)
+
+__ http://www.xmlmind.com/foconverter
+
+- `XINC 2.0`__ (Lunasil) for PDF support (commercial)
+
+__ http://www.lunasil.com/products.html
+
+- or `FOP 0.94`__ (Apache project) for PDF support (free)
+
+__ http://xmlgraphics.apache.org/fop/download.html#dist-type                                            
+
+- or `PrinceXML`__ for PDF support (commercial)
+
+__ http://www.princexml.com/
+
+- `BeautifulSoup`__  (will be installed automatically through easy_install. See Installation.)
+
+__ http://www.crummy.com/software/BeautifulSoup/
+   
+- `ElementTree`__ (will be installed automatically through easy_install. See Installation.)
+
+__ http://effbot.org/zone/element-index.html
+
+Installation
+============
+
+- install **zopyx.convert** either using ``easy_install`` or by downloading the sources from the Python Cheeseshop. 
+  This will install automatically the Beautifulsoup and Elementree modules if necessary.
+- the environment variable *$XFC_DIR* must be set and point to the root of your XFC installation directory
+- the environment variable *$XINC_HOME* must be set and to point to the root of your XINC installation directory
+- the environment variable *$FOP_HOME* must be set and point to the root of your FOP installation directory
+
+Supported platforms
+===================
+
+Windows, Unix
+
+
+Subversion repository
+=====================
+
+- http://svn-public.zopyx.com/viewvc/python-projects/zopyx.convert/trunk/
+
+
+Usage
+=====
+
+Some examples from the Python command-line::
+
+  from zopyx.convert import Converter
+  C = Converter('/path/to/some/file.html')
+  pdf_filename = C('pdf')         # using XINC
+  pdf2_filename = C('pdf2')       # using FOP
+  rtf_filename = C('rtf')
+  pdt_filename = C('odt')
+  wml_filename = C('wml')
+  docx_filename = C('docx')
+
+A very simple command-line converter is also available::
+
+  xslfo-convert --format rtf --output foo.rtf sample.html
+
+
+`xslfo-convert` has a --test option that will convert some
+sample HTML. If everything is ok then you should see something like that::
+
+  >xslfo-convert --test
+  Entering testmode
+  pdf: /tmp/tmpuOb37m.html -> /tmp/tmpuOb37m.pdf
+  rtf: /tmp/tmpuOb37m.html -> /tmp/tmpuOb37m.rtf
+  docx: /tmp/tmpuOb37m.html -> /tmp/tmpuOb37m.docx
+  odt: /tmp/tmpuOb37m.html -> /tmp/tmpuOb37m.odt
+  wml: /tmp/tmpuOb37m.html -> /tmp/tmpuOb37m.wml
+  pdf: /tmp/tmpZ6PGo9.html -> /tmp/tmpZ6PGo9.pdf
+  rtf: /tmp/tmpZ6PGo9.html -> /tmp/tmpZ6PGo9.rtf
+  docx: /tmp/tmpZ6PGo9.html -> /tmp/tmpZ6PGo9.docx
+  odt: /tmp/tmpZ6PGo9.html -> /tmp/tmpZ6PGo9.odt
+  wml: /tmp/tmpZ6PGo9.html -> /tmp/tmpZ6PGo9.wml
+
+
+How zopyx.convert works internally
+==================================
+
+- The source HTML file is converted to XHTML using mxTidy
+- the XHTML file is converted to FO using the great "csstoxslfo" converter
+  written by Werner Donne.
+- the FO file is passed either to the external XINC or XFC converter to 
+  generated the desired output format
+- all converters are based on Java technology make the conversion solution
+  highly portable across operating system (including Windows)
+
+Known issues
+============
+
+If you are using zopyx.convert together with FOP: use the latest FOP 0.94 only.
+Don't use any packaged FOP version like the one from MacPorts which is known to be
+broken.    
+
+Author
+======
+
+**zopyx.convert** was written by Andreas Jung for ZOPYX Ltd. & Co. KG, Tuebingen, Germany.
+
+
+License
+=======
+
+**zopyx.convert** is published under the Lesser GNU Public License V 2.1 (LGPL 2.1).
+See LICENSE.txt.
+
+
+Contact
+=======
+
+| ZOPYX Ltd. & Co. KG
+| c/o Andreas Jung, 
+| Charlottenstr. 37/1
+| D-72070 Tuebingen, Germany
+| E-mail: info at zopyx dot com
+| Web: http://www.zopyx.com

Added: zopyx.convert2/trunk/zopyx/convert/__init__.py
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/__init__.py	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/__init__.py	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,17 @@
+##########################################################################
+# zopyx.convert - XSL-FO related functionalities
+#
+# (C) 2007, 2008, ZOPYX Ltd & Co. KG, Tuebingen, Germany
+##########################################################################
+
+from interfaces import IFOConverter, IHTML2FOConverter, IXSLFOConverter
+
+import fo
+import xinc
+import fop
+import prince
+
+
+if __name__ == '__main__':
+    import registry
+    print registry.availableConverters()


Property changes on: zopyx.convert2/trunk/zopyx/convert/__init__.py
___________________________________________________________________
Name: svn:executable
   + *

Added: zopyx.convert2/trunk/zopyx/convert/cli.py
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/cli.py	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/cli.py	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,69 @@
+##########################################################################
+# zopyx.convert - XSL-FO related functionalities
+#
+# (C) 2007, 2008, ZOPYX Ltd & Co. KG, Tuebingen, Germany
+##########################################################################
+
+import tempfile
+from optparse import OptionParser
+from convert import Converter
+from util import newTempfile
+
+import fo
+import fop
+import xinc
+import prince
+import registry 
+
+def convert(options, args):
+
+    if options.test_mode:
+
+        import pkg_resources
+        print 'Entering testmode'
+
+        for fn in ('test1.html', 'test2.html', 'test3.html'):
+            tmpf = newTempfile()
+            print fn
+            print '-'*len(fn)
+            file(tmpf + '.html', 'wb').write(pkg_resources.resource_string('zopyx.convert.tests.data', fn))
+
+            for name in registry.availableConverters():
+                cls = registry.converter_registry[name]
+                print '%s: %s.html -> %s.%s' % (name, tmpf, tmpf, cls.output_format)
+                C = Converter(tmpf + '.html', verbose=True)
+                output_filename = C(name, output_filename=tmpf + '.' + cls.output_format)
+
+            print
+
+    elif options.show_converters:
+        print 'Available converters: %s' % ', '.join(registry.availableConverters())
+
+    else:
+
+        for fn in args:
+            C = Converter(fn, verbose=options.verbose)
+            output_filename = C(options.format, 
+                                output_filename=options.output_filename)
+            print 'Generated file: %s' % output_filename
+   
+
+def main():
+
+    parser = OptionParser()
+    parser.add_option('-v', '--verbose', dest='verbose', action='store_true',
+                      default=False, help='verbose on')
+    parser.add_option('-f', '--format', dest='format',
+                      help='|'.join(registry.availableConverters()))
+    parser.add_option('-l', '--list-converters', action='store_true', dest='show_converters',
+                      default=False, help='show all available converters')
+    parser.add_option('-o', '--output', dest='output_filename',
+                      help='output filename')
+    parser.add_option('-t', '--test', dest='test_mode', action='store_true',
+                      help='test converters')
+    (options, args) = parser.parse_args()
+    convert(options, args)
+
+
+if __name__ == '__main__':
+    main()


Property changes on: zopyx.convert2/trunk/zopyx/convert/cli.py
___________________________________________________________________
Name: svn:executable
   + *

Added: zopyx.convert2/trunk/zopyx/convert/config.py
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/config.py	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/config.py	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,8 @@
+##########################################################################
+# zopyx.convert - XSL-FO related functionalities
+#
+# (C) 2007, 2008, ZOPYX Ltd & Co. KG, Tuebingen, Germany
+##########################################################################
+
+java = 'java'
+


Property changes on: zopyx.convert2/trunk/zopyx/convert/config.py
___________________________________________________________________
Name: svn:executable
   + *

Added: zopyx.convert2/trunk/zopyx/convert/convert.py
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/convert.py	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/convert.py	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,80 @@
+##########################################################################
+# zopyx.convert - XSL-FO related functionalities
+#
+# (C) 2007, 2008, ZOPYX Ltd & Co. KG, Tuebingen, Germany
+##########################################################################
+
+import os
+
+from zope.interface import implements
+
+from interfaces import IXSLFOConverter
+from fo import HTML2FO
+import registry
+
+class Converter(object):
+
+    def __init__(self, filename, encoding='utf-8', cleanup=False, verbose=False):
+        self.filename = filename
+        self.encoding = encoding
+        self.cleanup = cleanup
+        self.verbose = verbose
+
+    def convert(self, format, output_filename=None, **options):
+
+        converter = registry.converter_registry.get(format)
+        if converter is None:
+            raise ValueError('Unsupported format: %s' % format)
+
+        if format == 'fo':
+            c = converter()
+            output_filename = c.convert(self.filename, 
+                                        output_filename=output_filename,
+                                        encoding=self.encoding)
+        else:
+            c = converter(self.filename, self.encoding, self.cleanup, self.verbose)
+            output_filename = c.convert(output_filename)
+        return output_filename
+
+    __call__ = convert
+
+
+class BaseConverter(object):
+    """High-level OO interface to XSL-FO conversions """
+
+    implements(IXSLFOConverter)
+
+    def __init__(self, filename, encoding='utf-8', cleanup=False, verbose=False):
+        self.filename = filename
+        self.encoding = encoding
+        self.fo_filename = None        
+        self.cleanup = cleanup
+        self.verbose = verbose
+        self.tempfiles = list()
+
+    def newTempfile(self, suffix=''):
+        filename = newTempfile(suffix=suffix)
+        self.tempfiles.append(filename)
+        return filename
+
+    def convert2FO(self, **options):
+        """ Conversion phase 1: HTML -> FO """
+        self.fo_filename = HTML2FO().convert(self.filename, self.encoding, **options)
+
+    def convert(self, format, output_filename=None, **options):
+        """ 'options' is passwd down html2fo() """
+
+        raise NotImplementedError('convert() must be implemented within a concrete subclass')
+
+    __call__ = convert
+
+    def __del__(self):
+        """ House-keeping """
+
+        if self.cleanup:
+            if self.fo_filename:
+                os.unlink(self.fo_filename)
+
+            for name in self.tempfiles:
+                os.unlink(name)
+


Property changes on: zopyx.convert2/trunk/zopyx/convert/convert.py
___________________________________________________________________
Name: svn:executable
   + *

Added: zopyx.convert2/trunk/zopyx/convert/fo.py
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/fo.py	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/fo.py	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,125 @@
+##########################################################################
+# zopyx.convert - XSL-FO related functionalities
+#
+# (C) 2007, 2008, ZOPYX Ltd & Co. KG, Tuebingen, Germany
+##########################################################################
+
+import os
+import sys
+from elementtree.ElementTree import parse, tostring, SubElement        
+
+from zope.interface import implements
+
+from interfaces import IFOConverter
+from config import java
+from tidy import tidyhtml
+from util import newTempfile, runcmd, which, win32, checkEnvironment
+from logger import LOG
+
+
+dirname = os.path.dirname(__file__)
+
+class HTML2FO(object):
+
+    name = 'fo'
+    output_format = 'fo'
+    visible_name = 'FO (css2xslfo)'
+    visible = False
+
+    @staticmethod
+    def available():
+        return True
+
+    def convert(self, filename, encoding='utf-8', tidy=True, output_filename=None, **kw):
+        """ Convert a HTML file stored as 'filename' to
+            FO using CSS2XSLFO.
+        """
+
+        if tidy:
+            filename = tidyhtml(filename, encoding)
+
+        if output_filename:
+            fo_filename = output_filename
+        else:
+            fo_filename = newTempfile(suffix='.fo')
+
+        csstoxslfo = os.path.abspath(os.path.join(dirname, 'lib', 'csstoxslfo', 'css2xslfo.jar'))
+        if not os.path.exists(csstoxslfo):
+            raise IOError('%s does not exist' % csstoxslfo)
+
+        cmd = '"%s"' % java + \
+              ' -Duser.language=en -Xms256m -Xmx256m -jar "%(csstoxslfo)s" "%(filename)s" -fo "%(fo_filename)s"' % vars()
+        for k in kw:
+            cmd += ' %s="%s"' % (k, kw[k])
+
+        status, output = runcmd(cmd)
+        if status != 0:
+            raise RuntimeError('Error executing: %s' % cmd)
+
+        # remove tidy-ed file
+        if tidy:
+            os.unlink(filename)
+
+        # remove some stuff from the generated FO file causing
+        # some conversion trouble either with XINC or XFC
+
+        E = parse(fo_filename)
+
+        ids_seen = list()
+        for node in E.getiterator():
+            get = node.attrib.get
+
+            # ensure that ID attributes are unique
+            node_id = get('id')
+            if node_id is not None:
+                if node_id in ids_seen:
+                    del node.attrib['id']
+                ids_seen.append(node_id)
+
+            for k, v in (('footnote', 'reset'), 
+                         ('unicode-bidi', 'embed'), 
+                         ('writing-mode', 'lr-tb'), 
+                         ('font-selection-strategy', 'character-by-character'), 
+                         ('line-height-shift-adjustment', 'disregard-shifts'), 
+                         ('page-break-after', 'avoid'), 
+                         ('page-break-before', 'avoid'), 
+                         ('page-break-inside', 'avoid')):
+
+                value = get(k)
+                if value == v:
+                    del node.attrib[k]
+
+            for attr in ('margin-left', 'margin-right', 'margin-top', 'margin-bottom',
+                         'padding-left', 'padding-right', 'padding-top', 'padding-bottom'):
+
+                value = get(attr)
+                if value == '0':
+                    node.attrib[attr] = '0em'
+
+            if get('page-break-after') == 'always':
+                del node.attrib['page-break-after']
+                node.attrib['break-after'] = 'page'
+
+            if get('text-transform'):
+                del node.attrib['text-transform']
+
+            value = get('white-space')
+            if value == 'pre':
+                del node.attrib['white-space']
+                node.text = '\n' + node.text.lstrip()
+                for k,v in  {'white-space-treatment' : 'preserve',
+                             'white-space-collapse' : 'false',
+                             'wrap-option' : 'no-wrap',
+                             'linefeed-treatment' : 'preserve' }.items():
+                    node.attrib[k] = v
+                
+        fo_text = tostring(E.getroot())
+        fo_text = fo_text.replace('<ns0:block ' , '<ns0:block margin-top="0" margin-bottom="0" ')  # avoid a linebreak through <li><p> (XFC)
+#        fo_text = fo_text.replace('<ns0:block/>', '') # causes a crash with XINC    
+        fo_text = fo_text.replace('<ns0:block margin-top="0" margin-bottom="0" />', '') 
+
+        file(fo_filename, 'wb').write(fo_text)
+        return fo_filename
+
+from registry import registerConverter
+registerConverter(HTML2FO)


Property changes on: zopyx.convert2/trunk/zopyx/convert/fo.py
___________________________________________________________________
Name: svn:executable
   + *

Added: zopyx.convert2/trunk/zopyx/convert/fop.py
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/fop.py	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/fop.py	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,69 @@
+##########################################################################
+# zopyx.convert - XSL-FO related functionalities
+#
+# (C) 2007, 2008, ZOPYX Ltd & Co. KG, Tuebingen, Germany
+##########################################################################
+
+import os
+import sys
+
+from convert import BaseConverter
+from util import runcmd, which, win32, checkEnvironment
+from logger import LOG
+
+from zope.interface import implements
+from interfaces import IFOConverter
+
+fop_home = os.environ.get('FOP_HOME')
+
+def _check_fop():
+    if not checkEnvironment('FOP_HOME'):
+        return False
+
+    exe_name = win32 and 'fop.bat' or 'fop'
+    full_exe_name = os.path.join(fop_home, exe_name)
+    if not os.path.exists(full_exe_name):
+        LOG.debug('%s does not exist' % full_exe_name)
+        return False
+
+    return True
+
+def fo2pdf(fo_filename, output_filename=None):
+    """ Convert a FO file to PDF using FOP"""
+
+    if not output_filename:
+        output_filename = self.newTempfile(suffix='.pdf')
+
+    if not fop_available:
+        raise RuntimeError("The external FOP converter isn't available")
+
+    if sys.platform == 'win32':
+        cmd = '%s\\fop.bat -fo "%s" -pdf "%s"' % (fop_home, fo_filename, output_filename)
+    else:
+        cmd = 'sh "%s/fop" -fo "%s" -pdf "%s"' % (fop_home, fo_filename, output_filename)
+
+    status, output = runcmd(cmd)
+    if status != 0:
+        raise RuntimeError('Error executing: %s' % cmd)
+    return output_filename
+
+
+class HTML2PDF(BaseConverter):
+
+    name = 'pdf-fop'
+    output_format = 'pdf'
+    visible_name = 'PDF (FOP)'
+    visible = True
+
+    @staticmethod
+    def available():
+        return fop_available
+
+    def convert(self, output_filename=None, **options):
+        self.convert2FO(**options)
+        return fo2pdf(self.fo_filename, output_filename)
+
+fop_available = _check_fop()
+
+from registry import registerConverter
+registerConverter(HTML2PDF)


Property changes on: zopyx.convert2/trunk/zopyx/convert/fop.py
___________________________________________________________________
Name: svn:executable
   + *

Added: zopyx.convert2/trunk/zopyx/convert/header.txt
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/header.txt	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/header.txt	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,5 @@
+##########################################################################
+# zopyx.convert - XSL-FO related functionalities
+#
+# (C) 2007, 2008, ZOPYX Ltd & Co. KG, Tuebingen, Germany
+##########################################################################

Added: zopyx.convert2/trunk/zopyx/convert/interfaces.py
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/interfaces.py	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/interfaces.py	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,43 @@
+##########################################################################
+# zopyx.convert - XSL-FO related functionalities
+#
+# (C) 2007, 2008, ZOPYX Ltd & Co. KG, Tuebingen, Germany
+##########################################################################
+
+from zope.interface import Interface
+
+class IHTMLConverter(Interface):
+
+    def convertHtml(html_filename, output_filename=None):
+        """ Converts the HTML stored in file references as
+            ``html_filename`` to some output format. The conversion
+            result is also stored on the filesystem. The filename 
+            of the converted is file is returned.
+        """
+            
+
+class IFOConverter(Interface):
+
+    def convert(fo_filename):
+        """ Convert a XSL-FO file (stored on the filesystem) to some output format.
+            Returns the filename of the output file. 
+        """
+
+
+class IHTML2FOConverter(Interface):
+        
+    def convert(html_filename):
+        """ Convert a HTML file (stored on the filesystem to XSL-FO.    
+        """
+
+
+class IXSLFOConverter(Interface):
+    """ A converter that converts HTML to some output format using
+        XSL-FO.
+    """
+
+    def __init__(filename, encoding='utf-8', cleanup=False, verbose=False):
+        """ Initialize a converter with the 'filename' of a HTML file """
+
+    def convert(format, output_filename=None):
+        """ Convert HTML to output 'format' """


Property changes on: zopyx.convert2/trunk/zopyx/convert/interfaces.py
___________________________________________________________________
Name: svn:executable
   + *

Added: zopyx.convert2/trunk/zopyx/convert/lib/csstoxslfo/css2xslfo.jar
===================================================================
(Binary files differ)


Property changes on: zopyx.convert2/trunk/zopyx/convert/lib/csstoxslfo/css2xslfo.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: zopyx.convert2/trunk/zopyx/convert/logger.py
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/logger.py	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/logger.py	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,13 @@
+##########################################################################
+# zopyx.convert - XSL-FO related functionalities
+#
+# (C) 2007, 2008, ZOPYX Ltd & Co. KG, Tuebingen, Germany
+##########################################################################
+
+
+import logging
+
+logging.basicConfig(level=logging.DEBUG,
+                    format='%(asctime)s %(levelname)s %(message)s')
+
+LOG = logging.getLogger('root')


Property changes on: zopyx.convert2/trunk/zopyx/convert/logger.py
___________________________________________________________________
Name: svn:executable
   + *

Added: zopyx.convert2/trunk/zopyx/convert/prince.py
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/prince.py	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/prince.py	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,79 @@
+#prini#########################################################################
+# zopyx.convert - XSL-FO related functionalities
+#
+# (C) 2007, 2008, ZOPYX Ltd & Co. KG, Tuebingen, Germany
+##########################################################################
+
+import os
+import sys
+
+from convert import BaseConverter
+from util import runcmd, which, win32, checkEnvironment
+from logger import LOG
+
+from zope.interface import implements
+from interfaces import IFOConverter
+from tidy import tidyhtml
+
+def _check_prince():
+    if not which('prince'):
+        return False
+    return True
+
+prince_available = _check_prince()
+
+def html2pdf(html_filename, output_filename=None, **prince_options):
+    """ Convert a HTML file to PDF using FOP"""
+
+    if not output_filename:
+        output_filename = self.newTempfile(suffix='.pdf')
+
+    if not prince_available:
+        raise RuntimeError("The external PrinceXML converter isn't available")
+
+    options = list()
+    for k,v in prince_options.items():
+        if v is None:
+            options.append('--%s ' % k)
+        else:
+            options.append('--%s="%s" ' % (k, v)) 
+
+    if sys.platform == 'win32':
+        raise NotImplementedError('No support for PrinceXML on Windows available')
+    else:
+        cmd = 'sh "prince" "%s" %s -o "%s"' % (html_filename, ' '.join(options), output_filename)
+    
+    status, output = runcmd(cmd)
+    if status != 0:
+        raise RuntimeError('Error executing: %s' % cmd)
+    return output_filename
+
+
+class HTML2PDF(BaseConverter):
+
+    name = 'pdf-prince'
+    output_format = 'pdf'
+    visible_name = 'PDF (PrinceXML)'
+    visible = True
+
+    @staticmethod
+    def available():
+        return prince_available
+
+    def convert(self, output_filename=None, **prince_options):
+        tidy_filename = tidyhtml(self.filename, self.encoding)
+        output_filename = html2pdf(tidy_filename, output_filename, **prince_options)
+        os.unlink(tidy_filename)
+        return output_filename
+
+
+from registry import registerConverter
+registerConverter(HTML2PDF)
+
+if __name__ == '__main__':
+    print html2pdf(sys.argv[1], 'out.pdf', **{'encrypt' : None,
+                                              'disallow-print' : None,
+                                              'disallow-copy' : None,
+                                              'disallow-modify' : None,
+                                              'owner-password' : 'foo1',
+                                              'user-password' : 'foo'})


Property changes on: zopyx.convert2/trunk/zopyx/convert/prince.py
___________________________________________________________________
Name: svn:executable
   + *

Added: zopyx.convert2/trunk/zopyx/convert/registry.py
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/registry.py	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/registry.py	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,20 @@
+##########################################################################
+# zopyx.convert - XSL-FO related functionalities
+#
+# (C) 2007, 2008, ZOPYX Ltd & Co. KG, Tuebingen, Germany
+##########################################################################
+
+"""
+A simple converter registry
+"""
+
+# map converter name to converter class
+converter_registry = dict()
+
+def registerConverter(converter_cls):
+    converter_registry[converter_cls.name] = converter_cls
+
+
+def availableConverters():
+    results = [name for name, cls in converter_registry.items() if cls.available()]
+    return sorted(results)

Added: zopyx.convert2/trunk/zopyx/convert/tests/__init__.py
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/tests/__init__.py	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/tests/__init__.py	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,5 @@
+##########################################################################
+# zopyx.convert - XSL-FO related functionalities
+#
+# (C) 2007, ZOPYX Ltd & Co. KG, Tuebingen, Germany
+##########################################################################


Property changes on: zopyx.convert2/trunk/zopyx/convert/tests/__init__.py
___________________________________________________________________
Name: svn:executable
   + *

Added: zopyx.convert2/trunk/zopyx/convert/tests/data/__init__.py
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/tests/data/__init__.py	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/tests/data/__init__.py	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1 @@
+# placeholder


Property changes on: zopyx.convert2/trunk/zopyx/convert/tests/data/__init__.py
___________________________________________________________________
Name: svn:executable
   + *

Added: zopyx.convert2/trunk/zopyx/convert/tests/data/test1.html
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/tests/data/test1.html	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/tests/data/test1.html	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,51 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta name="generator" content=
+"HTML Tidy for Linux (vers 12 April 2005), see www.w3.org" />
+<meta content="text/html; charset=us-ascii" http-equiv=
+"content-type" />
+<title>test.html</title>
+</head>
+<body>
+<ol>
+<li>r</li>
+<li>32</li>
+<li>42</li>
+<li>4</li>
+<li>24</li>
+<li>2</li>
+<li>42</li>
+</ol>
+<table style="text-align: left; width: 100%;" border="1"
+cellpadding="2" cellspacing="2">
+<tbody>
+<tr>
+<td>3242</td>
+<td>lkj</td>
+<td>lj</td>
+<td>lj</td>
+</tr>
+<tr>
+<td>l</td>
+<td>j</td>
+<td>lj</td>
+<td>lj</td>
+</tr>
+<tr>
+<td>l</td>
+<td>jl</td>
+<td>j</td>
+<td>l</td>
+</tr>
+<tr>
+<td>jl</td>
+<td></td>
+<td></td>
+<td></td>
+</tr>
+</tbody>
+</table>
+</body>
+</html>

Added: zopyx.convert2/trunk/zopyx/convert/tests/data/test2.html
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/tests/data/test2.html	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/tests/data/test2.html	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,773 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+  <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
+  <title>Simple test</title>
+</head>
+<body>
+<h1>Section 1</h1>
+<h2>Section 2</h2>
+<h3>Section 3</h3>
+<h4>Section 4</h4>
+<pre>Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted
  text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text Preformatted text </pre>
+<br>
+Ja, wir finden auch, dass man &uuml;ber die Copy noch mal reden sollte.
+Das hier kann es jedenfalls nicht sein. Das klingt ja wie auf dem
+Totenbett getextet. Da muss wesentlich mehr Produktaussage rein. Ja,
+wir finden auch, dass man &uuml;ber die Copy noch mal reden sollte. Das
+hier kann es jedenfalls nicht sein. Das klingt ja wie auf dem Totenbett
+getextet. Da muss wesentlich mehr Produktaussage rein. Ja, wir finden
+auch, dass man &uuml;ber die Copy noch mal reden sollte. Das hier kann
+es jedenfalls nicht sein. Das klingt ja wie auf dem Totenbett getextet.
+Da muss wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass
+man &uuml;ber die Copy noch mal reden sollte. Das hier kann es
+jedenfalls nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da
+muss wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sein. Das klingt ja wie auf dem Totenbett getextet. Da muss
+wesentlich mehr Produktaussage rein. Ja, wir finden auch, dass man
+&uuml;ber die Copy noch mal reden sollte. Das hier kann es jedenfalls
+nicht sei
+</body>
+</html>

Added: zopyx.convert2/trunk/zopyx/convert/tests/data/test3.html
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/tests/data/test3.html	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/tests/data/test3.html	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,13 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+  <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
+  <title>Simple test</title>
+</head>
+<body>
+
+<div id="id-1">test</div>
+<div id="id-2">test</div>
+<div id="id-3">test</div>
+</body>
+</html>

Added: zopyx.convert2/trunk/zopyx/convert/tests/testConverters.py
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/tests/testConverters.py	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/tests/testConverters.py	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,70 @@
+##########################################################################
+# zopyx.convert - XSL-FO related functionalities
+#
+# (C) 2007, ZOPYX Ltd & Co. KG, Tuebingen, Germany
+##########################################################################
+
+"""
+Tests, tests, tests.........
+"""
+
+import os
+import sys
+import unittest
+
+from zope.interface.verify import verifyClass
+from zopyx.convert.interfaces import IFOConverter, IHTML2FOConverter, IXSLFOConverter
+
+from zopyx.convert import HTML2FOConverter
+from zopyx.convert import RTFConverter, WMLConverter, DOCXConverter, ODTConverter
+from zopyx.convert import PDFConverter, Converter
+
+
+html1 = os.path.join(os.path.dirname(__file__), 'data', 'test1.html')
+html2 = os.path.join(os.path.dirname(__file__), 'data', 'test2.html')
+
+class ConverterTests(unittest.TestCase):
+
+    def testInterfaces(self):
+        verifyClass(IHTML2FOConverter, HTML2FOConverter)
+        verifyClass(IFOConverter, RTFConverter)
+        verifyClass(IFOConverter, ODTConverter)
+        verifyClass(IFOConverter, DOCXConverter)
+        verifyClass(IFOConverter, WMLConverter)
+        verifyClass(IXSLFOConverter, Converter)
+
+class RegressionTests(unittest.TestCase):
+
+    def _test(self, converter):
+
+        for filename in (html1, html2):
+            fo_filename = HTML2FOConverter().convert(filename)
+            try:
+                output_filename = converter().convert(fo_filename)
+            except: 
+                print >>sys.stderr, 'Error converting %s' % filename
+                raise
+
+    def testPDF(self):
+        return self._test(PDFConverter)
+
+    def testRTF(self):
+        return self._test(RTFConverter)
+
+    def testODT(self):
+        return self._test(ODTConverter)
+
+    def testWML(self):
+        return self._test(WMLConverter)
+
+    def testDOCX(self):
+        return self._test(DOCXConverter)
+
+
+def test_suite():
+    from unittest import TestSuite, makeSuite
+    suite = TestSuite()
+    suite.addTest(makeSuite(ConverterTests))
+    suite.addTest(makeSuite(RegressionTests))
+    return suite
+


Property changes on: zopyx.convert2/trunk/zopyx/convert/tests/testConverters.py
___________________________________________________________________
Name: svn:executable
   + *

Added: zopyx.convert2/trunk/zopyx/convert/tidy.py
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/tidy.py	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/tidy.py	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,53 @@
+##########################################################################
+# zopyx.convert - XSL-FO related functionalities
+#
+# (C) 2007, ZOPYX Ltd & Co. KG, Tuebingen, Germany
+##########################################################################
+
+import os
+import re
+
+from util import newTempfile
+from htmlentitydefs import name2codepoint
+from BeautifulSoup import BeautifulSoup
+
+def tidyhtml(filename, encoding='utf-8'):
+
+    html = file(filename, 'rb').read()
+
+    # use BeautifulSoup for performing HTML checks
+    # and conversion to XHTML
+    soup = BeautifulSoup(html)
+
+    # check if all image files exist
+    for img in soup.findAll('img'):
+        src = img['src']
+        if not os.path.exists(src):
+            raise IOError('No image file found: %s' % src)
+
+    html = soup.renderContents()
+
+    # replace the HTML tag
+    html = '<html xmlns="http://www.w3.org/1999/xhtml">' + \
+            html[html.find('<html') + 6:]
+    # add the XML preamble
+    html = '<?xml version="1.0" ?>\n' + html
+
+    # replace all HTML entities with numeric entities
+    def handler(mo):
+        """ Callback to convert entities """
+        e = mo.group(1)
+        v = e[1:-1]
+        if not v.startswith('#'):
+            codepoint =  name2codepoint.get(v)
+            return codepoint and '&#%d;' % codepoint or ''
+        else:
+            return e
+    
+    entity_reg = re.compile('(&.*?;)')
+    html = entity_reg.sub(handler, html)
+
+    filename = newTempfile()
+    file(filename, 'wb').write(str(html))
+    return filename
+


Property changes on: zopyx.convert2/trunk/zopyx/convert/tidy.py
___________________________________________________________________
Name: svn:executable
   + *

Added: zopyx.convert2/trunk/zopyx/convert/util.py
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/util.py	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/util.py	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,85 @@
+#########################################################################
+# zopyx.convert - XSL-FO related functionalities
+#
+# (C) 2007, ZOPYX Ltd & Co. KG, Tuebingen, Germany
+#########################################################################
+
+import os
+import sys
+import tempfile
+
+from subprocess import Popen, PIPE
+from logger import LOG
+
+win32 = (sys.platform=='win32')
+
+
+def newTempfile(suffix=''):
+    return tempfile.mktemp(suffix=suffix)
+
+
+def runcmd(cmd):                
+    """ Execute a command using the subprocess module """
+
+    if win32:
+        cmd = cmd.replace('\\', '/')
+        s = Popen(cmd, shell=False)
+        s.wait()
+        return 0, ''
+
+    else:      
+
+        stdin = open('/dev/null')
+        stdout = stderr = PIPE
+        p = Popen(cmd, 
+                  shell=True,
+                  stdin=stdin,
+                  stdout=stdout,
+                  stderr=stderr,
+                  )
+
+        status = p.wait()
+        stdout_ = p.stdout.read().strip()
+        stderr_ = p.stderr.read().strip()
+
+        if stdout_:
+            LOG.info(stdout_)
+        if stderr_:
+            LOG.info(stderr_)
+        return status, stdout_ + stderr_
+
+
+def checkEnvironment(envname):
+    """ Check if the given name of an environment variable exists and
+        if it points to an existing directory.
+    """
+
+    dirname = os.environ.get(envname, None)
+    if dirname is None:
+        LOG.debug('Environment variable $%s is unset' % envname)
+        return False
+
+    if not os.path.exists(dirname):
+        LOG.debug('The directory referenced through the environment '
+                  'variable $%s does not exit (%s)' % 
+                  (envname, dirname))
+        return False
+    return True
+
+
+def which(command):
+    """ Implements a functionality similar to the UNIX
+        ``which`` command. The method checks if ``command``
+        is available somewhere within the $PATH and returns
+        True or False.
+    """
+    path_env = os.environ.get('PATH', '') # also on win32?
+    for path in path_env.split(':'):
+        fullname = os.path.join(path, command)
+        if os.path.exists(fullname):
+            return True
+    return False
+
+if __name__ == '__main__':
+    print 'ls:', which('ls')
+    print 'foo:', which('foo')


Property changes on: zopyx.convert2/trunk/zopyx/convert/util.py
___________________________________________________________________
Name: svn:executable
   + *

Added: zopyx.convert2/trunk/zopyx/convert/version.txt
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/version.txt	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/version.txt	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1 @@
+1.1.7

Added: zopyx.convert2/trunk/zopyx/convert/xfc.py
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/xfc.py	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/xfc.py	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,71 @@
+##########################################################################
+# zopyx.convert - XSL-FO related functionalities
+#
+# (C) 2007, ZOPYX Ltd & Co. KG, Tuebingen, Germany
+##########################################################################
+
+import os
+import sys
+
+from util import newTempfile, runcmd, which, win32, checkEnvironment
+from logger import LOG
+
+from zope.interface import implements
+from interfaces import IFOConverter
+
+xfc_dir = os.environ.get('XFC_DIR')
+
+def _check_xfc():
+    if not checkEnvironment('XFC_DIR'):
+        return False
+    return True
+
+
+def fo2xfc(fo_filename, format='rtf', output_filename=None):
+    """ Convert a FO file to some format support 
+        through XFC-4.0.
+    """
+
+    if not format in ('rtf', 'docx', 'wml', 'odt'):
+        raise ValueError('Unsupported format: %s' % format)
+
+    if not output_filename:
+        output_filename = newTempfile(suffix='.%s' % format)
+
+    if sys.platform == 'win32':
+        cmd = '"%s\\fo2%s.bat"  "%s" "%s"' % (xfc_dir, format, fo_filename, output_filename) 
+    else:	
+        cmd = '"%s/fo2%s" "%s" "%s"' % (xfc_dir, format, fo_filename, output_filename)
+
+    status, output = runcmd(cmd)
+    if status != 0:
+        raise RuntimeError('Error executing: %s' % cmd)
+
+    return output_filename
+
+
+class RTFConverter(object):
+
+    implements(IFOConverter)
+    def convert(self, fo_filename, output_filename=None):
+        return fo2xfc(fo_filename, 'rtf', output_filename)
+
+class ODTConverter(object):
+
+    implements(IFOConverter)
+    def convert(self, fo_filename, output_filename=None):
+        return fo2xfc(fo_filename, 'odt', output_filename)
+
+class WMLConverter(object):
+
+    implements(IFOConverter)
+    def convert(self, fo_filename, output_filename=None):
+        return fo2xfc(fo_filename, 'wml', output_filename)
+
+class DOCXConverter(object):
+
+    implements(IFOConverter)
+    def convert(self, fo_filename, output_filename=None):
+        return fo2xfc(fo_filename, 'docx', output_filename)
+
+xfc_available = _check_xfc()


Property changes on: zopyx.convert2/trunk/zopyx/convert/xfc.py
___________________________________________________________________
Name: svn:executable
   + *

Added: zopyx.convert2/trunk/zopyx/convert/xinc.py
===================================================================
--- zopyx.convert2/trunk/zopyx/convert/xinc.py	                        (rev 0)
+++ zopyx.convert2/trunk/zopyx/convert/xinc.py	2008-10-03 13:33:12 UTC (rev 91694)
@@ -0,0 +1,70 @@
+##########################################################################
+# zopyx.convert - XSL-FO related functionalities
+#
+# (C) 2007, ZOPYX Ltd & Co. KG, Tuebingen, Germany
+##########################################################################
+
+import os
+import sys
+
+from convert import BaseConverter
+from util import runcmd, which, win32, checkEnvironment
+from logger import LOG
+
+from zope.interface import implements
+from interfaces import IFOConverter
+
+xinc_home = os.environ.get('XINC_HOME')
+
+def _check_xinc():
+    if not checkEnvironment('XINC_HOME'):
+        return False
+
+    exe_name = win32 and 'xinc.exe' or 'xinc'
+    full_exe_name = os.path.join(xinc_home, exe_name)
+    if not os.path.exists(full_exe_name):
+        LOG.debug('%s does not exist' % full_exe_name)
+        return False
+
+    return True
+
+def fo2pdf(fo_filename, output_filename=None):
+    """ Convert a FO file to PDF using XINC """
+
+    if not output_filename:
+        output_filename = self.newTempfile(suffix='.pdf')
+
+    if not xinc_available:
+        raise RuntimeError("The external XINC converter isn't available")
+
+    if sys.platform == 'win32':
+        cmd = '%s\\xinc.exe -fo "%s" -pdf "%s"' % (xinc_home, fo_filename, output_filename)
+    else:
+        cmd = '"%s/bin/unix/xinc" -fo "%s" -pdf "%s"' % (xinc_home, fo_filename, output_filename)
+    status, output = runcmd(cmd)
+    if status != 0:
+        raise RuntimeError('Error executing: %s' % cmd)
+    return output_filename
+
+
+class HTML2PDF(BaseConverter):
+
+    name = 'pdf-xinc'
+    output_format = 'pdf'
+    visible_name = 'PDF (XINC)'
+    visible = True
+
+    @staticmethod
+    def available():
+        return xinc_available
+
+    def convert(self, output_filename=None, **options):
+
+        self.convert2FO(**options)
+        return fo2pdf(self.fo_filename, output_filename)
+
+
+xinc_available = _check_xinc()
+
+from registry import registerConverter
+registerConverter(HTML2PDF)


Property changes on: zopyx.convert2/trunk/zopyx/convert/xinc.py
___________________________________________________________________
Name: svn:executable
   + *



More information about the Checkins mailing list