This is now a collection point for the Papyrological Publishing Platform (P3). To be found here are the files which are used to produce articles in the journal Pylon.
This file is a first attempt at automating via XSLT various basic changes that are necessary following the conversion to XML of a .docx accepted for publication in Pylon. Comments within the file describe these changes, but I list them here, as well, for the sake of reference.
replace hyphens between numerals within p or bibl elements with en-dashes
trim <ref target="https://papyri.info/biblio/\d+"> of any query parameters and API details
Duplicate any div[@type="edition"]
Duplication will also add @subtype/PN and @subtype/Pylon, respectively, to the resulting two div elements.
The duplicated <div subtype='PN'> will not have an xml:id (and will therefore be ignored by HEIeditions XSLT). Once I have figured out modal XSLT, I will also automate the addition of @xml:id to each lb element within <div subtype='Pylon'>, using the following template (NB: it is written so as to be sensitive to any ancestor divs):
This file is a first attempt at automating via XSLT various basic changes that are necessary following the conversion to XML of a .docx accepted for publication in Pylon. Comments within the file describe these changes, but I list them here, as well, for the sake of reference.
<seg style="font-weight: bold;">
=><emph rend="bold">
<seg style="font-style: italic;">
=><emph rend="italics">
<seg style="text-decoration: underline;">
=><emph rend="underlined">
remove
@style
from<p>
remove
@xml:space="preserve"
from<ref>
replace hyphens between numerals within
p
orbibl
elements with en-dashestrim
<ref target="https://papyri.info/biblio/\d+">
of any query parameters and API detailsDuplicate any
div[@type="edition"]
Duplication will also add
@subtype/PN
and@subtype/Pylon
, respectively, to the resulting twodiv
elements.The duplicated
<div subtype='PN'>
will not have anxml:id
(and will therefore be ignored by HEIeditions XSLT). Once I have figured out modal XSLT, I will also automate the addition of@xml:id
to eachlb
element within<div subtype='Pylon'>
, using the following template (NB: it is written so as to be sensitive to any ancestordivs
):