Skip to main content
Legend
November 19, 2010
Question

IgnoreTags resource

  • November 19, 2010
  • 1 reply
  • 729 views

Hello,

Is there a way of setting this resource programmatically?

We have an old plugin that did not have this resource and now the documents are being opened in InDesign 5 we are getting the missing plugin message.

Our new plugin has this resource. I was rather hoping that opening the old documents with the new plugin loaded and saving the documents would solve this, afraid not.

Any ideas would be appreciated.

Thanks.

This topic has been closed for replies.

1 reply

Participating Frequently
November 19, 2010

You need a schema based convertre like:

#include "Schema.fh"

//    See also Class definition of kDLxSlugDataPersistConversionProviderBoss.

resource SchemaFormatNumber( 1 ) {
    {
        {    //    Old format number to convert, where slug is marked CriticalTags().
            kDLxMajorFormatNumber,
            kDLxMinorFormatNumber_Critical
        },
        {    //    New format version number, where slug is marked IgnoreTags().
            kDLxMajorFormatNumber,
            kDLxMinorFormatNumber
        },
    }
};


resource DirectiveList( 1 ) {
    {
        {
            IgnorePlugin
            {
                {    //    New format version number, where slug is marked IgnoreTags().
                    kDLxMajorFormatNumber,
                    kDLxMinorFormatNumber
                }, // new version number
                kDLxPluginID
            }
        },
    }
};

/*    Boss class definition.
*/
resource ClassDescriptionTable( kSDKDefClassDescriptionTableResourceID )
{{{
    Class {
        kDLxSlugDataPersistConversionProviderBoss,
        kInvalidClass,
        {
            IID_ICONVERSIONPROVIDER, kSchemaBasedConversionImpl,
            IID_IK2SERVICEPROVIDER, kConversionServiceImpl,
        }
    },
}}};

HTH

Peter Schülke

PickoryAuthor
Legend
November 19, 2010

Hello Peter,

Thank you for your reply, I will give it a go.

I did not mention that is problem is being caused by hidden text and character attributes. The other big problem is I do not know the version numbers.

Thanks again.