Page 1 of 1

RichViewFormat to text

Posted: Wed Aug 13, 2008 1:10 am
by nUk
Приветствую.

Я пишу СУБД, в которой планирую использовать ваш компонент, сейчас я его тестирую и у меня возникли небольшие трудности.

Как известно у вашего компонента есть свой формат в котором хранится вся информация, скажите а можно ли как-то не используя RV
читать из вашего формата простой текст?

А то для субд с много поточным поиском вариант где каждый раз для поиска текста в формате RV нужно этот RV динамически создать записать в него текст а потом уж искать в нём нужное, достаточно неудобен и скорее всего вызовет кучу трудностей.

Re: RichViewFormat to text

Posted: Wed Aug 13, 2008 8:25 am
by Ion Silvestru
nUk wrote:Как известно у вашего компонента есть свой формат в котором хранится вся информация, скажите а можно ли как-то не используя RV
читать из вашего формата простой текст?
+1

Plain text extraction from RVF (without using TRichView) will be a solution also for full-text indexing, and for creating IFilter for RVF (http://en.wikipedia.org/wiki/IFilters, http://ifilter.org).

Thanks in advance.

Posted: Wed Aug 13, 2008 6:28 pm
by Sergey Tkachenko
(Please use English in this forum).

Unfortunately, text extraction from RVF is not implemented.
The main problem is extracting text from tables, because Delphi streaming mechanism is used for saving/loading tables in RVF.
You may consider using RTF, if you do not need features that cannot be saved in RichView format (RVF).
RTF parser, included in TRichView, can be used without control for plain text extraction.

Posted: Sun Aug 24, 2008 8:51 pm
by nUk
Sergey Tkachenko wrote:(Please use English in this forum).

RTF parser, included in TRichView, can be used without control for plain text extraction.
example ?

Posted: Mon Aug 25, 2008 3:31 pm
by Sergey Tkachenko

Posted: Mon Aug 25, 2008 10:10 pm
by nUk
Thanks!

Posted: Mon Aug 25, 2008 10:27 pm
by nUk
Sergey Tkachenko wrote:(Please use English in this forum).
Unfortunately, text extraction from RVF is not implemented.
Do you have plans to implement it ?
If yes, when? and it will be implemented with new storage file format or with existing?

Posted: Tue Aug 26, 2008 9:28 am
by Sergey Tkachenko
Not in near future.
As I said, RVF is a very simple format, see the specification here: http://trichview.com/help/rvf_specification.html
The only problem is in reading tables.
Of course, all is solvable, but there are many tasks with higher priority.