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 second 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>, <bibl>, <head>, and <cell> elements with en-dashes
replace x (to indicate dimensions) within <p>, <bibl>, <head>, and <cell> elements with ×
trim the <ref target="https://papyri.info/..."> URL of any query parameters and API details
Add @xml:id to line numbers in the editions, which incorporates the @n value of any ancestor::div, too
various bits of <msIdentifier> not handled properly by Hugh's converter
NB: this XSLT no longer duplicates the <div> of a text edition (with @subtype="Pylon" and @subtype="PN"), as v. 1.0 did. It is easier to add the necessary markup for heiEDITIONS XML at this phase, and then remove it via XSLT for transfer to papyri.info.
This file is a second 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>
,<bibl>
,<head>
, and<cell>
elements with en-dashesreplace
x
(to indicate dimensions) within<p>
,<bibl>
,<head>
, and<cell>
elements with×
trim the
<ref target="https://papyri.info/...">
URL of any query parameters and API detailsAdd
@xml:id
to line numbers in the editions, which incorporates the@n
value of anyancestor::div
, toovarious bits of
<msIdentifier>
not handled properly by Hugh's converterNB: this XSLT no longer duplicates the
<div>
of a text edition (with@subtype="Pylon"
and@subtype="PN"
), as v. 1.0 did. It is easier to add the necessary markup for heiEDITIONS XML at this phase, and then remove it via XSLT for transfer topapyri.info
.