[sage-devel] Re: Tip: easy input of math/unicode symbols

2020-07-11 Thread Matthias Koeppe
I have created Meta-ticket https://trac.sagemath.org/ticket/30111 for keeping track of Unicode issues. On Friday, February 21, 2020 at 8:09:36 AM UTC-8, Nicolas M. Thiéry wrote: > >Hi, > > Since Sage uses Python 3, we can finally use unicode symbols for > variables: > > sage: Φ

[sage-devel] Re: Tip: easy input of math/unicode symbols

2020-03-07 Thread rjf
Consider the consequences to a parser when there are multiple forms of what appear to be (say) "+" or "space" or "A" (is that a capital alpha?) .. Selecting Greek or other symbols from a palette might be cute. Freeform input of unicode, probably a bag of worms. RJF On Friday, February 21, 20

Re: [sage-devel] Re: Tip: easy input of math/unicode symbols

2020-02-26 Thread Dima Pasechnik
On Wed, Feb 26, 2020 at 4:23 AM Emmanuel Charpentier wrote: > > > > Le mercredi 26 février 2020 07:16:19 UTC+1, William a écrit : >> >> Make sure to benchmark the speed of luatex for this application, since in my >> experience it can be significantly slower than the other tex engines... > > > Ind

Re: [sage-devel] Re: Tip: easy input of math/unicode symbols

2020-02-26 Thread Emmanuel Charpentier
Le mercredi 26 février 2020 07:16:19 UTC+1, William a écrit : > > Make sure to benchmark the speed of luatex for this application, since in > my experience it can be significantly slower than the other tex engines... Indeed. But this slowdown seems to be in large part bound to the building of

Re: [sage-devel] Re: Tip: easy input of math/unicode symbols

2020-02-25 Thread William
Make sure to benchmark the speed of luatex for this application, since in my experience it can be significantly slower than the other tex engines... -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving

Re: [sage-devel] Re: Tip: easy input of math/unicode symbols

2020-02-24 Thread Emmanuel Charpentier
Le dimanche 23 février 2020 22:51:35 UTC+1, Nicolas M. Thiéry a écrit : [ Snip... ] Gosh. In 2020, more than 20 years into unicode, our tool chain really > ought to support unicode ... Time to move on to xelatex for building > our pdf? > The current "line of the Party" seems to be that the fu

Re: [sage-devel] Re: Tip: easy input of math/unicode symbols

2020-02-23 Thread Nicolas M. Thiery
On Fri, Feb 21, 2020 at 11:39:31AM -0800, Emmanuel Charpentier wrote: > A similar bag of tricks is available to users of sage-shell-mode in emacs, > using TeX Input Method or > one of its possible customizations. Cool! I really need to update my s

[sage-devel] Re: Tip: easy input of math/unicode symbols

2020-02-23 Thread Nicolas M. Thiery
> A rather big caveat though: one can easily input all the usual math > glyphs (mathbb, mathfrak, ...) of a character. However they all are > considered as equal by Python itself: > > sage: \mbfN > sage: 𝐍 > > sage: N > For the curious: Python uses the

[sage-devel] Re: Tip: easy input of math/unicode symbols

2020-02-22 Thread Simon King
On 2020-02-22, Emmanuel Charpentier wrote: > Le samedi 22 février 2020 14:35:49 UTC+1, Eric Gourgoulhon a écrit : >> A solution here is to declare explicitly the LaTeX name of the symbolic >> variable at creation, as we did when using only ASCII names: >> > > Of course. but this somehow defeats t

[sage-devel] Re: Tip: easy input of math/unicode symbols

2020-02-22 Thread Emmanuel Charpentier
Le samedi 22 février 2020 14:35:49 UTC+1, Eric Gourgoulhon a écrit : > > Hi Emmanual, > > > Le vendredi 21 février 2020 20:39:31 UTC+1, Emmanuel Charpentier a écrit : >> >> But such variable names may cause havoc in a \LaTeX output. Consider: >> >> sage: var("λ") >> λ >> >> This works >> >> sage:

[sage-devel] Re: Tip: easy input of math/unicode symbols

2020-02-22 Thread Eric Gourgoulhon
Hi Emmanual, Le vendredi 21 février 2020 20:39:31 UTC+1, Emmanuel Charpentier a écrit : > > But such variable names may cause havoc in a \LaTeX output. Consider: > > sage: var("λ") > λ > > This works > > sage: latex(λ^2) > λ^{2} > > Ahem: the rendition of λ is ... "λ", which pdflatex doesn't acce

[sage-devel] Re: Tip: easy input of math/unicode symbols

2020-02-21 Thread Emmanuel Charpentier
Who would do that ? You ? And which 73 others ? Unicode is Hge... Seriously : Such a proposal couldn't stop to "just" the "customary" single-letter greek variable names we are used to and think of first. There is no a priori valid reason to accept them and refuse, for example, hebrew or cy

[sage-devel] Re: Tip: easy input of math/unicode symbols

2020-02-21 Thread Simon King
On 2020-02-21, Simon King wrote: > Hi Emmanuel, > > On 2020-02-21, Emmanuel Charpentier wrote: >> sage: latex(λ^2) >> λ^{2} > > Couldn't we modify the latex() function, by exploiting > IPython.core.completer.reverse_latex_symbol, to automatically translate > all unicode symbols that aren't unders

[sage-devel] Re: Tip: easy input of math/unicode symbols

2020-02-21 Thread Simon King
Hi Emmanuel, On 2020-02-21, Emmanuel Charpentier wrote: > sage: latex(λ^2) > λ^{2} Couldn't we modify the latex() function, by exploiting IPython.core.completer.reverse_latex_symbol, to automatically translate all unicode symbols that aren't understood by pdflatex? Best regards, Simon -- You

[sage-devel] Re: Tip: easy input of math/unicode symbols

2020-02-21 Thread Emmanuel Charpentier
A similar bag of tricks is available to users of sage-shell-mode in emacs, using TeX Input Method or one of its possible customizations. But such variable names may cause havoc in a \LaTeX output. Consider: sage: var("λ") λ This works sage: lat