Pinyin search modifier

Discussion related to "Everything" 1.5 Alpha.
Post Reply
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Pinyin search modifier

Post by void »

Everything 1.5.0.1320a adds support for an experimental pinyin: search modifier.

Only the first pinyin character of each Chinese character is required.

Please let me know if this modifier is useful.



For example:
pinyin:yq matches: 一切
(yi1 qie1 qie4)



To make a filter to always search as pinyin:
  • In Everything 1.5, from the Search menu, click Add to filters....
  • Change the Name to: Pinyin
  • Change the Search to: pinyin:<#param:>
  • Click OK.
  • Activate the Pinyin filter from the Search menu.
bigheadghost
Posts: 2
Joined: Tue Aug 15, 2017 2:31 am

Re: Pinyin search modifier

Post by bigheadghost »

Finally🎉!

Wait for this fantastic feature so looooooooooooong!

future enchancement could be heteronym support.

for example, 长:
"长 高" reads "zhang3" "gao1", here "长" means "grow up"
"长 短" reads "chang2" "duan3", here "长" means "long"

so, "zg" should match the first (but now it uses "cg"), while "cd" should match the second.
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Pinyin search modifier

Post by void »

Everything 1.5.0.1340a improves pinyin:

fixed an issue with new files matching pinyin.
matching pinyin is now highlighted.
yhuis
Posts: 7
Joined: Mon Jan 28, 2019 10:50 am

Re: Pinyin search modifier

Post by yhuis »

How to use pinyin when searching Comment Properties?
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: Pinyin search modifier

Post by NotNull »

Search modifiers like pinyin: are put in front of the functions they work on.

Does pinyin:comment:"your text" give the expected results?
yhuis
Posts: 7
Joined: Mon Jan 28, 2019 10:50 am

Re: Pinyin search modifier

Post by yhuis »

NotNull wrote: Sun Apr 30, 2023 5:48 pm Search modifiers like pinyin: are put in front of the functions they work on.

Does pinyin:comment:"your text" give the expected results?
Your answer was spot-on, many thanks!
lucidity
Posts: 4
Joined: Tue Jul 23, 2024 2:33 am

Re: Pinyin search modifier

Post by lucidity »

Hi, How to enable the modifier by default?

Looking forward to supporting full spelling(全拼-quanpin) in the future.
I mean pinyin:yiqie matches: 一切
(yi1 qie1 qie4)

Full spelling is more in line with Chinese typing habits.

Thanks.
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Pinyin search modifier

Post by void »

I will add a pinyin QuanPin option.
This option will be enabled by default.

Thank you for the suggestion.



To make a filter to always search as pinyin:
  • In Everything 1.5, from the Search menu, click Add to filters....
  • Change the Name to: Pinyin
  • Change the Search to:
    ::pinyin: #param:
  • Click OK.
  • Activate the Pinyin filter from the Search menu.
Last edited by void on Thu Nov 28, 2024 10:06 pm, edited 1 time in total.
Reason: old search: pinyin:<#param:>
lucidity
Posts: 4
Joined: Tue Jul 23, 2024 2:33 am

Re: Pinyin search modifier

Post by lucidity »

void wrote: Tue Jul 23, 2024 4:31 am To make a filter to always search as pinyin:
It worked, thank you very much, it's awesome.

I think QuanPin will be better adapted to multi-phonetic characters.

As in the example above,
pinyin:zhanggao matches: 长高
pinyin:changduan matches: 长短
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Pinyin search modifier

Post by void »

Everything 1.5.0.1384a adds support for QuanPin Pinyin.

QuanPin is now the default method.

To change Pinyin to the old Single Character method:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    pinyin
  • Select: pinyin_type
  • Set the value to: Single Character
  • Click OK.


To make a filter to always search as pinyin:
  • In Everything 1.5, from the Search menu, click Add to filters....
  • Change the Name to: Pinyin
  • Change the Search to:
    ::pinyin: #param:
  • Click OK.
  • Activate the Pinyin filter from the Search menu.
lucidity
Posts: 4
Joined: Tue Jul 23, 2024 2:33 am

Re: Pinyin search modifier

Post by lucidity »

Wow, I love you so much! This is an epic update for Chinese users.
bluespace
Posts: 4
Joined: Thu Nov 28, 2024 3:47 pm

Re: Pinyin search modifier

Post by bluespace »

