scripts/dictionary_tools.py
def translate_competence_en_curr_data(s):
    """M:.-O:.-'M:.-wa.e.-'t.-x.-s.y.-',  => t.-x.-s.y.-' wa.e.-', M:M:.-',O:.-',_"""
    subst, attr, mode = s
    attr_s, attr_a, attr_m = attr
    assert isinstance(attr_m, NullScript)

    subst_s, subst_a, subst_m = subst
    assert isinstance(subst_m, NullScript)
    first_M = subst_s.children[0].children[0]

    return m(m(mode, m(attr_a)), m(m(m(m(first_M, attr_s.children[0].children[0])))), m(m(subst_a)))
def translate_competence_en_curr_data(s):
    """M:.-O:.-'M:.-wa.e.-'t.-x.-s.y.-',  => t.-x.-s.y.-' wa.e.-', M:M:.-',O:.-',_"""
    subst, attr, mode = s
    attr_s, attr_a, attr_m = attr
    assert isinstance(attr_m, NullScript)

    subst_s, subst_a, subst_m = subst
    assert isinstance(subst_m, NullScript)
    first_M = subst_s.children[0].children[0]

    return m(m(mode, m(attr_a)), m(m(m(m(first_M, attr_s.children[0].children[0])))), m(m(subst_a)))
def translate_competence_en_curr_data ( s ) : subst , attr , mode = s attr_s , attr_a , attr_m = attr assert isinstance ( attr_m , NullScript ) subst_s , subst_a , subst_m = subst assert isinstance ( subst_m , NullScript ) first_M = subst_s . children [ 0 ] . children [ 0 ] return m ( m ( mode , m ( attr_a ) ) , m ( m ( m ( m ( first_M , attr_s . children [ 0 ] . children [ 0 ] ) ) ) ) , m ( m ( subst_a ) ) )
M:.-O:.-'M:.-wa.e.-'t.-x.-s.y.-',  => t.-x.-s.y.-' wa.e.-', M:M:.-',O:.-',_
M : . - O : . - M : . - wa . e . - t . - x . - s . y . - = > t . - x . - s . y . - wa . e . - M : M : . - O : . - _