-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tei2folia: autodeclare should be enabled? #52
Comments
The autodeclare applies only if you use foliapy to create a new FoLiA
resource. You'd probably expect tei2folia would use that, but tei2folia creates the
initial FoLiA via XSLT and then uses foliapy for various postprocessing,
so in this case the autodeclare was never used.
This looks like a bug in tei2folia, it should have declared the
comment indeed. I'll look into it.
|
Ok, it's not a bug in a missing declaration after all, but it's breaking
<?xml version="1.0"?>
<comment xmlns="http://ilk.uvt.nl/folia" xmlns:folia="http://ilk.uvt.nl/folia">[tei2folia WARNING] Unhandled tag: cx:apparatus (in )</comment>
I also see |
Ah, my bad for not spotting that. I simply copied the invalid TEI file from a demo GUI without looking closer. In fact, I was trying to see how FoLiA could render (span?) annotations for variations among different versions of edited text. Of course this is very specific and I cannot expect it to be covered by the converter. |
I pip installed foliatools.
On the attached small test file I run tei2folia and got the below error.
In the main.py of foliapy I see
#autodeclare is enabled (default for FoLiA v2)
.collate1.tei.xml.txt
The text was updated successfully, but these errors were encountered: