Why Don't My Posts Have Paragraphs?

   / Why Don't My Posts Have Paragraphs?
  • Thread Starter
#31  
Re: Why Don\'t My Posts Have Paragraphs?

Email? OK, got it. Sorry, I am phasing out my att.net account and havent been checking it. Will update my profile. Let me try your suggestions after I absorb them. Appreciate the help from you and GG. For this message, I have put no carriage returns in what I will call the text entry box (the first TBN box we see). Then, after Continue, I will put carriage returns after every sentence in this message in what I will call the text edit box to see what happens.
 
   / Why Don't My Posts Have Paragraphs? #32  
Re: Why Don\'t My Posts Have Paragraphs?

glenmac & other mac users,

I do not now own and have never owned a Mac, and in fact have never used one. But in a few minutes of research on the Web I located the following information, which I believe may be relevant to the line break and text formatting issues affecting Mac users.

Compiled from various sources...

Text file format
The Macintosh, by default, creates "carriage returns" at the end of each line in a text file. In UNIX, a "line feed" is used to mark the end of each line in a text file. In DOS and Windows, both a "carriage return" and a "line feed" are used.

The TBN servers run under the UNIX operating system, and therefore expect a line feed at the end of each line in a text file. Since the Macintosh system uses only a carriage return at the end of each text line, and not a line feed, UNIX software (specifically that which runs the forum) is unable to distinguish between different lines in a Mac format text file (more precisely, it thinks the file contains one, extremely long "run-together" line).

This is not a problem for DOS and Windows files since they have the crucial line feed in addition to a carriage return; and UNIX generally ignores the carriage returns.

One solution would be to write messages outside of the text posting box on the forum. To create files in a format compatible with TBN services, write your message using a Mac word processor application, then use the "Save as UNIX Text" option in the program you use to create your text message. Or, if this is not available, use the "Save as DOS Text" option. In Microsoft Word, save as file type "Text with Line Feeds".

A number of TBN services may not operate quite correctly if a text file used by the service is saved in Macintosh format.

But Wait, There's More!

Arcane Issues of Line Breaks, Line Feeds & Carriage Returns (oh my!)

The three types of operating systems which are used to access TBN - Macintosh, UNIX, and Windows - each have a different method for terminating a line in a text file. The Mac uses a carriage return (\r, ASCII code 13), UNIX uses a line feed (\n, ASCII code 10), and the PC uses both (together). If you are viewing a text file that is just a few long lines, or if line breaks do not appear where you intended them to, then this is probably the reason.

A lot of text processors will recognize the different use and will translate transparently; some won't, especially older programs. You may need to try a "soft wrap" when viewing a text file; but, unless the file is purely for "human eyes" only, it is probably best not to change it by doing a "hard wrap" as this may change the way it is read by a program.

Macintosh Files
One more twist with Macintosh files. Pre-OS X, Macintosh files typically have both data and resource forks. This is not normally a problem for file transfer when both sides of the transfer want to transfer a file with two forks. Well, that's not always the case. You may want a file to open and by read on a Mac, but not knowing that, most users (being on Windows) will transfer a file with no resource fork. Sorry about that.

I found at least one program which is used to work around this problem.

The program "Char11ToReturn" changes Carriage Returns into char 11 (a bad rectangle char) to export the Carriage Returns which are in the fields, instead of letting them remain real Carriage Returns (char 13). This shareware converts, on the fly, the text file just exported, and sets all the chars 11 into real Carriage Returns. It's very, very fast and easy. Also scriptable by AppleScript. The package contains a FileMaker file sample, a Scripting Addition and an AppleScript sample. Char11ToReturn is not an AppleScript. It's a C++ application. Take a look and see if it is of use... <A target="_blank" HREF=http://www.softobe.com/products/c11r/pp.html>http://www.softobe.com/products/c11r/pp.html</A> You certainly can find many references at Google to this "problem."


Now, having said all that, it amazes and distresses me that Mac and Windows and UNIX, **at this stage of the game**, CANNOT EVEN SHARE THE SIMPLEST FEW LINES OF TEXT. WHO IS RESPONSBILE for this idiotic state of affairs!!!!!!!!!!!!!!

I am sure Muhammad will dig into the various issues from a server and browser perspective, and try to solve this. It should be fixable with relatively simple changes to the core code (famous last words).

In the meantime, I hope your mind is a bit more at rest knowing that these is indeed a cause behind the irrational action of your text, albeit an irrational cause.
 
   / Why Don't My Posts Have Paragraphs? #33  
Re: Why Don\'t My Posts Have Paragraphs?

<font color=blue>Now, having said all that, it amazes and distresses me that Mac and Windows and UNIX, **at this stage of the game**, CANNOT EVEN SHARE THE SIMPLEST FEW LINES OF TEXT. WHO IS RESPONSBILE for this idiotic state of affairs!!!!!!!!!!!!!!</font color=blue>

