 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Can anybody advise any easy way to convert pov files to html format?
Thanks in advance,
Gleb
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3c8fb46e$1@news.povray.org> , "Gleb" <gk1### [at] soton ac uk> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3c8fb46e$1@news.povray.org>, "Gleb" <gk1### [at] soton ac uk>
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] mac com>
POV-Ray TAG e-mail: chr### [at] tag povray org
TAG web site: http://tag.povray.org/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Thorsten Froehlich" <tho### [at] trf de> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Thorsten Froehlich" <tho### [at] trf de> wrote in message
news:3c8fc4f5@news.povray.org...
> In article <3c8fb46e$1@news.povray.org> , "Gleb" <gk1### [at] soton ac uk> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3c8fc801$1@news.povray.org>, "Greg M. Johnson" <gregj:-
)565### [at] aol com> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <3c8fca52$1@news.povray.org>, Gleb wrote:
>
> "Thorsten Froehlich" <tho### [at] trf de> wrote in message
> news:3c8fc4f5@news.povray.org...
>> In article <3c8fb46e$1@news.povray.org> , "Gleb" <gk1### [at] soton ac uk> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Wed, 13 Mar 2002 20:19:57 -0000, "Gleb" <gk1### [at] soton ac uk> 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] vip bg
TAG e-mail : pet### [at] tag povray org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Wed, 13 Mar 2002 20:19:57 -0000, "Gleb" <gk1### [at] soton ac uk> 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] vip bg
TAG e-mail : pet### [at] tag povray org
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Wed, 13 Mar 2002 16:42:08 -0500, "Greg M. Johnson" <gregj:-)565### [at] aol com>
wrote:
> Isn't there a bunch of extra bloody crap to get HTML 2.0 compliant?
Thorsten's example is very HTML compliant. Compliant to any version and any
browser. It use no more 5 tags so there is no place to make mistake. All of
tags are used according to its destination. Non of tags is used with
decoration destination. But you would make mistake in it too becouse you
always ommit HEAD tag as it was pointed you before. In fact I'm still
surprized of your obstinacy to not use my corrected version of your file
uploaded to http://www.abx.art.pl/pov/shortest/shortvote.html which is HTML
compliant.
ABX
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Wed, 13 Mar 2002 20:19:57 -0000, "Gleb" <gk1### [at] soton ac uk> wrote:
> Can anybody advise any easy way to convert pov files to html format?
http://www.palfrader.org/code2html/
It is online converter so it saves space on drives but uses power of
webserver. It also requires privilages and extensions of webserver. But
probably you can install your own webserver on your localhost and use it as
converter. POV-Ray support was added at 2001-03-25 so I suppose it supports
3.1 syntax. I have never tested this package.
ABX
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"ingo" <ing### [at] home nl> wrote in message
news:Xns### [at] povray org...
> The vim editor has an option to save, any file, as html. vim 6 comes with
> syntax clouration for POV-Ray 3.5.
I'd like to try vim, but for the moment
it seems to be unavailable at ftp://ftp.vim.org/pub/vim/pc/
I'll retry later.
Thanks!
Gleb
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Gleb wrote:
> ...
> it seems to be unavailable at ftp://ftp.vim.org/pub/vim/pc/
> ...
Hmm. I've tried every mirror I can find of the vim ftp stuff, and my ftp
program disconnects as soon as I enter the /pc directory, every time.
The rest of it works fine, just /pc Anyone else have this?
--
signature{
"Grey Knight" contact{ email "gre### [at] yahoo com" }
site_of_week{ url "http://digilander.iol.it/jrgpov" }
}
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Thu, 14 Mar 2002 12:03:54 +0000, Grey Knight <s16### [at] namtar qub ac uk>
wrote:
> > it seems to be unavailable at ftp://ftp.vim.org/pub/vim/pc/
> Hmm. I've tried every mirror I can find of the vim ftp stuff, and my ftp
> program disconnects as soon as I enter the /pc directory, every time.
> The rest of it works fine, just /pc Anyone else have this?
works fine for me
ABX
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Grey Knight wrote:
>
> Gleb wrote:
> > ...
> > it seems to be unavailable at ftp://ftp.vim.org/pub/vim/pc/
> > ...
> Hmm. I've tried every mirror I can find of the vim ftp stuff, and my ftp
> program disconnects as soon as I enter the /pc directory, every time.
> The rest of it works fine, just /pc Anyone else have this?
Possible solution: go to http://www.vim.org/faq/download.html and use
the direct links just down the page.
--
signature{
"Grey Knight" contact{ email "gre### [at] yahoo com" }
site_of_week{ url "http://digilander.iol.it/jrgpov" }
}
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |