On Tue, Jun 5, 2012 at 12:45 AM, Tom Bachmann <[email protected]> wrote: > On 04.06.2012 22:34, Sergiu Ivanov wrote: >> >> On Mon, Jun 4, 2012 at 11:45 PM, Tom Bachmann<[email protected]> wrote: >>> >>> What about rolling our own platform-aware escape sequences? The only >>> printer >>> I would think needs boldface is "pretty", and there we deal with various >>> available unicode characters etc already. So it would seem a sensible >>> place >>> to add more platform-dependent stuff. >> >> >> That sounds quite reasonable, if a use-case is brought about which is >> not already addressed by what Stefan said. >> > > Well, I had assumed you had a use-case in mind ;).
Well, I want the letters which represent categories to show in bold :-D >From what I know, boldface usage is rather widely used in maths textbooks to refer to a wild variety of stuff: vectors, categories, operators, big things which contain/influence small things denoted with similar letters, etc. This leaves with quite a number of default use-cases up my sleeve :-) However, just as vectors, operators, and other stuff I've mentioned are doing perfectly without boldface in SymPy now, I guess categories can cope without it as well. Thus, the central question is whether having bold output in terminal pretty printing is something worth having (keeping in mind the burden of maintenance as well) or not. >> The poor man's solution would be to stuff in the control sequences >> which work in the majority of Linux terminals and just do nothing when >> a different type of terminal is detected. >> > > To be clear: if this improves the output in the majority of cases, I think > it is a very reasonable solution. Well, I am not aware of the distribution of SymPy audience across platforms. However, [0] says that at least on FreeBSD one can use the same control sequences as on Linux and [1] seems to state that Cygwin is capable of emulating yet the same control sequences. Thus, by adding some simple codes as shown in [2] we may cover a sufficiently wide class of use cases. Obviously, I am making baseless assumptions, so I may be very wrong. Sergiu [0] http://bsdrocks.com/content/bold-italic-and-underlined-font-unix-terminal [1] http://stackoverflow.com/questions/565497/in-cygwin-how-do-i-change-the-font-color [2] http://justlinux.com/forum/archive/index.php/t-107493.html -- You received this message because you are subscribed to the Google Groups "sympy" group. 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/sympy?hl=en.
