Re: [Tracker] Tracker only indexing odt Heading contents



On Fri, 2012-04-06 at 16:56 +0100, Karl Relton wrote:

Looking at the code in tracker-extract-oasis.c, it seems unnecessarily
picky to me.

For the main text content (ODF elements text:p & text:h) it is looking
at whether styles are 'present', or are certain types. Why this effort?
Why not just accept all content in text:p or text:h elements, regardless
of styles etc.? That would seem to me to be more in line with the ODF
spec.


Also, as an aside, it seems pointless capturing stuff in elements
text:s, since this is by definition just white space.

We never really put a lot effort in the oasis extractor. If you have
specific knowledge of ODF and your analysis is that it's better to
extract in a different way, being less picky, etc, then it's probably
indeed the case that the oasis extractor can be improved.

Feel free to write a patch and submit it to us.

Philip

-- 


Philip Van Hoof
Software developer
Codeminded BVBA - http://codeminded.be




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]