Total Commander Forum Index Total Commander
Форум поддержки пользователей Total Commander
Сайты: Все о Total Commander | Totalcmd.net | Ghisler.com | RU.TCKB
 
 RulesRules   SearchSearch   FAQFAQ   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OpenOffice.org/DOCX/FB2 Viewer
Goto page 1, 2, 3 ... 16, 17, 18  Next
 
Post new topic   Reply to topic    Total Commander Forum Index -> Плагины Total Commander printer-friendly view
View previous topic :: View next topic  
Author Message
Alextp



Joined: 06 Feb 2005
Posts: 4957

Post (Separately) Posted: Sat Oct 07, 2006 00:28    Post subject: OpenOffice.org/DOCX/FB2 Viewer Reply with quote

Плагин:
http://wincmd.ru/plugring/OOoHtmlViewer.html

Плагин имеет недоработку при работе в TC Lister. Перехватываются и не отдаются Lister'у клавиши: Esc, Ctrl-C, 1, 2, 3 и т.д. Поэтому, под TC плагин использовать неудобно (пока).

При работе плагина под Universal Viewer этой проблемы с клавишами нет. Там все работает нормально.


Last edited by Alextp on Wed Jan 20, 2010 20:06; edited 11 times in total
Back to top
View user's profile Send private message
Kent



Joined: 14 Dec 2004
Posts: 208

Post (Separately) Posted: Sat Oct 07, 2006 10:13    Post subject: Reply with quote

Хорошая новость. Спасибо.
Back to top
View user's profile Send private message
Alextp



Joined: 06 Feb 2005
Posts: 4957

Post (Separately) Posted: Sat Oct 07, 2006 13:10    Post subject: Reply with quote

Первая бета, ссылка выше.
У кого есть OOO 1.x файлы, просьба посмотреть, как оно работает на них, если работает.
_________________
UniViewer - CudaText - LogViewer
Back to top
View user's profile Send private message
Ник



Joined: 15 Dec 2004
Posts: 1256
Location: Москва

Post (Separately) Posted: Sat Oct 07, 2006 13:25    Post subject: Reply with quote

Автору спасибо огромное! Smile

Результаты текстирования:

1) ООо 2 - текстовые файлы видит хорошо, включая шрифты, таблицы, гиперссылки; файлы таблиц (Калк) не видит вообще, хотя окно отрисовывается - но оно пустое.

2) ООо 1.1.* - текстовые файлы не видит, говорит:

Quote:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
-------------------
The system cannot locate the resource specified. Error processing resource 'office.dtd'. Error processing resource 'file:/...
<!DOCTYPE office:document-content PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "office.dtd">


Табличных файлов ООо тоже не видит и говорит то же самое...

Дело в том, что формат файлов ООо 1 и 2 "внутри" разный...
_________________
Xubuntu 20.10
Back to top
View user's profile Send private message
Ник



Joined: 15 Dec 2004
Posts: 1256
Location: Москва

Post (Separately) Posted: Sat Oct 07, 2006 13:26    Post subject: Reply with quote

Кстати, м.б. UNZIP взять отсюда? :

Quote:
UnZip 5.51 of 22 May 2004, by Info-ZIP
www.info-zip.org

_________________
Xubuntu 20.10
Back to top
View user's profile Send private message
Alextp



Joined: 06 Feb 2005
Posts: 4957

Post (Separately) Posted: Sat Oct 07, 2006 13:34    Post subject: Reply with quote

Ясно. Значит, типы таблиц Калка, документов ООо 1.x придется из detect-строки исключить.
Жалко, я надеялся что этот xsl stylesheet универсальный.
Может, потом можно будет добавить поддержку OOo 1.x через xsl, который ты раньше присылал.

Quote:
Дело в том, что формат файлов ООо 1 и 2 "внутри" разный...

Да, поэтому и спрашивал.

Quote:
Кстати, м.б. UNZIP взять отсюда? :

Цитата:
UnZip 5.51 of 22 May 2004, by Info-ZIP

Посмотри в свойства DLL, она и есть из Info-ZIP...
Back to top
View user's profile Send private message
Ник



Joined: 15 Dec 2004
Posts: 1256
Location: Москва

Post (Separately) Posted: Sat Oct 07, 2006 13:53    Post subject: Reply with quote

