feat(dictionary): add Hachidori backend support (#266)

This commit is contained in:
sudacode authored and GitHub committed 2026-10-24 21:08:18 -07:00
1 parent e690ffba07
commit cbaa4626e1
143 files changed
+5564 -305

No files matched your search

+5
View File
@@ -161,6 +161,10 @@ export type RendererState = {
keyboardSelectionVisible: boolean;
keyboardSelectedWordIndex: number | null;
yomitanPopupVisible: boolean;
// Set once Hachidori's attention events identify it as the reader. Its attention
// also covers presses that may start a selection, so yomitanPopupVisible alone
// does not mean a popup is open.
hachidoriReaderSeen: boolean;
isOverYomitanPopup: boolean;
primarySubtitleMode: PrimarySubMode;
};
@@ -296,6 +300,7 @@ export function createRendererState(): RendererState {
keyboardSelectionVisible: false,
keyboardSelectedWordIndex: null,
yomitanPopupVisible: false,
hachidoriReaderSeen: false,
isOverYomitanPopup: false,
primarySubtitleMode: 'visible',
};