Page MenuHomec4science

How To Merge Faksimile SVG Files With XML
Updated 1,632 Days AgoPublic

Merge faksimile svg files with xml files:

Repository: nietzsche-python

$ python3 svgscripts/join_faksimileAndTranskription.py <FAKSIMILE_DIR|faksimile_svg_file> [xmlManuscriptFile]

<FAKSIMILE_DIR> is a directory containing faksimile svg files.
<faksimile_svg_file> is a faksimile svg file.
<xmlManuscriptFile> is a manuscript xml file (optional).

The script determines the corresponding page xml file and (if the words match) updates the faksimile word positions in the page xml file.

Fix errors if files mismatch

$ python3 svgscripts/join_faksimileAndTranskription.py --fix-errors <faksimile_svg_file>

The script will create a faksimile svg file and a transkription svg file that highlight the words that mismatch and open them with inkscape.

Delegate the task of fixing errors

$ python3 svgscripts/join_faksimileAndTranskription.py --correct-words=<TASKDIR> <faksimile_svg_file>

<TASKDIR> is a directory in which the script will create a faksimile svg file and a transkription svg file that highlight the words that mismatch, as well as
a transkription xml file and a text file describing what words mismatch.
The script will lock the corresponding page xml file(s) and thereby prevent any scripts from svgscripts-package to alter its content.
On how to fix errors, see https://drive.switch.ch/index.php/s/XWhcDSwHJPCQQ5K
When the files are fixed, rerun above command.

Last Author
steinech
Last Edited
Nov 5 2019, 11:29

Event Timeline

steinech moved this document from Restricted Phriction Wiki DocumentOct 18 2019, 16:38
steinech edited the content of this document. (Show Details)Nov 5 2019, 11:26
steinech edited the content of this document. (Show Details)Nov 5 2019, 11:29
steinech changed the visibility from "Restricted Project (Project)" to "Public (No Login Required)".Apr 15 2020, 18:02