<div class="moz-text-html" lang="x-western"> Just FYI, I'm having
problems sending email, I'm CCing myself to confirm the message was
sent.<br>
<br>
I use the <u><font color="#ff0000"><b>simplest</b></font></u> [RTF /
HTML / TAB-delimted] formating to export textual data so the End User
can open the document in their Word Processor, Spreadsheet, or paste
the data into an email (whatever they are using).<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em'>By <u><font color="#ff0000"><b>simplest</b></font></u>, I
mean as much as necessary, but no more than necessary<b>:</b>
utilitarian<b>.</b><br>
</blockquote>
Should I be able to <u>RTF format</u> the page count (<b><font
 color="#ff0000"><u>{\info{\nofpages}}</u></font></b>) in a
footer using LibreOffice?<br>
I (can / do) not know (and do not care) how many pages there will be
when creating a
text document
(whatever paper size and/or margin sizes they will be using).<br>
<b><font color="#ff0000"><u>\nofpages</u></font></b> appears to have
been documented since <u>RTF Version 1.0 in 1987</u><br>
<font color="#ff0000"><u><b>NUMPAGES</b></u></font> appears to have
been documented since <u>RTF Version in 1.9 2008</u><br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em'>It appears that the RTF Spec seems to indicate that a
bare-bones page
footer option could be something like<b>:</b> <b><font color="#ff0000"><u>{\footer\qc
  </u></font>Page X<font color="#ff0000"><u>\</u></font></b><b><font
 color="#ff0000"><u>chpgn </u></font>X of Y<font color="#ff0000"><u>{\info{\nofpages}}</u></font>Y<font
 color="#ff0000">\par}</font></b> (<font color="#ff0000"><b>\qc</b></font>
can also be \ql or \qr)<b><br>
  </b> <br>
Can/Should this work in LibreOffice or is this a mis-applaction of the
RTF Controls?<br>
Opening such a document shows: Page X<b><u>Page numbers</u></b><sdfield
 type="PAGE" subtype="RANDOM" format="PAGE"></sdfield>X
of YY - <b><u>Page numbers</u></b> being the text for field code <u><b>Page
Number</b></u><br>
  <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em'>It is missing the appearence of <b><u>Statistics</u></b>
- <b><u>Statistics</u></b> being the text for field code <b><u>Page
Count</u></b><br>
    <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em'>It appears as: Page X<font color="#ff0000"><b><u>1</u></b></font>X
of YY - in print preview<br>
    </blockquote>
For now, I think it should show: Page X<b><u>Page numbers</u></b><sdfield
 type="PAGE" subtype="RANDOM" format="PAGE"></sdfield>X
of Y<font color="#ff0000"><b><u>Statistics</u></b></font>Y<br>
    <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em'>
      <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em'>I put in a bug report to LO to change the text of <u>Page
Numbers</u> (plural) to <u>Page Number</u> (singular) and the text of <u>Statistics</u>
to <u>Page Count</u> (FWIW)<u><br>
        </u></blockquote>
    </blockquote>
  </blockquote>
</blockquote>
I reverse-enginerred a LibreOffice v.3.6.7.2 creation and stripped out
all the fluff and the page footer appears as follows (<font
 color="#ff0000"><b>{{\field{\*\fldinst  NUMPAGES }{\fldrslt 1}}}</b></font>):<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em'>{\footer\qc{Page X}{{\field{\*\fldinst  PAGE }{\fldrslt }}}<br>
{X of Y}<br>
{{\field{\*\fldinst  NUMPAGES }{\fldrslt 1}}}<br>
{Y}\par}<br>
  <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em'>This does show: Page X<font color="#ff0000"><b><u>Page
numbers</u></b></font><sdfield type="PAGE" subtype="RANDOM"
 format="PAGE"></sdfield>X
of Y<font color="#ff0000"><b><u>Statistics</u></b></font>Y<br>
This does show: Page X<font color="#ff0000"><b><u>1</u></b></font>X
of Y<font color="#ff0000"><b><u>1</u></b></font>Y - in print preview<br>
  </blockquote>
</blockquote>
So I am not hopeless and I can use the page count code in the footer of
LibreOffice v.3.6.7.2<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em'>I was told one time that RTF Version 1.5 was as complicated
as needed
for simple text use: bold, italic, header, footer, and the such like.<br>
  <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em'>Is 'NUMPAGES' <font color="#ff0000">backwards compatible</font>
