Bug 152965 - AutoComplete word/sentence/paragraph from other files
Summary: AutoComplete word/sentence/paragraph from other files
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevEval, needsUXEval
Depends on:
Blocks:
 
Reported: 2023-01-10 16:39 UTC by andreas_k
Modified: 2023-01-11 07:57 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andreas_k 2023-01-10 16:39:35 UTC
At my company I do often reuse text within writer.

Ordinary I have templates for offers, letters, ... but sometimes I don't have templates and than I have to open x files to click and collect the new document.

The idea is to offer an AutoComplete setting which offer you the rest of a word/sentence/paragraph.

Example
=======
Document a: I enjoy LibreOffice a lot.
Document b: I enjoy LibreOffice a lot.

Current document: I enjoy (show AutoComplete of the sentence)

What is needed
==============
1. Database where you can important your documents so the content is available for AutoComplete. Database can be a LibreOffice Base file.

2. AutoComplete function of LibreOffice which search at the content within the database. If a search give more than 3 results, it will offer the word/sentence/paragraph in gray color for AutoComplete.
Comment 1 andreas_k 2023-01-10 16:48:47 UTC
Future options
==============

As you have a database of your content you can evaluate your documents.

Example:
Document a: Dear Peter, I'm looking for ...
Document b: Dear Jessica, I'm looking for ...

Current document: Dear Paul, I'm (AutoComplete ...)
Comment 2 Heiko Tietze 2023-01-11 07:01:36 UTC
This is called AutoText and works out of the box. See for example my "Formatted Dummy Text" which inserts dummy text with a lot of formattings [1] and the online help [2]. 

[1] https://extensions.libreoffice.org/en/extensions/show/132
[2] https://help.libreoffice.org/latest/en-US/text/swriter/guide/autotext.html
Comment 3 andreas_k 2023-01-11 07:15:01 UTC
So Nr. 2 is already available with AutoText. As Ordinary you don't reuse phrases within the same document (that often), this bug report is to have a database with all your writer files where LibO will search for AutoText. So how can I feed AutoText with all my files and would AutoText will "sort" the text so I can use each paragraph for AutoText?
Comment 4 andreas_k 2023-01-11 07:20:27 UTC
In general this bug report is:

1. a simple replacement for users how didn't use templates for there regular work

2. the user document database will be usefull for some kind of write support. Also when you think on text analysis for whatever (AI) your own documents would be a good first starting point.

3. for me writer is to produce content, so every function that help users to produce content (quantity) will help and reuse stuff will increase quality.

If you look at a smartphone keyboard it will offer you word complete, show you the next word if you rephrase a sentense, ... this help for example my kid a lot and make mobile better than desktop.
Comment 5 Heiko Tietze 2023-01-11 07:21:17 UTC
Sounds very much like artificial intelligence. AT is just a shortcut to insert content, like "lorem" +F3 inserts a complete lorem ipsum chapter. If you have a conditional AT in mind where "lorem" depends on what you wrote before, I think it would be awesome but barely doable in LibreOffice. For a limited number of texts it is possible to insert hidden paragraphs / sections and show it depending on what you enter somewhere else.
Comment 6 Heiko Tietze 2023-01-11 07:24:44 UTC
(In reply to andreas_k from comment #4)
> If you look at a smartphone keyboard it will offer you word complete, show
> you the next word if you rephrase a sentense, ... this help for example my
> kid a lot and make mobile better than desktop.

Isn't this exactly what AutoComplete does?
Comment 7 andreas_k 2023-01-11 07:51:15 UTC
(In reply to Heiko Tietze from comment #6)
> (In reply to andreas_k from comment #4)
> > If you look at a smartphone keyboard it will offer you word complete, show
> > you the next word if you rephrase a sentense, ... this help for example my
> > kid a lot and make mobile better than desktop.
> 
> Isn't this exactly what AutoComplete does?

Yes, but it use the text of the used document. And ordinary you don't reuse phrases that often within one document but if you think on a letter like

dear mr. ...

I'm kindly, ... 

cu 

It should be the same text at a specific letter which will be ordinary an letter template where you insert the names and finished. But if you don't have a template, it would be nice when writer can offer you the text phrases cause writer know, ah this kind of text was used very often, maybe it's usefull also this time.
Comment 8 Heiko Tietze 2023-01-11 07:55:55 UTC
(In reply to andreas_k from comment #7)
> > Isn't this exactly what AutoComplete does?
> 
> Yes, but it use the text of the used document.

Not if you keep it, see https://help.libreoffice.org/latest/en-US/text/swriter/guide/word_completion_adjust.html
Comment 9 andreas_k 2023-01-11 07:57:19 UTC
For 80 % of my documents I have templates and the rest I'm "frustrated" to rewrite everything all the time. In open 3 documents where the content is similar and copy paste between the documents.

If I would have a database with all my documents, writer would know, ah you will write about >>terms of conduct<< and offer me what I have written at other documents about that toppic. In the sidebar writer can show me content that was used at x documents and documents that was used at some specific documents. So I could decide what I will choose.

I can make some mockups, but only if you think it can be a usefull first step into   writing support (artificial intelligence). As you wrote AutoComplete is already available I think it need's only an database where you add your files.