sagemath / cloud

*MOVED TO* https://github.com/sagemathinc/cocalc
https://cocalc.com
Other
137 stars 31 forks source link

Add keyboard shortcuts for symbols #185

Open kcrisman opened 9 years ago

kcrisman commented 9 years ago

From one of the TAs at AIMS - apparently in some software (e.g. Mma, but probably others) there are escape sequences/shortcuts that can be used to get non-ASCII variable names easily. The example was "Esc, eta, Esc" giving Eta in Mma.

Implementing this in the sagenb is probably too ambitious at this point, but maybe in a .sagews this wouldn't be a bad idea. Or something analogous that is more 'native' to SMC. Anyway, an idea.

williamstein commented 9 years ago

On Thu, Jan 8, 2015 at 9:53 AM, kcrisman notifications@github.com wrote:

From one of the TAs at AIMS - apparently in some software (e.g. Mma, but probably others) there are escape sequences/shortcuts that can be used to get non-ASCII variable names easily. The example was "Esc, eta, Esc" giving Eta in Mma.

Unfortunately, Python2 doesn't support non-ascii variable names.

Implementing this in the sagenb is probably too ambitious at this point, but maybe in a .sagews this wouldn't be a bad idea. Or something analogous that is more 'native' to SMC. Anyway, an idea.

Reply to this email directly or view it on GitHub https://github.com/sagemath/cloud/issues/185.

William Stein Professor of Mathematics University of Washington http://wstein.org

kcrisman commented 9 years ago

Hmm, but maybe the variable name could still be ascii but the visual version for the user (including cut-and-paste) could be non-ascii? Just brainstorming.

haraldschilly commented 9 years ago

summary: in the codecells of a sagews, dynamically replace all greek sounding variable names with a corresponding UTF-8 symbol. I'm not sure how well that works, but it's doable.

kcrisman commented 9 years ago

Well, it was just a suggestion from a user. Perhaps something one could switch on or off...