Bug 81301 - "apply border" won't work because of "hyphen" to "en-dash" autocorrect collision (nl-NL and nl-BE locales only)
Summary: "apply border" won't work because of "hyphen" to "en-dash" autocorrect collis...
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Linguistic (show other bugs)
Version: Inherited From OOo
Hardware: Other All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
: 80824 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-07-13 17:34 UTC by pieter kristensen
Modified: 2014-08-26 13:15 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description pieter kristensen 2014-07-13 17:34:52 UTC
Problem description: 

Steps to reproduce:
1. With a default user profile type three or more hyphens (-) and then press enter

Current behavior:
The hyphens remain

Expected behavior:
LibreOffice draws a line because in a default setting the option "apply border" in "Tools - AutoCorrect Options - Options" is activated.

The reason this behaviour occurs is that the upper option in the "replacement table" (replace - by _) spoils it. It immediately replaces --- with _-- and then the "apply border" function won't go.
It takes a lot of time to figure this out and remove the upper issue from the "replacement table". 

           
Operating System: All
Last worked in: 4.2.5.2 release
Comment 1 Cor Nouws 2014-07-13 20:21:45 UTC
*** Bug 80824 has been marked as a duplicate of this bug. ***
Comment 2 Cor Nouws 2014-07-13 20:23:01 UTC
Hi Pieter,

Can confirm this.
Wasn't this discussed on the Dutch user list?
What would be your suggestion to solve this? Remove the autoreplacement option?
thanks,
Cor
Comment 3 pieter kristensen 2014-07-14 06:09:25 UTC
Exactly, it was discussed on the Dutch mailinglist. At least I brought it in on may fourth 2014 (vreemde samenloop). But it seemed more productive to create a bug of it.
I haven't tested if the bug occurs only in the Dutch version of LO.
Comment 4 pieter kristensen 2014-07-14 07:33:53 UTC
A possible solution could be to not make autoreplace work if three or more dashes ( --- ) stand behind each other. Who would want it to work in such circumstances?
It's only a suggestion.
Comment 5 Kevin Suo 2014-07-15 13:49:00 UTC
I see the version field is set 4.2.5.2, but the comment says it last works in 4.2.5.2. which version exactly does it not work?

I also see in Bug 80824 that the version which does not work should be 4.1.1.2. If that is true:
* Please upgrade to 4.1.6, which is the latest stable version. If it works in 4.1.6, the status should be WORKSFORME.
* If it doed not work in 4.1.6, the status should be WONTFIX, because 4.1.6 is EOL. You should either use a workaround or upgrade to 4.2.*.
Comment 6 tommy27 2014-08-15 14:09:19 UTC
hi there. the triple hyphen is again a possible source of autocorrect issues.

some people (including me) tried to use it as a replacement for "em-dash"  and have seen autocorrect conflicts with concurrent double-hyphen as a replacement of "en-dash" (see the long discussion at bug 55292)

anyway I wonder why a "replace - by _" has been introduced in the Dutch version... can anybody explain me? I'm curious...

In my italian keyboard layout the hyphen and underscore are in the same key and can easily switched using the shift. is the situation different in the Dutch layout?
Comment 7 pieter kristensen 2014-08-15 15:18:33 UTC
I totally agree. I may be not a real power user but I never had the need to replace "-" by "_". To do this automatically in my vision fills a non existing need or worse: it is confusing.
Comment 8 tommy27 2014-08-18 13:31:36 UTC
I totally agree with you... I wonder what's the rationale of a "-" by "_" replacement which I see is only present in the autocorrect list for Nederland languages like acor_nl-NL.dat and acor_nl-BE.dat  (edited summary notes)

I'd like to hear feedback from Cor Nouws.
I think that such an autocorrect replacement like that should be removed (and it would be a very easy hack) but I need to know the opinion of a Dutchman first.
Comment 9 Cor Nouws 2014-08-18 15:47:40 UTC
(In reply to comment #8)
> I'd like to hear feedback from Cor Nouws.
> I think that such an autocorrect replacement like that should be removed
> (and it would be a very easy hack) but I need to know the opinion of a
> Dutchman first.

Thanks Tommy. BTW: Pieter is Dutch too...

I don't have a problem to remove that autocorrect item at all. But do we know why it was added (always a good question before attempting to remove something :) )
Maybe Lázsló knows this ??
Comment 10 tommy27 2014-08-19 14:23:49 UTC
Hi Cor, 
I knew Pieter is Dutch and he already said he doesn't see the reason for that "-" to "_" replacements. I asked your advise to hear a second opinion from a well known member of the Dutch community.

anyway I have inspected the acor_nl-NL.dat file which contains the autocorrect replacements for your language and I see that the replacement is not exactly "-" to "_" (hyphen -> underscore) like Pieter wrote but rather "-" to "–" (hyphen -> en-dash)

I have no knowledge of Dutch grammar and which are the cases you need an hyphen rather than an en-dash in your language, anyway that kind of autocorrect replacement still looks to me as a source of potential conflicts.

as far as I know, there's no keyboard layout including the en-dash character "–" and the trend to obtain that is to set a double hyphen to en-dash autocorrect entry like "--" to "–"  (see also Bug 55292).

the current Dutch replacement seems unwise to me because it basically remaps the hyphen key to an en-dash and it makes basically impossible for a dutch to type a discreet hyphen " - " in a document... moreover has Peter noticed, it has conflicts with the triple hyphen pattern to draw an horizontal border.

this "hyphen to en-dash" Dutch autocorrect entry is not a new thing... I can trace it back to LibO 3.3.3 and OOo 3.3.0 as well so it's inherited from OOo and I think that Lazlo Nemeth has nothing to do with it (BTW is he Dutch? I thought he was Hungarian).

so my suggestion is to adopt the "double hyphen to en-dash" rule in Dutch locale as well to mimic what has already been done in other languages as well (I see that replacement already in French, Spanish, English and German autocorrect lists).

that would probably avoid conflict and make the Dutch autocorrect consistent with other languages as well.

my opinion and that we need to uniform the autocorrect entries for special characters like en-dash, em-dash etc. etc. in all languages as well.

please discuss this with other members of the Ducth and Belgian community, since that replacement is present in acor_nl-NL.dat and acor_nl-BE.dat files.
Comment 11 tommy27 2014-08-25 06:05:41 UTC
another Dutch autocorrect collision due to the "hyphen to en-dash" replacement is that when you type --> instead of the expected conversion to → you will get –->


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.