-
Notifications
You must be signed in to change notification settings - Fork 1
Description
While trying to annotate a medium size file, I encountered "Error: [Errno 2] No such file or directory" on the web-app. Minimizing the file I've come to
\documentclass{article}
\usepackage[series={A},nofamiliar,noeledsec,noledgroup]{reledmac}
\begin{document}
\beginnumbering
\pstart
word
\edtext{and}{\Afootnote{C1–6.}}
word and
\pend
\endnumbering
\end{document}
which should be totally unproblematic but still gives the error. Other minimal files made from scratch do work on the web service.
Several other things are weird with this
- the problematic file is being annotated with samewords 0.5.0 which I still have installed locally though the result being not completely correct:
\documentclass{article}
\usepackage[series={A},nofamiliar,noeledsec,noledgroup]{reledmac}
\begin{document}
\beginnumbering
\pstart
word
\edtext{\sameword[1]{and}}{\Afootnote{C1–6.}}
word \sameword{and}
\pend
\endnumbering
\end{document}
-
I can get the same (incomplete: I'll put this into a separate issue) result from the web service if I copy-paste the code to a new file.
-
If I go back to my initial code-snippet:
\beginnumbering
\pstart
Þor%
\edtext{og}{%
\Afootnote{÷~C\textsuperscript{1–6}.}} %
\pend
\endnumbering
it will also get processed on the webservice as copy-pasted but not as the original file.
But 0.5.0 will complain either way:
Traceback (most recent call last):
File "somewhere/samewords-master/samewords/tokenize.py", line 522, in _register_closing
open_idx = self._stack_bracket[-1]
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/samewords", line 11, in <module>
load_entry_point('samewords', 'console_scripts', 'samewords')()
File "somewhere/samewords-master/samewords/cli.py", line 116, in main
print(samewords.core.process_document(filename, procedure))
File "somewhere/samewords-master/samewords/core.py", line 32, in process_document
for par in chunk_pars(chunk)])
File "somewhere/samewords-master/samewords/core.py", line 32, in <listcomp>
for par in chunk_pars(chunk)])
File "somewhere/samewords-master/samewords/core.py", line 10, in run_annotation
tokenization = Tokenizer(input_text)
File "somewhere/samewords-master/samewords/tokenize.py", line 378, in __init__
self.wordlist = self._wordlist()
File "somewhere/samewords-master/samewords/tokenize.py", line 388, in _wordlist
word, pos = self._tokenize(self.data, pos)
File "somewhere/samewords-master/samewords/tokenize.py", line 497, in _tokenize
self._register_closing(word)
File "somewhere/samewords-master/samewords/tokenize.py", line 529, in _register_closing
word.close_macro(0)
File "somewhere/samewords-master/samewords/tokenize.py", line 179, in close_macro
raise IndexError('The word does not have any open macros.')
IndexError: The word does not have any open macros.
This can be remedied for 0.5.0 by either adding a space behind "Þor" or removing the \textsuperscript
command. The webservice will still reject the file.
So my guess is that you have take care of this error already in the up-to-date version but I include the description here because I hope it might give you a clue on the main problem:
Could you guide me to which kind of weird properties of my file can break samewords (including the web service) so I can avoid them? I attach the offending file here: VÓ-BSWtest.tex.zip