-
-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Nodejs, Python 함수 접두사 : translate
Rust 함수 접두사 : encode
한쪽으로 통일이 필요해보입니다.
braillify/packages/node/src/lib.rs
Lines 10 to 18 in ff22c62
| #[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) | |
| } |
braillify/packages/python/src/lib.rs
Lines 10 to 18 in ff22c62
| #[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
Labels
No labels