[MAGNOLIA-8037] Strip accents when creating node names Created: 23/Mar/21  Updated: 19/May/22

Status: Accepted
Project: Magnolia
Component/s: None
Affects Version/s: 6.2.7
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Martin Drápela Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2021-03-23-08-20-59-571.png     PNG File image-2021-03-23-08-24-23-731.png     PNG File image-2021-12-03-09-35-26-389.png     PNG File image-2021-12-03-09-39-23-384.png     PNG File image-2021-12-03-10-24-34-178.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

Description of current state

The use case taken from Content editor migration, but seems to be widespread in Magnolia.

If an editor whose written language is accented creates a story, then there is a not-so-nice UX issue when a story title such as this one

 

is converted to a story name O--erve-ou-k-m-jabl–ku:

Proposed solution

Apache's stripAccents (http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#stripAccents-java.lang.String-) could be used to generate more user-friendly names instead (O-cervenouckem-jablicku) rather than (or before) "replacing the characters with a dash <code>-</code>".

 

Developer notes


Generated at Mon Feb 12 04:29:04 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.