Handle fonts for ccaps coming from DCP content (#2525).
[dcpomatic.git] / src / wx / verify_dcp_dialog.cc
index 8b73744f4c59efb151637857f576bf61c285c5ed..b3e229087155fdb045d7c2d91f6b991e99517e75 100644 (file)
@@ -97,6 +97,18 @@ VerifyDCPDialog::VerifyDCPDialog (wxWindow* parent, shared_ptr<VerifyDCPJob> job
                if (note.line()) {
                        message.Replace("%l", std_to_wx(dcp::raw_convert<string>(note.line().get())));
                }
+               if (note.frame()) {
+                       message.Replace("%frame", std_to_wx(dcp::raw_convert<string>(note.frame().get())));
+               }
+               if (note.component()) {
+                       message.Replace("%component", std_to_wx(dcp::raw_convert<string>(note.component().get())));
+               }
+               if (note.size()) {
+                       message.Replace("%size", std_to_wx(dcp::raw_convert<string>(note.size().get())));
+               }
+               if (note.id()) {
+                       message.Replace("%id", std_to_wx(note.id().get()));
+               }
                add_bullet (note.type(), message);
                counts[note.type()]++;
        };
@@ -338,7 +350,7 @@ VerifyDCPDialog::VerifyDCPDialog (wxWindow* parent, shared_ptr<VerifyDCPJob> job
                        add(i, _("A 2K JPEG2000 frame contains %n tile parts instead of 3."));
                        break;
                case dcp::VerificationNote::Code::INVALID_JPEG2000_TILE_PARTS_FOR_4K:
-                       add(i, _("A 2K JPEG2000 frame contains %n tile parts instead of 6."));
+                       add(i, _("A 4K JPEG2000 frame contains %n tile parts instead of 6."));
                        break;
                case dcp::VerificationNote::Code::MISSING_JPEG200_TLM_MARKER:
                        add(i, _("A JPEG2000 frame has no TLM marker."));
@@ -377,6 +389,42 @@ VerifyDCPDialog::VerifyDCPDialog (wxWindow* parent, shared_ptr<VerifyDCPJob> job
                case dcp::VerificationNote::Code::UNEXPECTED_DURATION:
                        add(i, _("There is a <Duration> tag inside a <MainMarkers>."));
                        break;
+               case dcp::VerificationNote::Code::INVALID_CONTENT_KIND:
+                       add(i, _("An invalid <ContentKind> %n has been used."));
+                       break;
+               case dcp::VerificationNote::Code::INVALID_MAIN_PICTURE_ACTIVE_AREA:
+                       add(i, _("The <MainPictureActiveArea> is either not a multiple of 2, or is bigger than an asset."));
+                       break;
+               case dcp::VerificationNote::Code::DUPLICATE_ASSET_ID_IN_PKL:
+                       add(i, _("The PKL %n has more than one asset with the same ID."));
+                       break;
+               case dcp::VerificationNote::Code::DUPLICATE_ASSET_ID_IN_ASSETMAP:
+                       add(i, _("The ASSETMAP %n has more than one asset with the same ID."));
+                       break;
+               case dcp::VerificationNote::Code::MISSING_SUBTITLE:
+                       add(i, _("The subtitle asset %n contains no subtitles."));
+                       break;
+               case dcp::VerificationNote::Code::INVALID_SUBTITLE_ISSUE_DATE:
+                       add(i, _("<IssueDate> has an invalid value %n"));
+                       break;
+               case dcp::VerificationNote::Code::MISMATCHED_SOUND_CHANNEL_COUNTS:
+                       add(i, _("Sound assets do not all have the same channel count."));
+                       break;
+               case dcp::VerificationNote::Code::INVALID_MAIN_SOUND_CONFIGURATION:
+                       add(i, _("<MainSoundConfiguration> describes incorrect number of channels (%n)"));
+                       break;
+               case dcp::VerificationNote::Code::MISSING_FONT:
+                       add(i, _("The font file for font ID \"%n\" was not found, or was not referred to in the ASSETMAP."));
+                       break;
+               case dcp::VerificationNote::Code::INVALID_JPEG2000_TILE_PART_SIZE:
+                       add(i, _("Frame %frame has an image component that is too large (component %component is %size bytes in size)."));
+                       break;
+               case dcp::VerificationNote::Code::INCORRECT_SUBTITLE_NAMESPACE_COUNT:
+                       add(i, _("The XML in the subtitle asset %n has more than one namespace declaration."));
+                       break;
+               case dcp::VerificationNote::Code::MISSING_LOAD_FONT:
+                       add(i, _("A subtitle or closed caption refers to a font with ID %id that does not have a corresponding <LoadFont> node."));
+                       break;
                }
        }