automatically detect dictionary terms in nodes

Created on 3 December 2008, almost 16 years ago
Updated 2 July 2023, over 1 year ago

Hello

it would be great to work without this <dfn>-tags
A term should be recognized automatically in a node body.

Is this already possible?

Thanks

Tobi

Feature request
Status

Fixed

Version

1.0

Component

User interface

Created by

🇩🇪Germany Tobias Maier

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇫🇷France fgm Paris, France

    The D10/D9 version, as of 8.x-1.0-alpha1, ships with a Definition filter plugin replicating the legacy hook_filter handling older versions used to have.

    The way it has been designed is to support another Automatic filter plugin that will automatically (hence the name) identify words matching G2 entries and wrap them in a <dfn> element so that the

    Definition/code> filter can then handle them.
    
    The keys to solving the underlying issues are the discovery of Aho-Corasick (already implemented and tested in alpha1) and the idea of having a "stop list" to avoid matching G2 entries that could be false positives. 
    
    That way, when a term in the stop list still needs to be linked (as opposed to being a false positive), the author can still manually use a <code><dfn>

    element to generate the definition link, but it will not be automatically added.

  • Assigned to fgm
  • Status changed to Needs review over 1 year ago
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 8.1 & MariaDB 10.3.22
    last update over 1 year ago
    52 pass
  • 🇫🇷France fgm Paris, France

    First step: the base filter and its configuration.

  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 8.1 & MariaDB 10.3.22
    last update over 1 year ago
    60 pass
  • 🇫🇷France fgm Paris, France

    Multi-pattern matcher and filter implemented. Need more integration testing.

  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 8.1 & MariaDB 10.3.22
    last update over 1 year ago
    63 pass
  • 🇫🇷France fgm Paris, France

    Stop list handled, with different values per input format. Seems to be feature-complete.

    • fgm committed 63b960e6 on 8.x-1.x
      Issue #341890 by fgm: automatically wrap DFN around text maching entries
      
  • 🇫🇷France fgm Paris, France

    15 years later, merged to current dev HEAD. Thanks all.

  • Status changed to Fixed over 1 year ago
  • 🇫🇷France fgm Paris, France
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024