POV-Ray : Newsgroups : povray.general : Cross-Platform Curiosity Question Server Time
25 Dec 2024 01:45:36 EST (-0500)
  Cross-Platform Curiosity Question (Message 1 to 7 of 7)  
From: Dave Matthews
Subject: Cross-Platform Curiosity Question
Date: 19 Jul 2006 10:25:00
Message: <web.44be3f49385b538d8c7259570@news.povray.org>
When I create a file on my Mac, whether using MegaPOV or POVRay (at least I
think I also get them from the POVRay for Mac version -- all the examples
I'm looking at now come from MegaPOV), when I bring the file up in my
POVRay for Windows editor, I get little rectangular boxes at the end of
some, but not all, lines.

They have no effect on the parsing of the scene file, and I'm assuming
they're some sort of end-of-line symbol or something, but, since many lines
lack them entirely, while some others have a string of six or seven of
these, I'm just curious what they're from.

Again, this is purely out of curiosity, and because I know that there are a
bunch of you who can answer this.  The only time they bother me is when I
want to share a scene file and want to make it look pretty; then I go
through and manually delete each of these in my Windows editor....

Thanks

Dave Matthews


Post a reply to this message

From: PM 2Ring
Subject: Re: Cross-Platform Curiosity Question
Date: 19 Jul 2006 10:40:00
Message: <web.44be43911f85aa55534cf7610@news.povray.org>
"Dave Matthews" <dav### [at] mnwestedu> wrote:
> When I create a file on my Mac, whether using MegaPOV or POVRay (at least I
> think I also get them from the POVRay for Mac version -- all the examples
> I'm looking at now come from MegaPOV), when I bring the file up in my
> POVRay for Windows editor, I get little rectangular boxes at the end of
> some, but not all, lines.
>
> They have no effect on the parsing of the scene file, and I'm assuming
> they're some sort of end-of-line symbol or something, but, since many lines
> lack them entirely, while some others have a string of six or seven of
> these, I'm just curious what they're from.

Different operating systems use different end-of-line conventions, but the
POV parser copes with them all. The editor may get confused though. There
are many  free programs that can do the end-of-line conversion for you.

Unix/Linux uses control-J (linefeed), Mac uses control-M (carriage return),
and the PC uses control-M followed by control-J.


Post a reply to this message

From: Dave Matthews
Subject: Re: Cross-Platform Curiosity Question
Date: 19 Jul 2006 10:45:01
Message: <web.44be45461f85aa558c7259570@news.povray.org>
"PM 2Ring" <nomail@nomail> wrote:

>
> Unix/Linux uses control-J (linefeed), Mac uses control-M (carriage return),
> and the PC uses control-M followed by control-J.

Hmm.  My curiosity is (was) why some lines have, while others lack, this
symbol.  Perhaps sometimes (on the Mac) I'm hitting "return," while other
times I'm hitting "enter" (which two are different on the Mac)?

Oh well, as you say, the POVRay parser handles them all, so I've never run
into a situation where it's anything more than an issue of idle curiosity.
Can you think of a situation where it might be a problem?

Thanks for the input.

Dave Matthews


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Cross-Platform Curiosity Question
Date: 20 Jul 2006 01:56:04
Message: <44bf1af4$1@news.povray.org>
Dave Matthews wrote:
  > Hmm.  My curiosity is (was) why some lines have, while others lack, this
> symbol.  Perhaps sometimes (on the Mac) I'm hitting "return," while other
> times I'm hitting "enter" (which two are different on the Mac)?

They are not different and will not create different characters in the 
source file. Most likely there is either a file transmission problem or a 
problem with the Windows editor reading the file. Which one it is i cannot 
tell you right now.

	Thorsten, POV-Team


Post a reply to this message

From: Dave Matthews
Subject: Re: Cross-Platform Curiosity Question
Date: 20 Jul 2006 15:35:01
Message: <web.44bfda5a1f85aa558c7259570@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:

> They are not different and will not create different characters in the
> source file. Most likely there is either a file transmission problem or a
> problem with the Windows editor reading the file. Which one it is i cannot
> tell you right now.
>
>  Thorsten, POV-Team

The reason I was thinking they were different was back when I used
Mathematica on the Mac, hitting "return" just took me to the next line in
the same cell, while hitting "enter" actually evaluated the cell.  In the
Windows version, the "enter" acted like the Mac "return," and to accomplish
the same thing as the Mac's "enter" I used "shift-enter."  So I was thinking
the Mac had (the capability of) differentiating between a "return" and an
"enter."  The phrase "a little knowledge is a dangerous thing" applies to
me far too often, since my knowledge is quite often "little." ;-)

Anyway, like I said, this was a purely idle question, since everything works
fine, regardless.

Thanks Thorsten.


Post a reply to this message

From: Larry Hudson
Subject: Re: Cross-Platform Curiosity Question
Date: 20 Jul 2006 19:05:11
Message: <44c00c27$1@news.povray.org>
Dave Matthews wrote:
> ...
> The reason I was thinking they were different was back when I used
> Mathematica on the Mac, hitting "return" just took me to the next line in
> the same cell, while hitting "enter" actually evaluated the cell.  In the
> Windows version, the "enter" acted like the Mac "return," and to accomplish
> the same thing as the Mac's "enter" I used "shift-enter."  So I was thinking
> the Mac had (the capability of) differentiating between a "return" and an
> "enter."  The phrase "a little knowledge is a dangerous thing" applies to
> me far too often, since my knowledge is quite often "little." ;-)

Yes, some software CAN distinguish them as different keys, however, they 
both insert the same (ASCII) code into a text file.  In that sense, they 
are identical and MOST software does not distinguish between them.

      -=- Larry -=-


Post a reply to this message

From: Dave Matthews
Subject: Re: Cross-Platform Curiosity Question
Date: 21 Jul 2006 09:05:00
Message: <web.44c0d0e21f85aa558c7259570@news.povray.org>
Larry Hudson <org### [at] yahoocom> wrote:
> Dave Matthews wrote:

> Yes, some software CAN distinguish them as different keys, however, they
> both insert the same (ASCII) code into a text file.  In that sense, they
> are identical and MOST software does not distinguish between them.
>
>       -=- Larry -=-

That makes sense.  Thanks!


Post a reply to this message

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