stenskjaer / samewords

Automatically annotate potentially ambiguous words in critical text editions made with LaTeX and reledmac.
MIT License
7 stars 1 forks source link

path to config-file added to output #42

Open floriandk opened 4 years ago

floriandk commented 4 years ago

Using a config-file the filename and the path (if any) specified after --config-file is always added twice in the beginning of the resulting file:

test-config.json
test-config.json
\documentclass{article}
\usepackage[series={A},nofamiliar,noeledsec,noledgroup]{reledmac}
...

This seems to be independent of the contents of the config-file.

Everything else is just fine and after removing the two lines the result compiles as expected.

samewords 0.5.3 with Python 3.7.5 (homebrew) on MacOS 10.12.6

stenskjaer commented 4 years ago

This is clearly a trivial and silly error, that will get fixed in the my planned Christmas sit-down.

stenskjaer commented 4 years ago

So now I have had some time to do a bit of cleaning of reworking of this. First suggestion to a solution is ready here.

Can you check and see if the branch https://github.com/stenskjaer/samewords/tree/issue-42-config-path-in-file solves the problem?