Bug 65565 - FORMATTING: Autocorrect Replace doesn't correct two dashes to em-dash *they way it should*
Summary: FORMATTING: Autocorrect Replace doesn't correct two dashes to em-dash *they w...
Status: RESOLVED DUPLICATE of bug 55292
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.3.3 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-09 09:31 UTC by Peter Josvai
Modified: 2014-08-03 15:20 UTC (History)
2 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 Peter Josvai 2013-06-09 09:31:57 UTC
two dashes -- won't be replaced in some cases ..

#1 

you type:
 yes said she

into which you insert 2 dashes: 
yes -- said she

now this one to get replaced to em dash
you need to add a letter after the dashes to activate autocorrect


 yes -- aa said she

plus:
you'll need to add a space after them ..

 yes -- aa said she

...................................................

#2
you type:
"yes" said she

everything is the same, except it will only work if you add some word after the quotation mark too ..

"yes" aa -- aa said she
and now it'll work

the same for question mark too ..
yes? said she

and periods like:
yes... said she
it'd take to type:
yes... aa -- aa said she
..................................................

the way it should work is (in my pov) is 
typing "--" plus a space and it'd get replaced ...

or without spaces.. 
(this already works fine !!) 
typing a word plus 2 dashes without space ..
and add a space after the second word ..
(this already works fine)


I hope i didn't write anything stupid ...


i'm aware of bug 55292 (for a libreoffice version 3.6.0.2 rc 
but i was totally satisfied with my last version:
libreoffice 4.0.2.2

this problem came in 4.0.3.3

and i'll check if it's present in 4.0.4.1 rc or not


thank you for your work:
Peter Josvai
Comment 1 Peter Josvai 2013-06-11 13:41:51 UTC
i didn't check one thing:

i assumed that on my "win 7 32 bit starter" the build 4.0.2.2. will be the same as on my "win 7 64 bit home premium" 

not, it's not ...

this means that i reinstalled the 4.0.2.2. on my win 7 64bit home premium (English) and it does the same as the build 4.0.3.3. did ...
Comment 2 Kumāra 2013-06-21 07:46:58 UTC
(In reply to comment #0)
> the way it should work is (in my pov) is 
> typing "--" plus a space and it'd get replaced ...

Do this:
Tools > AutoCorrect Options...
In the Replace box, enter: --
In the With box, enter: – (This is an n-dash. You can copy from here and paste there. If you prefer to use m-dash, here it is: — )
Comment 3 tommy27 2014-08-02 02:33:10 UTC
@Peter Josvai  
sorry but it's not clear to me which cases the autocorrect doesn't work.
does Kumāra suggestion fix things for you?
Comment 4 tommy27 2014-08-03 15:20:45 UTC
the whole en-dash/em-dash autocorrection thing is going to be fixed by the use of wildcard autocorrect patterns like explained in Bug 55292, in detail in this comment:
https://bugs.freedesktop.org/show_bug.cgi?id=55292#c19

new feature is available in 4.4.x current daily build.
if tests will show the fix is stable it will probably be backported to 4.2.x and 4.3.x 

so I'm closing this one and marking as a duplicate of that bug.

*** This bug has been marked as a duplicate of bug 55292 ***