Problem/Motivation

Some Cyrillic letters are not properly transliterated when URL aliases are generated.

Proposed resolution

Drupal core provides hook to create transliteration overrides.

By using this hook, define proper transliteration for needed Cyrillic letters.

List of numeric codes for letters can be found here http://www.personal.psu.edu/ejp10/symbolcodes/bylanguage/cyrchart.html

Comments

botanic_spark created an issue. See original summary.

botanic_spark’s picture

Version: » 8.x-1.x-dev
Category: Feature request » Task
wingpaler’s picture

StatusFileSize
new1.23 KB
botanic_spark’s picture

  1. +++ b/cyr2lat.module
    @@ -53,3 +53,44 @@ function _cyr2lat_transliterate_node(ContentEntityInterface $entity) {
    + */
    

    When implementing hook, comment should be "Implementing hook_[hook-name]()." without parameters.

  2. +++ b/cyr2lat.module
    @@ -53,3 +53,44 @@ function _cyr2lat_transliterate_node(ContentEntityInterface $entity) {
    +    $overrides[1113] = 'lj';
    

    Transliteration should be done properly for capital letters too. Pathauto will handle changing letter case if needed.

botanic_spark’s picture

Status: Active » Needs work
wingpaler’s picture

wingpaler’s picture

Status: Needs work » Needs review