Skip to content
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

Import additional provenances #400

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 88 additions & 35 deletions src/corpus/domain/provenance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,44 +35,97 @@ export const Provenances = {
Megiddo: { name: 'Megiddo', abbreviation: 'Meg', parent: 'Periphery' },
Susa: { name: 'Susa', abbreviation: 'Sus', parent: 'Periphery' },
Ugarit: { name: 'Ugarit', abbreviation: 'Uga', parent: 'Periphery' },
'Dūr-Katlimmu': {
name: 'Dūr-Katlimmu',
abbreviation: 'Dka',
parent: 'Assyria',
},
Ḫarrān: { name: 'Ḫarrān', abbreviation: 'Har', parent: 'Assyria' },
'Imgur-Enlil': {
name: 'Imgur-Enlil',
abbreviation: 'Img',
parent: 'Assyria',
},
'Kār-Tukulti-Ninurta': {
name: 'Kār-Tukulti-Ninurta',
abbreviation: 'Ktn',
parent: 'Assyria',
},
'Šubat-Enlil': {
name: 'Šubat-Enlil',
abbreviation: 'Šub',
parent: 'Assyria',
},
Guzana: { name: 'Guzana', abbreviation: 'Guz', parent: 'Assyria' },
Adab: { name: 'Adab', abbreviation: 'Adb', parent: 'Babylonia' },
Ešnunna: { name: 'Ešnunna', abbreviation: 'Ešn', parent: 'Babylonia' },
Girsu: { name: 'Girsu', abbreviation: 'Gir', parent: 'Babylonia' },
Lagaš: { name: 'Lagaš', abbreviation: 'Lag', parent: 'Babylonia' },
Nigin: { name: 'Nigin', abbreviation: 'Nig', parent: 'Babylonia' },
'Sippar-Amnānum': {
name: 'Sippar-Amnānum',
abbreviation: 'Sipam',
parent: 'Babylonia',
},
Šuruppak: { name: 'Šuruppak', abbreviation: 'Šur', parent: 'Babylonia' },
Ḫursagkalama: {
name: 'Ḫursagkalama',
abbreviation: 'Hur',
parent: 'Babylonia',
},
Tutub: { name: 'Tutub', abbreviation: 'Ttb', parent: 'Babylonia' },
Umma: { name: 'Umma', abbreviation: 'Umm', parent: 'Babylonia' },
Zabalam: { name: 'Zabalam', abbreviation: 'Zab', parent: 'Babylonia' },
'Bad-Tibira': {
name: 'Bad-Tibira',
abbreviation: 'Btb',
parent: 'Babylonia',
},
'Dūr-Kurigalzu': {
name: 'Dūr-Kurigalzu',
abbreviation: 'Dku',
parent: 'Babylonia',
},
Eridu: { name: 'Eridu', abbreviation: 'Eri', parent: 'Babylonia' },
Garšana: { name: 'Garšana', abbreviation: 'Gar', parent: 'Babylonia' },
Irisagrig: { name: 'Irisagrig', abbreviation: 'Irs', parent: 'Babylonia' },
Kisurra: { name: 'Kisurra', abbreviation: 'Ksr', parent: 'Babylonia' },
Kutalla: { name: 'Kutalla', abbreviation: 'Kut', parent: 'Babylonia' },
Marad: { name: 'Marad', abbreviation: 'Mrd', parent: 'Babylonia' },
'Maškan-šāpir': {
name: 'Maškan-šāpir',
abbreviation: 'Maš',
parent: 'Babylonia',
},
'Puzriš-Dagān': {
name: 'Puzriš-Dagān',
abbreviation: 'Puz',
parent: 'Babylonia',
},
Larak: { name: 'Larak', abbreviation: 'Lrk', parent: 'Babylonia' },
'Pī-Kasî': { name: 'Pī-Kasî', abbreviation: 'Pik', parent: 'Babylonia' },
Malgium: { name: 'Malgium', abbreviation: 'Mal', parent: 'Babylonia' },
Pašime: { name: 'Pašime', abbreviation: 'Paš', parent: 'Periphery' },
Tuttul: { name: 'Tuttul', abbreviation: 'Ttl', parent: 'Periphery' },
Elam: { name: 'Elam', abbreviation: 'Elam', parent: 'Periphery' },
Anšan: { name: 'Anšan', abbreviation: 'Anš', parent: 'Periphery' },
Dēr: { name: 'Dēr', abbreviation: 'Der', parent: 'Periphery' },
'Dūr-Untaš': { name: 'Dūr-Untaš', abbreviation: 'Dun', parent: 'Periphery' },
Ebla: { name: 'Ebla', abbreviation: 'Ebl', parent: 'Periphery' },
Kaneš: { name: 'Kaneš', abbreviation: 'Kan', parent: 'Periphery' },
Karkemiš: { name: 'Karkemiš', abbreviation: 'Kar', parent: 'Periphery' },
Persepolis: { name: 'Persepolis', abbreviation: 'Per', parent: 'Periphery' },
Terqa: { name: 'Terqa', abbreviation: 'Ter', parent: 'Periphery' },
'Tepe Gotvand': {
name: 'Tepe Gotvand',
abbreviation: 'Tgo',
parent: 'Periphery',
},
Qaṭnā: { name: 'Qaṭnā', abbreviation: 'Qaṭ', parent: 'Periphery' },
Uncertain: { name: 'Uncertain', abbreviation: 'Unc', parent: null },
} as const
export type Provenance = typeof Provenances[keyof typeof Provenances]
export const provenances = [
Provenances['Standard Text'],
Provenances.Assyria,
Provenances.Aššur,
Provenances.Ḫuzirina,
Provenances.Kalḫu,
Provenances.Khorsabad,
Provenances.Nineveh,
Provenances.Tarbiṣu,
Provenances.Babylonia,
Provenances.Babylon,
Provenances.Borsippa,
Provenances.Cutha,
Provenances.Dilbat,
Provenances.Isin,
Provenances.Kiš,
Provenances.Larsa,
Provenances.Meturan,
Provenances.Nērebtum,
Provenances.Nippur,
Provenances.Sippar,
Provenances.Šaduppûm,
Provenances.Ur,
Provenances.Uruk,
Provenances.Periphery,
Provenances.Alalakh,
Provenances['Tell el-Amarna'],
Provenances.Emar,
Provenances.Ḫattuša,
Provenances.Mari,
Provenances.Megiddo,
Provenances.Susa,
Provenances.Ugarit,
Provenances.Uncertain,
] as const
export const provenances: readonly Provenance[] = Object.values(Provenances)

export function compareStandardText(
first: Provenance,
Expand Down
Loading