I have one answer for this: Bill Gates, Steve Jobs, and Scott McNealy, and roughly in the following proportions: Bill Gates, 95%; Steve Jobs 4%, Scott McNealy 1%.

I have been dealing with this issue for literally years. It actually goes beyond those three platforms in the work that I do, as I have dealt (still deal) with systems that use even more arcane methods of storing plain text.

I see it all the time in UNIX text files that have been edited on a PC. They get liberally sprinkled with a "^m" at the end of each line. That's because on UNIX the carriage return is garbage. For the reverse, taking a UNIX file to a PC, and using a "dumb" text editor, there is a little "blivit" where the line feed should be, and the text gets all run together. Part of the reason for this is that on a PC, the carriage return and line feed perform different functions. The carriage return puts the cursor back in column 1, and the line feed moves the cursor down one line.

It's not a big deal these days, as I only use editors that can "figure it out", and just do the right thing. This is OK most of the time, except when you use "sensitive" programs (make is a good example), where you need it in the native format. For that, I have a little utility program that will convert a text file of one format to another.

In fact, we use the utility in our build procedures. The build figures out which platform it's running on, converts the "sensitive" files to the platform native format (because our develpment process allows the files to be in either format (some people use PC's, some use UNIX boxes, and some use both), then runs the build. It's all quite arcane, but I just take it in stride anymore. I gave up on getting any concensus on this one, and moved on.
 
   / Why Don't My Posts Have Paragraphs? #34  
Re: Why Don\'t My Posts Have Paragraphs?

Bob -

Your research contains many truths, but not whole truths, so help me. /w3tcompact/icons/laugh.gif

I feel compelled now to do more research myself (see what you've done to my weekend?), but for now let me say this about that:

<font color=blue>UNIX software (specifically that which runs the forum) is unable to distinguish between different lines in a Mac format text file (more precisely, it thinks the file contains one, extremely long "run-together" line). </font color=blue>

Kinda makes you wonder why you're seeing paragraphs right now, since I'm using a Mac.
wink.gif


Actually, UNIX simply interprets carriage-returns as carriage-returns. The "proper" way to start a new line is to move the cursor back to the beginning of the line (CR) and then down to the next line (LF). Text with carriage-returns only, just keeps overwriting itself on the same line. Text with line-feeds only skips to the next line right where it is (doesn't go back to the left side of the window).

What we're talking about here, though, is posting text messages through a browser, which introduces a whole new level of interpretation. My browser knows it's running on a Mac, and Muhammad's CGI scripts know that they are running on UNIX. When a message is posted from an HTML form on a Mac (or any platform), line breaks are properly converted before they come to rest on the server. When I get a chance, I'll find out exactly who/where/what does the conversion.

In short, browsers are designed to break down cross-platform barriers. Sometimes they even succeed.
crazy.gif


<font color=blue>You may want a file to open and by read on a Mac, but not knowing that, most users (being on Windows) will transfer a file with no resource fork. Sorry about that. </font color=blue>

No need to apologize. When a Mac receives a file without a resource fork, it simply creates an empty one. For many file formats (like txt)), there is nothing of value in the resource fork anyway. When a file is transferred from a Mac to a non-Mac environment, the resource fork is simply stripped off. Have you noticed that even us Mac types successfully post attachments to our messages which are then viewed on Windows?

There are more and more cross-platform file formats showing up in the world these days. Even Micro$oft is doing it. When youse guys post a PDF or PowerPoint file, for example, us Mac folks can read it just fine.

Apple is very much aware that Macs are in the minority and have gone to great pains to make sure they can interact with the rest of the world. It is built into the operating system, for example, that DOS/Windows disks can be read on a Mac. It is for all these reasons that I am convinced that the problems that Glenn is experiencing is a simple (albeit elusive) configuration problem. /w3tcompact/icons/clever.gif
 
   / Why Don't My Posts Have Paragraphs? #35  
Re: Why Don\'t My Posts Have Paragraphs?

Harv,

Like I said, I think it is simply idiotic.

Here is more info, from MS Knowledgebas:

WD98: Saving File As Text with Line Breaks Excludes Line Feed (Q180265)

--------------------------------------------------------------------------------
The information in this article applies to:

Microsoft Word 98 , Macintosh Edition
--------------------------------------------------------------------------------

SYMPTOMS
When you save a document in Word 98 Macintosh Edition as Text Only with Line Breaks or MS-DOS Text With Line Breaks, then open it on a VAX system or Bulletin Board Service, the paragraph marks that signify returns will appear, but there will be no line feed character. The text will appear as one long continuous string and will be unusable by the VAX or BBS.

CAUSE
The line feed character is not automatically inserted following a paragraph mark.

WORKAROUND
In Word 98 Macintosh Edition, save the document as Text Only With Line Breaks, Text With Layout, or MS-DOS Text With Line Breaks. To do this, follow these steps:

Save as Text Only with Line Breaks

On the File menu, click Save As.

In the Save File as Type box, scroll and select Text Only with Line Breaks.

Type a file name under "Save Current Document as," and then click Save.

Use the Replace command to find the paragraph marks (^13) and change them to a paragraph mark, line feed character, (^13^10) by doing the following:

On the Edit menu, click Replace.

In Find What, type ^13 , and in Replace With, type ^13^10 .

Click Replace All.

Then save the document as Text Only and transfer the file to the VAX or BBS by doing the following:

On the File menu, click Save As.

In the Save File As Type box, scroll and select Text Only, click Save.

See your administrator for instructions on uploading files to BBS.

STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

MORE INFORMATION
Most word processors on the Macintosh and Windows platform recognize a paragraph mark as an end of line mark and a line feed character. Text editors on the VAX or BBS do not automatically insert a line feed character when they see a paragraph mark. Most Unix mail systems require that there be no more than 256 characters before a carriage return. In order to keep files Word saved from exceeding that limitation, files should be saved in Text Only With Line Breaks format.

Line Feeds are ASCII value ^10 and are required by printers to trigger the mechanism to advance the paper. Paragraph marks, line breaks, and carriage returns are ASCII value ^13, the value that triggers the print head to RETURN to the left side of the CARRIAGE (thus the phrase "Carriage Return").

=====

There. Still, this should be resolved at the system level, and not require every board operator or progammer to hack their code to work around this problem. The entire intellectual premise of computers would demand that issues like this NOT even EXIST. Note to Gates Jobs, McNealy: GO JUMP IN THE LAKE!
 
   / Why Don't My Posts Have Paragraphs? #36  
Re: Why Don\'t My Posts Have Paragraphs?

"I am convinced that the problems that Glenn is experiencing is a simple (albeit elusive) configuration problem."

I agree that is the liklihood. The BEST chance at resolution would be 1) Macintosh tech support; 2) a newsgroup that caters to Mac and browser issues.
 
   / Why Don't My Posts Have Paragraphs? #37  
