If the notes have no named ruler, create one at this step. Make sure that the notes are governed by appropriate named ruler. Warning: After having run this macro, you should look at again to the "named rulers", at the beginning of the notes which are at the end of the main text. In the main text, the note numbers will be replaced with "". It will place the notes at the end of the main text each note will be enclosed between the tag "" and "" (the same tag is used for footnotes and endnotes). If the document contains footnotes or endnotes, run first this macro. But if the document contains footnotes or endnotes, they must be taggged before any other tags. First, one will add tags to character styles, then paragraph styles. The macros must be executed in a certain order. As the image shows, it is not necessary that every paragraph has an icon of a named ruler. But before that, we should make sure that every paragraph of the document is governed by a named paragraph style (in Classic Nisus terminology, it is called " named ruler").Īs you see, we have the icon of a named ruler at the first paragraph in the image (that ruler is named "Right", so we have the tag ), and after the second paragraph, the paragraphs are governed by another named ruler, named "Text". In order to automate the task as far as possible, we will use several macros. The tags describe the document's style attributes. Thus, most of the styles in the original document will be preserved in the converted document.įirst, we must add tags to the file to be converted. As to character styles, such as italic, bold, or some colors (red, green, blue), etc., they will be tagged, and will be converted to corresponding rtf commands (controle words). In my system, I generate the font table and the stylesheet table for paragraph styles each paragraph of the text to be converted is tagged with the paragraph style name, so that all the paragraphs of the converted document will be governed by defined paragraph styles. After that comes the part containing data for the header and the footer. In the case of NWE's rtf files, the "rtf header" contains a "font table", defining all the fonts used in the document, a "color table" listing the colors used in the document, a "stylesheet table" listing different styles (paragraph styles and character styles) used in the document, and what is called "document formatting properties", specifying the attributes of the document such as margins and footer and header placement. I think the only application that should support all the rtf specs is the latest version of MS Word (for Windows?). The rtf format is a very flexible format, and may be different depending on applications. what can be called the data part, containing the data of the document. what can be called the rtf header, which defines the document as a whole Ģ. An rtf file consists mainly of two parts:ġ. The idea is to generate an rtf file from scratch. However, I think this system is worth being known widely, so people can customize it for their own personal use or extend it for a wider use. The use of this system is not very easy in the current state, some settings are for my personal use only (for example fonts, language setting, etc.), not common enough to be shared. This is why I developed another exporting method which will generate rtf files with style sheets from tagged Classic Nisus files. Using the rtf filter in exporting Classic Nisus files allows to achieve a better result, but still the styles are lost in the process. But the import of Classic Nisus files is buggy, and many font or style settings have to be corrected manually. Nevertheless, it has some good new features: especially it supports style sheets, and footnotes/endnotes. 2.x is still full of bugs, very unstable and very heavy when handling large documents (I write this in January 2005 NWE is at its version 2.1.1). 1/15/05.Ĭonvert Classic Nisus files to NWE files with styles Background Nisus Writer Express v. Convert Classic Nisus files to NWE files with styles Part of Nobumi Iyanaga's website.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |