Issue 27505 - Writer saves RTF-Format "\ControlWordDigit Text" as "\ControlWordDigitText" without Space
Summary: Writer saves RTF-Format "\ControlWordDigit Text" as "\ControlWordDigitText" w...
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: OOo 1.1.1
Hardware: PC Windows XP
: P4 Trivial with 1 vote (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-06 13:24 UTC by fd_sourcery
Modified: 2013-08-07 14:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Sample file: Save as RTF, load again, digit '8' will be missing (5.28 KB, application/vnd.sun.xml.writer)
2004-04-06 13:25 UTC, fd_sourcery
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description fd_sourcery 2004-04-06 13:24:05 UTC
Sometimes writer saves RTF-Format "\ControlWordDigit Text" 
as "\ControlWordDigitText" without Space = Delimiter. 

We have a sample RTFIssue.swx. Saving RTFIssue.swx as RTFIssue.rtf and loading 
again removes the "8" which is right after a format change in the text. This 
might be because of coding "\ControlWordDigit8Test" rather 
than "\ControlWordDigit 8Test" with Space as Delimiter. The starting control 
word of this problem/format in the rtf file (RTFIssue.rtf) is "\loch". You can 
contact us for the example: fd@sourcery.de


RTF-Specification says:

"A control word is a specially formatted command that RTF uses to mark printer 
control codes and information that applications use to manage documents. A 
control word cannot be longer than 32 characters. A control word takes the 
following form:
\LetterSequence<Delimiter>
Note that a backslash begins each control word.
The LetterSequence is made up of lowercase alphabetic characters between "a" 
and "z" inclusive. RTF is case sensitive, and all RTF control words must be 
lowercase.
The delimiter marks the end of an RTF control word, and can be one of the 
following:
•	A space. In this case, the space is part of the control word.
•	A digit or a hyphen (-), which indicates that a numeric parameter 
follows. The subsequent digital sequence is then delimited by a space or any 
character other than a letter or a digit. The parameter can be a positive or a 
negative number. The range of the values for the number is generally -32767 
through 32767. However, Word tends to restrict the range to -31680 through 
31680. Word allows values in the range -2,147,483,648 to  2,147,483,648 for a 
small number of keywords (specifically \bin, \revdttm, and some picture 
properties). An RTF parser must handle an arbitrary string of digits as a 
legal value for a keyword. If a numeric parameter immediately follows the 
control word, this parameter becomes part of the control word. The control 
word is then delimited by a space or a nonalphabetic or nonnumeric character 
in the same manner as any other control word.
•	Any character other than a letter or a digit. In this case, the 
delimiting character terminates the control word but is not actually part of 
the control word."
Comment 1 fd_sourcery 2004-04-06 13:25:31 UTC
Created attachment 14355 [details]
Sample file: Save as RTF, load again, digit '8' will be missing
Comment 2 mci 2004-04-08 09:58:56 UTC
reassigned to mru
Comment 3 michael.ruess 2004-04-15 10:51:33 UTC
Has already been fixed for OO 2.0. Can be seen in current developer snapshot
build 680m34.
Comment 4 michael.ruess 2004-04-15 10:51:50 UTC
Closed.