Another problem which arises is that there is a change in the way that OS X handles the carriage-return/line-feed, or is this a Windows thing? I could never quite work it out, but OS X now uses a *New Line* character which is easier to understand.
Mac: CR Unix: LF Windows: CR/LF
On OS X, LF is the standard EOL -- end of line code -- for Cocoa apps. What is confusing is that Cocoa accepts any new line code: CR, LF or CR/LF. So we cannot see what EOL is used in a file in reality.
These changes have a real consequence when trying to edit OS 9 Nisus and OS X NWEx documents.
One of the great items in classic NW was the ability to remove double Returns, called Remove Blank Lines. In NW you could display the invisible characters; you cannot do this in NWEx. That is really bad news, frankly.
I totally agree with you. The ability of NW Classic to *show* CR, space, tab, etc. helps me a lot.
There used to be a prepared macro for this. Now it is necessary to do a Find/Replace in NWEx but first you need to determine the format of the invisible character at the end on a paragraph because it depends on the text properties of the source document.
In PowerFind Pro mode
Replace "\r\n?" with "\n" will standardize any kind of EOL to LF. This is harmless if EOL of the target file is already LF.
In NW Classic, replace "\r\n-" with "\n" will do the same.
Unfortunately NW Express does not enable you to macroize such a simple command. In other words, NWE menu command macro does not accept any argument. This is extremely discouraging and annoying. Nisus Soft should improve NWE macro so that we can do
Replace All "\r\n?" "\n" "g"
as soon as possible.
Anyway, if you don't care of style attribute, you can use the script below.
<http://quinon.com/files/nisus_files/NWExpressMacros/ StandardizeEOL.pl.sit>
Kino
===================================================================
#!/usr/bin/perl #Nisus Macro Block #source front #destination front #before execution #Select All #End Nisus Macro Block
###### StandardizeEOL.pl ######
# Change CR (Mac) and CRLF (Windows) to LF
use strict; use warnings;
while (<STDIN>) {
s/\r\n?/\n/g;
print;
}# end of script
===================================================================
--------------------------------------------------- The Nisus Interactive List [EMAIL PROTECTED]
Searchable archives: http://www.mail-archive.com/nisus-interactive%40nisus.com/
To unsubscribe from this list please send a message with "unsubscribe nisus-interactive" in the body of the email to [EMAIL PROTECTED]
