Add opt-in JLPT tagging flow

This commit is contained in:
2026-02-15 16:28:00 -08:00
parent ca2b7bb2fe
commit f492622a8b
27 changed files with 1116 additions and 38 deletions

View File

@@ -48,13 +48,17 @@ export interface MergedToken {
startPos: number;
endPos: number;
partOfSpeech: PartOfSpeech;
pos1?: string;
pos2?: string;
pos3?: string;
isMerged: boolean;
isKnown: boolean;
isNPlusOneTarget: boolean;
jlptLevel?: JlptLevel;
}
export type JlptLevel = "N1" | "N2" | "N3" | "N4" | "N5";
export interface WindowGeometry {
x: number;
y: number;
@@ -262,6 +266,7 @@ export interface AnkiConnectConfig {
}
export interface SubtitleStyleConfig {
enableJlpt?: boolean;
fontFamily?: string;
fontSize?: number;
fontColor?: string;
@@ -270,6 +275,13 @@ export interface SubtitleStyleConfig {
backgroundColor?: string;
nPlusOneColor?: string;
knownWordColor?: string;
jlptColors?: {
N1: string;
N2: string;
N3: string;
N4: string;
N5: string;
};
secondary?: {
fontFamily?: string;
fontSize?: number;