houqp / leptess

Productive and safe Rust binding for leptonica and tesseract
https://houqp.github.io/leptess/leptess/index.html
MIT License
258 stars 28 forks source link

Add set_variable support #36

Closed ccouzens closed 3 years ago

ccouzens commented 3 years ago

I have a list of variables from tesseract itself.

That get converted by build.rs to an enum that represents them.

And I have a set_variable method that uses it.

https://github.com/houqp/leptess/issues/31

I'm aware that the build.rs file isn't the best. In particular, I wish I could get some test cases for to_variant_case. Unfortunately tests aren't run inside of build.rs files.