Issue 45478

Summary: autocorrect only works with [x] text only
Product: Writer Reporter: studalk <andreas.lankes>
Component: uiAssignee: Oliver Specht <os_ooo>
Status: CLOSED FIXED QA Contact: issues@sw <issues>
Severity: Trivial    
Priority: P3 CC: issues
Version: OOo 2.0 BetaKeywords: oooqa, regression
Target Milestone: ---   
Hardware: PC   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description studalk 2005-03-19 10:21:22 UTC
Problem: The autocorrection does not work with special characters in OO2.0Beta
(1.9.79, german version).

Step by step instructions:

1. Open new writer document
2. Insert special character: Insert->"special character"
3. Choose the greek letter lower case alpha
4. Go back to the document and mark the inserted character
5. Now open the autocorrection dialog with Extras->Autocorrection
6. The alpha is now shown in the "replace with" field (german: Ersetzen durch).
7. Now type %alpha in the field, which defines what should be replaced(german:
kürzel, don't know the english name) 
8. Now create the replacement rule by hitting button "new"
9. Click button ok to release the autocorrection dialog
10. Enter %alpha in the document and ....
11. nothing happens <- that's the bug

The bug has already been confirmed on the german mailing list with version 1.9.84.
Comment 1 michael.ruess 2005-04-15 14:00:17 UTC
Reassigned to SBA.
Comment 2 lohmaier 2005-04-15 18:09:00 UTC
original summary: "autocorrection does not work with special (greek) characters"

confirming (m92 on linux), but not related to greek characters. It is impossible
to add working entries to the autocorrect list unless one checks "text only"

When trying this on linux, make sure to make the autocorrect file writable (see
issue 45857)

To reproduce:
0) type in some characters
1) select the characters
2) Launch Tools|AutoCorrect..
   -> the box [ ] text only is unchecked
3) type something in the abbr.-box and add the entry
   -> the entry is added to the list.
4) Dismiss the dialog (with OK) and launch it again
   -> the entry has beed set to replace with " " (replace with space) and
      the replacement doesn't work

Now do the same, except this time you check "[x] text only"

-> now the entry keeps the correct value and works as expected.

regression since this works in OOo 1.1.x
Comment 3 bclintbe 2005-04-16 04:17:11 UTC
I tried following the steps cloph outlined, and it still doesn't work. 
Comment 4 Oliver Specht 2005-04-18 12:33:25 UTC
Broken in cws extras16, issue 32386
in svx/source/editeng/svxacorr.cxx 
String SvxAutoCorrect::GetAutoCorrFileName( ... )


Comment 5 Oliver Specht 2005-04-18 12:57:41 UTC
Target changed to OOo 2.0, approved by TZ
Comment 6 Oliver Specht 2005-04-18 15:10:05 UTC
Fixed in cws os60 in svx/source/editeng/svxacorr.cxx 
Comment 7 Oliver Specht 2005-04-18 16:01:35 UTC
On Linux the acor_*.dat file in the user tree is still (m94) readonly although
issue 45857 is set to verfied and integrated
Comment 8 stefan.baltzer 2005-04-25 18:06:01 UTC
SBA: All (including re-opened issue 45857) verified in CWS os60.
Comment 9 stefan.baltzer 2006-11-10 15:21:23 UTC
SBA: OK in 680m193. Closed.