nisus.com
https://www.nisus.com/forum/

RTF text to real RTF
https://www.nisus.com/forum/viewtopic.php?f=8&t=411
Page 1 of 1

Author:  hatchmo [ 2004-04-26 11:49:30 ]
Post subject:  RTF text to real RTF

I have a text document displaying RTF codes. How do I force Nisus Writer Express to display it as RTF (interpreting all the code)?

For example, paste the text below into a new NWX document. Save it as an RTF document, complete with .RTF extension. Close it and double-click on it. It still opens as text--not RTF.

Code:
{\rtf1 \mac \ansicpg437 \cocoartf102 {\fonttbl {\f0 \fnil \fcharset77 Times New Roman{\*\falt Times}
;}
{\f1 \fnil \fcharset77 Times-Roman{\*\falt Times}
;}
}
{\colortbl ;\red0 \green0 \blue0 ;}
\deftab720 \defformat \viewkind4 \viewscale100 {\*\nisuswindow \x194 \y4 \w649 \h946 }
\paperw11904 \paperh16836 \margl1440 \margr1440 \margt1440 \margb1440 \gutter0 \pgnstart1 \sectd \sbkpage \cols1 \ltrsect \colbalsxn1 \marglsxn1440 \margrsxn1440 \margtsxn1440 \margbsxn1440 \guttersxn0 \headery720 \footery720 \pgncont \pgndec \sxncont \sxndec \pard \ql \sl0 \slmult1 \ri3080 \f1 \fs24 \nosupersub \up0 \kerning0 \expnd0 \expndtw0 \CocoaLigature0 \cf1 Aa aaa aaaa aaaa aaaa a a  a   a aaaa aaaa aaaa. Aa aaa aaaa aaaa aaaa a a  a   a aaaa aaaa aaaa. Aa aaa aaaa aaaa aaaa a a  a   a aaaa aaaa aaaa. Aa aaa aaaa aaaa aaaa a a  a   a aaaa aaaa aaaa. Aa aaa aaaa aaaa aaaa a a  a   a aaaa aaaa aaaa. Aa aaa aaaa aaaa aaaa a a  a   a aaaa aaaa aaaa. Aa aaa aaaa aaaa aaaa a a  a   a aaaa aaaa aaaa. Aa aaa aaaa aaaa aaaa a a  a   a aaaa aaaa aaaa. Aa aaa aaaa aaaa aaaa a a  a   a aaaa aaaa aaaa. }

Author:  charles [ 2004-04-26 22:39:50 ]
Post subject: 

There are two things to do here:

1. Be sure you save as plain text. You are trying to just save this as plain text, even though the text itself is RTF. I know it is confusing, just trust me.

2. Nisus Writer will expect you to save with a TXT extension or something like that. So, save the file with the txt extension and then rename it in the Finder as RTF.

Now, close your file and reopen it in Nisus Writer and everything should work!

Author:  hatchmo [ 2004-04-27 10:07:04 ]
Post subject: 

This is truly weird. I never would have figured it out myself. Thanks, Charles.

Author:  charles [ 2004-04-27 14:15:08 ]
Post subject: 

hatchmo wrote:
This is truly weird. I never would have figured it out myself. Thanks, Charles.


Hatchmo: I think is it weird that you even HAD raw RTF to show like that! :wink: Where did it come from?

-C

Author:  hatchmo [ 2004-04-27 22:50:24 ]
Post subject: 

charles wrote:

>that you even HAD raw RTF to show like that! Where did it come from?

I've written an OS X Applescript to take scraps of text (written in NWX or dragged and dropped or clipped or whatever) and concatenate them into a single NWX document. All the text appears fine after import, but RTF looks like, well, RTF. This will make it much easier.

Al

Author:  charles [ 2004-04-28 13:02:36 ]
Post subject: 

Oh, that sounds very interesting, actually! How are you invoking this AppleScript? Maybe we can do something so you would never have to even see the RTF.

-C

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/