Skip to content

toRomaji doesn't respect customRomajiMapping if the input is katakana #180

@fasiha

Description

@fasiha

This works: toRomaji('つじぎり', { customRomajiMapping: { じ: 'zi', つ: 'tu', り: 'li' } }), and produces tuzigili per the documentation.

However, this doesn't work? toRomaji('ツジギリ', { customRomajiMapping: { ジ: 'zi', ツ: 'tu', リ: 'li' } }) produces tsujigiri.

(I don't want to pass all input to toRomaji first through toHiragana and use hiragana-only customRomajiMapping because that changes how long vowels are handled.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions