Saving Page files as ascii text
apple Verified ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
How can you save files in pages as text? Exporting to text looses list numbers (rather than treating them a plain numbers.) Printing to pdf, then using Acrobat to save to text gets the line numbers, but still also gets lots of non-printing characters like quotes, etc. What I want is ALL the characters on a page, as plain ascii characters. I don't mind loosing bold, underlines, spacing and so forth, but I'd like to get all the readable stuff.
(I know UNIX, so I tried to use "tr" to get some of the special characters, and to change CR to New Line, but there are too many special characters to be sure of finding them all.)
Thanks for any suggestions.
9 replies
Sign in or join Beachball Help to reply.
- 0
dbcomps ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
That is a good question. It seems like they should have included this option. I wanted to use the diff program in Unix to compare two drafts which I had saved under two names. I had to select all text and paste it into Word 2004. Then saved as Text Only with Line Breaks. I'm sure there are other text editors you could paste into and save the text.
- 0
KOENIG Yvan ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hello
Export as Text does exactly what it was designed for:
it stores the raw text without any formatting.
The list structure IS a style so, it is normal to drop it in the process.Yvan KOENIG (from FRANCE mardi 29 janvier 2008 10:13:20)
- 0
Tom Gewecke ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
The list structure IS a style so, it is normal to drop it in the process.
But are the numbers also "formatting"? It seems a bit odd that they would be dropped.
- 0
Stan Isaacs ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
The list numbers may be a "style", in
how they are shown, but they are also text. At any rate, the list numbers can be preserved by the following:
Print the text,
but use the PDF button (lower left of print window) to "save as PDF",
then read that output with Adobe Reader, and
"save as text" from Adobe.
HOWEVER, that still leaves all the special characters. "Smart Quotes" can be turned off and replaced by regular quotes, but how do you turn off special dashes, and apostrophes, and other characters like that? Is there at least a list of all the (normal) special characters in ASCII, so I can use the "tr" command to get rid of them?-- Stan Isaacs
- 0
KOENIG Yvan ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Stan Isaacs wrote:
The list numbers may be a "style", in
how they are shown, but they are also text.This is perfectly wrong.
Here is the content of a Pages document with thre paragraphs formatted as list:
<sf:p sf:style="SFWPParagraphStyle-52" sf:restart-list="true">Peter<sf:br/></sf:p><sf:p sf:style="SFWPParagraphStyle-52">Paul<sf:br/></sf:p><sf:p sf:style="SFWPParagraphStyle-52">Mary</sf:p></sf:layout></sf:section><sf:insert ion-point/></sf:text-body></sf:text-storage><sl:window-configs
You may see that the numbers aren't embedded in the text.
It's normal because one may change the list's style as often as he want without modifying the text itself.
Back to a Pages's document.
Open a document type
Peter
Paul
MaryApply a style of list.
Now, select all. You will see that only the typed words would be selected. This is because only them are text items. The numbers are not pieces of the text.Of course, if you type:
1 - Peter
2 - Paul
3 - Mary
and don't apply a list's style, all would be treated as text but it's an other story.Yvan KOENIG (from FRANCE mardi 29 janvier 2008 17:18:26)
- 0
Stan Isaacs ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Yvan:
Well, I'd like to argue with you about this. What you are saying is, of course, correct, FROM THE POINT OF VIEW OF A COMPUTER EXPERT!! But Apple Mac had tried to do a particularly good job of being useful to normal people. I'm a computer programmer and a mathematician myself, so I know how we like to talk to each other. BUT I also know it is not normal language. The Macintosh, and Pages, are trying very hard to be useful to non-experts, and I think in this case, they have acted as "techies". If Pages says it will save a document as text, I think it should try to translate everything possible from formatted text to plain text, even to the extent of putting extra lines with dashes for underscored characters, cleaning up backspaces, and so forth. (If you used UNIX in the old days, man pages were printed with a program called troff, but then there was an alternate way to get the output so it would be visible on a plain ascii terminal. That's the kind of thing I'm asking for here.)
You might make an argument that normal people don't need the plain Ascii text that I am asking for, and you may be correct -- though there are enough non-standard programs floating around the computer world that I would think the ability to get very vanilla text would be useful for many people as a workaround.
-- Stan
- 0
Stan Isaacs ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
"raw text" is what? Unicode? Are special characters "raw text"? I'm particularly concerned with "smart quotes" and apostrophe's, which Page turns into non-ascii characters.
- 0
Magnus Lewan ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Stan Isaacs wrote:
"raw text" is what? Unicode? Are special characters "raw text"? I'm particularly concerned with "smart quotes" and apostrophe's, which Page turns into non-ascii characters.Smart quotes and apostrophes have no representation in ascii, so unicode is needed if we want them to be preserved. A word processor that outputs text in a proper way should give the user options which encoding to use.
I would actually have hoped that most programs by now would use some variant of Unicode as default, but it does not always seem to be the case. I'm checking Office 2003 for Windows right now, and when you export to text you get "Windows European" as default. If you choose unicode you can choose between UTF8 (fine), UTF7 (is that really still needed?), "Unicode" (UTF-what? UTF16? UTF32? with or without BOM?) or "Unicode (Big-Endian)" (same questions as for "Unicode"). Surely Pages could do a much better job than that, if it tried to.
- 0
Tom Gewecke ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
"raw text" is what? Unicode? Are special characters "raw text"? I'm particularly concerned with "smart quotes" and apostrophe's, which Page turns into non-ascii characters.
Sometimes these terms are used without much precision. I think the correct distinction is between Plain Text and Rich Text. Plain Text has no formatting, but it does include all special characters including smart quotes. It is not the same as ASCII, which cannot include anything beyond 128 characters -- no curly quotes, no accented letters. Both Latin 1 and UTF-8 encodings include smart punctuation characters.