When importing a document with \nofpages(Number of pages) and \chpgn(Current page number (as in headers).) They are recognized a fields, but are not updated. When the document is saved, the controls disappear. Please correct. Thanks, Tracey BTW Objects that appear in their place are (msRTF1.9.1Spec): PAGE (Fields> Numbering) NUMPAGES (Fields> Docinfo) \*\fldinst PAGE \*\fldinst NUMPAGES
BTW I am not necessarily implying that PAGE and/or NUMPAGES should/must be replaced by \chpgn and \nofpages and PAGE and NUMPAGES removed. Since 1987 \chpgn and \nofpages have ALWAYS been the (right/correct) RTF controls to supply/identify the fields/values for PAGE and NUMPAGES. Both can/should be in place and added in the correct way: Destinations added after the 1987 RTF Specification may be preceded by the control symbol \* (backslash asterisk). This control symbol identifies destinations whose related text should be ignored if the RTF reader does not recognize the destination control word. RTF writers should follow the convention of using this control symbol when adding new destinations or groups. Destinations whose related text should be inserted into the document even if the RTF reader does not recognize the destination should not use \*." I assume that PAGE and/or NUMPAGES are being used for application place holders (which if applied correctly is OK),however PAGE and NUMPAGES are for the Information Group. Just FYI, Tracey Sean Burke in RTF Pocket Guide wrote: For no really good reason, support for these RTF character sets is perfiect in some word processors, almost perfect in others..., and shoddy in others...
[This is an automated message.] This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it started right out as NEW without ever being explicitly confirmed. The bug is changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases. Details on how to test the 3.5.0 beta1 can be found at: http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1 more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html
Thanks for bugreport and explanations of rtf internals. Please, attach document that demonstrates this problem.
\chpgn is still ignored in 3.5.2 The problem is still of medium/major severity - documents with page numbering turned on all now show blanks where there should be numbers
Created attachment 60263 [details] Automated database report example of failure of \chpgn
Created attachment 60265 [details] screenshot of attachment, made in msWord 2003 on Windows XP, Russian locale
The lack of \chpgn handling is a regression, will fix tomorrow. \nofpages was already handled since 2011-07-13.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=116016d5160302413d5c2c97c436c5e4f6383338 fdo#38786 implement RTF_CHPGN
Marking as resolved.
Thanks for fixing this bug and adding to automated tests
Miklos Vajna committed a patch related to this issue. It has been pushed to "libreoffice-3-5": http://cgit.freedesktop.org/libreoffice/core/commit/?id=dfcc1669f68783e8f648cef57d3e36277ae27cec&g=libreoffice-3-5 fdo#38786 implement RTF_CHPGN It will be available in LibreOffice 3.5.4.
Migrating Whiteboard tags to Keywords: (filter:rtf) Replace rtf_filter -> filter:rtf. [NinjaEdit]