Ken Winke | 2 May 2003 01:39

logging wv activity

I'm using wvHtml as part of Horde to allow my users to view word .doc files through their Webmail.  I think I've got everything setup as recommended in the Horde config files, having installed wvware and pointing to its path, but it doesn't appear to be converting in a browser.
 
Are there log files anywhere which should track the use of wvHtml that I can check to see if indeed it's being called or failing?
 
Thanks for any help...
 
...ken winke
F J Franklin | 2 May 2003 09:50
Picon
Favicon

Re: logging wv activity

On Thu, 1 May 2003, Ken Winke wrote:
> I'm using wvHtml as part of Horde to allow my users to view word .doc
> files through their Webmail.  I think I've got everything setup as
> recommended in the Horde config files, having installed wvware and
> pointing to its path, but it doesn't appear to be converting in a
> browser.
> 
> Are there log files anywhere which should track the use of wvHtml that
> I can check to see if indeed it's being called or failing?

wvHtml is a script which calls wvWare. What you could do is add the line

echo "$wv_exec" $wv_opts -x "$xmlcfg" -d "$t_dir" -b "$name" "$i_file" >> /tmp/wv.log

(or similar) near the end of the script.

Frank

Francis James Franklin
F.J.Franklin <at> shef.ac.uk

After we were introduced I noticed that both of them were carrying
three-foot-long machetes. I hate hiking with convicts carrying machetes.

                                        - Susan Orlean, The Orchid Thief

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Jeremy C. Reed | 12 May 2003 21:58

WordPerfect conversion

I need command-line tools for converting WordPerfect docs to plain text
and also to a format (like HTML) where I can preserve some formatting
attributes.

wvtext says "Could not convert into HTML" and catdoc outputs a lot of text
that needs to be be further cleaned up.

file(1) tells me that my docs are "(Corel/Wp)"

I also have source for catwpd (but I need to fix it so it will build).

I have also heard of wprint (but not filter for Mozilla). Does anyone know
where I can find wprint?

I also read about filtrix. Anyone heard of an open source equivalent?

Or can any wv convert WordPerfect. Some webpages and archives seem to
indicate this.

By the way, the archives for this list for past few months look to be
almost all spam. Maybe this list should be setup so only subscribers can
post. Thank you.

   Jeremy C. Reed
   http://www.reedmedia.net/

-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
F J Franklin | 12 May 2003 22:08
Picon
Favicon

Re: WordPerfect conversion

On Mon, 12 May 2003, Jeremy C. Reed wrote:
> I need command-line tools for converting WordPerfect docs to plain text
> and also to a format (like HTML) where I can preserve some formatting
> attributes.

Please see:
http://sourceforge.net/projects/libwpd/

Regarding spam, I agree whole-heartedly.

Frank

Francis James Franklin
F.J.Franklin <at> shef.ac.uk

After we were introduced I noticed that both of them were carrying
three-foot-long machetes. I hate hiking with convicts carrying machetes.

                                        - Susan Orlean, The Orchid Thief

-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
Jeremy C. Reed | 12 May 2003 22:17

Re: WordPerfect conversion

On Mon, 12 May 2003, F J Franklin wrote:

> http://sourceforge.net/projects/libwpd/

Thank you for your prompt reply! This looks like what I can use for
preserving formatting.

   Jeremy C. Reed
   http://bsd.reedmedia.net/

ps. By the way, I got old
http://htdig.sourceforge.net/files/contrib/parsers/catwpd.c to build. It
seems to work for me to convert to text.

--- catwpd.c.orig	Mon May 12 12:59:22 2003
+++ catwpd.c	Mon May 12 13:13:07 2003
 <at>  <at>  -149,7 +149,7  <at>  <at> 
             c = getc(f);
             midlebaixo = (c & 0x0F);
             midlealto = (c & 0xF0)/16;
-            iniciodocumento += midlebaixo * int(pow(16, i)) + midlealto * int( pow( 16, (i+1)));
+            iniciodocumento += midlebaixo * (int)pow(16, i) + midlealto * (int)pow(16, (i+1));
          }
          c = getc(f);
          if ( c != 1)
 <at>  <at>  -282,17 +282,17  <at>  <at> 

                      // Calculate length of function
                      // Calcula tamanho da função
-                     for ( int i = 0; i < 4; i+=2)
+                     for ( i = 0; i < 4; i+=2)
                      {
                         int midlebaixo, midlealto;
                         c = getc(f);
                         midlebaixo = (c & 0x0F);
                         midlealto = (c & 0xF0)/16;
-                        deslocamento += midlebaixo * int(pow(16, i)) + midlealto * int(pow( 16, (i+1)));
+                        deslocamento += midlebaixo * (int)pow(16, i) + midlealto * (int)pow(16, (i+1));
                      }
                      // Ignore to end of function
                      // Ignora até o final da função
-                     for ( int i = 0; i < deslocamento - 4; i ++)
+                     for ( i = 0; i < deslocamento - 4; i ++)
                         getc(f);
                   }
                   else
 <at>  <at>  -357,10 +357,11  <at>  <at> 
 {

   	int stdin_processed=0;	// Indica se stdin já foi processado
+	int i;

 	if (argc < 2)
 		help();
-  	for( int i = 1; i < argc; i++)
+  	for( i = 1; i < argc; i++)
   	{
 		if ( i > 1)
                    puts("\n-----");

-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
Bob Friesenhahn | 12 May 2003 23:28
Picon
Picon
Gravatar

Re: WordPerfect conversion

On Mon, 12 May 2003, Jeremy C. Reed wrote:
>
> By the way, the archives for this list for past few months look to be
> almost all spam. Maybe this list should be setup so only subscribers can
> post. Thank you.

I totally agree.  Although I still have CVS commit access, I am
considering removing my address from the mailing lists since they
generate a large portion of the SPAM I receive.  I have posted
regarding this problem before, but the complaint was ignored by
whomever has administrative access over these lists.

Bob
======================================
Bob Friesenhahn
bfriesen <at> simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen

-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
F J Franklin | 12 May 2003 23:48
Picon
Favicon

Re: WordPerfect conversion

> I totally agree.  Although I still have CVS commit access, I am
> considering removing my address from the mailing lists since they
> generate a large portion of the SPAM I receive.  I have posted
> regarding this problem before, but the complaint was ignored by
> whomever has administrative access over these lists.

As far as we can tell the lists are already subscriber-only. If I knew
any way to stop the spam, I would work on it.

Apologies. You are not being ignored.

Frank

Francis James Franklin
F.J.Franklin <at> shef.ac.uk

After we were introduced I noticed that both of them were carrying
three-foot-long machetes. I hate hiking with convicts carrying machetes.

                                        - Susan Orlean, The Orchid Thief

-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
Jeremy C. Reed | 13 May 2003 00:12
Picon

test of spam

This address is not subscribed. It should bounce.

  Jeremy C. Reed

-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
Hubert Figuiere | 13 May 2003 09:38
Picon
Gravatar

Re: test of spam


On mardi, mai 13, 2003, at 00:12 Europe/Paris, Jeremy C. Reed wrote:

> This address is not subscribed. It should bounce.
>

I don't think it is possible de tell sourceforget to make mailing list 
posting reserved to subscribers only.

Hub
--

-- 
Unemployed AbiWord maintainer - http://www.figuiere.net/hub/
Cell-phone: +33 6 18 01 42 11 - AIM: hfiguiere
Any HTML e-mail sent to me will be discarded.

-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
Bob Friesenhahn | 13 May 2003 16:33
Picon
Picon
Gravatar

Re: test of spam

On Tue, 13 May 2003, Hubert Figuiere wrote:

>
> On mardi, mai 13, 2003, at 00:12 Europe/Paris, Jeremy C. Reed wrote:
>
> > This address is not subscribed. It should bounce.
>
> I don't think it is possible de tell sourceforget to make mailing list
> posting reserved to subscribers only.

Maybe not.  One means that seems pretty effective to filter SPAM from
the lists is to set the maximum message size to a fairly small value
(e.g. 40K).  Most SPAM messages seem to be about 120K.  This causes
the message to be held for the list moderator.

The load is transferred from the list members to the list moderator.
:-)

Bob
======================================
Bob Friesenhahn
bfriesen <at> simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen

-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

Gmane