View Single Post
Old 03-06-2012, 11:51 AM   #4
eba
Junior Member
eba began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2012
Device: none
In case it's useful to anyone else. The workflow I've been using for now is fairly convenient, but It would be nice if some more of the manual steps could be removed.

Tools used:
Mendeley (organizing/sanitizing the name of pdfs)
http://www.mendeley.com/

unison (efficiently copying
http://www.cis.upenn.edu/~bcpierce/unison/

bash script


Setup:
1) Configure Mendeley to watch a downloads folder, and automatically copy the files to a new folder, renaming them according to Author-Year-Title, as described in this blog post.
http://blog.mendeley.com/hard-resear...ile-organizer/
2) use unison to sync the organized papers directory maintained by mendeley to my device. My unison profile
Code:
# Unison preferences
root = ~/papers
root = /media/boox/docs
fat = true #the M92 uses a fat32 file system
3) create a bash script to call unison, and create a recent-papers directory on my device since it can't sort by date (http://www.mobileread.com/forums/sho...d.php?t=170814)
Code:
syncBoox.sh:

#!/bin/bash

unison -batch -ui text boox

PAPERS_DIR=~/papers
RECENT_DIR=/media/boox/recent_papers
mkdir -p $RECENT_DIR

i=0
ls $PAPERS_DIR/*.pdf -t | head -8 | while read p
do
        let i=i+1 
        bp=$(basename "$p")
        OUTFILE="$RECENT_DIR/$i-$bp"
        if [ -e "$OUTFILE" ]
         then
                continue
        fi
        rm -f $RECENT_DIR/$i-*.pdf
        echo "$OUTFILE"
        cp "$p"  "$OUTFILE"
done

Then to get a paper from my browser to my device, I:
1) save-as to the folder watched by mendeley
2) plug it in via USB
3) run syncBoox.sh
4) eject/disconnect USB
5) navigate to the recent_papers folder, and open the paper.


Not so bad, but could definitely be improved...

the new software added to boox-opensource
https://github.com/onyx-intl/boox-op.../device_server

looks promising, as it should provide an FTP server that would allow us to transfer papers wirelessly, and hopefully it can be combined with a callback to open the pdf too :-)
eba is offline   Reply With Quote