openoffice in far viewer

You want to talk about Far Manager, but don't know where to turn?
Locked
joejoe
Posts: 21
Joined: Mon Mar 21, 2005 12:43 pm
Location: Zlin, Czechia
Contact:

openoffice in far viewer

Post by joejoe »

hello all,

If anyone interested how to view open office documents in far internal viewer here is solution:

(1) download program which can extract document
http://www.info-zip.org/UnZip.html

(2) download and compile program which can parse openoffice structure
http://siag.nu/o3read/

(3) download and compile program which can change encoding from commandline in pipe (compiled version is part of msys or unix utils for windows)
http://directory.fsf.org/recode.html

Code: Select all

recode UTF-8..windows-1250


(4) start far -> command -> file associations -> ins -> ...

here is part of my registry

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Far\Associations\Type0]
"Mask"="*.odt,*.odp, *.ods"
"Description"="Openoffice document"
"Execute"=""
"AltExec"=""
"View"="far:view < unzip -p !.! content.xml | o3totxt | recode UTF-8..windows-1250"
"AltView"=""
"Edit"=""
"AltEdit"=""
HaRT
Posts: 100
Joined: Thu Mar 09, 2006 6:33 pm
Location: St. Petersburg, Russia

Post by HaRT »

joejoe
A single-util alternative is here: OpenOffice.org Console Viewer.
Locked