|
|
# Imports
|
|
|
|
|
|
In the 'Images' tab of a Document you can find an 'Import' button which allows you to feed data from different sources to eScriptorium.
|
|
|
|
|
|
## IIIF
|
|
|
Input a valid iiif manifesto uri to import all its images in full resolution.
|
|
|
|
|
|
## Alto XML
|
|
|
Upload a valid [ALTO XML](https://en.wikipedia.org/wiki/ALTO_(XML)) file for segmentation and transcriptions.
|
|
|
Each <Page> in the file will correspond to a selected card in the same order.
|
|
|
Here is the most basic example, 2 pages with a single line each.
|
|
|
Other tags (description, glyphs) are ignored for now.
|
|
|
```
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<alto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
xmlns="http://www.loc.gov/standards/alto/ns-v4#"
|
|
|
xsi:schemaLocation="http://www.loc.gov/standards/alto/ns-v4# http://www.loc.gov/standards/alto/v4/alto-4-0.xsd">
|
|
|
<Layout>
|
|
|
<Page WIDTH="850" HEIGHT="1083" PHYSICAL_IMG_NR="0" ID="page_0">
|
|
|
<PrintSpace HPOS="0" VPOS="0" WIDTH="850" HEIGHT="1083">
|
|
|
<TextBlock HPOS="0" VPOS="0" ID="textblock_0" WIDTH="850" HEIGHT="1083">
|
|
|
<TextLine ID="line_0" HPOS="160" VPOS="771" WIDTH="0" HEIGHT="28">
|
|
|
<String ID="segment_0" CONTENT="This is an example" HPOS="160" VPOS="771" WIDTH="0" HEIGHT="28" WC="0.9995"></String>
|
|
|
</TextLine>
|
|
|
</TextBlock>
|
|
|
</PrintSpace>
|
|
|
</Page>
|
|
|
<Page WIDTH="850" HEIGHT="1083" PHYSICAL_IMG_NR="0" ID="page_1">
|
|
|
<PrintSpace HPOS="0" VPOS="0" WIDTH="850" HEIGHT="1083">
|
|
|
<TextBlock HPOS="0" VPOS="0" ID="textblock_0" WIDTH="850" HEIGHT="1083">
|
|
|
<TextLine ID="line_0" HPOS="160" VPOS="771" WIDTH="0" HEIGHT="28">
|
|
|
<String ID="segment_0" CONTENT="This is also an example" HPOS="160" VPOS="771" WIDTH="0" HEIGHT="28" WC="0.9995"></String>
|
|
|
</TextLine>
|
|
|
</TextBlock>
|
|
|
</PrintSpace>
|
|
|
</Page>
|
|
|
</Layout>
|
|
|
</alto>`
|
|
|
```
|
|
|
## Abbyy XML
|
|
|
Same principle as Alto but the grammar is a bit different:
|
|
|
```xml
|
|
|
<document xmlns="http://www.abbyy.com/FineReader_xml/FineReader10-schema-v1.xml" version="1.0" producer="kraken">
|
|
|
<page width="850" height="1083" resolution="0" originalCoords="1">
|
|
|
<block blockType="Text">
|
|
|
<text>
|
|
|
<par>
|
|
|
<line baseline="785" l="160" r="180" t="771" b="799">
|
|
|
<formatting lang="">
|
|
|
<charParams l="160" r="165" t="771" b="799" wordStart="1" charConfidence="0">T</charParams>
|
|
|
<charParams l="165" r="170" t="771" b="799" wordStart="0" charConfidence="0">e</charParams>
|
|
|
<charParams l="170" r="175" t="771" b="799" wordStart="0" charConfidence="0">s</charParams>
|
|
|
<charParams l="175" r="180" t="771" b="799" wordStart="0" charConfidence="0">t</charParams>
|
|
|
</formatting>
|
|
|
</line>
|
|
|
</par>
|
|
|
</text>
|
|
|
</block>
|
|
|
</page>
|
|
|
</document>
|
|
|
```
|
|
|
|