Feature #86

improvements in RTF import

Added by J. Templ over 3 years ago. Updated over 3 years ago.

Status:ClosedStart date:11/25/2015
Priority:NormalDue date:
Assignee:J. Templ% Done:

100%

Category:-
Target version:1.7
Forum topic:

Description

RTF import in HostTextConv should be improved with respect to:
- support for hyperlinks,
- support for code pages,
- support for tables,
- support for superscript and subscript,
- skipping of headers, footers, and footnotes.
A proposal for the changes by Helmut Zinn exists in CPC 1.7 rc6.

Refers to CPC 1.7 rc6 change list number 48 and 73.

Associated revisions

Revision 48eb9637
Added by J. Templ over 3 years ago

improvements in RTF import. Refs: #86.
As proposed in CPC 1.7 rc6 by Helmut Zinn.
The linkcmd uses an internal auxiliary procedure named 'ShellExecute' instead of a CPC package.

Signed-off-by: Josef Templ <>

Revision 49274fa5
Added by J. Templ over 3 years ago

improvements in importing RTF texts with tables. Refs: #86.
\trgaph added
\trleft added
\pard ignored inside a table row
Every table row gets its own ruler now in \row. This ruler may be merged
with the previous ruler if there are no differences.

In addition, the handling of hyperlinks has been improved for better readability.

Signed-off-by: Josef Templ <>

Revision bf11dbfd
Added by J. Templ over 3 years ago

bug fix in importing RTF texts with tables. Refs: #86.
As proposed by Helmut Zinn, writing a CR at the end of a table row is already done by Paragraph() and has been removed.

In addition, openBrackets has been removed because it turned out not to be required.
The current context (con) can be used for detecting if a closing bracket belongs to a
hyperlink. The same principle is now also applied for detecting if a table row is processed.

In addition, a subtle bug has been fixed with the the detection of the end of an RTF import. When importing via the the Clipboard, the MemReader does not detect the end of the RTF data correctly but delivers undefined characters until it hits a 0X. Therefore, ParseRichText now terminates when the outermost bracket is closed.

Signed-off-by: Josef Templ <>

Revision 35c15357
Added by J. Templ over 3 years ago

Code coloring removed. Refs: #86.

Signed-off-by: Josef Templ <>

Revision 231eaba8
Added by J. Templ over 3 years ago

\super and \sub with automatic scaling to current font size. Refs: #86.
The offset is 40%, the font size is 80%.
Also \fs scales the font size in super- or subscript context.
The option 'hasNum' for \super and \sub has been removed because it never exists.

Signed-off-by: Josef Templ <>

History

#1 Updated by J. Templ over 3 years ago

  • Description updated (diff)

#2 Updated by I. Denisov over 3 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#3 Updated by I. Denisov over 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF