TC9.21a Content plugin interface version

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

TC9.21a Content plugin interface version

Post by *tbeu »

The changelog of the content plugin help reads:
2016.05.08 Release specifications version 2.20
2016.05.08 New type ft_fulltextw added
However, version 2.11 still is passed to the ContentSetDefaultParams function using TC 9.21a.

Code: Select all

dps	0x00138b5c {size=272 PluginInterfaceVersionLow=11 PluginInterfaceVersionHi=2 ...}	ContentDefaultParamStruct *
size	272	int
PluginInterfaceVersionLow	11	unsigned long
PluginInterfaceVersionHi	2	unsigned long
which means for the content plugin that ft_fulltextw must not be reported as field type since only supported by 2.20 or later.

See also https://www.ghisler.ch/board/viewtopic.php?f=6&t=50939#p350425 and https://www.ghisler.ch/board/viewtopic.php?f=6&t=51630#p350426.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC9.21a Content plugin interface version

Post by *ghisler(Author) »

You should indeed report ft_fulltext for plugin fields, and only return ft_fulltextw during the actual search if the plugin version is 2.11 or newer.
Author of Total Commander
https://www.ghisler.com
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Re: TC9.21a Content plugin interface version

Post by *tbeu »

I believe the changlog should be fixed from
2016.05.08 Release specifications version 2.20
to
2016.05.08 Release specifications version 2.11
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Re: TC9.21a Content plugin interface version

Post by *tbeu »

It also is wrong in the interface description of ContentGetSupportedField, see for example section Return value of https://tbeu.github.io/WDX-SDK/contentgetsupportedfield.htm
ft_fulltextw New in 2.11: Same as ft_fulltext, but with UTF-16 encoding. May be returned instead of ft_fulltext.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC9.21a Content plugin interface version

Post by *ghisler(Author) »

OK, I have updated the help.

1. What's new fixed 2.2 -> 2.11

2. ContentGetSupportedField:
ft_fulltextw New in 2.11: Same as ft_fulltext, but with UTF-16 encoding. You can report ft_fulltext in ContentGetSupportedField, and then either ft_fulltext or ft_fulltextw in ContentGetValue, depending on the file.

2tbeu
If you want to host the help, then please change ie5.css to use larger fonts than x-small and small. Why? I need to use these so the help interface shows enough data. But on a web page, larger fonts should be used to get readable text, at least in Chrome and Firefox. Thanks.
Author of Total Commander
https://www.ghisler.com
Post Reply