It's a great improvement for chinese users. Thank you.
However, I hope we can search pinyin without adding a filter. So, my suggestion is: If the "QuanPin" option is enabled, the search will include the Pinyin results directly, no need to add a filter.
Thank you again.
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Pinyin search modifier

Post by void »

Thank you for the feedback.

I am considering a simple Search -> Pinyin toggle.
This will behave the same as having the Pinyin filter active.
I have concerns this might break some search functions and hurt performance.

Please let me know if you run into any troubles with the Pinyin filter active.
bluespace
Posts: 4
Joined: Thu Nov 28, 2024 3:47 pm

Re: Pinyin search modifier

Post by bluespace »

The Pinyin filter works well in Everything.
However I am also using the launcher software Fluent search, it calls Everything to search files. (I think a bunch of launcher softwares rely on the Everything.)
In the launcher software, I have to manually input the filter pinyin:.
yahuu
Posts: 16
Joined: Wed Jul 24, 2024 9:56 am

Re: Pinyin search modifier

Post by yahuu »

The current method of using options is not perfect. When I want to modify the matching method, I have to change the settings as well.
It would be better if the filter supported the following methods:
pinyinjian: = pyj: (Single)
pinyinquan: = pyq: (Quanpin)
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Pinyin search modifier

Post by void »

pinyinjian: = pyj: (Single)
pinyinquan: = pyq: (Quanpin)
I have put this on my TODO list.
Thank you for the suggestion.
bluespace
Posts: 4
Joined: Thu Nov 28, 2024 3:47 pm

Re: Pinyin search modifier

Post by bluespace »

I think the perfect way is that users do not have to choose any option, everything can search both Quanpin and Single Pinyin, simultaneously.
Actually, somebody developed a plugin for everything, it realized the feature: search both Quanpin and Single Pinyin, without any filter or modifier.
https://github.com/Chaoses-Ib/IbEverythingExt
But this plugin does not work after everything v1.5.0.1384.

Also, a Laucher software Listary could also search both Quanpin and Single Pinyin simultaneously.
Chaoses Ib
Posts: 5
Joined: Sun Sep 26, 2021 3:35 pm

Re: Pinyin search modifier

Post by Chaoses Ib »

bluespace wrote: Wed Dec 04, 2024 7:42 am I think the perfect way is that users do not have to choose any option, everything can search both Quanpin and Single Pinyin, simultaneously.
Actually, somebody developed a plugin for everything, it realized the feature: search both Quanpin and Single Pinyin, without any filter or modifier.
https://github.com/Chaoses-Ib/IbEverythingExt
But this plugin does not work after everything v1.5.0.1384.

Also, a Laucher software Listary could also search both Quanpin and Single Pinyin simultaneously.
The pinyin search library is open-sourced under MIT license here: https://github.com/Chaoses-Ib/IbPinyinLib

It supports many pinyin encodings (yeah, there are dozens of pinyin encodings) and mixing any of them. It's written in Rust, but provides a C interface as well, although limited. Hope it can provide some reference for void, or maybe he can integrate it directly as a built-in library or as a plugin, so the wheel doesn't need to be invented twice.
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Pinyin search modifier

Post by void »

bluespace
Posts: 4
Joined: Thu Nov 28, 2024 3:47 pm

Re: Pinyin search modifier

Post by bluespace »

Great! It's much better. Thank you.
I added a filter, pyj:<#param:> | py:<#param:>
Then it could search with both QuanPin and JianPin. That's what I want.
But I hope that by default, users do not have to use modifier or filter, if the option is turned on.
lucidity
Posts: 4
Joined: Tue Jul 23, 2024 2:33 am

Re: Pinyin search modifier

Post by lucidity »

By the way, it would be even better to include both pinyin and English, with pinyin listed before English. This way, there's no need to switch the pinyin filter every time during searches.
This is very user-friendly for those who search in Chinese and English.
yahuu
Posts: 16
Joined: Wed Jul 24, 2024 9:56 am

Re: Pinyin search modifier

Post by yahuu »

bluespace wrote: Thu Dec 05, 2024 6:17 am Great! It's much better. Thank you.
I added a filter, pyj:<#param:> | py:<#param:>
Then it could search with both QuanPin and JianPin. That's what I want.
But I hope that by default, users do not have to use modifier or filter, if the option is turned on.
上面的示例中,新版是这么写的

Code: Select all

::py: #param:

Code: Select all

::pyj: #param:
Post Reply