Skip to content

함수 접두사 통일 필요 #66

@jshyun912

Description

@jshyun912

Nodejs, Python 함수 접두사 : translate
Rust 함수 접두사 : encode

한쪽으로 통일이 필요해보입니다.

#[wasm_bindgen(js_name = "translateToUnicode")]
pub fn translate_to_unicode(text: &str) -> Result<String, String> {
braillify::encode_to_unicode(text)
}
#[wasm_bindgen(js_name = "translateToBrailleFont")]
pub fn translate_to_braille_font(text: &str) -> Result<String, String> {
braillify::encode_to_braille_font(text)
}

#[pyfunction]
fn translate_to_unicode(text: &str) -> PyResult<String> {
braillify_core::encode_to_unicode(text).map_err(PyErr::new::<PyValueError, _>)
}
#[pyfunction]
fn translate_to_braille_font(text: &str) -> PyResult<String> {
braillify_core::encode_to_braille_font(text).map_err(PyErr::new::<PyValueError, _>)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions