Convert ascii format back to ODT?

Discuss the word processor

Convert ascii format back to ODT?

Postby tmaz781 » Wed Jun 13, 2018 8:29 pm

Hello Everyone ~~

So happy to have found this forum for solving problems that I cause myself! By accident I saved OTD documents in Notepad ascii format. I desperately need to convert these documents so I can read and revise then.

Thanks for any help . . . :bravo:
OpenOffice 4.1.5 on Windows 10
tmaz781
 
Posts: 2
Joined: Wed Jun 13, 2018 8:17 pm

Re: Convert ascii format back to ODT?

Postby RoryOF » Wed Jun 13, 2018 9:16 pm

Did you use /File /Save As and select a text format, or did the documents open asking for an ASCII filter?
Apache OpenOffice 4.1.5 on Xubuntu 18.04 (mostly 64 bit version) and infrequently on Win2K/XP
14 October 2016 was Pooh's 90th birthday
User avatar
RoryOF
Moderator
 
Posts: 26920
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Convert ascii format back to ODT?

Postby Zizi64 » Wed Jun 13, 2018 9:43 pm

By accident I saved OTD documents in Notepad ascii format. I desperately need to convert these documents so I can read and revise then.

There is not any way to restore the original (.odt related) formatting properties from a working ASCII (.txt) format document. The pure txt format files can not store any formatting properties.

The situation is even worse, if your .odt file is damaged, and the ASCII filter is appeared when you want to open it.
Tibor Kovacs, Hungary; LO4.4.7, LO5.4.7 on Win7x64Prof.
PortableApps, winPenPack: LO3.3.0-LO6.1.0 and AOO4.1.5
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 6983
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Convert ascii format back to ODT?

Postby tmaz781 » Thu Jun 14, 2018 12:49 am

Thank you so much . . . however, not the answer I wanted! LOL
OpenOffice 4.1.5 on Windows 10
tmaz781
 
Posts: 2
Joined: Wed Jun 13, 2018 8:17 pm

Re: Convert ascii format back to ODT?

Postby Zizi64 » Thu Jun 14, 2018 7:13 am

Can you upload your problematic file here???
Tibor Kovacs, Hungary; LO4.4.7, LO5.4.7 on Win7x64Prof.
PortableApps, winPenPack: LO3.3.0-LO6.1.0 and AOO4.1.5
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 6983
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Convert ascii format back to ODT?

Postby RoryOF » Thu Jun 14, 2018 10:09 am

If you have actually Saved a file in ASCII format (and we don't know for certain until you confirm that) all you can do is Ctrl A to Select All, then apply Text Body paragraph style. That should get all of your document into the most common style. Then you will have to pass through your document, whether manually or using Find and Replace, to apply styles locally, as required, such as for headings. Then /File /Save As and select .odt from the file type dropdown.
Apache OpenOffice 4.1.5 on Xubuntu 18.04 (mostly 64 bit version) and infrequently on Win2K/XP
14 October 2016 was Pooh's 90th birthday
User avatar
RoryOF
Moderator
 
Posts: 26920
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Convert ascii format back to ODT?

Postby John_Ha » Mon Jun 25, 2018 1:18 pm

1. If you went File > Save As ..., and chose .txt, you will have lost all the formatting because .txt files store only characters. .txt files do not store any formatting information, not even the font. Copy the text > Paste into a new document > format it > Save As ..., and choose .odt.

2. If you saved the file as a .odt file, and you get the ASCII filter popup window when you open "the .odt file", this means "the .odt file" you are opening is not a proper .odt file. It is either an ASCII file (eg .txt or .csv) which you have incorrectly renamed as a .odt file; or, more likely, it is a corrupted and damaged .odt file. If the latter your only hope is to see [Tutorial] How to find and un-delete Writer temporary files for

a) detailed instructions on how to recover your file as it was when you last opened or saved it, or as it was when it was last saved with AutoRecovery;

b) how to find previous versions of the file in the folder it is located in, but which have since been deleted;

c) how to un-delete the temporary files Writer wrote while you were editing the file, and then deleted. This will recover your file as it was when you last opened or you last saved it and is probably your best hope.

Showing that a problem has been solved helps others searching so, if your problem is now solved, please view your first post in this thread and click the Edit button (top right in the post) and add [Solved] in front of the subject.
AOO 4.1.5, Windows 7 Home 64 bit

See the Writer Manual, the Writer FAQ, the Writer Tutorials and the Writer guide.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 5667
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK


Return to Writer

Who is online

Users browsing this forum: Msmith and 24 guests