https://bugs.documentfoundation.org/show_bug.cgi?id=116146

            Bug ID: 116146
           Summary: EDITING - Index "Search term" does not accept regular
                    expression
           Product: LibreOffice
           Version: 6.0.2.1 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: luci...@ulmail.net

"Search term" in a concordance file, i.e. a .sdi file, does not accept regular
expression and if one is put in, the whole row is ignored.

Example:

consciousness;;;;;
metaphysics;;;;;
biology;;;;;1
Dennett(?!, however);Dennett, Daniel;;;;
(?<!with )Daniel(?! .2| A);Dennett, Daniel;;;;

In the above example, the last two rows will be ignored, although they will
show up in the "Edit Concordance File" dialogue box.

To fix this issue, at least two things need to be addressed:

1- To make the "search term" behave exactly as a search term behaves in the
"Find & Replace" function, and to use the same code-base for both of them.

2- To allow regular expression to be enabled in "search term" cells of a
concordance file as an option. This can be set in the "Table of Contents, Index
or Bibliography" dialogue box as an option the same way it appears in the "Find
& Replace" dialogue box, which will make the whole indexing process much
easier.

This fix will give LibreOffice a boost and flexibility and will make external
indexing software almost unnecessary (to make those external software
completely unnecessary, LibreOffice needs to gain ways to exclude pages and
words from the index, needs to be able to undo changes made in the text by the
index functions, needs to be able to update the index when new words are typed,
and so on).

As it stands now, the Index function is almost useless, since there is no way
to exclude pages or word combinations and lots and lots of junk gets into the
final index that cannot be cleaned up easily. Regular expression will allow
terms to be excluded (as shown in the examples above).

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to