예제 #1
0
def to_local(x):
    _x = _(x)
    if x != _x:
        return _x
    return RE_EXPR.sub(_expr_to_local, x)
예제 #2
0
def to_local(x):
    _x = _(x)
    if x != _x:
        return _x
    return RE_EXPR.sub(_expr_to_local, x)
예제 #3
0
def to_english(x):
    _x = _r(ensure_unicode(x))
    if x != _x:
        return _x
    return RE_EXPR.sub(_expr_to_english, x)
예제 #4
0
def to_english(x):
    _x = _r(ensure_unicode(x))
    if x != _x:
        return _x
    return RE_EXPR.sub(_expr_to_english, x)