Bug 99240 - Can't insert formated AutoCorrection text made within Writer / lock after using that autocorr shortcut with some dictionaries enabled
Summary: Can't insert formated AutoCorrection text made within Writer / lock after usi...
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
5.1.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-12 10:22 UTC by Kruno
Modified: 2016-04-13 15:59 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 Kruno 2016-04-12 10:22:44 UTC
If you do ctrl+shift+p in Writer and write 'citation needed', you can go Tools → AutoCorrection → AutoCorrection options... give it a shourtcut (:cn:) and everything works fine, click ok and finish.

Now go to Impress and try to do :cn: and nothing gets replaced but you can't also put a space after :cn: -- it's stuck: it's not replacing but it's not moving.

If you try repeat process of adding formatted text, you can see that checkbox 'Text only' is grayed out but ticked. So in Impress you can only insert unformatted text.

So problems are: 

1. not replacing with formatted autocorrection text from Writer (cursor stuck and you can't input space), and 

2. you can't add formated autocorrect text to Impress.
Comment 1 Cor Nouws 2016-04-12 11:25:43 UTC
Hi Kruno,

Thanks for filing this.

I see various things:
1 - custom AutoCorrection from Writer are not available in Writer.
   This is probably by design, in any case it has never been implemented
2 - indeed, formated autocorrect text is not possible in Impress
3 - I do _not_ see the problem you have after entering :cn: in Impress.
   (Tested on Ubuntu 32 bits)

For 1 and 2, can you please create a new issue as enhancement? 
Then set the version to InheritedFromOOo.

For 3: can you add a test file, give more explanation on where you type the text?

Cheers - Cor
Comment 2 Kruno 2016-04-12 11:56:56 UTC
(In reply to Cor Nouws from comment #1)
> Hi Kruno,

> I see various things:
> 1 - custom AutoCorrection from Writer are not available in Writer.

Custom (formated) AutoCorrection made in Writer is not working in Impress - it causes text lock: can't put space after shortcut probably because Impress is note able to execute autocorrection, but I can write any other text:

can't do: :cn:·some·text·again|

but only: :cn:some·text·again

that's in relation with 

> 2 - indeed, formated autocorrect text is not possible in Impress

and that should also do for

> For 3: can you add a test file, give more explanation on where you type the
> text?

because when you open new Impress file in 5.1.2 and you try 'Some text :cn:' in slide already open, cursor stuck, can't add space, but can any other character.

> I do _not_ see the problem you have after entering :cn: in Impress.
>    (Tested on Ubuntu 32 bits)

So you can put space in Impress after :cn: after you added superscripted AutoCorrection text in Writer?

Why I can do :^9: in Impress and get supperscript 9 but :cn: is not giving me 'citation needed' in superscript although it is in autocorrection table?

So superscript trough AutoCorrection should work in Impress. Maybe I can't add new one that way, but should be able to insert existing one.


> For 1 and 2, can you please create a new issue as enhancement? 
> Then set the version to InheritedFromOOo.

Well, I can (but in last three days I was here then on facebook...)
Comment 3 Kruno 2016-04-12 12:06:03 UTC
It's Debian Jessie with Cinnamon and it's all clunky.
Comment 4 Kruno 2016-04-12 14:31:44 UTC
Text doesn't lock if Writer opened (just no custom formated text autocorretion). Problem with text lock occurs if only Impress opened.
Comment 5 Kruno 2016-04-12 14:40:02 UTC
Funny thing:

English UI, Croatian dictionary: text lock;

English UI, Franch (Belgium) dictionary: text does not lock but result is ':cn :' (so it's forcing space before second colon;

English UI, English (USA) dictionary: no text lock, space can be added before and after colon (just text not replaced).
Comment 6 Kruno 2016-04-12 14:58:49 UTC
And text doesn't need to be formated. Plain text if added to AutoCorrection list can't be added within Impress.

But if (plain) text added within Impress, can be added in Writer.

Plenty of info :)
Comment 7 Cor Nouws 2016-04-12 15:06:27 UTC
(In reply to Kruno from comment #4)
> Text doesn't lock if Writer opened (just no custom formated text
> autocorretion). Problem with text lock occurs if only Impress opened.

Not for me..
Comment 8 Cor Nouws 2016-04-12 15:07:35 UTC
(In reply to Kruno from comment #6)
> And text doesn't need to be formated. Plain text if added to AutoCorrection
> list can't be added within Impress.
> 
> But if (plain) text added within Impress, can be added in Writer.

Fun :)

Indeed, more issues in this report.
Would you please mind to split up, obeying the rule "one report, one issue"?
Comment 9 Kruno 2016-04-12 16:03:38 UTC
One issue!

[introduction]
Default autocorr text works fine.

[problem description]
If custom replacement added within Writer (formated or not), it can only be used within Writer. Impress doesn't even see newly added entry under Tools → AutoCorrection Options...

[further problem description]
If autocorr added to replacement table within Impress, I can use it in Writer and in Impress. If I manually put atocorr rule in DocumetList.xml I can use that entry both, from Impress and from Writer.

So I can't use autcorr from both modules only if autocorr entry made within Writer from Tools → AutoCorretion options.

[personal tough and conclusion]
So if every autocorr entry resigns within one file/folder, both modules should be able to use it. No point adding the same thing twice.

Thing you're trying to pull - not cool.
Comment 10 Kruno 2016-04-12 16:27:12 UTC
Deleted autocor_**-**.dat, bumped new one in.

And it is connected to formating autotext in writer after all. Formated autocor text added to replacment table within Writer, can't be inserted within Impress.

And it should be, at least as unformatted (and not lock text in in earlier described way, see comment 5).

It's one issue, it's been reported. I'm done.
Comment 11 Cor Nouws 2016-04-13 07:08:32 UTC
Ah, new insight..
New AutoCorrection text only in Writer can be used in Impress.
So there is a limitation because Writer formatting != Impress formatting. That makes sense. One could argue that the same AutoCorrection entry should be used but then without formatting... that would be a RFE.
For the rest: if there is a reproducible test case for freezing (I can't reproduce) that would be a bug.
Makes sense?
Ciao - Cor