source: main/trunk/greenstone2/perllib/cpan/Image/ExifTool/GE.pm@ 34921

Last change on this file since 34921 was 34921, checked in by anupama, 3 years ago

Committing the improvements to EmbeddedMetaPlugin's processing of Keywords vs other metadata fields. Keywords were literally stored as arrays of words rather than phrases in PDFs (at least in Diego's sample PDF), whereas other meta fields like Subjects and Creators stored them as arrays of phrases. To get both to work, Kathy updated EXIF to a newer version, to retrieve the actual EXIF values stored in the PDF. And Kathy and Dr Bainbridge came up with a new option that I added called apply_join_before_split_to_metafields that's a regex which can list the metadata fields to apply the join_before_split to and whcih previously always got applied to all metadata fields. Now it's applied to any *Keywords metafields by default, as that's the metafield we have experience of that behaves differently to the others, as it stores by word instead of phrases. Tested on Diego's sample PDF. Diego has double-checked it to works on his sample PDF too, setting the split char to ; and turning on the join_before_split and leaving apply_join_before_split_to_metafields at its default of .*Keywords. File changes are strings.properties for the tooltip, the plugin introducing the option and working with it and Kathy's EXIF updates affecting cpan/File and cpan/Image.

  • Property svn:executable set to *
File size: 2.0 KB
Line 
1#------------------------------------------------------------------------------
2# File: GE.pm
3#
4# Description: General Imaging maker notes tags
5#
6# Revisions: 2010-12-14 - P. Harvey Created
7#------------------------------------------------------------------------------
8
9package Image::ExifTool::GE;
10
11use strict;
12use vars qw($VERSION);
13use Image::ExifTool qw(:DataAccess :Utils);
14use Image::ExifTool::Exif;
15
16$VERSION = '1.00';
17
18sub ProcessGE2($$$);
19
20# GE type 1 maker notes (ref PH)
21# (similar to Kodak::Type11 and Ricoh::Type2)
22%Image::ExifTool::GE::Main = (
23 WRITE_PROC => \&Image::ExifTool::Exif::WriteExif,
24 CHECK_PROC => \&Image::ExifTool::Exif::CheckExif,
25 WRITABLE => 1,
26 GROUPS => { 0 => 'MakerNotes', 2 => 'Camera' },
27 NOTES => q{
28 This table lists tags found in the maker notes of some General Imaging
29 camera models.
30 },
31 # 0x0104 - int32u
32 # 0x0200 - int32u[3] (with invalid offset of 0)
33 0x0202 => {
34 Name => 'Macro',
35 Writable => 'int16u',
36 PrintConv => { 0 => 'Off', 1 => 'On' },
37 },
38 # 0x0203 - int16u: 0
39 # 0x0204 - rational64u: 10/10
40 # 0x0205 - rational64u: 7.249,7.34,9.47 (changes with camera model)
41 # 0x0206 - int16u[6] (with invalid offset of 0)
42 0x0207 => {
43 Name => 'GEModel',
44 Format => 'string',
45 },
46 0x0300 => {
47 Name => 'GEMake',
48 Format => 'string',
49 },
50 # 0x0500 - int16u: 0
51 # 0x0600 - int32u: 0
52);
53
54__END__
55
56=head1 NAME
57
58Image::ExifTool::GE - General Imaging maker notes tags
59
60=head1 SYNOPSIS
61
62This module is loaded automatically by Image::ExifTool when required.
63
64=head1 DESCRIPTION
65
66This module contains definitions required by Image::ExifTool to interpret
67General Imaging maker notes.
68
69=head1 AUTHOR
70
71Copyright 2003-2021, Phil Harvey (philharvey66 at gmail.com)
72
73This library is free software; you can redistribute it and/or modify it
74under the same terms as Perl itself.
75
76=head1 SEE ALSO
77
78L<Image::ExifTool::TagNames/GE Tags>,
79L<Image::ExifTool(3pm)|Image::ExifTool>
80
81=cut
Note: See TracBrowser for help on using the repository browser.