Bug 124089 - DOTM AutoText import creates incorrect shortcut (with space)
Summary: DOTM AutoText import creates incorrect shortcut (with space)
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.2.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX AutoText
  Show dependency treegraph
 
Reported: 2019-03-15 03:27 UTC by Aron Budea
Modified: 2019-10-08 05:27 UTC (History)
1 user (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 Aron Budea 2019-03-15 03:27:14 UTC
Word lacks the concept of shortcuts for AutoText, so during import simply the first couple of characters are taken, including spaces if any is there. However, spaces are normally not permitted (can't be entered), and mess up shortcuts: simply pressing F3 at the end won't do anything, the whole shortcut has to be selected first.

The easiest fix would be to strip spaces from shortcuts.
Another option would be to use initials instead, but they aren't very important, in Word entering them based on the suggestion after the first couple of characters seems to be the normal usage.

AutoText import from OOXML files was added by Szymon Kłos in 2017-04 and 05, perhaps that offers some clues where to find the relevant piece of code.

I don't have a sample right now, perhaps could try to create one later.

Observed using LO 6.2.0.3 / Windows 7.
Comment 1 Xisco Faulí 2019-04-16 08:40:32 UTC
(In reply to Aron Budea from comment #0)

> I don't have a sample right now, perhaps could try to create one later.

Any update ?
Comment 2 Xisco Faulí 2019-05-21 11:07:29 UTC
(In reply to Xisco Faulí from comment #1)
> (In reply to Aron Budea from comment #0)
> 
> > I don't have a sample right now, perhaps could try to create one later.
> 
> Any update ?

Hi Aron,
i'm setting this to NEEDINFO until the sample is provided...