This forum uses cookies. Click X button to hide this message. What is stored? 
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Preliminary information about Unicode support (TC7.5)
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) Printable version
View previous topic :: View next topic  
Author Message
fenix_productions
Power Member
Power Member


Joined: 07 Aug 2005
Posts: 1945
Location: Poland

PostPosted: Mon Apr 06, 2009 6:06 am    Post subject: Reply with quote

2ghisler(Author)
Are there any chances to provide sample Unicode plugin with ft_string, ft_stringw fields?

What about ft_fulltext? Does it also support Unicode?

SDK help file says that length of returned value is maxlen-1 in that case. How is it reflected in Unicode case? Half of it for UTF-16?
_________________
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34715
Location: Switzerland

PostPosted: Mon Apr 06, 2009 9:14 am    Post subject: Reply with quote

You can return either ft_string or ft_stringw, Total Commander will accept both for one string field. Just make sure to test for the version number of the plugin interface before returning ft_stringw.

There is no ft_fulltextw at this time, sorry.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
fenix_productions
Power Member
Power Member


Joined: 07 Aug 2005
Posts: 1945
Location: Poland

PostPosted: Mon Apr 06, 2009 9:51 am    Post subject: Reply with quote

2ghisler(Author)
For standard plugin I can return ft_string like:
Code:
//tmpval as std::string
strlcpy((char*)FieldValue, tmpval.c_str(),maxlen-1);


How to do that for Unicode?

Will it be correct for ft_stringw?
Code:
//tmpval as std::wstring
wcscpy((wchar_t*)FieldValue, tmpval.c_str(),maxlen-1);


I think I will wait for more samples Wink
_________________
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34715
Location: Switzerland

PostPosted: Tue Apr 07, 2009 1:51 pm    Post subject: Reply with quote

Yes, when you return a Unicode string, return ft_stringw.

However, the correct copying call is like this:
Code:

wcscpy((wchar_t*)FieldValue, tmpval.c_str(),maxlen/2-1);


Note the /2 because "maxlen" is the size in bytes, not in characters for any type of field.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Postkutscher
Power Member
Power Member


Joined: 31 Mar 2006
Posts: 556

PostPosted: Thu Apr 16, 2009 11:30 am    Post subject: Reply with quote

2ghisler(Author)
When the new plugin writer`s guide will be available?
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34715
Location: Switzerland

PostPosted: Thu Apr 16, 2009 2:41 pm    Post subject: Reply with quote

I will make an announcement shortly here in the plugins forum.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Postkutscher
Power Member
Power Member


Joined: 31 Mar 2006
Posts: 556

PostPosted: Thu Apr 16, 2009 4:11 pm    Post subject: Reply with quote

Here it is. I see.

Thank you! Smile
Back to top
View user's profile Send private message
Lefteous
Power Member
Power Member


Joined: 08 Feb 2003
Posts: 9389
Location: Germany

PostPosted: Sun Sep 21, 2014 1:22 pm    Post subject: Reply with quote

2ghisler(Author)
Quote:
There is no ft_fulltextw at this time, sorry.

Any news on this?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
XPEHOPE3KA
Power Member
Power Member


Joined: 03 Mar 2006
Posts: 848
Location: Saint-Petersburg, Russia

PostPosted: Thu Jan 14, 2016 2:30 pm    Post subject: Reply with quote

2ghisler(Author)
Quote:
There is no ft_fulltextw at this time, sorry.

Is this planned for 9.0 version maybe?
_________________
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 34715
Location: Switzerland

PostPosted: Mon Jan 18, 2016 4:03 am    Post subject: Reply with quote

Yes, ft_fulltextw has been added in November 2014(!). Unfortunately I just can't release TC9 yet because the expectations are too high. There is still a lot to add.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
milo1012
Power Member
Power Member


Joined: 02 Feb 2012
Posts: 1032

PostPosted: Mon Jan 18, 2016 12:54 pm    Post subject: Reply with quote

ghisler(Author) wrote:
Yes, ft_fulltextw has been added in November 2014(!).

That's great to hear!
Is the encoding in UTF-16 or UTF-8 format?

Also, as I already suggested here:
Is it possible to add all wdx fields with full text search to the search dialog's main tab?
It would make an easier access, and shows the user some alternate engine immediately.
_________________
TC plugins: PCREsearch and RegXtract
Back to top
View user's profile Send private message Send e-mail
Lefteous
Power Member
Power Member


Joined: 08 Feb 2003
Posts: 9389
Location: Germany

PostPosted: Tue Jan 19, 2016 1:46 am    Post subject: Reply with quote

2ghisler(Author)
Quote:
Yes, ft_fulltextw has been added in November 2014

Great! Smile

2milo1012
Quote:
Is it possible to add all wdx fields with full text search to the search dialog's main tab?

As far as I understood this should be part of the already confirmed features for TC 9.
http://www.ghisler.ch/board/viewtopic.php?p=297896#297896
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tbeu
Power Member
Power Member


Joined: 04 Jul 2003
Posts: 1193
Location: Germany

PostPosted: Tue Jan 19, 2016 7:38 am    Post subject: Reply with quote

Does this mean the WDX API version was incremented?
_________________
TC plugins: Autodesk 3ds Max Preview, Blat Mailer, ImageMetaData (JPG Comment/EXIF/IPTC/XMP) , MATLAB MAT-file Viewer, SolidWorks Preview and more
Back to top
View user's profile Send private message Send e-mail Visit poster's website
milo1012
Power Member
Power Member


Joined: 02 Feb 2012
Posts: 1032

PostPosted: Tue Jan 19, 2016 7:42 am    Post subject: Reply with quote

Lefteous wrote:
As far as I understood this should be part of the already confirmed features for TC 9.
http://www.ghisler.ch/board/viewtopic.php?p=297896#297896

Yes, but I think we need to see this in action.
Judging from the description it seems to be combined with Office/XML search, which might not exactly be what I meant.

In any case, good to see progress in this matter.
_________________
TC plugins: PCREsearch and RegXtract
Back to top
View user's profile Send private message Send e-mail
Lefteous
Power Member
Power Member


Joined: 08 Feb 2003
Posts: 9389
Location: Germany

PostPosted: Tue Jan 19, 2016 8:34 am    Post subject: Reply with quote

2milo1012
Quote:
Yes, but I think we need to see this in action.

Sure.

Quote:
Judging from the description it seems to be combined with Office/XML search, which might not exactly be what I meant.

It somehow must be 'combined' with 'Office xml'. There must be some kind of mechanism how to search for file contents. If you want to search text in docx files you have to define if you want to use the internal mechanism or for example using the "TextSearch" plugin.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 4 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group