latinize icon indicating copy to clipboard operation
latinize copied to clipboard

Character `𝖓` despite added to latinize not replaced.

Open Anatoly03 opened this issue 3 years ago • 2 comments

Any ideas on what to do with Fraktur Bold characters?

Anatoly03 avatar Sep 03 '21 14:09 Anatoly03

export function lat(str) {
    let new_str = ''
    for (let x of str) {
        new_str += latinize.characters[x] || x
    }
    return new_str
}

Proposal of the new latinize function

Anatoly03 avatar Sep 05 '21 07:09 Anatoly03

Just use .normalize afterward. Works for me.

mrjackyliang avatar Jun 12 '22 15:06 mrjackyliang