Extend concordance lists
This commit is contained in:
@@ -224,6 +224,7 @@ vermuteter Herstellungsort' => 1,
|
||||
// '19' => Drawn
|
||||
'Drawn' => 19,
|
||||
'Gezeichnet' => 19,
|
||||
'Zeichnen' => 19,
|
||||
|
||||
// 20: Copied
|
||||
'Copied' => 20,
|
||||
|
||||
+12
-3
@@ -19,7 +19,7 @@ final class MDConcLengths implements MDImporterConcordanceListInterface {
|
||||
*/
|
||||
public static function getConcordanceTarget(string $input):MDLengthUnit|false {
|
||||
|
||||
return match($input) {
|
||||
return match(trim($input)) {
|
||||
// Default: Empty
|
||||
"Breite",
|
||||
"breite",
|
||||
@@ -88,10 +88,13 @@ final class MDConcLengths implements MDImporterConcordanceListInterface {
|
||||
|
||||
// cm
|
||||
"cn",
|
||||
"ca. cm",
|
||||
",cm",
|
||||
" cm",
|
||||
"5cm",
|
||||
"Zentimeter",
|
||||
"см",
|
||||
" cm",
|
||||
"",
|
||||
"ca" => MDLengthUnit::cm,
|
||||
|
||||
@@ -108,10 +111,16 @@ final class MDConcLengths implements MDImporterConcordanceListInterface {
|
||||
"ma" => MDLengthUnit::mm,
|
||||
|
||||
"inch",
|
||||
"Inch",
|
||||
"inches",
|
||||
"Inches",
|
||||
"Zoll",
|
||||
"zoll" => MDLengthUnit::ft,
|
||||
"zoll" => MDLengthUnit::in,
|
||||
|
||||
default => throw new MDInvalidLengthUnit("Invalid length unit " . $input),
|
||||
"Fuß",
|
||||
"ft" => MDConcLengths::ft,
|
||||
|
||||
default => throw new MDInvalidLengthUnit("Invalid length unit '" . $input . "'"),
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -4744,6 +4744,7 @@ final class MDConcMeasurementTypes implements MDImporterConcordanceListInterface
|
||||
"Blattmaß - Länge",
|
||||
"Blattmass (Länge)",
|
||||
"Tiefe/Länge (Blatt)",
|
||||
"Blattmaß (Height x Width) - Depth",
|
||||
"Blattmaß (Height x Width) - length",
|
||||
"Blattmass (Tiefe)" => MDMeasurementType::length_sheet_size,
|
||||
|
||||
@@ -4952,10 +4953,35 @@ final class MDConcMeasurementTypes implements MDImporterConcordanceListInterface
|
||||
'Durchmesser (/5e2 Fuß)',
|
||||
"Durchmesser (Boden)" => MDMeasurementType::diameter_of_base,
|
||||
|
||||
'Length of handle',
|
||||
'Objektmaß: Griff | Handle' => MDMeasurementType::length_handle,
|
||||
'height of handle' => MDMeasurementType::height_handle,
|
||||
'width of handle' => MDMeasurementType::width_handle,
|
||||
|
||||
'length of scabbard' => MDMeasurementType::length_scabbard,
|
||||
'height of scabbard' => MDMeasurementType::height_scabbard,
|
||||
'width of scabbard' => MDMeasurementType::width_scabbard,
|
||||
|
||||
'length of label',
|
||||
'Objektmaß: Etikett | Label - Länge' => MDMeasurementType::length_label,
|
||||
'height of label' => MDMeasurementType::height_label,
|
||||
'width of label',
|
||||
'Objektmaß: Etikett | Label - Breite' => MDMeasurementType::width_label,
|
||||
|
||||
'number of sheets' => MDMeasurementType::number_of_sheets,
|
||||
'number of double pages' => MDMeasurementType::number_of_double_pages,
|
||||
'number of Standalone sheets' => MDMeasurementType::number_of_standalone_sheets,
|
||||
'number of written pages' => MDMeasurementType::number_of_written_pages,
|
||||
|
||||
'height of image mounth (inner)' => MDMeasurementType::height_image_mount_inner,
|
||||
'height of image mounth (outer)' => MDMeasurementType::height_image_mount_outer,
|
||||
|
||||
'width of image mounth (inner)' => MDMeasurementType::width_image_mount_inner,
|
||||
'width of image mounth (outer)' => MDMeasurementType::width_image_mount_outer,
|
||||
|
||||
'height of plate' => MDMeasurementType::height_plate,
|
||||
'width of plate' => MDMeasurementType::width_plate,
|
||||
|
||||
default => null,
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user