provide completions for Unicode symbols names.
See original GitHub issueWe provide latex completions like \alpha<tab>
, but also thing like \CYRILLIC SMALL LETTER BE
.
It would be nice that \CYR<tab>
were to show suggestion for all the cyrillic letters.
One could use something like:
import unicodedata
names = []
for c in range(0, 0x10FFFF + 1):
try:
names.append(unicodedata.name(chr(c)))
except ValueError:
pass
# Do something with names
But only on valid identifiers, or things that combine into valid identifiers.
Issue Analytics
- State:
- Created 5 years ago
- Comments:17 (17 by maintainers)
Top Results From Across the Web
Lazy load unicode names by zzzz-qq · Pull Request #11693
Lazy load unicode names when they are used first time rather than when ipython startup. ... provide completions for Unicode symbols names. #11449....
Read more >Unicode variable names - Rosetta Code
Variables are symbols and symbol names can be any string. Source code .el files can have all usual Emacs coding system specifications to...
Read more >Unicode Latex - Visual Studio Marketplace
Unicode Latex for vscode. A visual studio code extension that allows the insertion of unicode symbols from the latex names of those symbols....
Read more >How to Insert Unicode Characters in Neovim/Vim - jdhao
The native way to insert a Unicode character is via Ctrl + V . In insert mode, we first press Ctrl + V...
Read more >Tip: easy input of math/unicode symbols - Google Groups
Since Sage uses Python 3, we can finally use unicode symbols for variables: ... that still don't work the user can provide the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
After some profiling, I found this implementation may be blame for the slow startup of IPython. A simple test on my computer:
Then comment the following code IPython/core/completer.py#L171,test again. IPython startup time reduced from 1.683s to 0.658s, a significantly improved!
0x10FFFF
is a larger loop, larger than one million, it may be better to load unicode names lazily whenfwd_unicode_match
is called first time. I have created a PR #11693 for it @CarreauNo need to apologize, most of the people here are volunteers, so we go at our own pace. If this takes several month to be implemented it is ok. The most important is for you to like contributing and what you are doing and learn.