>From Martin,

>I just spent some very valuable time looking at that yesterday. I could
>not reproduce the bug on MS Word 2000. The blank lines had 12 pt height.

That's strange.  I also use Word 2000 and get 10 point default font on blank 
lines.  Whether 10 or 12, however, is not the issue since I *intend* 13 
point.  The point is that Abi saves *no* font size code to blank lines 
meaning that it does not control the font size of blank lines in files 
exported to RTF.  Rather, the font size of the blank lines is controlled by 
the program reading the file, rather than Abi that wrote the file.

I've attached a file that I believe clearly demonstrates the problem and 
illustrates the different way Word treats font size codes.

>I
>also spent some valuable time yesterday looking at why the page margins
>weren't reproduced. I made some progress and reported it. I'll finish that
>work today.

Thank you, thank you, thank you.


>Since you are very keen to get your bugs fixed you should at least
>subscribe to abiword-dev so you can actually see all the progress that is
>being made.

I'll do that.  I had subscribed about a year ago, but unsubscribed when I 
realized I didn't understand 99% of my e-mail.  Thanks for the tip.

Virgil

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
{\rtf1\ansi\ansicpg1252\deff0 {\fonttbl {\f0\froman\fcharset0\fprq2\fttruetype Times New Roman;} {\f1\froman\fcharset0\fprq2\ftnil NULL;} {\f2\fmodern\fcharset0\fprq1\fttruetype Courier New;} {\f3\froman\fcharset0\fprq2\ftnil Dingbats;} {\f4\froman\fcharset0\fprq2\ftnil Symbol;} {\f5\fswiss\fcharset0\fprq2\fttruetype Arial;}} {\colortbl \red0\green0\blue0; \red255\green255\blue255;} {\stylesheet {\s6\sl240\slmult1\fi-431\li720 Dashed List;} {\s3\sl240\slmult1\fi-431\li720 Box List;} {\s22\sl240\slmult1\tx1584\sbasedon17\snext16 Section Heading;} {\s18\sl240\slmult1\tx431\sbasedon10\snext16 Numbered Heading 2;} {\s21\sl240\slmult1\f2\sbasedon16 Plain Text;} {\s13\sl240\slmult1\fi-431\li720 Implies List;} {\s27\sl240\slmult1\fi-431\li720\sbasedon20 Upper Case List;} {\s8\sl240\slmult1\fi-431\li720 Hand List;} {\s28\sl240\slmult1\fi-431\li720\sbasedon20 Upper Roman List;} {\s16\sl240\slmult1\f0\fs24 Normal;} {\s1\sl240\slmult1\li1440\ri1440\sa119\sbasedon16 Block Text;} {\s15\sl240\slmult1\fi-431\li720\sbasedon16 Lower Roman List;} {\s12\sl240\slmult1\fi-431\li720 Heart List;} {\s14\sl240\slmult1\fi-431\li720\sbasedon20 Lower Case List;} {\s25\sl240\slmult1\fi-431\li720 Tick List;} {\s9\sl240\slmult1\sb440\sa60\f5\fs34\b\sbasedon16\snext16 Heading 1;} {\s10\sl240\slmult1\sb440\sa60\f5\fs28\b\sbasedon16\snext16 Heading 2;} {\s11\sl240\slmult1\sb440\sa60\f5\fs24\b\sbasedon16\snext16 Heading 3;} {\s20\sl240\slmult1\fi-431\li720 Numbered List;} {\s24\sl240\slmult1\fi-431\li720 Star List;} {\s17\sl240\slmult1\tx431\sbasedon9\snext16 Numbered Heading 1;} {\s7\sl240\slmult1\fi-431\li720 Diamond List;} {\s19\sl240\slmult1\tx431\sbasedon11\snext16 Numbered Heading 3;} {\s2\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040\f0\fs26 Body Single;} {\s5\sl240\slmult1\tx1584\sbasedon17\snext16 Chapter Heading;} {\s23\sl240\slmult1\fi-431\li720 Square List;} {\s26\sl240\slmult1\fi-431\li720 Triangle List;} {\s4\sl240\slmult1\fi-431\li720 Bullet List;}} \kerning0\cf0\viewkind1\paperw12240\paperh15840\margl1440\margr1440\widowctl {\footer \pard\sl240\slmult1 \par\pard\sl240\slmult1 \par\pard\sl240\slmult1 \par\pard\sl240\slmult1 \par\pard\sl240\slmult1 \par\pard\qc\s16\sl240\slmult1 \par\pard\sl240\slmult1} \sectd\sbknone\colsx360\headery0\footery0\pgncont \pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f0\fs26\lang1033{\*\listtag0}This document was drafted in AbiWord in 13 point, Times New Roman font, which I typically use for my documents. This line, as well as the four blank lines that follow are 13 point font. The document was saved in Abi as an RTF file.} \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040 \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040 \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040 \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040 \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f0\fs26\lang1033{\*\listtag0}When the document is opened in MS-Word 2000, the beginning paragraph, with text, is properly formatted as 13 point type, although the paragraph ending mark appears in 10 point font. The four blank lines also appear as 10 point font.} \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040 \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040 \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f0\fs26\lang1033{\*\listtag0}As prepared by Abi, the RTF code for the first paragraph and the following blank lines appears as follows:} \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040 \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f2\fs20\lang1033{\*\listtag0}\\pard\\s16\\sl240\\slmult1\\tx720\\tx1440\\tx2160\\tx4320\\tx5040\{\\f0\\fs26\\lang1033\{\\*\\listtag0\}This document was drafted in AbiWord in 13 point, Times New Roman font, which I typically use for my documents. This line, as well as the four blank lines that follow are 13 point font. The document was saved in Abi as an RTF file.\}} \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f2\fs20\lang1033{\*\listtag0}\\par\\pard\\s16\\sl240\\slmult1\\tx720\\tx1440\\tx2160\\tx4320\\tx5040} \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f2\fs20\lang1033{\*\listtag0}\\par\\pard\\s16\\sl240\\slmult1\\tx720\\tx1440\\tx2160\\tx4320\\tx5040} \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f2\fs20\lang1033{\*\listtag0}\\par\\pard\\s16\\sl240\\slmult1\\tx720\\tx1440\\tx2160\\tx4320\\tx5040} \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f2\fs20\lang1033{\*\listtag0}\\par\\pard\\s16\\sl240\\slmult1\\tx720\\tx1440\\tx2160\\tx4320\\tx5040} \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040 \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040 \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f0\fs26\lang1033{\*\listtag0}You will notice that in the first paragraph -- the one with text -- the text is enclosed in brackets \{ \}. There are several formatting codes that appear }{\f0\fs26\i\lang1033{\*\listtag0}before}{\f0\fs26\lang1033{\*\listtag0} and }{\f0\fs26\i\lang1033{\*\listtag0}outside}{\f0\fs26\lang1033{\*\listtag0} the text brackets. These codes will remain in effect for all paragraphs until the occurrence of another conflicting code. These codes are also repeated on the blank lines. The font size code (\\fs26), however is contained }{\f0\fs26\i\lang1033{\*\listtag0}within}{\f0\fs26\lang1033{\*\listtag0} the text brackets and therefore only applies to the specific text within the brackets. It applies to nothing outside the brackets and is not repeated on the blank lines. This is why even the paragraph end mark does not retain 13 point sizing when the file is opened in Word. When this file is opened in Word, it treats the font size code as it is written in Abi, to apply }{\f0\fs26\i\lang1033{\*\listtag0}only}{\f0\fs26\lang1033{\*\listtag0} to the text within the brackets. It then applies its own default font size code of 10 point to all text -- including blank lines -- for which Abi has not specifically assigned a font size code.} \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040 \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040 \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f0\fs26\lang1033{\*\listtag0}If the document had been prepared in Word, the RTF code for the first paragraph and subsequent paragraphs would have appeared as follows:} \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040 \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f2\fs20\lang1033{\*\listtag0}\\pard\\plain \\ql \\li0\\ri0\\widctlpar\\aspalpha\\aspnum\\faauto\\adjustright\\rin0\\lin0\\itap0 \\fs26\\lang1033\\langfe1033\\cgrid\\langnp1033\\langfenp1033 \{\\cf1 } \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f2\fs20\lang1033{\*\listtag0}This document was drafted in AbiWord in 13 point, Times New Roman font, which I typically use for my documents. This line, as well as the four blank lines that follow are 13 point font. The document was saved in Abi as an RTF file.\}\{\\cf1 } \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f2\fs20\lang1033{\*\listtag0}\\par } \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f2\fs20\lang1033{\*\listtag0}\\par } \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f2\fs20\lang1033{\*\listtag0}\\par \}\{} \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f2\fs20\lang1033{\*\listtag0}\\par } \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f2\fs20\lang1033{\*\listtag0}\\par \}\}} \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040 \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f0\fs26\lang1033{\*\listtag0}Again, you will notice that Word encases each paragraph of text in brackets \{ \}. However, unlike Abi, Word places its font size code (\\fs26) }{\f0\fs26\i\lang1033{\*\listtag0}outside}{\f0\fs26\lang1033{\*\listtag0} and }{\f0\fs26\i\lang1033{\*\listtag0}before}{\f0\fs26\lang1033{\*\listtag0} the brackets. This allows the font size code to remain applied to blank lines until another different font size code is encountered.} \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040 \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f0\fs26\lang1033{\*\listtag0}So, in my mind there are several solutions.} \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040 \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f0\fs26\lang1033{\*\listtag0}1. Repeat font size codes in each paragraph as Abi currently repeats other formatting codes before each paragraph.} \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040 \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f0\fs26\lang1033{\*\listtag0}2. Place the font size code }{\f0\fs26\i\lang1033{\*\listtag0}outside}{\f0\fs26\lang1033{\*\listtag0} and }{\f0\fs26\i\lang1033{\*\listtag0}before}{\f0\fs26\lang1033{\*\listtag0} the text brackets along with the other formatting codes. Presumably this would automatically result in the codes being repeated on subsequent lines. However, even if they are not repeated, they will remain in effect until another different font size code is encountered.} \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040 \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f0\fs26\lang1033{\*\listtag0}3. Don\uc1\u8217\'92t put each paragraph of text within brackets \{ \}, although I\uc1\u8217\'92m not sure what other unpleasant ramifications this would cause. By way of example only, Atlantis does not use brackets around paragraphs of text.} \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040 \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f0\fs26\lang1033{\*\listtag0}I have no idea what the RTF specifications require with respect to font size codes, but I offer the above as possible solutions for greater RTF compatibility with Word. Just my suggestions} \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040 \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f0\fs26\lang1033{\*\listtag0}Virgil} \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040 \par\pard\s16\sl240\slmult1\tx720\tx1440\tx2160\tx4320\tx5040{\f0\fs26\lang1033{\*\listtag0}P.S. For reference purposes, this entire document was prepared in, and should appear as 13 point Times New Roman font with the exception of the RTF code which was prepared in, and should appear as, 10 point Courier New font.}}

Reply via email to