Menu

#1 HTMLConverter

open
nobody
None
5
2005-02-10
2005-02-10
Gadenz Alex
No

Hi,
I've found that webcat contains everything to convert
"something" to HTML but does not provide the right
interface for that task. (I know that's not the target
of the project but a nice feature easy to provide)
I've attached a first version of a class called
HTMLConverter doing this.
Maybe it would be a good idea to use it inside the
class WebCAT.
Maybe it would be a good idea to move the configuration
of the converters from the static block to a properties
files.

The task of the inner class ConverterWrapper would be
much more easier if all the converters would implement
one Interface containing a method "String
convertToHTML( InputString )" or even better "void
convertToHTML( InputStream, OutputStream )".

Feel free to include the class in your project (in your
package hierarchy).

Regards,

Alex

Discussion

  • Ben Bosman

    Ben Bosman - 2005-03-17

    Logged In: YES
    user_id=1158626

    You said you had attached a class called HTMLConverter. But
    I don't see any attachements. Could you please add this
    file? We were already using webcat in a metadata generation
    framework. But a conversion to html would be a good basis
    for our digital preservation framework for our digital
    repository.

    Kind regards,

    Ben

     
  • Gadenz Alex

    Gadenz Alex - 2005-03-18

    HTMLConverter.java

     
  • Gadenz Alex

    Gadenz Alex - 2005-03-18

    Logged In: YES
    user_id=815069

    Sorry, I've forgotton.
    Done.

     
  • Ben Bosman

    Ben Bosman - 2005-03-18

    Logged In: YES
    user_id=1158626

    Thank you for this class.

    I have tried it and I have a remark:

    It seems that no html-breaks (<br>) are generated. There are
    enters in the source code, but maybe these should be
    converted to <br>.
    I don't know whether these changes should be done in your
    class or the webcat package. But the result would be much
    better if it included breaks.

    Kind regards,

    Ben

     
  • Gadenz Alex

    Gadenz Alex - 2005-03-18

    Logged In: YES
    user_id=815069

    You're right. I've done that in a quick hack on my machine.
    'Cause the owner of the project has not contacted me I'm not
    able to make these changes available for the community. :-((

    Regards,
    Alex

     
  • Santosh

    Santosh - 2006-04-21

    Logged In: YES
    user_id=1505517

    Hi,I've use that webcat, and find very useful to my
    project "Topic Map".
    I've try to imbedded HTMLConverter in my project for the
    converting ppt to html,could not successed.It's could not
    find the protocol.
    Please Help me out to solve that problem.

    regard
    NNIJ

     

Log in to post a comment.

MongoDB Logo MongoDB