Opened 12 years ago

Closed 9 years ago

#8873 closed enhancement (fixed)

Add RTF output to RTF Translator

Reported by: humdinger Owned by: axeld
Priority: normal Milestone: R1
Component: Add-Ons/Translators/RTF Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

This is hrev44428.

While the RTF translator can convert to plain text and StyledEdit format, it currently cannot convert the other way around, i.e. text to RTF. From "translate --list":

name: RTF text files
info: Rich Text Format Translator
version: 0.6.0
  input:        'RTF ' (TEXT) 0.7 0.9 text/rtf ; RichTextFormat file
  output:       'TEXT' (TEXT) 0.3 0.6 text/plain ; Plain text file
  output:       'STXT' (TEXT) 0.5 0.5 text/x-vnd.Be-stxt ; Be styled text file

Attachments (1)

0001-rtf-output-it-rtf-translator.patch (8.8 KB ) - added by siarzhuk 10 years ago.
Result of corresponding GCI 2013 task.

Download all attachments as: .zip

Change History (5)

by siarzhuk, 10 years ago

Result of corresponding GCI 2013 task.

comment:1 by siarzhuk, 10 years ago

patch: 01

comment:2 by pulkomandy, 10 years ago

The patch doesn't convert styled text attributes to RTF. So it gives acceptable results only for text/plain sources. Isn't there an RTF parser/generator library we can use? If not, we'd have to write one...

comment:3 by pulkomandy, 9 years ago

I added a GCI taskfor the 2014 run to complete this.

comment:4 by pulkomandy, 9 years ago

Resolution: fixed
Status: newclosed

Done in hrev48534.

Note: See TracTickets for help on using tickets.