On Thu, Jun 01, 2017 at 11:49:43AM +0200, Victor Stinner wrote:
> How do you write π (pi) with a keyboard on Windows, Linux or macOS?

Use the compose key 🙌

for linux: https://help.ubuntu.com/community/ComposeKey
for windows: https://github.com/SamHocevar/wincompose
for macosx: http://lol.zoy.org/blog/2012/06/17/compose-key-on-os-x

Then I wrote my own ~/.XCompose file with:

<Multi_key> <asterisk> <p>                                : "π"   U03C0  # 
GREEK SMALL LETTER PI

so it's like the vim digraphs.

Cheers,

-- 
zmo
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to