wlpotter / csv-to-srophe

A set of XQuery modules for converting CSV data to Srophe-compliant TEI XML records. Developed for Syriaca.org
GNU General Public License v3.0
1 stars 1 forks source link

Handle alphabetize-by name in persons (and others?) #30

Open wlpotter opened 2 years ago

wlpotter commented 2 years ago

Not needed on current data, but may be useful soon.

Example of output see https://syriaca.org/person/13:

<persName xml:id="name13-2" corresp="#name13-3 #name13-4 #name13-5" xml:lang="en" source="#bib13-2">
                        <roleName type="saint" sort="2">St.</roleName>
                        <forename sort="1">Ephraim</forename>
                        <addName type="untagged-title" sort="2">the Syrian</addName>
                    </persName>

The 'alphabetize-by' name should be the one with sort="1". Difficulty will be figuring out what sub-elements to use (i.e., how will we know its a forename vs roleName vs addName?)

wlpotter commented 10 months ago

This may not be worth doing unless J of E or English corpus require it