Hi Simon, On Sun, Apr 18, 2010 at 12:04 AM, Simon King <[email protected]> wrote:
<SNIP> > Do you mean *once* on top of the file? Or is it something that I have > to insert in (or in front of) any doc string? Some files in the Sage library have character declarations. For example, see the following files: sage/misc/interpreter.py sage/rings/polynomial/multi_polynomial_ideal.py sage/schemes/elliptic_curves/padic_lseries.py sage/schemes/elliptic_curves/ell_rational_field.py sage/schemes/elliptic_curves/modular_parametrization.py sage/schemes/elliptic_curves/BSD.py sage/schemes/elliptic_curves/gal_reps.py sage/schemes/elliptic_curves/sha_tate.py sage/server/notebook/colorize.py sage/server/notebook/template.py > And actually I doubt that Sage would swallow the Umlaut. This is what > I just got on Sage-math, entering a line from the last example of > http://www.sagemath.org/doc/reference/sagenb/notebook/template.html : > sage: u = unicode('Are Gröbner bases awesome?','utf-8') That works OK for me: [mv...@sage ~]$ sage ---------------------------------------------------------------------- | Sage Version 4.3.5, Release Date: 2010-03-28 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- sage: from sagenb.notebook.template import template sage: u = unicode('Are Gröbner bases awesome?','utf-8') sage: s = template(os.path.join('html', 'yes_no.html'), message=u) sage: 'Gröbner' in s.encode('utf-8') True -- Regards Minh Van Nguyen -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
