# HG changeset patch # User bgruening # Date 1369340356 14400 # Node ID 143a63ca2bca45ae50351041109c0e857628348f # Parent dcbe4666c052a04e216158544399d48ad8347e7d Uploaded diff -r dcbe4666c052 -r 143a63ca2bca osra.py --- a/osra.py Thu May 23 02:57:31 2013 -0400 +++ b/osra.py Thu May 23 16:19:16 2013 -0400 @@ -14,13 +14,14 @@ > $outfile """ -if not os.path.exists(sys.argv[6]): +if not os.path.exists(sys.argv[7]): # OSRA_DATA_FILES path is not set or the spelling file is not existent sys.argv.pop(7) # superatom.txt path sys.argv.pop(6) # -a sys.argv.pop(5) # speling.txt path sys.argv.pop(4) # -l -subprocess.call(sys.argv[1:], stdout=sys.stdout) +sys.argv[0] = 'osra' +subprocess.call(sys.argv, stdout=sys.stdout) diff -r dcbe4666c052 -r 143a63ca2bca osra.xml --- a/osra.xml Thu May 23 02:57:31 2013 -0400 +++ b/osra.xml Thu May 23 16:19:16 2013 -0400 @@ -1,7 +1,7 @@ - + in Images or PDF documents (OSRA) - osra + osra ## OSRA_DATA_FILES is set during the toolshed Installation @@ -12,6 +12,10 @@ ## further additions of OSRA parameter should go after -l and -a ## because -l and -a can be removed by the python wrapper + $confidence + $adaptive + $thinning + > $outfile @@ -20,6 +24,10 @@ + + + + @@ -34,6 +42,12 @@ + + + + + + diff -r dcbe4666c052 -r 143a63ca2bca repository_dependencies.xml --- a/repository_dependencies.xml Thu May 23 02:57:31 2013 -0400 +++ b/repository_dependencies.xml Thu May 23 16:19:16 2013 -0400 @@ -1,4 +1,4 @@ - \ No newline at end of file + diff -r dcbe4666c052 -r 143a63ca2bca test_data/2008001635_153_chem.png Binary file test_data/2008001635_153_chem.png has changed diff -r dcbe4666c052 -r 143a63ca2bca test_data/2008001635_153_chem.smi --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test_data/2008001635_153_chem.smi Thu May 23 16:19:16 2013 -0400 @@ -0,0 +1,1 @@ +CCC(c1ccc(cc1)Br)OCCCO diff -r dcbe4666c052 -r 143a63ca2bca tool_dependencies.xml --- a/tool_dependencies.xml Thu May 23 02:57:31 2013 -0400 +++ b/tool_dependencies.xml Thu May 23 16:19:16 2013 -0400 @@ -6,13 +6,13 @@ - + - - http://downloads.sourceforge.net/project/osra/osra/1.4.0/osra-1.4.0.tgz + + http://downloads.sourceforge.net/project/osra/osra/2.0.0/osra-2.0.0.tgz - + @@ -22,49 +22,53 @@ - + wget http://potrace.sourceforge.net/download/potrace-1.11.tar.gz tar xfvz potrace-1.11.tar.gz && cd potrace-1.11 && ./configure --with-libpotrace --prefix=$INSTALL_DIR/potrace/build && make && make install - + + wget http://downloads.sourceforge.net/project/osra/gocr-patched/gocr-0.50pre-patched.tgz tar xfvz gocr-0.50pre-patched.tgz && cd gocr-0.50pre-patched && ./configure --prefix=$INSTALL_DIR/gocr/build && make libs && make all install - + + wget http://downloads.sourceforge.net/project/tclap/tclap-1.2.1.tar.gz tar xfvz tclap-1.2.1.tar.gz && cd tclap-1.2.1 && ./configure --prefix=$INSTALL_DIR/tclap/build && make && make install - + wget http://mirror.checkdomain.de/gnu/ocrad/ocrad-0.21.tar.gz tar xfvz ocrad-0.21.tar.gz && cd ocrad-0.21 && ./configure --prefix=$INSTALL_DIR/ocrad/build && make && make install - + wget https://launchpad.net/cuneiform-linux/1.1/1.1/+download/cuneiform-linux-1.1.0.tar.bz2 tar xfvj cuneiform-linux-1.1.0.tar.bz2 && cd cuneiform-linux-1.1.0 && mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR/cuneiform/build/ && make && make install - - wget http://share.gruenings.eu/osra-1.4.0-configure.patch - patch configure < osra-1.4.0-configure.patch - - export PATH=$PATH:$GRAPHICSMAGICK_ROOT_DIR/bin/ && ./configure --with-tclap-include=$INSTALL_DIR/tclap/build/include/ --with-potrace-include=$INSTALL_DIR/potrace/build/include/ --with-potrace-lib=$INSTALL_DIR/potrace/build/lib/ --with-gocr-include=$INSTALL_DIR/gocr/build/include/gocr/ --with-gocr-lib=$INSTALL_DIR/gocr/build/lib/ --with-ocrad-include=$INSTALL_DIR/ocrad/build/include/ --with-ocrad-lib=$INSTALL_DIR/ocrad/build/lib/ --with-cuneiform-include=$INSTALL_DIR/cuneiform/build/install/include/ --with-cuneiform --with-cuneiform-lib=$INSTALL_DIR/cuneiform/build/install/lib/ --with-openbabel-include=$OPENBABEL_INCLUDE_DIR/openbabel-2.0/ --with-openbabel-lib=$OPENBABEL_LIB_DIR --with-graphicsmagick-lib=$GRAPHICSMAGICK_ROOT_DIR/lib/ --with-graphicsmagick-include=$GRAPHICSMAGICK_ROOT_DIR/include/GraphicsMagick/ --prefix=$INSTALL_DIR + + + export PATH=$PATH:$GRAPHICSMAGICK_ROOT_DIR/bin/ && + ./configure --with-tclap-include=$INSTALL_DIR/tclap/build/include/ --with-potrace-include=$INSTALL_DIR/potrace/build/include/ --with-potrace-lib=$INSTALL_DIR/potrace/build/lib/ --with-gocr-include=$INSTALL_DIR/gocr/build/include/gocr/ --with-gocr-lib=$INSTALL_DIR/gocr/build/lib/ --with-ocrad-include=$INSTALL_DIR/ocrad/build/include/ --with-ocrad-lib=$INSTALL_DIR/ocrad/build/lib/ --with-cuneiform-include=$INSTALL_DIR/cuneiform/build/install/include/ --with-cuneiform --with-cuneiform-lib=$INSTALL_DIR/cuneiform/build/install/lib/ --with-openbabel-include=$OPENBABEL_INCLUDE_DIR/openbabel-2.0/ --with-openbabel-lib=$OPENBABEL_LIB_DIR --with-graphicsmagick-lib=$GRAPHICSMAGICK_ROOT_DIR/lib/ --with-graphicsmagick-include=$GRAPHICSMAGICK_ROOT_DIR/include/GraphicsMagick/ --prefix=$INSTALL_DIR make make install rm $INSTALL_DIR/tclap/ -r - + rm $INSTALL_DIR/gocr/ -r rm $INSTALL_DIR/ocrad/ -r rm $INSTALL_DIR/cuneiform/ -r - $GRAPHICSMAGICK_ROOT_DIR/lib/ + $ENV[$GRAPHICSMAGICK_ROOT_DIR]/lib/ $INSTALL_DIR/potrace/build/lib/ $INSTALL_DIR/bin - + $INSTALL_DIR/share We still have a handfull of requirements - \ No newline at end of file +