Bug 145925 - AutoCorrect DOI recognition
Summary: AutoCorrect DOI recognition
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
6.0 all versions
Hardware: All All
: medium enhancement
Assignee: Not Assigned
Depends on:
Blocks: DoAsExtension
  Show dependency treegraph
Reported: 2021-11-28 10:51 UTC by FM
Modified: 2021-11-28 16:51 UTC (History)
0 users

See Also:
Crash report or crash signature:
Regression By:


Note You need to log in before you can comment on or make changes to this bug.
Description FM 2021-11-28 10:51:27 UTC
Feature request:

In Writer, there is an AutoCorrect option that can turn https:// urls automatically into hyperlinks.

In science, e.g. when using Zotero, it is very common to cite papers with the format doi:10.1259/bjr.20190594

It would be really great if there is a further option in the AutoCorrect menu, called "DOI recognition", which adds behind the scenes a hyperlink to https://doi.org/10.1259/bjr.20190594 (without changing the text itself).

Steps to Reproduce:
1. Write doi:10.1259/bjr.20190594
2. Select text and click Tools, AutoCorrect, Apply

Actual Results:
Nothing happens

Expected Results:
Hyperlink is inserted https://doi.org/10.1259/bjr.20190594
if a checkbox "DOI recognition" is activated in Tools, AutoCorrect, Autocorrect Options, no 

Reproducible: Always

User Profile Reset: No

Additional Info:
Related issues:

Build ID: 1:6.0.7-0ubuntu0.18.04.10
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); Calc: group
Comment 1 Michael Warner 2021-11-28 16:51:03 UTC
This could be a nice macro or extension that someone writes, but I don't think it should be a core feature. It's too narrow of a use case. What if DOI changes how they link things? What if someone wants their DOI references linked to somewhere else? 

Generalizing this request to something that attempts to match a user-supplied pattern and automatically runs a user-supplied macro on that match automatically in the background might be a little more defensible as a core feature, but even then I would say adding that feature is a low priority.