mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 11:21:46 +00:00
* feat(synced-lyrics): init romanization! * remove debug logs and add TODO * feat(synced-lyrics/romanization): Mandarin! * feat(synced-lyrics/romanization): improve japanese detection * feat(synced-lyrics/romanization): Korean! * qol(synced-lyrics/romanization): canonicalize punctuation and symbols * feat(synced-lyrics/romanization): handle japanese+korean and korean+chinese lyrics * revert formatting on electron.vite.config.mts * feat(synced-lyrics/romanization): romanize plain lyrics * apply fix by @kimjammer * fix lockfile due to rebase * feat(synced-lyrics): improve lyric processing and formatting; * feat(synced-lyrics/romanization): add option to enable/disable romanization * chore: move default value for --lyrics-duration to the declaration * update lockfile * fix: improvement 1. improved language detection logic 2. changed code to work in the renderer process * fix: fix regression (canonicalize) --------- Co-authored-by: JellyBrick <shlee1503@naver.com>
13 lines
356 B
TypeScript
13 lines
356 B
TypeScript
// Stolen from https://github.com/hexenq/kuroshiro-analyzer-kuromoji/pull/7
|
|
// Credit goes to https://github.com/ALOHACREPES345
|
|
|
|
declare class KuromojiAnalyzer {
|
|
constructor(dictPath?: { dictPath: string });
|
|
init(): Promise<void>;
|
|
parse(str: string): Promise<unknown>;
|
|
}
|
|
|
|
declare module 'kuroshiro-analyzer-kuromoji' {
|
|
export = KuromojiAnalyzer;
|
|
}
|