Re: [pmwiki-users] html2wiki

2007-10-19 Thread Sandy
Kathryn Andersen wrote:

> 
>> A good tool if you're the only one preparing 
>> the HTML file. Not so good if you let everyone use it.
> 
> It was written with the intent to make things easier if you already have
> HTML files that you don't (yet) want to convert to PmWiki format.  It
> was NOT intended to replace PmWiki pages altogether.  It's more oriented
> towards using PmWiki as a CMS rather than a free-for-all wiki.
> 
> There are trade-offs in using it.
> 
> Kathryn Andersen
> (author of IncludeUpload)

Kathryn,

I don't want imply this recipe isn't great; it fills a real need. (And 
if I ever stop procrastinating and start writing again, I'll use it on 
my own site. One less conversion to deal with. Now if only Word or 
OpenOffice would produce nice, clean HTML,...)

I'm just over-cautious about recommending something which someone might 
assume it's safer than it was designed to be.

I've added your comments here to the page under "Warning", as well as 
clarifying that  is stripped out.

Cheers!

Sandy


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] html2wiki

2007-10-18 Thread Kathryn Andersen
On Thu, Oct 18, 2007 at 11:27:15AM -0400, Sandy wrote:
> IncludeUpload allows you to upload and then include an HTML file in a 
> page; I don't think it checks for safety, so if there's malicious 
> JavaScript, you're in trouble.
Yes, it assumes that if someone is trusted enough to upload a file,
then they aren't going to include malicious JavaScript.
There's a reason why uploads are disabled by default...

> Also, I don't know if it strips out 
> things like the  tags; if it doesn't, you'll get two of them in 
> the output, which is bad.
Yes, it does strip out the HEAD tags, it only includes the BODY
content.

> A good tool if you're the only one preparing 
> the HTML file. Not so good if you let everyone use it.

It was written with the intent to make things easier if you already have
HTML files that you don't (yet) want to convert to PmWiki format.  It
was NOT intended to replace PmWiki pages altogether.  It's more oriented
towards using PmWiki as a CMS rather than a free-for-all wiki.

I've used it in a few ways:
(a) for interim pages which I intend to convert to PmWiki, but don't
have time yet

(b) for content (such as FAQs that get posted to mailing lists) which
needs to be in plain text format and HTML format (IncludeUpload also
allows one to include plain text files, and optionally converts them to
proper HTML if you configure a script to call to do the conversion)

(c) for things like my fiction catalogue, where the actual story is in a
HTML file, but the wiki page contains meta-information about the story,
as well as the story itself.

There are trade-offs in using it.

Kathryn Andersen
(author of IncludeUpload)
-- 
 _--_|\ | Kathryn Andersen  
/  \| 
\_.--.*/| GenFicCrit mailing list 
  v | 
| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |   -> Earth -> Sol -> Milky Way Galaxy -> Universe

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] html2wiki

2007-10-18 Thread Sandy
Mark Trumpold wrote:
> Hi all
> 
> I looked at the cookbook and it seemed somewhat unclear but is there an easy
> way to convert html to php?
> 
> Thanks
> 
> Mark

HTML to PHP, or HTML to PmWiki? PHP is the programming language that 
takes the PmWiki(is there a correct name?) and translates it to HTML.

So you're probably looking for HTML to PmWiki.

If you have a lot, try IncludeUpload and EnableHTML.

IncludeUpload allows you to upload and then include an HTML file in a 
page; I don't think it checks for safety, so if there's malicious 
JavaScript, you're in trouble. Also, I don't know if it strips out 
things like the  tags; if it doesn't, you'll get two of them in 
the output, which is bad. A good tool if you're the only one preparing 
the HTML file. Not so good if you let everyone use it.

EnableHTML is safer, but more restrictive. You state which HTML tags you 
want to allow. You can then combine those tags with PmWiki text when 
editing. Any tags you don't list will look funny on the final page, but 
at least you won't run any scripts by accident.

Cheers!


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] html2wiki

2007-10-17 Thread Maria McKinley
I've had pretty good results with the converter:

http://diberri.dyndns.org/wikipedia/html2wiki/

Some things didn't work perfectly, but it's not bad. You can either
cut and paste html in, or give it a url to convert. Never did figure
out how to get relative links to work right, so let me know if you
figure this out!

~maria

On 10/17/07, Mark Trumpold <[EMAIL PROTECTED]> wrote:
> Hi all
>
> I looked at the cookbook and it seemed somewhat unclear but is there an easy
> way to convert html to php?
>
> Thanks
>
> Mark
> ---
> May the best rugby team win and the captain's name should have been Stirling
> Mortlock!
>
>
>
> ___
> pmwiki-users mailing list
> pmwiki-users@pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>


-- 
Maria Mckinley
Scientific Programmer
Shadlen Lab
Physiology and Biophysics
Box 357290
University of Washington
(206) 616-3923
[EMAIL PROTECTED]

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] html2wiki

2007-10-17 Thread Mark Trumpold
Hi all

I looked at the cookbook and it seemed somewhat unclear but is there an easy
way to convert html to php?

Thanks

Mark
---
May the best rugby team win and the captain's name should have been Stirling
Mortlock! 



___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users