Skip to content

Commit

Permalink
Add Phonetic Transcription Type
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvNC committed Feb 1, 2024
1 parent b1b46a2 commit 412764e
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/types/yomitan/termbankmeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type TermFrequency =
};

type FrequencyTerm = [
{},
string,
'freq',
(
| TermFrequency
Expand All @@ -26,15 +26,27 @@ type PitchAccentInfo = {
};

type PitchTerm = [
{},
string,
'pitch',
{
reading: string;
pitches: PitchAccentInfo[];
},
];

type TermMetaEntryType = PitchTerm | FrequencyTerm;
type TermPhoneticTranscription = [
string,
'ipa',
{
reading: string;
transcriptions: {
ipa: string;
tags?: string[];
}[];
},
];

type TermMetaEntryType = PitchTerm | FrequencyTerm | TermPhoneticTranscription;
type DictionaryTermMetaBankV3 = TermMetaEntryType[];

export type {
Expand Down

0 comments on commit 412764e

Please sign in to comment.