to RTF Version 1.5<font color="#ff0000">???</font> (or did <font
 color="#ff0000"><u>{\info{\nofpages}}</u></font> never work anyway)<br>
  </blockquote>
</blockquote>
Please advise.<br>
Thanks, Tracey<br>
<br>
Ref:<br>
<table cellpadding="0" cellspacing="0" width="672">
  <col width="84"> <col width="396"> <col width="192"> <tbody>
    <tr valign="top">
      <td style="border: medium none ; padding: 0in;" width="84">
      <p style="page-break-after: avoid;"><font
 face="Verdana, sans-serif"><font style="font-size: 8pt;" size="1">Version:</font></font></p>
      </td>
      <td style="border: medium none ; padding: 0in;" width="396">
      <p style="page-break-after: avoid;"><font style="font-size: 8pt;"
 size="1"><font face="Verdana, sans-serif">RTF Version 1.9.1</font></font></p>
      </td>
      <td style="border: medium none ; padding: 0in;" width="192">
      <p style="page-break-after: avoid;"><font
 face="Verdana, sans-serif"><font style="font-size: 8pt;" size="1">Microsoft
Technical Support</font></font></p>
      </td>
    </tr>
    <tr valign="top">
      <td style="border: medium none ; padding: 0in;" height="27"
 width="84">
      <p style="page-break-after: avoid;"><font
 face="Verdana, sans-serif"><font style="font-size: 8pt;" size="1">Subject:</font></font></p>
      </td>
      <td style="border: medium none ; padding: 0in;" width="396">
      <p style="page-break-after: avoid;"><font
 face="Verdana, sans-serif"><font style="font-size: 8pt;" size="1">Rich
Text Format (RTF) Specification </font></font> </p>
      </td>
      <td style="border: medium none ; padding: 0in;" width="192">
      <p style="page-break-after: avoid;"><font
 face="Verdana, sans-serif"><font style="font-size: 8pt;" size="1">Specification</font></font></p>
      </td>
    </tr>
    <tr valign="top">
      <td
 style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color rgb(0, 0, 0); border-width: medium medium 1.5pt; padding: 0in;"
 height="19" width="84">
      <p style="page-break-after: avoid;"><font
 face="Verdana, sans-serif"><font style="font-size: 8pt;" size="1">Contents:</font></font></p>
      </td>
      <td
 style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color rgb(0, 0, 0); border-width: medium medium 1.5pt; padding: 0in;"
 width="396">
      <p style="page-break-after: avoid;"><sdfield type="DOCINFO"
 subtype="CUSTOM" name="Pages">278</sdfield> <font
 style="font-size: 8pt;" size="1"><font face="Verdana, sans-serif">Pages</font></font></p>
      </td>
      <td
 style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color rgb(0, 0, 0); border-width: medium medium 1.5pt; padding: 0in;"
 width="192">
      <p style="page-break-after: avoid;"><font style="font-size: 8pt;"
 size="1"><font face="Verdana, sans-serif">03/2008–RTF Specification</font></font></p>
      </td>
    </tr>
  </tbody>
</table>
<br>
Page 37 in the Information Group section:
<dl>
  <dd>
    <table cellpadding="0" cellspacing="0" width="649">
      <col width="535"> <thead> <tr valign="top">
        <td style="border: medium none ; padding: 0in;" width="114">
        <p style="page-break-after: avoid;"><font
 style="font-size: 8pt;" size="1"><font face="Verdana, sans-serif">\nofpages</font><font
 face="Verdana, sans-serif"><i>N</i></font></font></p>
        </td>
        <td style="border: medium none ; padding: 0in;" width="535">
        <p style="page-break-after: avoid;"><font
 face="Verdana, sans-serif"><font style="font-size: 8pt;" size="1">Number
of pages</font></font></p>
        </td>
      </tr>
      </thead>
    </table>
  </dd>
</dl>
Page 143 in the Page Information section:<br>
<dl>
  <dd>
    <table cellpadding="0" cellspacing="0" width="643">
      <col width="115"> <col width="528"> <thead> <tr valign="top">
        <td style="border: medium none ; padding: 0in;" width="115">
        <p style="page-break-after: auto;"><font
 face="Verdana, sans-serif"><font style="font-size: 8pt;" size="1">\chpgn</font></font></p>
        </td>
        <td style="border: medium none ; padding: 0in;" width="528">
        <p style="page-break-after: auto;"><font
 face="Verdana, sans-serif"><font style="font-size: 8pt;" size="1">Current
page number (as in headers).</font></font></p>
        </td>
      </tr>
      </thead>
    </table>
  </dd>
</dl>
Page 258 of the index:<br>
<table cellpadding="7" cellspacing="0" width="667">
  <col width="253"> <col width="204"> <col width="168"> <thead> <tr
 valign="top">
    <td style="border: medium none ; padding: 0in;" width="253">
    <p style="widows: 0; orphans: 0; page-break-after: auto;"><font
 style="font-size: 8pt;" size="1"><font face="Verdana, sans-serif">\nofpages</font><font
 face="Verdana, sans-serif"><i>N</i></font><font
 face="Verdana, sans-serif"> </font><sup><font
 face="Verdana, sans-serif">87</font></sup></font></p>
    </td>
    <td style="border: medium none ; padding: 0in;" width="204">
    <p style="widows: 0; orphans: 0; page-break-after: auto;"><font
 style="font-size: 8pt;" size="1"><font color="#0000ff"><u><a
 class="western"
 href="mailbox:///D%7C/Email.Thunder/Inbox?number=45216#Information_Group"><font
 face="Verdana, sans-serif">Information Group</font></a></u></font></font></p>
    </td>
    <td style="border: medium none ; padding: 0in;" width="168">
    <p style="widows: 0; orphans: 0; page-break-after: auto;"><font
 face="Verdana, sans-serif"><font style="font-size: 8pt;" size="1">Value</font></font></p>
    </td>
  </tr>
  </thead>
</table>
<br>
Tracey wrote:
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' cite="mid:55971B04.7070102@gte.net" type="cite">
  <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' type="cite">Just curious, why do you ask?</blockquote>
I want to know what RTF functionality LibreOffice Writer does and does
not support. <span class="moz-smiley-s1"><span> :-) </span></span><br>
  <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em'>Since the 3 controls were labled as RTF Controls: I
suspected that they might be acutal/functional controls, but maybe with
typographical errors.<br>
  </blockquote>
Many/Most of Microsoft's <u>RTF Specification Documents</u> have
numerous technical typographical errors:<br>
  <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em'>mis-spelling control names in the examples<br>
controls spelt one way in the body of the document and differently in
the index<br>
controls in the main section but not in the index and controls in the
index and not in the main section<br>
  </blockquote>
  <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em'>
    <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em'>It does not appear that Microsoft was ever really
serious
about <u>RTF Specification Documentation</u>.</blockquote>
  </blockquote>
I reported an RTF bug in 2011 and it seems to have been resolved some
time in 2013<br>
  <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em'>I downloaded the last/latest version (3.6.7.2) that I
think
will work with Windows 2000 (since that is what I use).<br>
Since I did not find RTF Technical Information in the LibreOffice Help
file I downloaded the archived source code.<br>
I searched for files that contains "RTF" and found <u><b>rtfkeywd.hxx</b></u>
which also has the year of 2013 in the time/date stamp.<br>
I compared the rtfkeywd.hxx entries with the index entries from RTF
Specification Documentation v1.9.1 and found differences.<br>
  </blockquote>
Just FYI, Tracey<br>
  <br>
  <br>
Miklos Vajna-4 [via Document Foundation Mail Archive] wrote:
  <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' cite="mid:20150703160106.GW1014@collabora.co.uk"
 type="cite">Hi, <br>
    <br>
On Fri, Jul 03, 2015 at 07:59:01AM -0700, tracey002 <<a
 moz-do-not-send="true"
 href="/user/SendEmail.jtp?type=node&node=4153555&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote: <br>
> Can someone please identify the following RTF Controls? <br>
> <br>
> \facpgsxn 162 <br>
> \nextcset 249 <br>
> \tql 371 <br>
> After the control, the number is the line in the *rtfkeywd.hxx*
file <br>
> <br>
> I assume the category "RTF Control" means the controls are native
to RTF, <br>
> but I can not find them in the documentation <br>
    <br>
The last version of RTF specification is here: <br>
    <br>
    <a moz-do-not-send="true"
 href="http://www.microsoft.com/en-US/Download/details.aspx?id=10725"
 target="_top" rel="nofollow" link="external">http://www.microsoft.com/en-US/Download/details.aspx?id=10725</a><br>
    <br>
All the above 3 RTF control words are not part of the specification, so
    <br>
most probably some legacy OOo extension that we inherited in LO. <br>
    <br>
As far as I see: <br>
    <br>
- facpgsxn is not used for anything LO, could be removed <br>
- nextcset seems to be an alias for \ansi in the shared RTF filter <br>
  (not used by Writer, but used by Calc and Impress) <br>
- tql seems to be used for left-aligned tabs in the shared RTF filter <br>
  (not used by Writer, but used by Calc and Impress) <br>
    <br>
Just curious, why do you ask? If possible, please don't depend on these
    <br>
control words, it happened already in the past that such custom RTF <br>
extension had been removed and replaced by something that is part of
the <br>
RTF spec (at least on the export side). <br>
    <br>
Regards, <br>
    <br>
Miklos <br>
    <br>
_______________________________________________ <br>
LibreOffice mailing list <br>
    <a moz-do-not-send="true"
 href="/user/SendEmail.jtp?type=node&node=4153555&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>
    <a moz-do-not-send="true"
 href="http://lists.freedesktop.org/mailman/listinfo/libreoffice"
 target="_top" rel="nofollow" link="external">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
<!--start-attachments-->
    <div class="small"><br>
    <img moz-do-not-send="true"
 src="http://nabble.documentfoundation.org/images/icon_attachment.gif">
    <strong>signature.asc</strong> (188 bytes) <a
 moz-do-not-send="true"
 href="http://nabble.documentfoundation.org/attachment/4153555/0/signature.asc"
 target="_top" rel="nofollow" link="external">Download Attachment</a></div>
<!--end-attachments--> <br>
    <br>
    <hr color="#cccccc" noshade="noshade" size="1">
    <div
 style="color: rgb(68, 68, 68); font-family: tahoma,geneva,helvetica,arial,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;">
    <div style="font-weight: bold;">If you reply to this email, your
message will be added to the discussion below:</div>
    <a moz-do-not-send="true"
 href="http://nabble.documentfoundation.org/RTF-support-tp3114982p4153555.html" target="_top" rel="nofollow" link="external">http://nabble.documentfoundation.org/RTF-support-tp3114982p4153555.html</a>
    </div>
    <div
 style="color: rgb(102, 102, 102); font-family: tahoma,geneva,helvetica,arial,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; font-size-adjust: none; font-stretch: normal; margin-top: 0.4em; line-height: 1.5em;">To
unsubscribe from RTF support, <a moz-do-not-send="true"
 href="" target="_top" rel="nofollow" link="external">click
here</a>.<br>
    <a moz-do-not-send="true"
 href="http://nabble.documentfoundation.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow"
 style="font-family: serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 9px; line-height: normal; font-size-adjust: none; font-stretch: normal;" target="_top" link="external">NAML</a>
    </div>
    <pre wrap=""><hr size="4" width="90%">

No virus found in this incoming message.
Checked by AVG - <a moz-do-not-send="true"
 class="moz-txt-link-abbreviated" href="http://www.avg.com" target="_top" rel="nofollow" link="external">www.avg.com</a> 
Version: 9.0.935 / Virus Database: 4365.1.1/9649 - Release Date: 07/02/15 20:02:00

  </pre>
  </blockquote>
  <br>
</blockquote>
<br>
</div>
<div class="moz-text-plain" wrap="true" graphical-quote="true"
 style="font-family: -moz-fixed; font-size: 13px;" lang="x-western">
<pre wrap=""><hr size="4" width="90%">

No virus found in this incoming message.
Checked by AVG - <a class="moz-txt-link-abbreviated"
 href="http://www.avg.com" target="_top" rel="nofollow" link="external">www.avg.com</a> 
Version: 9.0.935 / Virus Database: 4365.1.1/9649 - Release Date: 07/02/15 20:02:00

</pre>
</div>


<br /><br/>No virus found in this outgoing message.
<br/>Checked by AVG - www.avg.com
<br/>Version: 9.0.935 / Virus Database: 4365.1.1/9649 - Release Date: 07/02/15 20:02:00
<br/>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://nabble.documentfoundation.org/Re-RTF-support-nofpages-tp4153615.html">Re: RTF support: \nofpages</a><br/>
Sent from the <a href="http://nabble.documentfoundation.org/Dev-f1639786.html">Dev mailing list archive</a> at Nabble.com.<br/>