Add Transliteration as option

Created on 3 November 2023, 8 months ago

Problem/Motivation

A glossary A-Z with transliterated first letters is often required. It is possible to change the first letter using β€œhook_alter” (see #3035279 https://www.drupal.org/project/search_api_glossary/issues/3035279 πŸ’¬ German Umlaut / special characters Needs review ), but you need a patch and it does not contain all the special characters.

Steps to reproduce

Use the patch from #3035279 and try the string αƒ§αƒαƒ–αƒ‘αƒ”αƒ’αƒ˜.

Proposed resolution

Add an option for transliteration and use the Drupal transliteration.

Remaining tasks

Review the commited patch.

User interface changes

Added a checkbox for transliteration for each field.

API changes

API is unchanged. (BTW: I would suggest to give $source_value as context-parameter to the hook-alter).
I changed the 2nd parameter for glossaryGetter() to whole field config array.

Data model changes

The config array changed.

✨ Feature request
Status

Needs review

Version

4.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany jan kellermann

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

Comments & Activities

Production build 0.69.0 2024