Re: Why Don\'t My Posts Have Paragraphs?

BobT,

Harv summed it up quite well. He correctly points out that whatever format a system (be Mac, Unix, Windows, or BeOS) uses for native text files is probably irrelevant, since text coming in through a browser form (which is what you're entering the text into on TBN) never makes it to the local file system (or at least it shouldn't if things are working correctly). So the fact that the different file storage types doesn't really matter; regardless of how confusing it may or may not be.

So, my current guess is that Glenmac's browser is somehow, someway, escaping the CR's that he typing into the browser window. Don't know how, but that's what is happening.

Back to you Chet.
 
   / Why Don't My Posts Have Paragraphs?
  • Thread Starter
#38  
Re: Why Don\'t My Posts Have Paragraphs?

Uhhhhhh............I think I'll go back to the speed of light thread......I do know that OS X is built on a UNIX core, if that has any relevance......I do know that I have the carriage return problem only on TBN, not on other forums ..... Any non-gobbledygookian practical suggestions for me?.........If I call up Jobs, what do I tell him--that something is inserting backslashes in my carriage returns?
 
   / Why Don't My Posts Have Paragraphs? #39  
Re: Why Don\'t My Posts Have Paragraphs?

The phrasing that I would use is:

"Text that I enter through the browser gets the carriage returns escaped"

The fact that OSX is UNIX (Mach actually, but we're splitting hairs), may have some relevance, but I don't know what; since an actual text file and/or editor is not getting involved.

BTW - Have you tried editing something in a regular text file, then copy/paste it into a TBN edit box? Just curious. If that works.... Hmmm.
 
   / Why Don't My Posts Have Paragraphs? #40  
Re: Why Don\'t My Posts Have Paragraphs?

Just as a note, we're looking into a code change to accommodate OS X... but it probably won't get done immediately.
 

Tractor & Equipment Auctions

550 Gallon Water / Chemical Tank (A50860)
550 Gallon Water /...
2015 Jeep Patriot SUV (A48082)
2015 Jeep Patriot...
2007 Ford Taurus SEL Sedan (A48082)
2007 Ford Taurus...
2018 Toyota RAV4 Hybrid XLE AWD SUV (A50324)
2018 Toyota RAV4...
Kubota BX2680 Sub-Compact Tractor  4WD, 218 Hours (A51039)
Kubota BX2680...
2011 Ford F-150 Pickup Truck (A50860)
2011 Ford F-150...
 
Top