tcmatch in pb5

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Flags then ?

Post by *Clo »

:arrow: ghisler(Author)

:) Good evening,
…Yes, I will consider to add a location string to wincmd.ini for tcmatch.dll.
• Well, but then, will you set also an entry (like we wrongly assumed prior) for the parameters flags announced
in the History.txt paragraph above mentioned ?

:mrgreen: VG
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

But only:

Code: Select all

8: allow empty result: longer search strings can return more results
would be useful for the wincmd.ini. The rest is only usefull for authors of a tcmatch.dll.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Actually 8 is also mainly meant for authors: for example, a plugin which supports the OR operator would return more results with a longer string, e.g.
doc OR xls
would find more documents than just
doc
Author of Total Commander
https://www.ghisler.com
cheming
Member
Member
Posts: 153
Joined: 2004-05-07, 14:38 UTC
Location: China

Post by *cheming »

2Ghisler:

How can I use both Samuel and Shanny's tcmatch.dll together? Maybe should integrate their source code together and re-compiled a NEW dll. :-(
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

How exactly does this Chinese dll work?
What do you write, and what does it match?
how could it be used "google like"?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

For example, to find the Chinese characters 北京 for "Beijing", you type the first character of the transliteration of each character to Latin characters, which is a B and J. So typing BJ will jump to a file/dir named "Beijing".

Currently it's not possible to have more than one search plugin. Someone could write a search plugin which calls other search plugins, or combine existing search plugins into one if they are open source (mine is).
Author of Total Commander
https://www.ghisler.com
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

For example, to find the Chinese characters 北京 for "Beijing", you type the first character of the transliteration of each character to Latin characters, which is a B and J. So typing BJ will jump to a file/dir named "Beijing".
I just got this behavior by analyzing the code, when you explained it.


I adjusted my Google like Quicksearch to support PinYin. But the PinYin support is experimental. Couldnt create a Chinese folder on my German WinXP. So please Test and tell me if it works.
cheming
Member
Member
Posts: 153
Joined: 2004-05-07, 14:38 UTC
Location: China

Post by *cheming »

2Samuel:

It seems not work for PinYin but works if entered Chinese directly.
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

Please report bugs there. I will look into it again.

I cant test because if I copy this: 北京
and paste it to TC Folder or Filename it only shows squares for me.

Edit: You know that you have to enable it?
-> "use_pinyin=1" in ini file
Last edited by Samuel on 2009-06-16, 15:26 UTC, edited 2 times in total.
cheming
Member
Member
Posts: 153
Joined: 2004-05-07, 14:38 UTC
Location: China

Post by *cheming »

Please report bugs there. I will look into it again.

I cant test because if I copy this: 北京
and paste it to TC Folder or Filename it only shows squares for me.
Pasting 北京 or typing them in QuickSearch works. But if you typing B and J not works.

BTW: Do you turn on then "Install files for East Asian languages" option in Windows Regional and Language setting?
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

It was the "Install files for East Asian languages" option, that showed me squares. I wounder why Firefox can show Chinese and TC / Explorer cant...

I can now test it on my own. Thanks. I will report back later.

Edit: Can you give me some other sample files and their PinYin codes?
cheming
Member
Member
Posts: 153
Joined: 2004-05-07, 14:38 UTC
Location: China

Post by *cheming »

Samuel wrote:It was the "Install files for East Asian languages" option, that showed me squares. I wounder why Firefox can show Chinese and TC / Explorer cant...

I can now test it on my own. Thanks. I will report back later.

Edit: Can you give me some other sample files and their PinYin codes?
中国 Zhong Guo
神舟 Shen Zhou
我爱你 Wo Ai Ni
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

Thanks!

Found the problem: Forgot a "-1".
All samples just work fine for me.

Fixed version online. Can you confirm that it works?
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

Still not working.
W8 a sec :-).
cheming
Member
Member
Posts: 153
Joined: 2004-05-07, 14:38 UTC
Location: China

Post by *cheming »

I tried 1.21 and found a edge-effect:

typing INI, many files are displayed:

Icons\
Plugins\
WINCMD.INI
TCMATCH.INI
WCX_FTP.INI
lsplugin.ini
USERCMD.INI
DESCRIPT.ION
TCMADMIN.EXE
TCUNZLIB.DLL
TOTALCMD.INC
WCMICONS.DLL
WCMICONS.INC

I think the problem is in PinYinStringMatch function.
Post Reply