def to_local(x): _x = _(x) if x != _x: return _x return RE_EXPR.sub(_expr_to_local, x)
def to_english(x): _x = _r(ensure_unicode(x)) if x != _x: return _x return RE_EXPR.sub(_expr_to_english, x)