Skip to content

Better exact pitch value handling #2290

@eao

Description

@eao

Unless I am misunderstanding, the exact pitch value handling introduced in #2055 does not allow for distinguishing between heiban and odaka, since, for a 3-mora word, both would just be LHH. I am trying to make a pitch dictionary with the new string type pitch but am unable to make it work like the integer type pitch does.

Example of current behavior:

Image

Also, different parts of speech seem to behave differently, as this word seems to have different patterns than that of the 打ち込む example from #2055.

Maybe there could be a way to specify additional downstep(s) outside of the morae of the word itself? The mora after the word ends is the most important, for differentiating heiban and odaka, but supporting a downstep for the mora before a word begins also has uses, like for suffixes.

Example - Daijisen has this data for 歌, depending on whether it is used on its own or after another word, like in 童歌 (わらべ↓うた).

うた↓{が} /【複】~↓うた

It would be nice if Yomitan could support both these cases, though again, the heiban/odaka case is the more relevant one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/dictionary-formatThe issue or PR is related to dictionary formattingkind/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