The patch to remove the EN/EM DASHES from the replacement table is here https://gerrit.libreoffice.org/c/core/+/117585

It affects --, ---, :--:, and :---:. As well as - for NL. The option replace dashed still works depending on language and kind of content with EN/EM.

On 29.06.21 11:16, Heiko Tietze wrote:
We have two options to replace -- by EN (or EM) DASH, one in Tools > Autocorrect: Replace (-- = -), the other at Options ("[ ] Replace dashes"). This clearly leads to confusion.

Auto-correction/Replace is defined in extras/autocorr/lang/<id>/Documentlist.xml and turns two dashes into one EN DASH U+2013 for more or less all languages (grep -R – *), many but not all replace three dashes by EM DASH U+2014 (grep -R — *). NL and NL_BE replace a single dash by EN DASH.

The "option" replacement is done via SvxAutoCorrect::DoAutoCorrect() at IsAutoCorrFlag(ACFlags::ChgToEnEmDash) and SvxAutoCorrect::FnChgToEnEmDash(), which is a rather complex function.

Now I'd vote for removing the option from the replacement table as this is in my skills but I'm afraid of the triple dash thing / EM dash. At least for me it is not converted after removing the replacement entry. Removing the code in SvxAutoCorrect might be doable but could have side-effects.

Seeking for opinions here (x-post to dev and l10n).

BZ Ticket is https://bugs.documentfoundation.org/show_bug.cgi?id=142938


--
Dr. Heiko Tietze, UX-Designer and UX-Mentor
Tel: +49 30 5557992-63 | Mail: heiko.tie...@documentfoundation.org
The Document Foundation, Kurfürstendamm 188, 10707 Berlin, DE
Gemeinnützige rechtsfähige Stiftung des bürgerlichen Rechts
Legal details: https://www.documentfoundation.org/imprint


--
To unsubscribe e-mail to: l10n+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/l10n/
Privacy Policy: https://www.documentfoundation.org/privacy

Reply via email to