UnZip 5.5 почему-то 2002 года, а 5.51 - 2004-го.
Рекомендую последний...

Насчёт таблиц стоит спросить у автора твоего стилевого файла - стилевой файл, который был у меня (и который я вроде бы тебе присылал), для ООо 1.1.* табличные файлы показывал отлично, хотя таблицы показывались без закладок - т.е. все подряд...
_________________
Xubuntu 20.10
Back to top
View user's profile Send private message
Alextp



Joined: 06 Feb 2005
Posts: 4957

Post (Separately) Posted: Sat Oct 07, 2006 14:15    Post subject: Reply with quote

Quote:
UnZip 5.5 почему-то 2002 года, а 5.51 - 2004-го.
Рекомендую последний

Судя по номеру версии, не сильно отличается...

Quote:
Насчёт таблиц стоит спросить у автора твоего стилевого файла

Спрошу.
Back to top
View user's profile Send private message
Ник



Joined: 15 Dec 2004
Posts: 1256
Location: Москва

Post (Separately) Posted: Sat Oct 07, 2006 14:22    Post subject: Reply with quote

Quote:
All versions of UnZip through 5.50 have a number of directory-traversal vulnerabilities, and version 5.50 also has a textmode data-corruption bug that affects 16-bit ports such as MS-DOS. See the FAQ page for details.


Или это не важно?
_________________
Xubuntu 20.10
Back to top
View user's profile Send private message
Alextp



Joined: 06 Feb 2005
Posts: 4957

Post (Separately) Posted: Sat Oct 07, 2006 14:33    Post subject: Reply with quote

- Что такое "directory-traversal vulnerabilities" ? Кто бы пояснил
- "data-corruption bug that affects 16-bit ports" - неважно, т.к. у нас 32-битная DLL.

-------------

Вопрос
Здесь: http://www.phpclasses.org/browse/package/3071.html
лежит еще один xsl transform sheet. Но скачать не могу. Интересно, это то же самое, что и у меня (файл в архиве с плагином) или нет?
Back to top
View user's profile Send private message
Ник



Joined: 15 Dec 2004
Posts: 1256
Location: Москва

Post (Separately) Posted: Sat Oct 07, 2006 15:53    Post subject: Reply with quote

Файлы *.xsl по содержанию (но не по имени) одинаковы, но в этом пакете есть ещё файл odt2xhtml.php, который типа надо так применять:

Quote:
$class = new ODT2XHTML;
echo $class->oo_convert($class->oo_unzip('test.odt'));


Насколько я понял, работает только с текстовыми документами ООо.
_________________
Xubuntu 20.10
Back to top
View user's profile Send private message
Alextp



Joined: 06 Feb 2005
Posts: 4957

Post (Separately) Posted: Sat Oct 07, 2006 16:19    Post subject: Reply with quote

Quote:
Файлы *.xsl по содержанию (но не по имени) одинаковы


OK (имя ни на что не влияет).
Back to top
View user's profile Send private message
Alextp



Joined: 06 Feb 2005
Posts: 4957

Post (Separately) Posted: Sat Oct 07, 2006 19:48    Post subject: Reply with quote

Ответ автора xsl, можно ли улучшить для поддержки Калк:

Quote:
No, because one of the root elements is different. It's not a big change,
but I don't have time to make it today.
Back to top
View user's profile Send private message
Ник



Joined: 15 Dec 2004
Posts: 1256
Location: Москва

Post (Separately) Posted: Sat Oct 07, 2006 20:34    Post subject: Reply with quote

Послал запрос на форум ООо:
http://community.i-rs.ru/index.php/topic,1433.new.html#new
_________________
Xubuntu 20.10
Back to top
View user's profile Send private message
Alextp



Joined: 06 Feb 2005
Posts: 4957

Post (Separately) Posted: Sun Oct 08, 2006 08:59    Post subject: Reply with quote

1. Выложил пак ATViewer + плагин OOo Viewer: см. первый пост.
Пригодится как отдельный самостоятельный вьюер файлов OOo тем, кто не использует Total Commander.

2. Добавил поддержку OOo 1.x (через xls, который прислал мне Ник).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Плагины Total Commander All times are GMT + 4 Hours
Goto page 1, 2, 3 ... 16, 17, 18  Next
Page 1 of 18

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group