Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
stepbystep:archi1 [2021/03/10 20:44] giancarlo [Metadata Display] |
stepbystep:archi1 [2021/05/24 18:25] (current) giancarlo |
||
---|---|---|---|
Line 7: | Line 7: | ||
* [[stepbystep: | * [[stepbystep: | ||
* [[stepbystep: | * [[stepbystep: | ||
+ | * [[stepbystep: | ||
</ | </ | ||
====== Archipelago ====== | ====== Archipelago ====== | ||
Line 31: | Line 32: | ||
Successfully enabled: ctools_views | Successfully enabled: ctools_views | ||
Successfully enabled: bamboo_twig, | Successfully enabled: bamboo_twig, | ||
+ | Successfully enabled: jquery_ui_datepicker, | ||
</ | </ | ||
Browse UI at admin/ | Browse UI at admin/ | ||
Line 127: | Line 129: | ||
<code bash> | <code bash> | ||
$ vendor/ | $ vendor/ | ||
+ | </ | ||
+ | Make site admin member of administrator group | ||
+ | <code bash> | ||
+ | $ vendor/ | ||
</ | </ | ||
Then sync configurations | Then sync configurations | ||
Line 978: | Line 984: | ||
| | codemirror_editor.settings | Update | | | codemirror_editor.settings | Update | ||
+------------+----------------------------+-----------+ | +------------+----------------------------+-----------+ | ||
+ | $ mv ~/ | ||
+ | </ | ||
+ | <code bash> | ||
+ | $ mv ~/ | ||
+ | $ vendor/ | ||
+ | +------------+--------------------------------------+-----------+ | ||
+ | | Collection | Config | ||
+ | +------------+--------------------------------------+-----------+ | ||
+ | | | pathauto.pattern.digital_object_uuid | Create | ||
+ | +------------+--------------------------------------+-----------+ | ||
+ | $ mv ~/ | ||
+ | |||
+ | $ mv ~/ | ||
+ | $ vendor/ | ||
+ | +------------+-------------------+-----------+ | ||
+ | | Collection | Config | ||
+ | +------------+-------------------+-----------+ | ||
+ | | | pathauto.settings | Update | ||
+ | +------------+-------------------+-----------+ | ||
$ mv ~/ | $ mv ~/ | ||
</ | </ | ||
Line 1034: | Line 1059: | ||
$ which exiftool | $ which exiftool | ||
/ | / | ||
- | + | </ | |
- | sudo -s apt install | + | <code bash> |
+ | sudo -s apt install | ||
$ pdfinfo -v | $ pdfinfo -v | ||
pdfinfo version 0.86.1 | pdfinfo version 0.86.1 | ||
Line 1042: | Line 1068: | ||
$ which pdfinfo | $ which pdfinfo | ||
/ | / | ||
+ | </ | ||
+ | <code bash> | ||
wget https:// | wget https:// | ||
unzip v1.4.1.zip | unzip v1.4.1.zip | ||
Line 1051: | Line 1078: | ||
$ which fido | $ which fido | ||
/ | / | ||
+ | </ | ||
+ | OCR tools | ||
+ | <code bash> | ||
+ | $ sudo apt install tesseract-ocr | ||
+ | $ sudo apt install tesseract-ocr-ita | ||
+ | $ tesseract -v | ||
+ | tesseract 4.1.1 | ||
+ | | ||
+ | libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 2.0.3) : libpng 1.6.37 : libtiff 4.1.0 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.1 | ||
+ | Found AVX | ||
+ | Found SSE | ||
+ | Found libarchive 3.4.0 zlib/1.2.11 liblzma/ | ||
+ | $ which tesseract | ||
+ | / | ||
+ | </ | ||
+ | <code bash> | ||
+ | $ sudo apt install pdf2djvu | ||
+ | $ pdf2djvu --version | ||
+ | pdf2djvu 0.9.17 | ||
+ | + DjVuLibre 3.5.27 | ||
+ | + Poppler 0.86.1 | ||
+ | + GraphicsMagick++ 1.3.35 (Q16) | ||
+ | + Exiv2 0.27.2 | ||
+ | $ which pdf2djvu | ||
+ | / | ||
+ | </ | ||
+ | <code bash> | ||
+ | $ sudo apt install python python-lxml python3-djvu | ||
+ | $ wget http:// | ||
+ | $ sudo dpkg -i python-djvu_0.8-3_amd64.deb | ||
+ | $ sudo apt install python-subprocess32 libdjvulibre-dev libdjvulibre21 | ||
+ | $ sudo apt install make | ||
+ | $ wget https:// | ||
+ | $ unzip 0.12 | ||
+ | $ cd ocrodjvu-0.12/ | ||
+ | $ sudo make install | ||
+ | python - < lib/ | ||
+ | sed -e "1 s@^# | ||
+ | install -d / | ||
+ | install ocrodjvu.tmp / | ||
+ | rm ocrodjvu.tmp | ||
+ | sed -e "1 s@^# | ||
+ | install -d / | ||
+ | install hocr2djvused.tmp / | ||
+ | rm hocr2djvused.tmp | ||
+ | sed -e "1 s@^# | ||
+ | install -d / | ||
+ | install djvu2hocr.tmp / | ||
+ | rm djvu2hocr.tmp | ||
+ | install -d / | ||
+ | install -p -m644 lib//*.py / | ||
+ | install -d / | ||
+ | install -p -m644 lib/ | ||
+ | install -d / | ||
+ | install -p -m644 lib/ | ||
+ | umask 022 && python -m compileall -q / | ||
+ | # run "make -C doc" to build the manpages | ||
+ | |||
+ | $ djvu2hocr --version | ||
+ | djvu2hocr 0.12 | ||
+ | + Python 2.7.18 | ||
+ | + subprocess32 | ||
+ | + python-djvulibre 0.8 | ||
+ | + lxml 4.5.0 | ||
+ | + html5lib-python 1.0.1 | ||
+ | $ which djvu2hocr | ||
+ | / | ||
+ | </ | ||
+ | Compile and install pdfalto | ||
+ | <code bash> | ||
+ | $ sudo apt-get install cmake pkg-config build-essential | ||
+ | |||
+ | $ wget https:// | ||
+ | $ unzip 0.4.zip | ||
+ | $ cd pdfalto-0.4/ | ||
+ | $ ./ | ||
+ | $ git clone https:// | ||
+ | $ cmake . | ||
+ | $ make | ||
+ | $ cd .. | ||
+ | $ sudo mv pdfalto-0.4 / | ||
+ | $ sudo ln -s / | ||
+ | |||
+ | $ pdfalto | ||
+ | pdfalto version 0.4 | ||
+ | Usage: pdfalto [options] < | ||
+ | -f < | ||
+ | -l < | ||
+ | -verbose | ||
+ | -noImage | ||
+ | -noImageInline | ||
+ | -outline | ||
+ | -annotation | ||
+ | -noLineNumbers | ||
+ | -readingOrder | ||
+ | -noText | ||
+ | -charReadingOrderAttr | ||
+ | -fullFontName | ||
+ | -nsURI < | ||
+ | -opw < | ||
+ | -upw < | ||
+ | -filesLimit < | ||
+ | -q : don't print any messages or errors | ||
+ | -v : print version info | ||
+ | -h : print usage information | ||
+ | -help : print usage information | ||
+ | --help | ||
+ | -? : print usage information | ||
+ | </ | ||
+ | Update pdfalto to master for an issue on namespace | ||
+ | <code bash> | ||
+ | $ git clone https:// | ||
+ | $ cd pdfalto/ | ||
+ | $ ./ | ||
+ | $ git clone https:// | ||
+ | $ cmake . | ||
+ | $ make | ||
+ | $ cd .. | ||
+ | $ sudo mv pdfalto / | ||
+ | $ sudo rm / | ||
+ | $ sudo ln -s / | ||
+ | |||
+ | $ pdfalto | ||
+ | pdfalto version 0.5 | ||
+ | Usage: pdfalto [options] < | ||
+ | -f < | ||
+ | -l < | ||
+ | -verbose | ||
+ | -noImage | ||
+ | -noImageInline | ||
+ | -outline | ||
+ | -annotation | ||
+ | -noLineNumbers | ||
+ | -readingOrder | ||
+ | -noText | ||
+ | -charReadingOrderAttr | ||
+ | -fullFontName | ||
+ | -nsURI < | ||
+ | -opw < | ||
+ | -upw < | ||
+ | -filesLimit < | ||
+ | -q : don't print any messages or errors | ||
+ | -v : print version info | ||
+ | -h : print usage information | ||
+ | -help : print usage information | ||
+ | --help | ||
+ | -? : print usage information | ||
</ | </ |