POV-Ray : Newsgroups : povray.general : pov2html Server Time
19 Nov 2024 09:51:21 EST (-0500)
  pov2html (Message 1 to 10 of 16)  
Goto Latest 10 Messages Next 6 Messages >>>
From: Gleb
Subject: pov2html
Date: 13 Mar 2002 15:19:58
Message: <3c8fb46e$1@news.povray.org>
Can anybody advise any easy way to convert pov files to html format?

Thanks in advance,
Gleb


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: pov2html
Date: 13 Mar 2002 16:30:29
Message: <3c8fc4f5@news.povray.org>
In article <3c8fb46e$1@news.povray.org> , "Gleb" <gk1### [at] sotonacuk> wrote:

> Can anybody advise any easy way to convert pov files to html format?

With a text editor you can simply do the following (which should be easy with
any serious text editor) ...

Replace all '<' with <
Replace all '>' with >

The add at the top of the file:

<HTML>
<HEAD>
  <TITLE>POV-Ray Scene</TITLE>
</HEAD>
<BODY>
<PRE>


And at the bottom of the file add:

</PRE>
</BODY>
</HTML>


This is the fastest method. Alternatives are to use any HTML editor. Such an
editor should be able to automate the task because .pov files are nothing more
but plain text files...

    Thorsten


Post a reply to this message

From: Christopher James Huff
Subject: Re: pov2html
Date: 13 Mar 2002 16:38:17
Message: <chrishuff-9E9D53.16375713032002@netplex.aussie.org>
In article <3c8fb46e$1@news.povray.org>, "Gleb" <gk1### [at] sotonacuk> 
wrote:

> Can anybody advise any easy way to convert pov files to html format?

I've seen a lot of "can I convert *.pov to ..." questions, but I've 
never seen this one...
Assuming you really meant HTML and not VRML, what are you looking for? 
Just code markup, or syntax styling as well? I usually do this stuff by 
hand. I don't know of any existing tools for this, but I imagine it 
would be very easy as a Perl script. Maybe I should learn Perl and write 
one... ;-)

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

From: Greg M  Johnson
Subject: Re: pov2html
Date: 13 Mar 2002 16:43:29
Message: <3c8fc801$1@news.povray.org>
"Thorsten Froehlich" <tho### [at] trfde> wrote in message
news:3c8fc4f5@news.povray.org...
> The add at the top of the file:
>
> <HTML>
> <HEAD>
>   <TITLE>POV-Ray Scene</TITLE>
> </HEAD>
> <BODY>
> <PRE>
> </PRE>
> </BODY>
> </HTML>

Isn't there a bunch of extra bloody crap to get HTML 2.0 compliant?


Post a reply to this message

From: Gleb
Subject: Re: pov2html
Date: 13 Mar 2002 16:53:22
Message: <3c8fca52$1@news.povray.org>
"Thorsten Froehlich" <tho### [at] trfde> wrote in message
news:3c8fc4f5@news.povray.org...
> In article <3c8fb46e$1@news.povray.org> , "Gleb" <gk1### [at] sotonacuk> wrote:
>
> > Can anybody advise any easy way to convert pov files to html format?
>
> With a text editor you can simply do the following (which should be easy
with
> any serious text editor) ...
>
> Replace all '<' with <
> Replace all '>' with >
>
> The add at the top of the file:
>
> <HTML>
> <HEAD>
>   <TITLE>POV-Ray Scene</TITLE>
> </HEAD>
> <BODY>
> <PRE>
:)
Sorry, question was not clear enough. I thought it's evident,
that under html format of pov file I mean full-coloured text:
keywords, numbers, comments, strings etc.
 I wonder, because the POV editor (at least win32 version)
has very attractive text colouring, and it's a pity that  examples in docs,
and some other on-line tutorials don't use it.

So is there any such converters available?

Regards,

Gleb


Post a reply to this message

From: ingo
Subject: Re: pov2html
Date: 13 Mar 2002 17:54:54
Message: <Xns91D0F3A38A19Fseed7@povray.org>
in news:3c8fb46e$1@news.povray.org Gleb wrote:

> Can anybody advise any easy way to convert pov files to html format?
> 

The vim editor has an option to save, any file, as html. vim 6 comes with 
syntax clouration for POV-Ray 3.5.

Ingo


Post a reply to this message

From: Lutz-Peter Hooge
Subject: Re: pov2html
Date: 13 Mar 2002 18:09:34
Message: <MPG.16f9fae41c5997c49896e5@news.povray.org>
In article <3c8fc801$1@news.povray.org>, "Greg M. Johnson" <gregj:-
)565### [at] aolcom> says...

> Isn't there a bunch of extra bloody crap to get HTML 2.0 compliant?

Yes. Add:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 2.0//EN">

Lutz-Peter


Post a reply to this message

From: bruce
Subject: Re: pov2html
Date: 13 Mar 2002 18:37:30
Message: <slrna8vp4n.1dr.bruce@pingouin.rez-gif.supelec.fr>
In article <3c8fca52$1@news.povray.org>, Gleb wrote:
> 
> "Thorsten Froehlich" <tho### [at] trfde> wrote in message
> news:3c8fc4f5@news.povray.org...
>> In article <3c8fb46e$1@news.povray.org> , "Gleb" <gk1### [at] sotonacuk> wrote:
> 
> So is there any such converters available?
> 
Never heard of such a converter, but it shouldn't be too hard to code (that's
juste recognizing some keywords). I'll try to make it in perl as soon as I'll
get a few free time....

	-- Bruce


Post a reply to this message

From: Peter Popov
Subject: Re: pov2html
Date: 14 Mar 2002 00:20:23
Message: <7bc09uc7trevq3s47c6g5p0e9loplvko0a@4ax.com>
On Wed, 13 Mar 2002 20:19:57 -0000, "Gleb" <gk1### [at] sotonacuk> wrote:

>Can anybody advise any easy way to convert pov files to html format?

For common programming languages, I'd use SciTE (www.scintilla.org).
Unfortunately, there's no lexer for POV. I suppose Emacs can do this
(they say it can do anything) so if you're nice, Warp may come up with
something :)


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Peter Popov
Subject: Re: pov2html
Date: 14 Mar 2002 00:23:35
Message: <imc09ukchjs746kdceoaisi24k1mt93quv@4ax.com>
On Wed, 13 Mar 2002 20:19:57 -0000, "Gleb" <gk1### [at] sotonacuk> wrote:

>Can anybody advise any easy way to convert pov files to html format?

Forgot to say the most important. Vim can convert anything it reads
(and it can ready virtually anything :) ) into HTML. The only thing I
don't like is that it uses FONT tags and not CSS, but I guess you
could always grep that away.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

Goto Latest 10 Messages Next 6 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.