Did I find the right examples for you? yes no

All Samples(21)  |  Call(15)  |  Derive(0)  |  Import(6)
get symbology for a 'character'

        def xsym(sym):
    """get symbology for a 'character'"""
    op = _xsym[sym]

    if _use_unicode:
        return op[1]
    else:
        return op[0]
        


src/s/y/sympy-0.7.5/sympy/printing/pretty/pretty.py   sympy(Download)
 
from .stringpict import prettyForm, stringPict
from .pretty_symbology import xstr, hobj, vobj, xobj, xsym, pretty_symbol, \
    pretty_atom, pretty_use_unicode, pretty_try_use_unicode, greek_unicode, U, \
    annotated
    def _print_Relational(self, e):
        op = prettyForm(' ' + xsym(e.rel_op) + ' ')
 
        l = self._print(e.lhs)
        r = self._print(e.rhs)
    def _print_Morphism(self, morphism):
        arrow = xsym("-->")
 
        domain = self._print(morphism.domain)
        codomain = self._print(morphism.codomain)
    def _print_CompositeMorphism(self, morphism):
 
        circle = xsym(".")
 
        # All components of the morphism have names and it is thus
        pretty_result = self._print(diagram.premises)
        if diagram.conclusions:
            results_arrow = " %s " % xsym("==>")
 
            pretty_conclusions = self._print(diagram.conclusions)[0]

src/s/y/sympy-HEAD/sympy/printing/pretty/pretty.py   sympy(Download)
 
from .stringpict import prettyForm, stringPict
from .pretty_symbology import xstr, hobj, vobj, xobj, xsym, pretty_symbol, \
    pretty_atom, pretty_use_unicode, pretty_try_use_unicode, greek_unicode, U, \
    annotated
    def _print_Relational(self, e):
        op = prettyForm(' ' + xsym(e.rel_op) + ' ')
 
        l = self._print(e.lhs)
        r = self._print(e.rhs)
    def _print_Morphism(self, morphism):
        arrow = xsym("-->")
 
        domain = self._print(morphism.domain)
        codomain = self._print(morphism.codomain)
    def _print_CompositeMorphism(self, morphism):
 
        circle = xsym(".")
 
        # All components of the morphism have names and it is thus
        pretty_result = self._print(diagram.premises)
        if diagram.conclusions:
            results_arrow = " %s " % xsym("==>")
 
            pretty_conclusions = self._print(diagram.conclusions)[0]

src/s/y/sympy-polys-HEAD/sympy/printing/pretty/pretty.py   sympy-polys(Download)
from sympy import Interval
 
from pretty_symbology import xstr, hobj, vobj, xobj, xsym, pretty_symbol,\
        pretty_atom, pretty_use_unicode, pretty_try_use_unicode, greek
 
    def _print_Relational(self, e):
        op = prettyForm(' ' + xsym(e.rel_op) + ' ')
 
        l = self._print(e.lhs)
        r = self._print(e.rhs)

src/s/y/sympy-0.7.5/sympy/printing/pretty/stringpict.py   sympy(Download)
from __future__ import print_function, division
 
from .pretty_symbology import hobj, vobj, xsym, xobj, pretty_use_unicode
from sympy.core.compatibility import u, string_types, xrange
 
        result = [args]
        for arg in others:
            result.append(xsym('*'))
            #add parentheses for weak binders
            if arg.binding > prettyForm.MUL:
                arg = stringPict(*arg.parens())
            result.append(arg)
        len_res = len(result)
        for i in xrange(len_res):
            if i < len_res - 1 and result[i] == '-1' and result[i + 1] == xsym('*'):

src/s/y/sympy-HEAD/sympy/printing/pretty/stringpict.py   sympy(Download)
from __future__ import print_function, division
 
from .pretty_symbology import hobj, vobj, xsym, xobj, pretty_use_unicode
from sympy.core.compatibility import u, string_types, xrange
 
        result = [args]
        for arg in others:
            result.append(xsym('*'))
            #add parentheses for weak binders
            if arg.binding > prettyForm.MUL:
                arg = stringPict(*arg.parens())
            result.append(arg)
        len_res = len(result)
        for i in xrange(len_res):
            if i < len_res - 1 and result[i] == '-1' and result[i + 1] == xsym('*'):

src/s/y/sympy-polys-HEAD/sympy/printing/pretty/stringpict.py   sympy-polys(Download)
"""
 
from pretty_symbology import hobj, vobj, xsym, pretty_use_unicode
 
class stringPict(object):
        result = [args]
        for arg in others:
            result.append(xsym('*'))
            #add parentheses for weak binders
            if arg.binding > prettyForm.MUL: arg = stringPict(*arg.parens())
            result.append(arg)
        len_res = len(result)
        for i in xrange(len_res):
            if i < len_res-1 and result[i] == '-1' and result[i+1] == xsym('*'):