sage and emacs (and unicode)

78 views
Skip to first unread message

Martin R

unread,
Oct 22, 2019, 6:22:43 AM10/22/19
to sage-devel
This is, superficially, a support question for a minor problem with emacs and sage-shell-mode (and therefore possibly off topic, please excuse).  However, in truth the problem is slightly deeper.

The superficial problem at hand is that unicode_art produces garbled output on my emacs (I am running GNU Emacs 24.5.1, which is admittedly old).

I am not sure how I can best describe the problem, so I attached a screenshot: of the output of

sage: unicode_art(SkewPartitions(3).list())

The deeper problem is, that sage-shell-mode (which is mostly wonderful), is not really maintained anymore.  The git repository is https://github.com/sagemath/sage-shell-mode.

For example, there is a pull request with a one-line fix by Frederic Chapoton (thank you!), which is sitting there since a month.

Are there any emacs experts out there?  Should sage-shell-mode become a part of sagemath, to make maintainance easier?

Martin
emacs_unicode.png

Frédéric Chapoton

unread,
Oct 22, 2019, 9:45:54 AM10/22/19
to sage-devel
Did you try to change the font in emacs until finding a correct font with constant width ?

Martin R

unread,
Oct 22, 2019, 11:09:20 AM10/22/19
to sage-devel
Thank you! I didn't realise that a font might not be properly monospace!

("Noto Mono Regular" is beautiful, but doesn't work - "monospace regular" seems to work correctly, although it is not as nice to my eyes :-)

Emmanuel Charpentier

unread,
Oct 23, 2019, 4:25:29 PM10/23/19
to sage-devel
The problem is a tad larger, as illustrated in this age-shell-mode issue... It probably is a small patch to do (an oversight of strr<--> unicode conversion, revealed by our switch to Python3...)


Le mardi 22 octobre 2019 12:22:43 UTC+2, Martin R a écrit :

Emmanuel Charpentier

unread,
Oct 23, 2019, 4:34:42 PM10/23/19
to sage-devel
BTW, the original creator of sage-shell-mode (someone calling himself "skatemori" on Github) seems to have dropped out of github at the end of Winter 2018. As a corollary, another of ios Sage-related projects ob-sagemath, is no longer maintained. Hence, another issue against this package has no solution.

Could we consider to fork it under the Sage umbrella ?
Reply all
Reply to author
Forward
0 new messages