#18357: Unicode Art
-------------------------------------+-------------------------------------
       Reporter:  vbraun             |        Owner:
           Type:  enhancement        |       Status:  needs_info
       Priority:  major              |    Milestone:  sage-6.8
      Component:  user interface     |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Volker Braun       |    Reviewers:  Vincent Delecroix
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/vdelecroix/18357                 |  161c0daca2f4a4752725225dfb9238ffc9692ddf
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by vdelecroix):

 8. Don't we want a deprecation warning?
 {{{
 sage: import sage.misc.ascii_art
 Traceback (most recent call last):
 ...
 ImportError: No module named ascii_art
 }}}
   people might have used this feature in their own code.

 9. In the Sage notebook, doing
 {{{
 unicode_art(list(DyckWords(1).list()))
 }}}
   or
 {{{
 ascii_art(list(DyckWords(1).list()))
 }}}
   I got
 {{{
 .../sage/typeset/character_art.py:280: UserWarning:
 the console size is smaller than the prettyrepresentation
 of the object "representation of the object")
 }}}
   I guess that the width of the screen is not properly detected. Indeed
 (still in the Sage notebook)
 {{{
 sage: from sage.typeset.character_art import CharacterArt
 sage: c = CharacterArt()
 sage: c._terminal_width()
 0
 }}}
   I think that this `_terminal_width` should be somewhere else as the
 `CharacterArt` by itself should not be aware of the output device. What do
 you think?

--
Ticket URL: <http://trac.sagemath.org/ticket/18357#comment:31>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to