IDLE: add a Unicode character browser
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Feature or enhancement
IDLE has no way to browse or search for a Unicode character. Inserting one requires already knowing its code point (and typing an escape) or pasting it from another application.
Besides making characters easy to insert, such a tool is useful for learning about Unicode — exploring blocks, looking up a character's name, category, and other properties, and seeing how it is written as an escape, as UTF-8 bytes, as an XML or HTML reference, and in the normalization forms.
I propose a Character Browser, similar to KDE's kcharselect and GNOME Characters, added as a CharSelect extension on the Edit menu (available in both the Shell and the editor).
Features:
- A grid of Unicode blocks selected from a drop-down, scrollable, with hover and selection highlight.
- Search by character name substring, or by code point in many notations:
U+2764,0x2764,❤,❤, a bare hex/decimal number,\u/\U/\x/\N{...}/simple escapes, surrogate pairs, and a UTF-8 byte escape run. - A detail panel with three tabs: an Overview (name, code point, decimal), a Repr tab (literal, Python escape, UTF-8 bytes, surrogate pair, XML and HTML references,
\N{...}), and a Unicode tab (block, category, bidi, combining, East Asian width, mirrored, decomposition, numeric values, and normalization forms). - Insert the character at the cursor of the editor or Shell (replacing any selection, and staying within the Shell's input area), or Copy it to the clipboard. Double-clicking a character in the grid inserts it.
- On the detail tabs, clicking a value copies it and double-clicking inserts it.
When opened with an editor selection, the browser seeds the search with it.
A PR will follow.
Related (not a duplicate): #80648 (help with invisible characters).
Linked PRs
- gh-152945
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、IDLE の Edit メニューに提案されている CharSelect 拡張と、リンクされている PR gh-152945 を確認します。Shell とエディターの両方について、Unicode のブラウジング、検索、詳細表示、挿入、コピーに関して列挙された要件と実装を比較します。完了とは、合意されたスコープが実装され、検証されていることを意味します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- desktop
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100