automatically detect dictionary terms in nodes

Created on 3 December 2008, over 15 years ago
Updated 2 July 2023, 12 months 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 12 months ago
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 8.1 & MariaDB 10.3.22
    last update 12 months 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 12 months 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 12 months 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 12 months ago
  • πŸ‡«πŸ‡·France fgm Paris, France
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024