P5music
P5music

Reputation: 3337

Function or Table for normalizing accented vowels (and other symbols) in a string

Many languages have letters that only differ from each other by an accent or another sign, especially vowels.

If one wants to replace those vowels so that the ones with a sign are replaced with the corresponding base character there is the need of a table to easily perform the replacement.

I would like to know

1) if this table is available, in a thorough form for most languages.

Or

2) if programming languages have a string utility function to perform the same operation (I need it in Javascript, especially for vowels).

Upvotes: 1

Views: 76

Answers (1)

Wikiti
Wikiti

Reputation: 1636

Javascript does not have any built-in utilities for that operation, and it's not usual to see this kind of behaviour in most modern programming languages (the only programming language that I've found with this feature is Ruby, with regular expressions).

You may want to have a look at this answer.

Upvotes: 1

Related Questions