TEIC / Stylesheets

TEI XSL Stylesheets
238 stars 126 forks source link

.docx to tei conversion isn't adding semicolon to end of css values #686

Open JanelleJenstad opened 1 year ago

JanelleJenstad commented 1 year ago

Thanks for moving OxGarage over to TEIGarage.

I just ran a test conversion of a .docx file to TEI P5 and noticed that the conversion isn't producing correct CSS syntax. It should be an easy fix for you.

For example, the TEI output of italics in .docx files is this: <hi rend="italic bold" style="font-size:12pt">. The semi-colon is missing in this case and all other instances of the value of the @style attribute.

peterstadler commented 1 year ago

Hi @JanelleJenstad , this sounds like a Stylesheets issue rather than a TEIGarage issue (for TEIGarage uses the TEI Stylesheets for this kind of transformations). Would you be able to check on the command line with Sylesheets/bin/docxtotei your.docx and report back whether you get the same results?

sydb commented 1 day ago

Pinging @JanelleJenstad to test as per @peterstadler’s request. (I tried, but got no @style attributes at all!) Note, though, that if the complaint is only that the final semicolon of a @style is missing, it is probably not a problem. (I am pretty sure that in CSS semicolon is a rule separator, not a rule terminator.)