release: кадры продукта снимаются одной командой и показывают сегодняшний продукт

This commit is contained in:
public-repo-gate
2026-09-07 17:35:58 +03:00
parent eb4a91df78
commit 327b1af5ba
52 changed files with 4653 additions and 4083 deletions
+6 -6
View File
@@ -16,11 +16,11 @@
"name": "iriz", "name": "iriz",
"tagline": "Speak out loud and the text appears. Your Mac does the decoding, and nothing travels to somebody else's cloud.", "tagline": "Speak out loud and the text appears. Your Mac does the decoding, and nothing travels to somebody else's cloud.",
"hero_alt": "Iris in white marble with marble wings beside the classical column, a gold ribbon of voice landing in the groove of her tablet", "hero_alt": "Iris in white marble with marble wings beside the classical column, a gold ribbon of voice landing in the groove of her tablet",
"what": "This is a Mac app that types for you while you talk.\n\nHere is how it goes. You press one key, speak in your normal voice, press it again. The text lands where the cursor was: in an email, in a chat, in a search field. Nothing to switch to, no separate window.\n\nWhat sets it apart from similar apps is where the speech is decoded. Usually your voice travels to somebody's server, turns into text there and comes back. Here your Mac does the work, and the audio never leaves the machine.\n\n**Why «iriz».** Iris was the messenger of the Greek gods and the rainbow — a bridge between the sky and the ground. She does not invent the message, she carries it whole. The app does exactly that: it takes what you said and moves it into text, adding nothing of its own.\n\n![The menu bar: status, modes, dictation, meetings, history](docs/assets/shots/menu-en.png)\n\nIt does more. It fixes a phrase typed in the wrong keyboard layout. Correct a word after pasting and the app offers to remember the replacement. It strips hesitations and repetitions. It splits a meeting or a court hearing recording by voice and puts the minutes next to the audio.\n\n![Meetings: drop the recording, the minutes land next to it](docs/assets/screens/page-meetings.png)", "what": "This is a Mac app that types for you while you talk.\n\nHere is how it goes. You press one key, speak in your normal voice, press it again. The text lands where the cursor was: in an email, in a chat, in a search field. Nothing to switch to, no separate window.\n\nWhat sets it apart from similar apps is where the speech is decoded. Usually your voice travels to somebody's server, turns into text there and comes back. Here your Mac does the work, and the audio never leaves the machine.\n\n**Why «iriz».** Iris was the messenger of the Greek gods and the rainbow — a bridge between the sky and the ground. She does not invent the message, she carries it whole. The app does exactly that: it takes what you said and moves it into text, adding nothing of its own.\n\n![The menu bar: status, modes, dictation, meetings, history](docs/assets/shots/menu-en.png)\n\nIt does more. It fixes a phrase typed in the wrong keyboard layout. Correct a word after pasting and the app offers to remember the replacement. It strips hesitations and repetitions. It splits a meeting or a court hearing recording by voice and puts the minutes next to the audio.\n\n![Meetings: drop the recording, the minutes land next to it](docs/assets/shots/page-meetings.png)",
"why": "Anyone who writes for a living loses hours to typing. The same thought comes out faster and whole when spoken: typing, you hunt for words; speaking, you do not.\n\nOne thing gets in the way. Cloud dictation cleans speech better than anything local, but what you said leaves the machine: a client call, a draft, names and figures. For a doctor, a lawyer, a therapist, that trade never pays off.\n\nSo here your Mac does the decoding, and the app reaches the network only when you press the button.", "why": "Anyone who writes for a living loses hours to typing. The same thought comes out faster and whole when spoken: typing, you hunt for words; speaking, you do not.\n\nOne thing gets in the way. Cloud dictation cleans speech better than anything local, but what you said leaves the machine: a client call, a draft, names and figures. For a doctor, a lawyer, a therapist, that trade never pays off.\n\nSo here your Mac does the decoding, and the app reaches the network only when you press the button.",
"advantage": "your Mac decodes the speech, and during dictation the network is closed by a switch in the code rather than a promise in the text.", "advantage": "your Mac decodes the speech, and during dictation the network is closed by a switch in the code rather than a promise in the text.",
"better": "The switch sits inside the recognition library and returns to its place even when a download fails. Documentation does not prove that: a script pins the set of networking symbols in the built binary and asks the kernel whether the running app holds a single socket.", "better": "The switch sits inside the recognition library and returns to its place even when a download fails. Documentation does not prove that: a script pins the set of networking symbols in the built binary and asks the kernel whether the running app holds a single socket.",
"how": "Press the key, say your sentence, press again. The text lands where the cursor was blinking.\n\nA glass drop sits at the bottom of the screen the whole time. While you are silent it stays small. Start talking and a wave runs inside it: that is the answer to «can it hear me».\n\n![The plate while recording: a wave inside the glass](docs/assets/shots/plate-listening-light.png)\n\nPoint at it with the mouse and the drop opens into a row of buttons: record, prompt, translate, language, history, settings. The language switches right there, a second before you speak — no need to walk to the settings for it.\n\n![The plate under the pointer: a row of six buttons](docs/assets/shots/plate-hover-light.png)\n\nIf pasting did not work, nothing is lost: the same plate opens into a panel and you take the text from there.\n\n![Dictation settings: where the speech gets cleaned](docs/assets/screens/page-dictation.png)", "how": "Press the key, say your sentence, press again. The text lands where the cursor was blinking.\n\nA glass drop sits at the bottom of the screen the whole time. While you are silent it stays small. Start talking and a wave runs inside it: that is the answer to «can it hear me».\n\n![The plate while recording: a wave inside the glass](docs/assets/shots/plate-listening-dark.png)\n\nPoint at it with the mouse and the drop opens into a row of buttons: record, prompt, translate, language, history, settings. The language switches right there, a second before you speak — no need to walk to the settings for it.\n\n![The plate under the pointer: a row of six buttons](docs/assets/shots/plate-hover-dark.png)\n\nIf pasting did not work, nothing is lost: the same plate opens into a panel and you take the text from there.\n\n![Dictation settings: where the speech gets cleaned](docs/assets/shots/page-dictation.png)",
"quick_intro": "You need a Mac on macOS 14 or newer. Building from source also wants Xcode with Swift 6. Three doors from here, any of them works.", "quick_intro": "You need a Mac on macOS 14 or newer. Building from source also wants Xcode with Swift 6. Three doors from here, any of them works.",
"quick_extra": "Do not want to build? Take the ready disk image from Releases: open it, drag the icon onto Applications. No Git? Download [the ZIP](https://github.com/zarubinvibe/iriz/archive/refs/heads/main.zip), unpack it, and run the same command inside. First time? Open the project in Claude Code and run `/iriz-setup`: the install goes as a conversation, one question at a time, and nothing is installed without your yes.", "quick_extra": "Do not want to build? Take the ready disk image from Releases: open it, drag the icon onto Applications. No Git? Download [the ZIP](https://github.com/zarubinvibe/iriz/archive/refs/heads/main.zip), unpack it, and run the same command inside. First time? Open the project in Claude Code and run `/iriz-setup`: the install goes as a conversation, one question at a time, and nothing is installed without your yes.",
"quick_result": "the installer says what this is, looks at what your machine is missing, runs the tree selfcheck, and names the next step. It installs nothing until you ask.", "quick_result": "the installer says what this is, looks at what your machine is missing, runs the tree selfcheck, and names the next step. It installs nothing until you ask.",
@@ -117,11 +117,11 @@
"name": "iriz", "name": "iriz",
"tagline": "Говорите вслух, на экране появляется текст. Разбирает речь сам Мак, ничего не улетает в чужое облако.", "tagline": "Говорите вслух, на экране появляется текст. Разбирает речь сам Мак, ничего не улетает в чужое облако.",
"hero_alt": "Ирида из белого мрамора с мраморными крыльями у классической колонны, золотая лента голоса ложится в борозду на табличке", "hero_alt": "Ирида из белого мрамора с мраморными крыльями у классической колонны, золотая лента голоса ложится в борозду на табличке",
"what": "Это программа для Мака, которая печатает за вас, пока вы говорите.\n\nРаботает так. Вы нажимаете одну клавишу, говорите обычным голосом, нажимаете еще раз. Текст встает туда, где стоял курсор: в письмо, в чат, в поле поиска. Никуда переключаться не нужно, отдельного окна нет.\n\nГлавное отличие от похожих программ в том, где разбирается речь. Обычно голос уезжает на чужой сервер, там превращается в текст и возвращается. Здесь считает ваш Мак, и звук с машины не уходит.\n\n**Почему «iriz».** Ирида у греков — вестница богов и радуга, мост между небом и землей. Она не сочиняет послание, а доносит его целым. Программа делает ровно это: берет сказанное и переносит в текст, ничего не добавляя от себя.\n\n![Меню в строке меню: состояние, режимы, диктовка, встречи, история](docs/assets/shots/menu-ru.png)\n\nУмеет и другое. Чинит фразу, набранную не в той раскладке. Поправите слово после вставки, и программа предложит запомнить замену. Уберет из речи запинки и повторы. Разберет запись встречи или судебного заседания по голосам, а рядом со звуком положит готовый протокол.\n\n![Встречи: перенесите запись, рядом ляжет протокол](docs/assets/screens/page-meetings.png)", "what": "Это программа для Мака, которая печатает за вас, пока вы говорите.\n\nРаботает так. Вы нажимаете одну клавишу, говорите обычным голосом, нажимаете еще раз. Текст встает туда, где стоял курсор: в письмо, в чат, в поле поиска. Никуда переключаться не нужно, отдельного окна нет.\n\nГлавное отличие от похожих программ в том, где разбирается речь. Обычно голос уезжает на чужой сервер, там превращается в текст и возвращается. Здесь считает ваш Мак, и звук с машины не уходит.\n\n**Почему «iriz».** Ирида у греков — вестница богов и радуга, мост между небом и землей. Она не сочиняет послание, а доносит его целым. Программа делает ровно это: берет сказанное и переносит в текст, ничего не добавляя от себя.\n\n![Меню в строке меню: состояние, режимы, диктовка, встречи, история](docs/assets/shots/menu-ru.png)\n\nУмеет и другое. Чинит фразу, набранную не в той раскладке. Поправите слово после вставки, и программа предложит запомнить замену. Уберет из речи запинки и повторы. Разберет запись встречи или судебного заседания по голосам, а рядом со звуком положит готовый протокол.\n\n![Встречи: перенесите запись, рядом ляжет протокол](docs/assets/shots/page-meetings.png)",
"why": "Кто много пишет по работе, тратит на набор часы. Голосом та же мысль выходит быстрее и целее: печатая, человек подбирает слова, говоря, не подбирает.\n\nМешает одно. Облачная диктовка чистит речь лучше любой местной, но наружу уезжает то, что вы сказали: разговор с клиентом, черновик документа, имена и суммы. Для врача, юриста, психолога такой обмен не окупается ничем.\n\nПоэтому тут разбирает Мак, а в сеть программа ходит только по вашей кнопке.", "why": "Кто много пишет по работе, тратит на набор часы. Голосом та же мысль выходит быстрее и целее: печатая, человек подбирает слова, говоря, не подбирает.\n\nМешает одно. Облачная диктовка чистит речь лучше любой местной, но наружу уезжает то, что вы сказали: разговор с клиентом, черновик документа, имена и суммы. Для врача, юриста, психолога такой обмен не окупается ничем.\n\nПоэтому тут разбирает Мак, а в сеть программа ходит только по вашей кнопке.",
"advantage": "речь разбирает ваш Мак, и во время диктовки сеть закрыта рубильником в коде, а не обещанием в тексте.", "advantage": "речь разбирает ваш Мак, и во время диктовки сеть закрыта рубильником в коде, а не обещанием в тексте.",
"better": "Рубильник стоит внутри библиотеки распознавания и возвращается на место даже когда загрузка падает. Проверяет это не документация: скрипт пинует набор сетевых символов в собранном бинарнике и спрашивает у ядра, есть ли у работающего приложения хоть один сокет.", "better": "Рубильник стоит внутри библиотеки распознавания и возвращается на место даже когда загрузка падает. Проверяет это не документация: скрипт пинует набор сетевых символов в собранном бинарнике и спрашивает у ядра, есть ли у работающего приложения хоть один сокет.",
"how": "Нажали клавишу, сказали фразу, нажали еще раз. Текст встает туда, где мигал курсор.\n\nВнизу экрана все это время висит стеклянная капля. Пока вы молчите, она маленькая. Заговорили — внутри бежит волна: это и есть ответ на вопрос «слышит ли меня».\n\n![Плашка на записи: волна внутри стекла](docs/assets/shots/plate-listening-light.png)\n\nНаведите на нее мышь — капля раскроется в ряд кнопок: запись, промпт, перевод, язык, история, настройки. Язык переключается здесь же, за секунду до того, как заговорить, и ходить за этим в настройки незачем.\n\n![Плашка под мышью: ряд из шести кнопок](docs/assets/shots/plate-hover-light.png)\n\nЕсли вставить не удалось, ничего не потеряно: та же плашка раскроется в панель, и текст можно забрать оттуда.\n\n![Настройки диктовки: где чистится речь](docs/assets/screens/page-dictation.png)", "how": "Нажали клавишу, сказали фразу, нажали еще раз. Текст встает туда, где мигал курсор.\n\nВнизу экрана все это время висит стеклянная капля. Пока вы молчите, она маленькая. Заговорили — внутри бежит волна: это и есть ответ на вопрос «слышит ли меня».\n\n![Плашка на записи: волна внутри стекла](docs/assets/shots/plate-listening-dark.png)\n\nНаведите на нее мышь — капля раскроется в ряд кнопок: запись, промпт, перевод, язык, история, настройки. Язык переключается здесь же, за секунду до того, как заговорить, и ходить за этим в настройки незачем.\n\n![Плашка под мышью: ряд из шести кнопок](docs/assets/shots/plate-hover-dark.png)\n\nЕсли вставить не удалось, ничего не потеряно: та же плашка раскроется в панель, и текст можно забрать оттуда.\n\n![Настройки диктовки: где чистится речь](docs/assets/shots/page-dictation.png)",
"quick_intro": "Нужен Мак на macOS 14 или новее. Для сборки из исходников еще Xcode со Swift 6. Дверей три, годится любая.", "quick_intro": "Нужен Мак на macOS 14 или новее. Для сборки из исходников еще Xcode со Swift 6. Дверей три, годится любая.",
"quick_extra": "Не хотите собирать - возьмите готовый образ в разделе Releases: открыли, перетащили значок в Applications. Нет Git? Скачайте [ZIP](https://github.com/zarubinvibe/iriz/archive/refs/heads/main.zip), распакуйте и запустите в нем ту же команду. Первый раз? Откройте проект в Claude Code и запустите `/iriz-setup`: установка пройдет разговором, по одному вопросу, и ничего не поставится без вашего «да».", "quick_extra": "Не хотите собирать - возьмите готовый образ в разделе Releases: открыли, перетащили значок в Applications. Нет Git? Скачайте [ZIP](https://github.com/zarubinvibe/iriz/archive/refs/heads/main.zip), распакуйте и запустите в нем ту же команду. Первый раз? Откройте проект в Claude Code и запустите `/iriz-setup`: установка пройдет разговором, по одному вопросу, и ничего не поставится без вашего «да».",
"quick_result": "установщик объясняет, что это, смотрит, чего не хватает на машине, гоняет самопроверку дерева и называет следующий шаг. Ничего не ставит, пока вы не попросите.", "quick_result": "установщик объясняет, что это, смотрит, чего не хватает на машине, гоняет самопроверку дерева и называет следующий шаг. Ничего не ставит, пока вы не попросите.",
@@ -218,11 +218,11 @@
"name": "iriz", "name": "iriz",
"tagline": "你说出来,屏幕上就有字。识别由你自己的 Mac 完成,声音不会上传到别人的云。", "tagline": "你说出来,屏幕上就有字。识别由你自己的 Mac 完成,声音不会上传到别人的云。",
"hero_alt": "白色大理石的伊里斯长着大理石翅膀,站在古典石柱旁,金色的声音丝带落进石板上的凹槽里", "hero_alt": "白色大理石的伊里斯长着大理石翅膀,站在古典石柱旁,金色的声音丝带落进石板上的凹槽里",
"what": "这是一个 Mac 应用:你说话,它替你打字。\n\n用起来是这样。按一下键,用平常的声音说话,再按一下。文字会落在光标原来的位置:邮件里、聊天里、搜索框里。不用切换到别的地方,也没有单独的窗口。\n\n和同类应用最大的区别在于语音在哪里被解码。通常你的声音会被送到别人的服务器,在那里变成文字再回来。这里是你的 Mac 在计算,声音不会离开这台机器。\n\n**为什么叫「iriz」。** 伊里斯是希腊神话里众神的信使,也是彩虹——连接天与地的桥。她不编造消息,只把它完整地带到。这个应用做的正是这件事:把你说的话原样搬进文字,不添加自己的东西。\n\n![菜单栏:状态、模式、口述、会议、历史](docs/assets/shots/menu-zh.png)\n\n它还会别的。它能修好用错键盘布局打出来的句子。粘贴之后你改了一个词,它会问要不要记住这个替换。它会去掉话里的停顿和重复。它能把会议或庭审录音按说话人分开,并在音频旁边放上写好的纪要。\n\n![会议:把录音拖进来,纪要会放在旁边](docs/assets/screens/page-meetings.png)", "what": "这是一个 Mac 应用:你说话,它替你打字。\n\n用起来是这样。按一下键,用平常的声音说话,再按一下。文字会落在光标原来的位置:邮件里、聊天里、搜索框里。不用切换到别的地方,也没有单独的窗口。\n\n和同类应用最大的区别在于语音在哪里被解码。通常你的声音会被送到别人的服务器,在那里变成文字再回来。这里是你的 Mac 在计算,声音不会离开这台机器。\n\n**为什么叫「iriz」。** 伊里斯是希腊神话里众神的信使,也是彩虹——连接天与地的桥。她不编造消息,只把它完整地带到。这个应用做的正是这件事:把你说的话原样搬进文字,不添加自己的东西。\n\n![菜单栏:状态、模式、口述、会议、历史](docs/assets/shots/menu-zh.png)\n\n它还会别的。它能修好用错键盘布局打出来的句子。粘贴之后你改了一个词,它会问要不要记住这个替换。它会去掉话里的停顿和重复。它能把会议或庭审录音按说话人分开,并在音频旁边放上写好的纪要。\n\n![会议:把录音拖进来,纪要会放在旁边](docs/assets/shots/page-meetings.png)",
"why": "靠写字吃饭的人,每天都有几个小时花在打字上。同一个想法,说出来更快也更完整:打字时人在挑词,说话时不挑。\n\n只有一件事挡在前面。云端听写把口语整理得比任何本地方案都干净,可你说的内容也随之离开了这台机器:和客户的通话、文件草稿、人名和金额。对医生、律师、心理咨询师来说,这笔交换怎么算都不划算。\n\n所以这里由你的 Mac 来识别,只有你按下按钮时,程序才会联网。", "why": "靠写字吃饭的人,每天都有几个小时花在打字上。同一个想法,说出来更快也更完整:打字时人在挑词,说话时不挑。\n\n只有一件事挡在前面。云端听写把口语整理得比任何本地方案都干净,可你说的内容也随之离开了这台机器:和客户的通话、文件草稿、人名和金额。对医生、律师、心理咨询师来说,这笔交换怎么算都不划算。\n\n所以这里由你的 Mac 来识别,只有你按下按钮时,程序才会联网。",
"advantage": "识别在你自己的 Mac 上完成,口述期间网络由代码里的开关关闭,而不是靠文字承诺。", "advantage": "识别在你自己的 Mac 上完成,口述期间网络由代码里的开关关闭,而不是靠文字承诺。",
"better": "开关叫 `DownloadUtils.enforceOffline`,位置在识别库内部,连下载失败的时候也会自己归位。光有文档不算数:自检脚本盯住编译好的二进制里那一组网络符号,再去问系统,运行中的应用手上有没有一个套接字。", "better": "开关叫 `DownloadUtils.enforceOffline`,位置在识别库内部,连下载失败的时候也会自己归位。光有文档不算数:自检脚本盯住编译好的二进制里那一组网络符号,再去问系统,运行中的应用手上有没有一个套接字。",
"how": "按键,说一句话,再按一下。文字会落在光标闪烁的地方。\n\n这段时间里,屏幕下方一直有一颗玻璃水滴。你不说话时它很小。一开口,里面就有声波流动:这就是“它有没有听见我”的答案。\n\n![录音中的浮窗:玻璃里的声波](docs/assets/shots/plate-listening-light.png)\n\n把鼠标移上去,水滴会展开成一排按钮:录音、提示词、翻译、语言、历史、设置。语言就在这里切换,开口前一秒就能换,不用专门去设置里找。\n\n![鼠标下的浮窗:一排六个按钮](docs/assets/shots/plate-hover-light.png)\n\n如果没能粘贴上,什么也不会丢:同一个浮窗会展开成面板,文字从那里拿走。\n\n![口述设置:在哪里清理口语](docs/assets/screens/page-dictation.png)", "how": "按键,说一句话,再按一下。文字会落在光标闪烁的地方。\n\n这段时间里,屏幕下方一直有一颗玻璃水滴。你不说话时它很小。一开口,里面就有声波流动:这就是“它有没有听见我”的答案。\n\n![录音中的浮窗:玻璃里的声波](docs/assets/shots/plate-listening-dark.png)\n\n把鼠标移上去,水滴会展开成一排按钮:录音、提示词、翻译、语言、历史、设置。语言就在这里切换,开口前一秒就能换,不用专门去设置里找。\n\n![鼠标下的浮窗:一排六个按钮](docs/assets/shots/plate-hover-dark.png)\n\n如果没能粘贴上,什么也不会丢:同一个浮窗会展开成面板,文字从那里拿走。\n\n![口述设置:在哪里清理口语](docs/assets/shots/page-dictation.png)",
"quick_intro": "需要一台 macOS 14 或更新的 Mac,还有三项系统权限:麦克风、辅助功能、输入监控。从源码构建另外要 Xcode 和 Swift 6。接下来有三条路,走哪条都行。", "quick_intro": "需要一台 macOS 14 或更新的 Mac,还有三项系统权限:麦克风、辅助功能、输入监控。从源码构建另外要 Xcode 和 Swift 6。接下来有三条路,走哪条都行。",
"quick_extra": "不想构建?到 Releases 拿现成的磁盘映像:打开,把图标拖进 Applications。没有 Git?下载 [ZIP](https://github.com/zarubinvibe/iriz/archive/refs/heads/main.zip),解压后在里面执行同一条命令。第一次用?在 Claude Code 里打开项目并运行 `/iriz-setup`:安装以对话的方式进行,一次问一个问题,没有你点头不会装任何东西。", "quick_extra": "不想构建?到 Releases 拿现成的磁盘映像:打开,把图标拖进 Applications。没有 Git?下载 [ZIP](https://github.com/zarubinvibe/iriz/archive/refs/heads/main.zip),解压后在里面执行同一条命令。第一次用?在 Claude Code 里打开项目并运行 `/iriz-setup`:安装以对话的方式进行,一次问一个问题,没有你点头不会装任何东西。",
"quick_result": "安装脚本先说清楚这是什么,再看你的机器缺什么,跑一遍 `bash scripts/selfcheck.sh --selftest`,最后告诉你下一步该做什么。你不开口,它什么都不装。真要构建,加一个参数:`bash install.sh --build`。", "quick_result": "安装脚本先说清楚这是什么,再看你的机器缺什么,跑一遍 `bash scripts/selfcheck.sh --selftest`,最后告诉你下一步该做什么。你不开口,它什么都不装。真要构建,加一个参数:`bash install.sh --build`。",
+5 -4
View File
@@ -2,18 +2,19 @@ Use case: stylized-concept
Asset type: wide hero image for the README of a project of the Olympuz family Asset type: wide hero image for the README of a project of the Olympuz family
Primary request: one wide scene that says in a single look what this project does - a spoken sentence is carried by the messenger and lands as written text on the person's own tablet, without ever leaving the room. Primary request: one wide scene that says in a single look what this project does - a spoken sentence is carried by the messenger and lands as written text on the person's own tablet, without ever leaving the room.
Input images: Image 1 is the immutable Pantheon style reference; Image 2 is the required family-signature column; Image 3 is the project character sheet and Image 4 the project prop sheet - the figure, her costume, her wings, the herald staff, the marble tablet, the winged sandals and the gold voice ribbon must match those sheets exactly. Input images: Image 1 is the immutable Pantheon style reference; Image 2 is the required family-signature column; Image 3 is the project character sheet and Image 4 the project prop sheet - the figure, her costume, her wings, the herald staff, the marble tablet, the winged sandals and the gold voice ribbon must match those sheets exactly.
Subject: Iris stands slightly left of centre, turned three-quarters toward the viewer, her marble wings folded close to her back. Her right hand closes around the herald staff, whose butt rests on the ground beside her foot. Her left hand holds the marble writing tablet at waist height, its face turned toward the viewer. One continuous muted-gold ribbon of voice rises from just below her chin, curves once through the air and lands flat inside the single carved groove on the tablet face, where it becomes a straight carved line of writing. Subject: Iris stands slightly left of centre, turned three-quarters toward the viewer, her marble wings folded close to her back. Her right hand closes around the herald staff, whose butt rests on the ground beside her foot. Her left hand holds the marble writing tablet at waist height, its face turned toward the viewer. One continuous muted-gold ribbon of voice rises from just below her chin, curves once through the air and lands on the tablet face, where it resolves into a row of slender upright muted-gold bars of different heights: a sound wave, mirrored above and below one invisible middle line, tallest at the centre of the tablet and tapering smoothly to short bars at both ends. The bars are evenly spaced, stand clear of one another, and fill the width of the tablet face.
Composition/framing: 16:9 landscape, generous empty ivory space, the figure occupying the left half and the tablet reading clearly at the centre. A classical white-marble column stands at the right as the family signature, clearly separated from the figure. Nothing overlaps the figure, nothing is cropped by any edge. Composition/framing: 16:9 landscape, generous empty ivory space, the figure occupying the left half and the tablet reading clearly at the centre. A classical white-marble column stands at the right as the family signature, clearly separated from the figure. Nothing overlaps the figure, nothing is cropped by any edge.
Style/medium: premium restrained 3D marble sculpture render, monumental carving with deep drapery and real weight, physically plausible materials, warm ivory Apple-like presentation Style/medium: premium restrained 3D marble sculpture render, monumental carving with deep drapery and real weight, physically plausible materials, warm ivory Apple-like presentation
Lighting/mood: soft daylight from upper left, long gentle shadows, calm and welcoming. The gold ribbon and the gold fittings glow softly FROM WITHIN, as if lit by their own material, never by a lamp or a hard rim light. Lighting/mood: soft daylight from upper left, long gentle shadows, calm and welcoming. The gold ribbon and the gold fittings glow softly FROM WITHIN, as if lit by their own material, never by a lamp or a hard rim light.
Color palette: ivory #F3EFE8, bright ivory #FBFAF6, white marble, muted gold #C9A87A for the voice ribbon and the metal fittings only, sky blue #B8D6EA for the incoming paths only, charcoal #3E3A36 Color palette: ivory #F3EFE8, bright ivory #FBFAF6, white marble, muted gold #C9A87A for the voice ribbon and the metal fittings only, sky blue #B8D6EA for the incoming paths only, charcoal #3E3A36
Constraints: Constraints:
- The gold ribbon is the person's own voice and therefore gold. It is one continuous piece from her chin to the tablet, it touches the tablet, and it never breaks into segments and never floats free. - The gold ribbon is the person's own voice and therefore gold. It is one continuous piece from her chin to the tablet, it touches the tablet, and it never breaks into segments and never floats free. Where it meets the tablet the ribbon becomes the sound wave: the wave is the same muted gold and the same material, not a separate object laid on top.
- The sound wave on the tablet is the only wave in the frame. It reads as sound, not as writing, not as a chart, not as a bar graph with a baseline or an axis: bare bars only, no frame, no grid, no ruler marks.
- Three thin sky-blue paths run flat along the ground from the left edge and end at the butt of the herald staff. They lie on the ground along their whole length and never rise into the air. - Three thin sky-blue paths run flat along the ground from the left edge and end at the butt of the herald staff. They lie on the ground along their whole length and never rise into the air.
- Everything carried is held by a closed hand. Everything standing rests on the ground and casts a shadow. Nothing hovers. - Everything carried is held by a closed hand. Everything standing rests on the ground and casts a shadow. Nothing hovers.
- Her head is uncovered, eyes open, hair parted in the centre and gathered low at the nape, exactly as on the character sheet. - Her head is uncovered, eyes open, hair parted in the centre and gathered low at the nape, exactly as on the character sheet.
- Anatomically correct hands with exactly five fingers and one readable thumb, fingers not fused. - Anatomically correct hands with exactly five fingers and one readable thumb, fingers not fused.
- No screens, no keyboards, no microphones, no cables, no modern devices anywhere in the frame. - No screens, no keyboards, no microphones, no cables, no modern devices anywhere in the frame.
- Preserve the reference style; highest final quality; maximum resolution. - Preserve the reference style; highest final quality; maximum resolution.
Avoid: rainbow of many colors, prismatic colors, veil, helmet, crown, blindfold, closed eyes, scales, sword, owl, spear, hearth, fire, floating staff, floating tablet, a ribbon floating free of the figure, cloth wings, screens, keyboards, microphones, phones, laptops, cables, brand marks, dark background, black background, neon, purple gradient, smoky cinema lighting, heavy bronze, metallic or plastic marble, watermark, extra or missing fingers, fused fingers, callout labels Avoid: waveform drawn as a continuous curved line, oscilloscope trace, equalizer with a frame or axis, bars of equal height, carved groove or engraved line on the tablet, rainbow of many colors, prismatic colors, veil, helmet, crown, blindfold, closed eyes, scales, sword, owl, spear, hearth, fire, floating staff, floating tablet, a ribbon floating free of the figure, cloth wings, screens, keyboards, microphones, phones, laptops, cables, brand marks, dark background, black background, neon, purple gradient, smoky cinema lighting, heavy bronze, metallic or plastic marble, watermark, extra or missing fingers, fused fingers, callout labels
Text (verbatim): No readable text, no letters, no digits anywhere in the image. The carved line on the tablet is a plain groove, not writing. Text (verbatim): No readable text, no letters, no digits anywhere in the image. The gold bars on the tablet are a sound wave, not writing and not any script.
+4 -4
View File
@@ -49,7 +49,7 @@ What sets it apart from similar apps is where the speech is decoded. Usually you
It does more. It fixes a phrase typed in the wrong keyboard layout. Correct a word after pasting and the app offers to remember the replacement. It strips hesitations and repetitions. It splits a meeting or a court hearing recording by voice and puts the minutes next to the audio. It does more. It fixes a phrase typed in the wrong keyboard layout. Correct a word after pasting and the app offers to remember the replacement. It strips hesitations and repetitions. It splits a meeting or a court hearing recording by voice and puts the minutes next to the audio.
![Meetings: drop the recording, the minutes land next to it](docs/assets/screens/page-meetings.png) ![Meetings: drop the recording, the minutes land next to it](docs/assets/shots/page-meetings.png)
## Why It Helps ## Why It Helps
@@ -71,15 +71,15 @@ Press the key, say your sentence, press again. The text lands where the cursor w
A glass drop sits at the bottom of the screen the whole time. While you are silent it stays small. Start talking and a wave runs inside it: that is the answer to «can it hear me». A glass drop sits at the bottom of the screen the whole time. While you are silent it stays small. Start talking and a wave runs inside it: that is the answer to «can it hear me».
![The plate while recording: a wave inside the glass](docs/assets/shots/plate-listening-light.png) ![The plate while recording: a wave inside the glass](docs/assets/shots/plate-listening-dark.png)
Point at it with the mouse and the drop opens into a row of buttons: record, prompt, translate, language, history, settings. The language switches right there, a second before you speak — no need to walk to the settings for it. Point at it with the mouse and the drop opens into a row of buttons: record, prompt, translate, language, history, settings. The language switches right there, a second before you speak — no need to walk to the settings for it.
![The plate under the pointer: a row of six buttons](docs/assets/shots/plate-hover-light.png) ![The plate under the pointer: a row of six buttons](docs/assets/shots/plate-hover-dark.png)
If pasting did not work, nothing is lost: the same plate opens into a panel and you take the text from there. If pasting did not work, nothing is lost: the same plate opens into a panel and you take the text from there.
![Dictation settings: where the speech gets cleaned](docs/assets/screens/page-dictation.png) ![Dictation settings: where the speech gets cleaned](docs/assets/shots/page-dictation.png)
<!-- workflow-diagram:start --> <!-- workflow-diagram:start -->
+4 -4
View File
@@ -49,7 +49,7 @@
Умеет и другое. Чинит фразу, набранную не в той раскладке. Поправите слово после вставки, и программа предложит запомнить замену. Уберет из речи запинки и повторы. Разберет запись встречи или судебного заседания по голосам, а рядом со звуком положит готовый протокол. Умеет и другое. Чинит фразу, набранную не в той раскладке. Поправите слово после вставки, и программа предложит запомнить замену. Уберет из речи запинки и повторы. Разберет запись встречи или судебного заседания по голосам, а рядом со звуком положит готовый протокол.
![Встречи: перенесите запись, рядом ляжет протокол](docs/assets/screens/page-meetings.png) ![Встречи: перенесите запись, рядом ляжет протокол](docs/assets/shots/page-meetings.png)
## Зачем это нужно ## Зачем это нужно
@@ -71,15 +71,15 @@
Внизу экрана все это время висит стеклянная капля. Пока вы молчите, она маленькая. Заговорили — внутри бежит волна: это и есть ответ на вопрос «слышит ли меня». Внизу экрана все это время висит стеклянная капля. Пока вы молчите, она маленькая. Заговорили — внутри бежит волна: это и есть ответ на вопрос «слышит ли меня».
![Плашка на записи: волна внутри стекла](docs/assets/shots/plate-listening-light.png) ![Плашка на записи: волна внутри стекла](docs/assets/shots/plate-listening-dark.png)
Наведите на нее мышь — капля раскроется в ряд кнопок: запись, промпт, перевод, язык, история, настройки. Язык переключается здесь же, за секунду до того, как заговорить, и ходить за этим в настройки незачем. Наведите на нее мышь — капля раскроется в ряд кнопок: запись, промпт, перевод, язык, история, настройки. Язык переключается здесь же, за секунду до того, как заговорить, и ходить за этим в настройки незачем.
![Плашка под мышью: ряд из шести кнопок](docs/assets/shots/plate-hover-light.png) ![Плашка под мышью: ряд из шести кнопок](docs/assets/shots/plate-hover-dark.png)
Если вставить не удалось, ничего не потеряно: та же плашка раскроется в панель, и текст можно забрать оттуда. Если вставить не удалось, ничего не потеряно: та же плашка раскроется в панель, и текст можно забрать оттуда.
![Настройки диктовки: где чистится речь](docs/assets/screens/page-dictation.png) ![Настройки диктовки: где чистится речь](docs/assets/shots/page-dictation.png)
<!-- workflow-diagram:start --> <!-- workflow-diagram:start -->
+4 -4
View File
@@ -49,7 +49,7 @@
它还会别的。它能修好用错键盘布局打出来的句子。粘贴之后你改了一个词,它会问要不要记住这个替换。它会去掉话里的停顿和重复。它能把会议或庭审录音按说话人分开,并在音频旁边放上写好的纪要。 它还会别的。它能修好用错键盘布局打出来的句子。粘贴之后你改了一个词,它会问要不要记住这个替换。它会去掉话里的停顿和重复。它能把会议或庭审录音按说话人分开,并在音频旁边放上写好的纪要。
![会议:把录音拖进来,纪要会放在旁边](docs/assets/screens/page-meetings.png) ![会议:把录音拖进来,纪要会放在旁边](docs/assets/shots/page-meetings.png)
## 它解决什么问题 ## 它解决什么问题
@@ -71,15 +71,15 @@
这段时间里,屏幕下方一直有一颗玻璃水滴。你不说话时它很小。一开口,里面就有声波流动:这就是“它有没有听见我”的答案。 这段时间里,屏幕下方一直有一颗玻璃水滴。你不说话时它很小。一开口,里面就有声波流动:这就是“它有没有听见我”的答案。
![录音中的浮窗:玻璃里的声波](docs/assets/shots/plate-listening-light.png) ![录音中的浮窗:玻璃里的声波](docs/assets/shots/plate-listening-dark.png)
把鼠标移上去,水滴会展开成一排按钮:录音、提示词、翻译、语言、历史、设置。语言就在这里切换,开口前一秒就能换,不用专门去设置里找。 把鼠标移上去,水滴会展开成一排按钮:录音、提示词、翻译、语言、历史、设置。语言就在这里切换,开口前一秒就能换,不用专门去设置里找。
![鼠标下的浮窗:一排六个按钮](docs/assets/shots/plate-hover-light.png) ![鼠标下的浮窗:一排六个按钮](docs/assets/shots/plate-hover-dark.png)
如果没能粘贴上,什么也不会丢:同一个浮窗会展开成面板,文字从那里拿走。 如果没能粘贴上,什么也不会丢:同一个浮窗会展开成面板,文字从那里拿走。
![口述设置:在哪里清理口语](docs/assets/screens/page-dictation.png) ![口述设置:在哪里清理口语](docs/assets/shots/page-dictation.png)
<!-- workflow-diagram:start --> <!-- workflow-diagram:start -->
+61
View File
@@ -49,6 +49,21 @@ func captureDocShots(to directory: URL, appDelegate: AppDelegate) throws -> [URL
settings.close() settings.close()
written.append(settingsURL) written.append(settingsURL)
// Страницы настроек, на которые ссылается витрина. Раньше их снимали
// руками, и к 07.09.2026 они отстали на все правки владельца: на кадре
// словаря замен не было ни кнопки добавления сверху, ни выровненных
// столбцов, ни отметки о сохранении. Кадр, который никто не
// пересобирает, устаревает первым.
if language == .ru {
for (page, name) in docSettingsPages() {
let window = makeIrizSettingsWindow(preview: true, page: page)
let url = directory.appendingPathComponent("page-\(name).png")
try captureWindowLive(window, kind: .gradient, dark: false, to: url)
window.close()
written.append(url)
}
}
// Остальные поверхности живут внутри панелей и своих окон не имеют. // Остальные поверхности живут внутри панелей и своих окон не имеют.
// Поднимаем их в окне того же устройства, что у настроек: прозрачном, // Поднимаем их в окне того же устройства, что у настроек: прозрачном,
// без заголовка - чтобы стекло сэмплировало подложку, а не серую плиту. // без заголовка - чтобы стекло сэмплировало подложку, а не серую плиту.
@@ -60,9 +75,55 @@ func captureDocShots(to directory: URL, appDelegate: AppDelegate) throws -> [URL
written.append(url) written.append(url)
} }
} }
// Плашка снимается ТЕМ ЖЕ прогоном. Раньше её кадры копировали руками, и
// они отстали на день: витрина обновлялась одной командой, а четыре кадра
// плашки - нет. Владелец 07.09.2026 показал два из них: на одном плашка
// сломана, на другом её вовсе не видно.
//
// В витрину идут ТЁМНЫЕ формы. На светлой подложке стекло почти не читается
// - остаётся контур и кнопки, и на странице знакомства это выглядело как
// отсутствие плашки. Тёмная показывает то, чем плашка является.
if #available(macOS 26.0, *) {
written.append(contentsOf: try captureDocPlateShots(to: directory))
}
return written return written
} }
/// Кадры плашки для витрины: снимаем весь набор, оставляем нужные четыре.
@available(macOS 26.0, *)
@MainActor
private func captureDocPlateShots(to directory: URL) throws -> [URL] {
let temp = URL(fileURLWithPath: NSTemporaryDirectory())
.appendingPathComponent("iriz-doc-plate-\(UUID().uuidString)")
defer { try? FileManager.default.removeItem(at: temp) }
_ = try captureDictationHUDPlateScenes(to: temp)
var written: [URL] = []
for name in ["plate-resting-dark", "plate-hover-dark",
"plate-listening-dark", "plate-open-text-dark"] {
let from = temp.appendingPathComponent("\(name).png")
let to = directory.appendingPathComponent("\(name).png")
guard FileManager.default.fileExists(atPath: from.path) else {
throw NSError(domain: "iriz.docshots", code: 13,
userInfo: [NSLocalizedDescriptionKey: "Кадр плашки \(name) не снялся."])
}
try? FileManager.default.removeItem(at: to)
try FileManager.default.copyItem(at: from, to: to)
written.append(to)
}
return written
}
/// Страницы настроек для витрины. Только по-русски: витрина ссылается на них
/// из русского, английского и китайского текста одним и тем же файлом, и три
/// копии одной страницы весили бы втрое без нового знания.
@MainActor
private func docSettingsPages() -> [(SettingsPage, String)] {
[(.dictation, "dictation"), (.dictionary, "dictionary"), (.files, "files"),
(.history, "history"), (.meetings, "meetings")]
}
/// Поверхности, которые обязаны попасть в витрину на каждом языке. /// Поверхности, которые обязаны попасть в витрину на каждом языке.
@MainActor @MainActor
private func docShots(appDelegate: AppDelegate) -> [DocShot] { private func docShots(appDelegate: AppDelegate) -> [DocShot] {
+29 -3
View File
@@ -14,9 +14,9 @@ enum AppMode: String, CaseIterable, Identifiable {
var title: String { var title: String {
switch self { switch self {
case .fixing: return "Исправляет" case .fixing: return L("mode.fixing", "Исправляет")
case .shadow: return "Только считает" case .shadow: return L("mode.shadow", "Только считает")
case .paused: return "Пауза" case .paused: return L("mode.paused", "Пауза")
} }
} }
@@ -91,6 +91,32 @@ final class MenuState: ObservableObject {
/// В «Только считает» правок не было вовсе — то же число там значит /// В «Только считает» правок не было вовсе — то же число там значит
/// «столько ошибок замечено», и называть его исправлениями было бы враньём. /// «столько ошибок замечено», и называть его исправлениями было бы враньём.
var statsLine: String { var statsLine: String {
// Ветка по языку, а не таблица строк: у русского три формы числа, у
// английского две, у китайского ни одной. Одним ключом это не
// выражается, и строка либо врала бы числом, либо оставалась русской.
// Кадр витрины 07.09.2026: меню на китайском, а счётчики дня русские.
switch irizCurrentLanguage() {
case .ru:
return statsLineRu
case .en:
let word = mode == .shadow
? (todayAutoswitches == 1 ? "layout slip" : "layout slips")
: (todayAutoswitches == 1 ? "fix" : "fixes")
let undos = todayUndos == 1 ? "undo" : "undos"
return "Today: \(todayAutoswitches) \(word) · \(todayUndos) \(undos)"
case .zh:
let word = mode == .shadow ? "次布局错误" : "次修正"
return "今天:\(todayAutoswitches) \(word) · \(todayUndos) 次撤销"
case .auto:
// `irizCurrentLanguage()` разрешает `auto` в настоящий язык и сюда
// не приводит. Ветка стоит ради полноты разбора: молчаливый провал
// однажды выдал бы пустую строку счётчиков вместо чисел.
return statsLineRu
}
}
/// Русский вариант строки счётчиков - он же запасной для неразрешённого языка.
private var statsLineRu: String {
let counted = mode == .shadow let counted = mode == .shadow
? "\(todayAutoswitches) \(Self.plural(todayAutoswitches, one: "ошибка раскладки", few: "ошибки раскладки", many: "ошибок раскладки"))" ? "\(todayAutoswitches) \(Self.plural(todayAutoswitches, one: "ошибка раскладки", few: "ошибки раскладки", many: "ошибок раскладки"))"
: "\(todayAutoswitches) \(Self.plural(todayAutoswitches, one: "исправление", few: "исправления", many: "исправлений"))" : "\(todayAutoswitches) \(Self.plural(todayAutoswitches, one: "исправление", few: "исправления", many: "исправлений"))"
+10
View File
@@ -31,6 +31,16 @@ public enum IrizLanguage: String, CaseIterable, Sendable {
} }
} }
/// Локаль для дат и чисел. Отдельно от папки перевода: папка отвечает за
/// таблицу строк, локаль - за то, как названы месяцы и разделены разряды.
public var localeIdentifier: String {
switch self {
case .auto, .ru: return "ru_RU"
case .en: return "en_US"
case .zh: return "zh_Hans_CN"
}
}
/// Имя языка НА НЕМ САМОМ. Человек, открывший список на незнакомом языке, /// Имя языка НА НЕМ САМОМ. Человек, открывший список на незнакомом языке,
/// должен узнать свой: «English» ищут глазами, а не переводом. /// должен узнать свой: «English» ищут глазами, а не переводом.
public var ownName: String { public var ownName: String {
@@ -279,3 +279,18 @@
"appearance.dark" = "Dark"; "appearance.dark" = "Dark";
"settings.gotovyeSvody" = "Ready-made sets:"; "settings.gotovyeSvody" = "Ready-made sets:";
"settings.svodPodstavlenPravte" = "The set is in. Edit it to taste and press Save."; "settings.svodPodstavlenPravte" = "The set is in. Edit it to taste and press Save.";
"history.charsShort" = "chars";
"rescue.title" = "The text did not reach the field";
"rescue.bothFailed" = "Both attempts failed: neither through the clipboard nor by typing it in.";
"rescue.notTaken" = "The paste went out, but the field never took it. The text is safe: it is right here.";
"rescue.notObservable" = "The text was typed in directly, so there was nothing to confirm delivery with.";
"rescue.unknownTarget" = "There is nowhere to paste: we do not remember the application. Copy the text.";
"rescue.focusLost" = "Focus never came back to the field, so there was nowhere to paste. Copy the text.";
"rescue.notDelivered" = "The field refused the paste again. Copy it and paste it by hand.";
"mode.fixing" = "Fixing";
"mode.shadow" = "Counting only";
"mode.paused" = "Paused";
"history.windowTitle" = "dictations";
@@ -1 +1,16 @@
/* Оригинал: русский. Файл нужен, чтобы папка языка существовала. */ /* Оригинал: русский. Файл нужен, чтобы папка языка существовала. */
"history.charsShort" = "симв.";
"rescue.title" = "Текст не попал в поле";
"rescue.bothFailed" = "Не сработали обе попытки: ни через буфер обмена, ни прямым вводом.";
"rescue.notTaken" = "Вставка ушла, но поле её не забрало. Текст цел — он здесь.";
"rescue.notObservable" = "Текст ввели напрямую — подтвердить доставку было нечем.";
"rescue.unknownTarget" = "Непонятно, куда вставлять — приложение мы не запоминаем. Скопируйте текст.";
"rescue.focusLost" = "Фокус не вернулся в поле, вставлять было некуда. Скопируйте текст.";
"rescue.notDelivered" = "Поле снова не приняло вставку. Скопируйте и вставьте руками.";
"mode.fixing" = "Исправляет";
"mode.shadow" = "Только считает";
"mode.paused" = "Пауза";
"history.windowTitle" = "надиктовки";
@@ -280,3 +280,18 @@
"appearance.dark" = "深色"; "appearance.dark" = "深色";
"settings.gotovyeSvody" = "现成的规则集:"; "settings.gotovyeSvody" = "现成的规则集:";
"settings.svodPodstavlenPravte" = "规则集已填入。按你的需要改,然后点“存储”。"; "settings.svodPodstavlenPravte" = "规则集已填入。按你的需要改,然后点“存储”。";
"history.charsShort" = "字符";
"rescue.title" = "文字没有进入输入框";
"rescue.bothFailed" = "两种方式都没成功:剪贴板不行,直接输入也不行。";
"rescue.notTaken" = "粘贴已经发出,可输入框没有接住。文字还在,就在这里。";
"rescue.notObservable" = "文字是直接输入的,没有办法确认它到了没有。";
"rescue.unknownTarget" = "不知道该粘到哪里:我们不记录是哪个程序。请把文字拷走。";
"rescue.focusLost" = "焦点没有回到输入框,粘贴无处可去。请把文字拷走。";
"rescue.notDelivered" = "输入框又一次没有接受粘贴。请拷走,然后手动粘贴。";
"mode.fixing" = "自动修正";
"mode.shadow" = "只统计";
"mode.paused" = "暂停";
"history.windowTitle" = "口述记录";
@@ -192,9 +192,33 @@ public func captureDictationHUDPlateScenes(to directory: URL) throws -> [URL] {
// примагничивается, затемнение уходит. // примагничивается, затемнение уходит.
surface.hudMouseUp(at: CGPoint(x: screen.frame.maxX - 260, surface.hudMouseUp(at: CGPoint(x: screen.frame.maxX - 260,
y: screen.frame.minY + 120)) y: screen.frame.minY + 120))
// И ВОЗВРАЩАЕМ на место. Сцена переноса идёт первой, а плашка
// после неё оставалась у правой кромки - там раскрытые формы
// не помещаются на экран, и `intersection` резал их по краю.
// Кадр «на записи» приезжал без правой трети, поверх обоев, с
// чужой линией через всю плашку. Владелец назвал это сломанной
// плашкой 07.09.2026, и был прав: ломал её прибор съёмки.
surface.hudMouseDown(at: CGPoint(x: screen.frame.maxX - 260,
y: screen.frame.minY + 120))
surface.hudMouseDragged(to: CGPoint(x: plate.midX, y: plate.midY))
surface.hudMouseUp(at: CGPoint(x: plate.midX, y: plate.midY))
backdrop.orderFrontRegardless() backdrop.orderFrontRegardless()
RunLoop.current.run(until: Date().addingTimeInterval(0.4)) RunLoop.current.run(until: Date().addingTimeInterval(0.4))
} else { } else {
// Подложка едет за плашкой: раскрытые формы шире отдыхающей, и
// подложка, посчитанная один раз по отдыхающей, кончалась под
// серединой раскрытой панели - дальше стекло сэмплировало
// рабочий стол.
if let live = dictationHUDUspokoivshayasyaForma(surface) {
let pole = live.insetBy(dx: -220, dy: -180)
if !backdrop.frame.contains(pole) {
backdrop.setFrame(pole, display: false)
backdrop.contentView = dictationHUDPlateBackdrop(size: pole.size, dark: dark)
backdrop.orderFrontRegardless()
surface.raisePanel()
RunLoop.current.run(until: Date().addingTimeInterval(0.3))
}
}
try dictationHUDCapturePlate(surface: surface, screen: screen, to: url) try dictationHUDCapturePlate(surface: surface, screen: screen, to: url)
} }
written.append(url) written.append(url)
@@ -205,6 +229,35 @@ public func captureDictationHUDPlateScenes(to directory: URL) throws -> [URL] {
return written return written
} }
/// Дождаться, пока форма плашки перестанет меняться.
///
/// Фиксированная пауза не работает: переход от раскрытой панели к капсуле
/// «на записи» идёт анимацией, и кадр «на записи» приезжал обрезанным - окно
/// ещё показывало широкую панель, а `panelScreenFrame` уже отдавал узкую.
/// Область снимка считалась по узкой, и правая треть плашки оставалась за
/// кромкой кадра. Ждём три одинаковых замера подряд.
@MainActor
private func dictationHUDUspokoivshayasyaForma(_ surface: DictationHUDPanelSurface,
predel: TimeInterval = 3) -> CGRect? {
var proshloe = surface.panelScreenFrame
var podryad = 0
let srok = Date().addingTimeInterval(predel)
while Date() < srok {
RunLoop.current.run(until: Date().addingTimeInterval(0.1))
let seychas = surface.panelScreenFrame
if let a = proshloe, let b = seychas,
abs(a.origin.x - b.origin.x) < 0.5, abs(a.origin.y - b.origin.y) < 0.5,
abs(a.width - b.width) < 0.5, abs(a.height - b.height) < 0.5 {
podryad += 1
if podryad >= 3 { return b }
} else {
podryad = 0
}
proshloe = seychas
}
return proshloe
}
/// Подложка для разглядывания: мягкая, но с перепадом - на ровной заливке /// Подложка для разглядывания: мягкая, но с перепадом - на ровной заливке
/// преломление стекла не читается вовсе. /// преломление стекла не читается вовсе.
@MainActor @MainActor
+19 -3
View File
@@ -241,6 +241,16 @@ final class DictationHUDPanelSurface: NSObject, DictationHUDSurface, DictationHU
private var transcriptLifetime: TimeInterval = 0 private var transcriptLifetime: TimeInterval = 0
private var transcriptPlateSize: CGSize = .zero private var transcriptPlateSize: CGSize = .zero
private var transcriptPanelSize: CGSize = .zero private var transcriptPanelSize: CGSize = .zero
/// Форма стекла, которая сейчас лежит на плашке.
///
/// Нужна затем, что форму переприменяли ТОЛЬКО во время морфа. Панель
/// расшифровки закрывалась, окно уже стояло размером капсулы, морф не шёл
/// - и стекло оставалось прямоугольником панели. Владелец видел это как
/// «плашка обрезанная становится»: прямоугольник шире капсулы, и окно
/// резало его по кромке. Замер 07.09.2026: окно 144x57, стекло рисовало
/// форму панели 342x177.
private var glassFormApplied: DictationHUDGlassForm?
private var glassSizeApplied: CGSize = .zero
private var currentContent: DictationHUDContent? private var currentContent: DictationHUDContent?
private var pendingContent: DictationHUDContent? private var pendingContent: DictationHUDContent?
private var pendingHintLines: [String]? private var pendingHintLines: [String]?
@@ -1632,17 +1642,23 @@ final class DictationHUDPanelSurface: NSObject, DictationHUDSurface, DictationHU
glassTo = shape glassTo = shape
glassProgress = 1 glassProgress = 1
stack.apply(shape, animated: false) stack.apply(shape, animated: false)
} else if restProgress != restTarget { glassFormApplied = .transcript
glassSizeApplied = stack.bounds.size
} else if restProgress != restTarget
|| glassFormApplied != dictationHUDGlassForm(for: currentContent?.stage ?? .resting)
|| glassSizeApplied != stack.bounds.size {
// Пока окно СЖИМАЕТСЯ или РАСТЁТ, форму ведёт его размер, а не // Пока окно СЖИМАЕТСЯ или РАСТЁТ, форму ведёт его размер, а не
// интерполяция форм: обе формы тут - пилюля во всё окно, и // интерполяция форм: обе формы тут - пилюля во всё окно, и
// считать её от прошлого кадра значит отставать на кадр. // считать её от прошлого кадра значит отставать на кадр.
let stage = currentContent?.stage ?? .resting let stage = currentContent?.stage ?? .resting
let shape = dictationHUDGlassShape(form: dictationHUDGlassForm(for: stage), let form = dictationHUDGlassForm(for: stage)
in: stack.bounds.size) let shape = dictationHUDGlassShape(form: form, in: stack.bounds.size)
glassFrom = nil glassFrom = nil
glassTo = shape glassTo = shape
glassProgress = 1 glassProgress = 1
stack.apply(shape, animated: false) stack.apply(shape, animated: false)
glassFormApplied = form
glassSizeApplied = stack.bounds.size
} }
} }
+12 -3
View File
@@ -148,13 +148,22 @@ public func dictationHistoryPreview(_ text: String,
/// имя как есть: соврать про время записи нельзя, а найти её по имени /// имя как есть: соврать про время записи нельзя, а найти её по имени
/// каталога владелец сможет. /// каталога владелец сможет.
public func dictationHistoryTimeLabel(_ label: String, public func dictationHistoryTimeLabel(_ label: String,
locale: Locale = Locale(identifier: "ru_RU"), locale: Locale? = nil,
timeZone: TimeZone = .current) -> String { timeZone: TimeZone = .current) -> String {
guard let date = dictationHistoryDate(label) else { return label } guard let date = dictationHistoryDate(label) else { return label }
let out = DateFormatter() let out = DateFormatter()
out.locale = locale // Язык интерфейса, а не прибитый ru_RU. Даты оставались русскими в
// китайском окне: «3 сентября, 10:20» посреди 字符 и 拷贝. Подставленная
// локаль остаётся доводом для тестов - они проверяют формат, а не язык.
let lokal = locale ?? Locale(identifier: irizCurrentLanguage().localeIdentifier)
out.locale = lokal
out.timeZone = timeZone out.timeZone = timeZone
out.dateFormat = "d MMMM, HH:mm" // Шаблон, а не жёсткий порядок. «d MMMM, HH:mm» - русский порядок слов, и
// по-китайски выходило «3 九月, 10:20» вместо «9月3日 10:20». Шаблон просит
// у системы те же части даты в порядке, принятом у языка.
out.dateFormat = DateFormatter.dateFormat(fromTemplate: "dMMMM HH:mm",
options: 0,
locale: lokal) ?? "d MMMM, HH:mm"
return out.string(from: date) return out.string(from: date)
} }
@@ -727,7 +727,7 @@ struct DictationHistoryView: View {
Button(L("history.copy", "Скопировать")) { model.onCopyRescue?() } Button(L("history.copy", "Скопировать")) { model.onCopyRescue?() }
.accessibilityLabel(L("history.copyHint", "Скопировать этот текст")) .accessibilityLabel(L("history.copyHint", "Скопировать этот текст"))
Spacer() Spacer()
Text("\(rescue.text.count) симв.") Text("\(rescue.text.count) \(L("history.charsShort", "симв."))")
.font(.system(size: 11)) .font(.system(size: 11))
.foregroundStyle(IRIZ_SUBTLE) .foregroundStyle(IRIZ_SUBTLE)
} }
@@ -760,7 +760,7 @@ struct DictationHistoryView: View {
.fill(Color(nsColor: DICTATION_HUD_WAVE_GREEN)) .fill(Color(nsColor: DICTATION_HUD_WAVE_GREEN))
.frame(width: 7, height: 7) .frame(width: 7, height: 7)
.accessibilityHidden(true) .accessibilityHidden(true)
Text("\(IRIZ_NAME) · надиктовки") Text("\(IRIZ_NAME) · \(L("history.windowTitle", "надиктовки"))")
.font(.system(size: 13, weight: .semibold)) .font(.system(size: 13, weight: .semibold))
Spacer(minLength: 8) Spacer(minLength: 8)
Text("\(model.entries.count)") Text("\(model.entries.count)")
@@ -867,10 +867,14 @@ struct DictationHistoryView: View {
HStack(spacing: 6) { HStack(spacing: 6) {
Text(dictationHistoryTimeLabel(entry.label)) Text(dictationHistoryTimeLabel(entry.label))
Text("·") Text("·")
Text("\(entry.displayText.count) симв.") Text("\(entry.displayText.count) \(L("history.charsShort", "симв."))")
} }
.font(.system(size: 11)) .font(.system(size: 11))
.foregroundStyle(isSelected ? AnyShapeStyle(.white.opacity(0.75)) : AnyShapeStyle(.secondary)) // Тот же довод, что строкой выше у заголовка: подсветка теперь
// тонированное стекло, а не сплошной акцент. Белый остался здесь
// от прежней заливки и на светлой теме читался как пропавшая
// строка - дата выделенной надиктовки была белым по светло-серому.
.foregroundStyle(.secondary)
} }
.frame(maxWidth: .infinity, alignment: .leading) .frame(maxWidth: .infinity, alignment: .leading)
.padding(.horizontal, 10) .padding(.horizontal, 10)
+12 -7
View File
@@ -13,6 +13,7 @@
// колбэке, проверить нечем, а зелёный гейт над непроверяемой логикой — гейт, // колбэке, проверить нечем, а зелёный гейт над непроверяемой логикой — гейт,
// который врёт. // который врёт.
import Foundation import Foundation
import IrizCore
/// Почему окно спасения не поднялось. Причина уходит в лог: молчание без /// Почему окно спасения не поднялось. Причина уходит в лог: молчание без
/// названной причины неотличимо от забытой ветки. /// названной причины неотличимо от забытой ветки.
@@ -95,20 +96,24 @@ struct DictationRescue: Equatable {
} }
/// Заголовок окна спасения. /// Заголовок окна спасения.
let DICTATION_RESCUE_TITLE = "Текст не попал в поле" ///
/// Вычисляется, а не хранится: константа берёт язык один раз при загрузке, и
/// окно оставалось русским после смены языка. Кадр витрины 07.09.2026 показал
/// это в лоб - кнопки китайские, заголовок русский.
var DICTATION_RESCUE_TITLE: String { L("rescue.title", "Текст не попал в поле") }
/// Что именно случилось — одной строкой, без жаргона вердиктов. /// Что именно случилось — одной строкой, без жаргона вердиктов.
func dictationRescueExplanation(for failure: TextInsertionFailure) -> String { func dictationRescueExplanation(for failure: TextInsertionFailure) -> String {
switch failure { switch failure {
case .insertionFailed: case .insertionFailed:
return "Не сработали обе попытки: ни через буфер обмена, ни прямым вводом." return L("rescue.bothFailed", "Не сработали обе попытки: ни через буфер обмена, ни прямым вводом.")
case .targetNeverRequestedText: case .targetNeverRequestedText:
return "Вставка ушла, но поле её не забрало. Текст цел — он здесь." return L("rescue.notTaken", "Вставка ушла, но поле её не забрало. Текст цел — он здесь.")
case .deliveryNotObservable: case .deliveryNotObservable:
// До окна этот класс не доходит (см. dictationRecoveryPresentation), но // До окна этот класс не доходит (см. dictationRecoveryPresentation), но
// ветка обязана быть честной: молчаливый провал в switch однажды выдаст // ветка обязана быть честной: молчаливый провал в switch однажды выдаст
// владельцу пустую строку вместо объяснения. // владельцу пустую строку вместо объяснения.
return "Текст ввели напрямую — подтвердить доставку было нечем." return L("rescue.notObservable", "Текст ввели напрямую — подтвердить доставку было нечем.")
} }
} }
@@ -130,11 +135,11 @@ enum DictationRescueRetryOutcome: String, Equatable {
func dictationRescueRetryNotice(_ outcome: DictationRescueRetryOutcome) -> String { func dictationRescueRetryNotice(_ outcome: DictationRescueRetryOutcome) -> String {
switch outcome { switch outcome {
case .unknownTarget: case .unknownTarget:
return "Непонятно, куда вставлять — приложение мы не запоминаем. Скопируйте текст." return L("rescue.unknownTarget", "Непонятно, куда вставлять — приложение мы не запоминаем. Скопируйте текст.")
case .focusDidNotReturn: case .focusDidNotReturn:
return "Фокус не вернулся в поле, вставлять было некуда. Скопируйте текст." return L("rescue.focusLost", "Фокус не вернулся в поле, вставлять было некуда. Скопируйте текст.")
case .notDelivered: case .notDelivered:
return "Поле снова не приняло вставку. Скопируйте и вставьте руками." return L("rescue.notDelivered", "Поле снова не приняло вставку. Скопируйте и вставьте руками.")
} }
} }
+1 -1
View File
@@ -1279,7 +1279,7 @@ public struct IrizSettingsView: View {
HStack(spacing: 6) { HStack(spacing: 6) {
Text(dictationHistoryTimeLabel(entry.label)) Text(dictationHistoryTimeLabel(entry.label))
Text("·") Text("·")
Text("\(entry.displayText.count) симв.") Text("\(entry.displayText.count) \(L("history.charsShort", "симв."))")
} }
.font(.footnote) .font(.footnote)
.foregroundStyle(IRIZ_SUBTLE) .foregroundStyle(IRIZ_SUBTLE)
+4 -4
View File
@@ -93,19 +93,19 @@ Every surface here was captured from the live app by an instrument: `iriz --capt
### The plate ### The plate
<p align="center"><img src="assets/shots/plate-resting-light.png" alt="A small glass drop at the bottom of the screen with a thin green line inside" width="45%"></p> <p align="center"><img src="assets/shots/plate-resting-dark.png" alt="A small glass drop at the bottom of the screen with a thin green line inside and a soft glow around its edge" width="45%"></p>
This is how it looks while you are silent. The drop floats above any window and does nothing. This is how it looks while you are silent. The drop floats above any window and does nothing.
<p align="center"><img src="assets/shots/plate-listening-light.png" alt="The plate while recording: a green sound wave runs inside the glass" width="70%"></p> <p align="center"><img src="assets/shots/plate-listening-dark.png" alt="The plate while recording: a wide capsule with a green sound wave running inside the glass" width="70%"></p>
And this is how it looks while you talk. The wave inside the glass is the answer to «can it hear me». And this is how it looks while you talk. The wave inside the glass is the answer to «can it hear me».
<p align="center"><img src="assets/shots/plate-hover-light.png" alt="The plate opened into a row of six round buttons: microphone, prompt, translate, RU, history, settings" width="100%"></p> <p align="center"><img src="assets/shots/plate-hover-dark.png" alt="The plate opened into a row of six round buttons: microphone, prompt, translate, RU, history, settings" width="100%"></p>
Point at it with the mouse and the drop opens into a row of buttons: record, prompt, translate, language, history, settings. You can drag the plate; it snaps to one of twelve spots along the edges of the screen. Point at it with the mouse and the drop opens into a row of buttons: record, prompt, translate, language, history, settings. You can drag the plate; it snaps to one of twelve spots along the edges of the screen.
<p align="center"><img src="assets/shots/plate-open-text-light.png" alt="The expanded panel: text on a solid card, a Copy button, a close cross and a row of buttons below" width="100%"></p> <p align="center"><img src="assets/shots/plate-open-text-dark.png" alt="The expanded panel: text on a solid card, a Copy button, a close cross and a row of buttons below" width="100%"></p>
A click opens the panel with the text. There are three ways out: the cross, Escape, and a click past the buttons. A click opens the panel with the text. There are three ways out: the cross, Escape, and a click past the buttons.
+4 -4
View File
@@ -108,19 +108,19 @@
### Плашка ### Плашка
<p align="center"><img src="assets/shots/plate-resting-light.png" alt="Маленькая стеклянная капля внизу экрана, внутри тонкая зеленая черта" width="45%"></p> <p align="center"><img src="assets/shots/plate-resting-dark.png" alt="Маленькая стеклянная капля внизу экрана, внутри тонкая зеленая черта, по контуру мягкое свечение" width="45%"></p>
Так она выглядит, пока вы молчите. Капля висит поверх любого окна и ничего не делает. Так она выглядит, пока вы молчите. Капля висит поверх любого окна и ничего не делает.
<p align="center"><img src="assets/shots/plate-listening-light.png" alt="Плашка на записи: внутри стекла бежит зеленая звуковая волна" width="70%"></p> <p align="center"><img src="assets/shots/plate-listening-dark.png" alt="Плашка на записи: широкая капсула, внутри стекла бежит зеленая звуковая волна" width="70%"></p>
Так — пока вы говорите. Волна внутри стекла и есть ответ на вопрос «слышит ли меня». Так — пока вы говорите. Волна внутри стекла и есть ответ на вопрос «слышит ли меня».
<p align="center"><img src="assets/shots/plate-hover-light.png" alt="Плашка раскрыта в ряд из шести круглых кнопок: микрофон, промпт, перевод, RU, история, настройки" width="100%"></p> <p align="center"><img src="assets/shots/plate-hover-dark.png" alt="Плашка раскрыта в ряд из шести круглых кнопок: микрофон, промпт, перевод, RU, история, настройки" width="100%"></p>
Наведите мышь — капля раскроется в ряд кнопок: запись, промпт, перевод, язык, история, настройки. Плашку можно перетащить, она примагнитится к одному из двенадцати мест по краям экрана. Наведите мышь — капля раскроется в ряд кнопок: запись, промпт, перевод, язык, история, настройки. Плашку можно перетащить, она примагнитится к одному из двенадцати мест по краям экрана.
<p align="center"><img src="assets/shots/plate-open-text-light.png" alt="Раскрытая панель плашки: текст на плотной подложке, кнопка «Скопировать», крестик и ряд кнопок внизу" width="100%"></p> <p align="center"><img src="assets/shots/plate-open-text-dark.png" alt="Раскрытая панель плашки: текст на плотной подложке, кнопка «Скопировать», крестик и ряд кнопок внизу" width="100%"></p>
Щелчок раскрывает панель с текстом. Выйти можно тремя способами: крестиком, клавишей Escape и щелчком мимо кнопок. Щелчок раскрывает панель с текстом. Выйти можно тремя способами: крестиком, клавишей Escape и щелчком мимо кнопок.
+4 -4
View File
@@ -103,19 +103,19 @@
### 浮窗 ### 浮窗
<p align="center"><img src="assets/shots/plate-resting-light.png" alt="屏幕下方一颗小小的玻璃水滴,里面有一条细细的绿线" width="45%"></p> <p align="center"><img src="assets/shots/plate-resting-dark.png" alt="屏幕底部一枚小小的玻璃水滴,里面有一条细细的绿线,边缘泛着柔和的光晕" width="45%"></p>
你不说话时它就是这样。水滴浮在任何窗口之上,什么也不做。 你不说话时它就是这样。水滴浮在任何窗口之上,什么也不做。
<p align="center"><img src="assets/shots/plate-listening-light.png" alt="录音中的浮窗:绿色声波在玻璃内部流动" width="70%"></p> <p align="center"><img src="assets/shots/plate-listening-dark.png" alt="录音中的浮窗:一枚宽宽的胶囊,绿色的声波在玻璃里流动" width="70%"></p>
你说话时是这样。玻璃里的声波就是“它有没有听见我”的答案。 你说话时是这样。玻璃里的声波就是“它有没有听见我”的答案。
<p align="center"><img src="assets/shots/plate-hover-light.png" alt="浮窗展开成一排六个圆形按钮:麦克风、提示词、翻译、RU、历史、设置" width="100%"></p> <p align="center"><img src="assets/shots/plate-hover-dark.png" alt="浮窗展开成一排六个圆形按钮:麦克风、提示词、翻译、RU、历史、设置" width="100%"></p>
把鼠标移上去,水滴会展开成一排按钮:录音、提示词、翻译、语言、历史、设置。浮窗可以拖动,会吸附到屏幕边缘十二个位置之一。 把鼠标移上去,水滴会展开成一排按钮:录音、提示词、翻译、语言、历史、设置。浮窗可以拖动,会吸附到屏幕边缘十二个位置之一。
<p align="center"><img src="assets/shots/plate-open-text-light.png" alt="展开的面板:文字在实心卡片上,有“拷贝”按钮、关闭叉号和下方一排按钮" width="100%"></p> <p align="center"><img src="assets/shots/plate-open-text-dark.png" alt="展开的浮窗面板:文字放在实心卡片上,下方是复制按钮、关闭叉号和一排按钮" width="100%"></p>
点一下会展开带文字的面板。有三种关法:叉号、Escape,以及点在按钮以外的地方。 点一下会展开带文字的面板。有三种关法:叉号、Escape,以及点在按钮以外的地方。
Binary file not shown.

Before

Width:  |  Height:  |  Size: 220 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 212 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 147 KiB

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 KiB

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 69 KiB

Before

Width:  |  Height:  |  Size: 202 KiB

After

Width:  |  Height:  |  Size: 202 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Before

Width:  |  Height:  |  Size: 193 KiB

After

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 181 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 81 KiB

File diff suppressed because it is too large Load Diff
+3830 -3696
View File
File diff suppressed because it is too large Load Diff
+115
View File
@@ -0,0 +1,115 @@
#!/bin/bash
# Ворота целостности плашки: снятая форма помещается в свой кадр целиком.
#
# Владелец 07.09.2026, глядя на страницу знакомства: «вот тут, например, есть
# сломанная плашка, а на втором вообще плашки нет». Причину нашёл замер: панель
# расшифровки закрывалась, окно уже стояло размером капсулы, морф не шёл - и
# форму стекла никто не переприменял. Стекло оставалось прямоугольником панели
# 342x177 внутри окна 144x57, и окно резало его по кромке.
#
# Спорить с «плашка выглядит сломанной» глазами нельзя, поэтому здесь замер:
# свечение по контуру обязано иметь поле до края кадра. Кадр снимается по окну
# плюс поле, значит контур у самой кромки означает ровно одно - форму обрезало.
#
# scripts/plate_whole_gate.sh снять и проверить все статичные формы
# scripts/plate_whole_gate.sh --selftest проверка самих ворот
set -uo pipefail
cd "$(dirname "$0")/.."
APP=./.build/release/IrizApp
# Формы БЕЗ переноса: сцена переноса снимает весь экран, у неё других правил.
FORMY="plate-resting-light plate-resting-dark plate-hover-light plate-hover-dark
plate-listening-light plate-listening-dark plate-listening-hover-light
plate-listening-hover-dark plate-recognizing-light plate-recognizing-dark
plate-open-empty-light plate-open-empty-dark plate-open-text-light
plate-open-text-dark plate-inserted-light plate-inserted-dark
plate-failed-light plate-failed-dark"
proverit() {
python3 - "$1" <<'PYCHK'
import statistics
import sys
from PIL import Image
# Кромка кадра обязана быть подложкой и только подложкой. Судим не по цвету
# контура (он зависит от палитры владельца), а по ОТКЛОНЕНИЮ от самой кромки:
# подложка - плавный градиент, её разброс мал. Замер 07.09.2026 на целых
# кадрах: максимум 13 из 255. Порог 30 держит запас вдвое и ловит любой контур.
POLE = 3
PREDEL = 30
NADO = 8
im = Image.open(sys.argv[1]).convert("RGB")
w, h = im.size
tochki = []
for x in range(w):
for y in list(range(POLE)) + list(range(h - POLE, h)):
tochki.append(im.getpixel((x, y)))
for y in range(h):
for x in list(range(POLE)) + list(range(w - POLE, w)):
tochki.append(im.getpixel((x, y)))
sredina = tuple(statistics.median([p[i] for p in tochki]) for i in range(3))
chuzhie = [p for p in tochki if max(abs(p[i] - sredina[i]) for i in range(3)) > PREDEL]
if len(chuzhie) >= NADO:
print(f"на кромке {len(chuzhie)} чужих точек при подложке {tuple(int(v) for v in sredina)}")
sys.exit(1)
sys.exit(0)
PYCHK
}
if [ "${1:-}" = "--selftest" ]; then
TMP=$(mktemp -d); trap 'rm -rf "$TMP"' EXIT
ok=0
python3 - "$TMP" <<'PYGEN'
import sys
from PIL import Image, ImageDraw
d = sys.argv[1]
# Честный кадр: контур с полем до края.
chesno = Image.new("RGB", (200, 100), (232, 234, 238))
ImageDraw.Draw(chesno).rounded_rectangle([20, 20, 179, 79], radius=30, outline=(90, 200, 120), width=3)
chesno.save(f"{d}/chesno.png")
# Порченый: тот же контур, но упирается в кромку.
porcheno = Image.new("RGB", (200, 100), (232, 234, 238))
ImageDraw.Draw(porcheno).rounded_rectangle([0, 0, 199, 99], radius=30, outline=(90, 200, 120), width=3)
porcheno.save(f"{d}/porcheno.png")
PYGEN
if proverit "$TMP/chesno.png" >/dev/null; then
echo " OK целая форма принята"
else
echo "ПРОВАЛ: целая форма отвергнута"; ok=1
fi
if proverit "$TMP/porcheno.png" >/dev/null; then
echo "ПРОВАЛ: обрезанная форма не поймана"; ok=1
else
echo " OK обрезанная форма отвергнута"
fi
[ $ok -eq 0 ] && echo "SELFTEST OK"
exit $ok
fi
if [ ! -x "$APP" ]; then
echo "ВОРОТА ЦЕЛОСТНОСТИ: нет сборки $APP" >&2
echo "собери: swift build -c release --product IrizApp" >&2
exit 2
fi
KADRY=$(mktemp -d); trap 'rm -rf "$KADRY"' EXIT
# Небундленный бинарь: у Iriz.app своя запись в «Записи экрана», подпись меняется
# на каждой сборке, и screencapture молча отказывает бандлу.
"$APP" --capture-plate "$KADRY" >/dev/null 2>&1 || {
echo "ВОРОТА ЦЕЛОСТНОСТИ: съёмка не удалась" >&2; exit 1; }
FAIL=0
for forma in $FORMY; do
if [ ! -f "$KADRY/$forma.png" ]; then
echo " НЕТ КАДРА $forma"; FAIL=1; continue
fi
if out=$(proverit "$KADRY/$forma.png"); then
echo " OK $forma"
else
echo " ОБРЕЗАНА $forma: $out"; FAIL=1
fi
done
[ $FAIL -eq 0 ] && echo "ВОРОТА ЦЕЛОСТНОСТИ: все формы целиком в кадре"
exit $FAIL
+8
View File
@@ -41,6 +41,14 @@ echo "=== ворота постоянства плашки ==="
# его уже собрали, поэтому ворота стоят после них. # его уже собрали, поэтому ворота стоят после них.
bash scripts/hud_always_on_gate.sh || FAIL=1 bash scripts/hud_always_on_gate.sh || FAIL=1
echo
echo "=== ворота целостности плашки ==="
# Форма обязана помещаться в своё окно целиком. Стекло оставалось формой
# закрытой панели, окно резало его по кромке, и владелец видел «сломанную
# плашку» - на кадре витрины и на своём экране. Глазами это ловилось раз в
# несколько дней, замером ловится каждым прогоном.
bash scripts/plate_whole_gate.sh || FAIL=1
echo echo
echo "=== уборка ===" echo "=== уборка ==="
# Убирает, а не докладывает: тесты заводят домены настроек, а cfprefsd # Убирает, а не докладывает: тесты заводят домены настроек, а cfprefsd