16 ms·
I also used the very same script until I stumbled upon this on hn [0]. #!/usr/bin/env bash langs=(eng ara fas chi_sim chi_tra deu ell fin heb hun jpn k
by tmerse 3y ago
I also used the very same script until I stumbled upon this on hn [0].
#!/usr/bin/env bash
langs=(eng ara fas chi_sim chi_tra deu ell fin heb hun jpn kor nld rus tur)
lang=$(printf '%s\n' "${langs[@]}" | dmenu "$@")
maim -us | tesseract --dpi 145 -l eng+${lang} - - | xsel -bi
[0]: https://news.ycombinator.com/item?id=33704483#33705272 https://news.ycombinator.com/item?id=33704483#33705272