Issue 80934

Summary: I would like OOo Writer to open .txt and .srt text files in plain text format, instead of html, even if the text body contains <i>, </i> or other tag-like text
Product: Writer Reporter: hlots123 <euyeow>
Component: formattingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: OOo 2.2.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Latest Confirmation in: ---
Developer Difficulty: ---

Description hlots123 2007-08-22 12:05:57 UTC
Currently, OOo Writer opens text files (e.g. *.txt, *.srt) in html format
instead of plain text format, if the text body contains tag-like text such as
<i>, </i> etc.

For example, a plain text file containing the following 5 lines will open in
Notepad or Microsoft Word as such:
1<i>abc</i>
2
3<i>def</i>
4
5<i>ghi</i>

But OOo Writer will open the same text file in html format instead, and display
the text body differently:
1abc 2 3def 4 5ghi

-> with letters in italics;
-> not as 5 lines but 1 line;
-> <i> and </i> not treated as plain text, but as html tags.

Actually, OOo Writer hangs or lags when large .srt files having these <i>, </i>
tags are opened. I have to use Notepad to open them, do a Ctrl-A then copy-paste
all the text into OOo Writer (to do spellchecks & editing).

Please see the following threads for clarification:
http://www.oooforum.org/forum/viewtopic.phtml?p=244364#244364
http://www.oooforum.org/forum/viewtopic.phtml?t=49553
Comment 1 michael.ruess 2007-08-22 13:05:18 UTC
Reassigned to ES.
Comment 2 eric.savary 2007-08-22 13:13:09 UTC
Please select the "Text (*.txt)" filter in the correxponding listbox to open
such files.
Comment 3 eric.savary 2007-08-22 13:13:27 UTC
Closed
Comment 4 hlots123 2007-08-22 19:40:12 UTC
Using the "Text (*.txt)" filter works, but feels like a temporary workaround.
I'm hoping that OOo Writer can be enhanced to distinguish *.txt and *.srt
content from *.html, so that opening *.txt and *.srt files by double-clicking on
them works ultimately.

I hope to choose OOo Writer as the default application for *.txt and *.srt
files, without facing the current problem.

On a side note: using the "Text (*.txt)" filter works, but choosing "Text
Documents" does not work. It is quite confusing, and not intuitive.
Comment 5 eric.savary 2007-08-23 15:31:07 UTC
Reassigned to Requirements
Comment 6 berliita 2007-09-11 21:10:14 UTC
I'd like to generalize the original feature request as follows.

The "Open ..." dialog should allow the user to suggest the type of the file they
wish to open, regardless of the file's suffix. For example: a file's suffix may
be "gif", and yet the file is actually a plain text file. Another example: an
HTML file should be allowed to be opened in two modes: presentation and source.

Additionally, the user should be able to suggest the encoding to be used to
interpret the file's content, including issues such as the newline terminator
symbol(s), etc.

MS-Word's "Open..." dialog accomplishes all that quite well, and is worth emulating.
Comment 7 eric.savary 2007-11-16 13:07:40 UTC
*** Issue 83693 has been marked as a duplicate of this issue. ***