POV-Ray : Newsgroups : povray.windows : Output_File_Name -- quoted string question Server Time: 23 Oct 2019 02:45:06 GMT
  Output_File_Name -- quoted string question (Message 1 to 10 of 16)  
Goto Latest 10 Messages Next 6 Messages >>>
From: Kenneth
Subject: Output_File_Name -- quoted string question
Date: 12 May 2013 12:20:02
Message: <web.518f8756a19a1fd1c2d977c20@news.povray.org>
In Windows XP:

Could someone tell me what I'm doing wrong with the following quickres.ini code
that I'm using? It *works* OK (specifying a folder to put my rendered image in)
but I get an annoying non-fatal error message at the end of a render, "Most
likely detected an unquoted string with spaces in INI file..."  (Same behavior
in 3.62 and 3.7RC7) Sorry if the code doesn't fit on one line:

Output_File_Name=c:\Documents and Settings\Owner\My
Documents\POV-Ray\v3.6\tests\

I can see that there are "unquoted strings with spaces" (I think!), and I've
tried all sorts of quotes and slashes as a remedy; but they all cause one
problem or another. I've been living with this for years (and ignoring it); but
it's high time I fixed the problem.


Post a reply to this message

From: Thomas de Groot
Subject: Re: Output_File_Name -- quoted string question
Date: 12 May 2013 14:07:38
Message: <518fa22a$1@news.povray.org>
On 12-5-2013 14:16, Kenneth wrote:
In my own povray.ini file, I write these things between quotes:

Output_File_Name = "c:\Documents and Settings\Owner\My 
Documents\POV-Ray\v3.6\tests\"


Thomas


Post a reply to this message

From: Stephen
Subject: Re: Output_File_Name -- quoted string question
Date: 12 May 2013 14:33:46
Message: <518fa84a$1@news.povray.org>
On 12/05/2013 1:16 PM, Kenneth wrote:
> Output_File_Name=c:\Documents and Settings\Owner\My
> Documents\POV-Ray\v3.6\tests\

Try

Output_File_Name="c:\\Documents and Settings\\Owner\\My 
Documents\\POV-Ray\\v3.6\\tests\\"


This works for me.
Not that I use this method, myself. :-)

-- 
Regards
     Stephen


Post a reply to this message

From: Stephen
Subject: Re: Output_File_Name -- quoted string question
Date: 12 May 2013 14:36:07
Message: <518fa8d7@news.povray.org>
On 12/05/2013 3:33 PM, Stephen wrote:
>
> Try
>
> Output_File_Name="c:\\Documents and Settings\\Owner\\My
> Documents\\POV-Ray\\v3.6\\tests\\"
>
>
> This works for me.
> Not that I use this method, myself. :-)

It also works with "\" instead of "\\" as Thomas posted.

-- 
Regards
     Stephen


Post a reply to this message

From: Thomas de Groot
Subject: Re: Output_File_Name -- quoted string question
Date: 12 May 2013 14:55:56
Message: <518fad7c@news.povray.org>
On 12-5-2013 16:36, Stephen wrote:
> It also works with "\" instead of "\\" as Thomas posted.
>

In some cases double back slashes are needed instead of single ones, I 
found out by experience. In particular, when declaring names to be used 
later in the code, like:

#declare Terragen_Sky_Name = "Terragen files\\Skies\\Pano_09_0h_50a_"

Not sure why that is though.

Thomas


Post a reply to this message

From: Stephen
Subject: Re: Output_File_Name -- quoted string question
Date: 12 May 2013 15:24:27
Message: <518fb42b@news.povray.org>
On 12/05/2013 3:55 PM, Thomas de Groot wrote:
>
> In some cases double back slashes are needed instead of single ones, I
> found out by experience. In particular, when declaring names to be used
> later in the code, like:
>
> #declare Terragen_Sky_Name = "Terragen files\\Skies\\Pano_09_0h_50a_"
>
> Not sure why that is though.

"#include" paths need double slashes.
It must be different modules parsing the ini files and the pov files.
I would think.

-- 
Regards
     Stephen


Post a reply to this message

From: Kenneth
Subject: Re: Output_File_Name -- quoted string question
Date: 12 May 2013 16:30:03
Message: <web.518fc21df34be07c2d977c20@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:
> On 12-5-2013 14:16, Kenneth wrote:
> In my own povray.ini file, I write these things between quotes:
>
> Output_File_Name = "c:\Documents and Settings\Owner\My
> Documents\POV-Ray\v3.6\tests\"
>

Hey, this works!

I'm embarrassed to say that I tried this earlier...but I didn't run
an actual render to see what would happen!!  :-/  The reason being, that all of
the text in my quickres file that *followed* this line then took on the
appearance of being in string notation--like one *long* string, all the way to
the end of the file. (Rather hard to describe.) So I didn't pursue it, thinking
I had made a mistake.

That behavior is rather odd, to say the least--although it doesn't affect the
operation of the code.

Thanks!


Post a reply to this message

From: Kenneth
Subject: Re: Output_File_Name -- quoted string question
Date: 12 May 2013 16:55:01
Message: <web.518fc73cf34be07c2d977c20@news.povray.org>
Stephen <mca### [at] aolcom> wrote:

>
> Try
>
> Output_File_Name="c:\\Documents and Settings\\Owner\\My
> Documents\\POV-Ray\\v3.6\\tests\\"

This actually works even better; the double slashes eliminate the 'unending
string' behavior that the single slashes produce. Using this particular syntax
never occurred to me, though; the docs don't mention it.

But your suggestion gave me an idea: I'm guessing that the most 'important'
slash is the final one, preceding the last double-quote. My goofy intuition,
anyway, based on something I read in the docs. So I tried it a third way--
single slashes *except* at the end-- and it works as well as using all double
slashes:

Output_File_Name="c:\Documents and Settings\Owner\My
Documents\POV-Ray\v3.6\tests\\"

No error message, and no 'unending strings.'  Great!

Many thanks, to you and to Thomas. Mystery solved!


Post a reply to this message

From: Stephen
Subject: Re: Output_File_Name -- quoted string question
Date: 12 May 2013 17:53:33
Message: <518fd71d$1@news.povray.org>
On 12/05/2013 5:51 PM, Kenneth wrote:
> Output_File_Name="c:\Documents and Settings\Owner\My
> Documents\POV-Ray\v3.6\tests\\"
>
> No error message, and no 'unending strings.'  Great!
>

IIRC it is the spaces in the directory names that cause the trouble. 
There is or was, in a previous version, documented. But not under the 
INI settings.

> Many thanks, to you and to Thomas. Mystery solved!

I am sure that I can speak for Thomas when I say, that it is our 
pleasure to help.

-- 
Regards
     Stephen


Post a reply to this message

From: Alain
Subject: Re: Output_File_Name -- quoted string question
Date: 13 May 2013 00:50:45
Message: <519038e5$1@news.povray.org>
Le 13-05-12 10:55, Thomas de Groot a écrit :
> On 12-5-2013 16:36, Stephen wrote:
>> It also works with "\" instead of "\\" as Thomas posted.
>>
>
> In some cases double back slashes are needed instead of single ones, I
> found out by experience. In particular, when declaring names to be used
> later in the code, like:
>
> #declare Terragen_Sky_Name = "Terragen files\\Skies\\Pano_09_0h_50a_"
>
> Not sure why that is though.
>
> Thomas
>

The back slash is the escape character in strings. For example, "\n" is 
used as a new line character, if you have \Skies\Pano,
it get parsed as "\s" "kies" "\p" "ano"
\s stand for the control character DC3 and \p for DLE


Alain


Post a reply to this message

Goto Latest 10 Messages Next 6 Messages >>>

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