lua-hyphenate/src/lib.rs

22 lines
407 B
Rust

use hypher::{Lang, hyphenate};
use mlua_sys::lua51::lua_State;
use text_layout::{Item, KnuthPlass};
use unicode_linebreak::linebreaks;
pub fn layout(s: &str, width: usize) -> String {
let layout = KnuthPlass::<f32>::new();
s.to_string()
}
pub unsafe extern "C" fn break_line(state: *mut lua_State) -> isize {
0
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn it_works() {}
}