Open cnoceda opened 3 days ago
Was easier that I think.
(apply 'call-process (append (list org-mpv-notes-ocr-command nil t nil (file-truename file)) (split-string-shell-command org-mpv-notes-ocr-command-args) ))
Now it works fine. I'll try to make a pull request this afternoon...
Hi, I'm testing this package and I found something that is not qorking fine. It seems that
org-mpv-notes-ocr-command-args
as string does not like tocall-process
. If you change the default value "-" and add any other parameter stops working well. The cause may be that the args argument incall-process
doesn't like a string. It prefer individual string elements like:(call-process org-mpv-notes-ocr-command nil t nil (file-truename file) "-" "-l" "eng+spa" "quiet")
if you call like:(call-process org-mpv-notes-ocr-command nil t nil (file-truename file) "- -l eng+spa quiet")
does not take any of the parameters, and use all the string as theoutput
parameter oftesseract-ocr
and creates a file like this:- -l eng+spa quiet.txt
I'll try to post the solution here, this afternoon.
Regards.