Date: Tue, 4 Nov 2008 10:40:29 -0600
Reply-To: "Peck, Jon" <peck@spss.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: "Peck, Jon" <peck@spss.com>
Subject: Re: V16 syntax files in notepad
In-Reply-To: A<1C9ACDE2D45D41848275068D96208A22@statman>
Content-Type: text/plain; charset="us-ascii"
I don't use Notepad+, but I note that it says in the readme,
"meant for plain text files only. It's not for binary files, files that use escape characters, etc. Chances are files with escape characters won't show up properly. It's meant for plain, person-readable text only. "
This makes me suspect that it will not do well with Unicode syntax files or maybe even code page files that contain extended characters. You can choose in SPSS whether to save your syntax in the traditional code page form or Unicode from the syntax window. If saved as Unicode, it will be in utf-8 and will have a three-byte header that identifies it as Unicode. Regular Notepad understands this perfectly and interprets the text correctly, but Notepad+ might have problems. From what I see in the Notepad+ readme, it is very, very old, so I wouldn't hold out much hope.
As for line endings, syntax files are saved with a cross-platform newline character starting with 16. Since Windows typically uses cr-lf, Mac uses cr, and Linux/Unix systems typically use lf, some software, including Notepad, may not understand the lf-only ending. Many other editors do.
HTH,
Jon Peck
-----Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of Statmanz
Sent: Tuesday, November 04, 2008 7:59 AM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: Re: [SPSSX-L] V16 syntax files in notepad
Gene, I was able to work with Notepad+ and V16 syntax and also can with V17
but in V17 when I zip and compress the syntax it becomes corrupt so simply
have to zip "as is"
WMB
Statistical Services
============
mailto: info.statman@earthlink.net
http:\\home.earthlink.net\~info.statman
============
On 11/4/2008 9:28:53 AM, Gene Maguin (emaguin@buffalo.edu) wrote:
> Previously, syntax files displayed in Notepad in the same manner as they
> do
> in the spss syntax editor. But now they do not. I understand
> it's a trivial
> thing but notepad is useful for scanning through files without having to
> start up spss itself and, I guess, some folks use notepad to edit syntax
> files. It seems as though notepad doesn't
> recognize or process the end of
> line (EOL) or end of record (EOR) marker correctly anymore. That makes me
> wonder if the EOL or EOR character has been changed--for some reason.
> However, v16 syntax files display correctly on an editor like multiedit.
> Why
> the issue for one program but not another.
>
> So,
> I'm curious (but with a little edge) as to why this is. Does anyone
> know? I'm
> also curious as to whether this is true for 17 as well.
>
> Gene Maguin
>
> =====================
> To manage your subscription to SPSSX-L, send a message to
> LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD
=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
=====================
To manage your subscription to SPSSX-L, send a message to
LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
|