Skip to content

[Feature Request] Allow importing and exporting custom text replacement patterns #2475

Description

@khaitruong922

It would be useful to import a set of text replacement patterns from an exported JSON file, instead of adding them one by one. This would be especially helpful when reading text using 旧仮名遣い, which requires importing a large number of patterns at once.

Some example text replacement patterns for 旧仮名遣い:

  • ゐ → い (hiragana wi → i)
  • ヰ → イ (katakana wi → i)
  • ゑ → え (hiragana we → e)
  • ヱ → エ (katakana we → e)
  • つ → っ (旧仮名遣い always uses small っ)
  • Hiragana repeated character: ([ぁ-ゖ])ゝ → $1$1
  • Katakana repeated character: ([ァ-ヶ])ヽ → $1$1
  • Hiragana voiced repeated character (ゞ): かゞ → かが │ さゞ → さざ │ たゞ → ただ │ はゞ → はば ... (and other dakuten + repeat-mark combinations)
  • ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementThe issue or PR is a new feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions