e1e0.net

sources for e1e0 website
git clone https://git.e1e0.net/e1e0.net.git
Log | Files | Refs

semi-automated-document-conversion-for-the-remarkable2.md (2412B)


      1 Title: Semi automated document conversion for the Remarkable2
      2 Author: paco
      3 Date: 2021-08-22
      4 Type: article
      5 
      6 My wife recently acquired a Remarkable2 for note taking and document reading
      7 while studying.
      8 
      9 The device itself is quite nice, it's like an e-book but bigger and you can
     10 take notes on it.  The hand writing works really well, and the bigger screen
     11 makes reading PDF files a way better experience than on a Kindle for instance.
     12 It can also convert a handwritten document to text.  They even [enable SSH
     13 access][1] to the device and provide the root password.
     14 
     15 If I had to put a "but" to it, it will be that the way of sharing documents or
     16 the OCR'd content of a handwritten document is quite limited.  One can only
     17 send the document or the OCR'd text via email.  Also, the only export format is
     18 PDF for the handwritten documents and drawings.
     19 
     20 This would probably cover 90% of the use case of most of their customers but
     21 this was not our case.  Wife's uni works with the Microsoft 365 suite (yeah,
     22 that, I'm not going to start rambling here about this ...), so she uses it for
     23 all things uni related, even her own notes and study documents.  This means
     24 that she would have to convert her notes to text on the device, send them via
     25 email, copy the output on her email client and paste it into the final MS Word
     26 document.
     27 
     28 I find all this process a little bit convoluted, so I started to think on
     29 making it a little bit easier.
     30 
     31 The email you get from Remarkable it's just an HTML email with the OCR'd
     32 content.
     33 
     34 I took a peek at `pandoc` and it seems that it can convert from `html` to
     35 `docx` with a simple command: `pandoc -f html -t docx -o $destfile $origfile`.
     36 
     37 Right, this is a first step on the right direction.  One cannot avoid the steps
     38 of converting to text and send by email, but getting a MS Word document in your
     39 inbox and avoid the copy/paste dance.
     40 
     41 As I have my own email server, it's trivial to create a dedicated account for
     42 this task, and pass any email that comes from Remarkable to a custom script
     43 that does the conversion and then sends the newly generated MS Word document as
     44 an attachment to my wife's email account.
     45 
     46 And that's what I did.  You can find my crappy script [here][2].  I'll probably
     47 modify it and improve it over time, but for now it works for our use.
     48 
     49 [1]: https://remarkablewiki.com/tech/ssh
     50 [2]: https://git.e1e0.net/remarkable2_utils/file/conversion-filter.pl.html