option to use period (.) as file name separator
-
- Posts: 3
- Joined: Fri Jan 13, 2017 10:19 am
option to use period (.) as file name separator
There are many torrent files use period (.) as separator instead of white space, eg:
“Everybody.Loves.Raymond.S01-S09.Complete.720p.WEB-DL.AAC2.0.H.264-BS”
when I search "Everybody.Raymond" no results returned.
Can you add an option to use period as file name separator? or simply ignore special characters (such as . ! # $ - {} () []) in filenames?
Thank you!
“Everybody.Loves.Raymond.S01-S09.Complete.720p.WEB-DL.AAC2.0.H.264-BS”
when I search "Everybody.Raymond" no results returned.
Can you add an option to use period as file name separator? or simply ignore special characters (such as . ! # $ - {} () []) in filenames?
Thank you!
Re: option to use period (.) as file name separator
A "Match punctuation" search options is on my TODO list, thanks for the suggestion.
Re: option to use period (.) as file name separator
Hi, void. Thank you for creating Everything, btw!void wrote:A "Match punctuation" search options is on my TODO list, thanks for the suggestion.
I'm also interested in what nuitlejour was asking about. That is perhaps best summarized as an option to ignore all punctuations (i.e. to treat them as spaces); Or maybe just periods & underscores, instead of all punctuation.
There were other people who've asked previously (including me). Some examples,
Option to make [.] equivalent to [space] - voidtools forum
viewtopic.php?f=4&t=4450
Limit to letters and numbers - voidtools forum
http://www.voidtools.com/forum/viewtopi ... tion#p7937
Filter: ignore - voidtools forum
http://www.voidtools.com/forum/viewtopic.php?f=5&t=1758
Any progress on this, void? Thank you!
Re: option to use period (.) as file name separator
I think this kind of problem should be solved by AHK script.
But, if considering solution in Everything, I'm thinking about, SearchFindAndReplace function. like:
But, if considering solution in Everything, I'm thinking about, SearchFindAndReplace function. like:
Code: Select all
SearchFindAndReplace:<.><*> Everybody.Loves.Raymond.S01-S09.Complete.720p.WEB-DL.AAC2.0.H.264-BS
SearchFindAndReplace:<.|" "><*> Everybody.Loves.Raymond.S01-S09.Complete.720p.WEB-DL.AAC2.0.H.264-BS
SearchFindAndReplace:<720p><720_p> Everybody.Loves.Raymond.S01-S09.Complete.720p.WEB-DL.AAC2.0.H.264-BS
Re: option to use period (.) as file name separator
Or changing the javascript-code of the bookmarklet idea to include a replace([#.]," ") function?Stamimail wrote:I think this kind of problem should be solved by AHK script.
(as I guess this is search text copied from a webpage)
BTW: the original bookmarklet code can be further reduced to:
Code: Select all
javascript:location.href='es:'+document.getSelection();
BTW2: Just curious: Are there still countries where downloading copyrighted material is legal?
(it used to be in the Netherlands, up until about 4 years ago. Everyone paid some sort of tax to compensate for that, as it was assumed people would download anyway)
Re: option to use period (.) as file name separator
Well the replacement itself seems easy (once you start with someone else's work ), http://jsfiddle.net/b609nr5L/.
But how to incorporate that into the rest of the bookmarklet, now that's beyond me.
But how to incorporate that into the rest of the bookmarklet, now that's beyond me.
Re: option to use period (.) as file name separator
Got it! (I think ...)
Was working on a PowerShell script where I had to convert some output to text to make things work, when I realized that might be valid for JavaScript too (is JavaScript object-oriented?)
Anyhow, this seems to work:
It is probably not needed to escape all these special characters; if you want to optimize this ... be my guest
When selecting the string
after pressing the bookmarklet toolbar button, this is the searchquery that was sent to Everything:
Good enough, as far as I'm concerned
Was working on a PowerShell script where I had to convert some output to text to make things work, when I realized that might be valid for JavaScript too (is JavaScript object-oriented?)
Anyhow, this seems to work:
Code: Select all
javascript:location.href='es:'+document.getSelection().toString().replace(/[\!\#\$\-\{\}\(\)\[\]\)\.\,]/g,' ');
When selecting the string
,nuitlejour wrote:ignore special characters (such as . ! # $ - {} () []) in filenames
after pressing the bookmarklet toolbar button, this is the searchquery that was sent to Everything:
Code: Select all
ignore special characters such as in filenames
Re: option to use period (.) as file name separator
Slight change, appending, ";void(0)":
That gets rid of the search "displaying" as the "web page" (too, & not that I know what void(0) does ).
And of course you can add your own "filters".
So, add, "_" to ignore:
So, with that...
From here: http://widujfvh.atspace.com/andrew-rosz.htm
If you highlight the string on the web page, "Andrew_Rosz_-_Bobbing_For_Apples.mp3"
It will find both:
Andrew_Rosz_-_Bobbing_For_Apples.mp3
and also:
Andrew Rosz Bobbing For Apples.mp3
One with the dashes (-) & underlines (_) & one without.
The dashes (-) & underlines (_) being filtered out.
Code: Select all
javascript:location.href='es:'+document.getSelection().toString().replace(/[\!\#\$\-\{\}\(\)\[\]\)\.\,]/g,'%20');void(0)
And of course you can add your own "filters".
So, add, "_" to ignore:
Code: Select all
javascript:location.href='es:'+document.getSelection().toString().replace(/[\!\#\$\-\{\}\(\)\[\]\)\.\,\_]/g,'%20');void(0)
So, with that...
From here: http://widujfvh.atspace.com/andrew-rosz.htm
If you highlight the string on the web page, "Andrew_Rosz_-_Bobbing_For_Apples.mp3"
It will find both:
Andrew_Rosz_-_Bobbing_For_Apples.mp3
and also:
Andrew Rosz Bobbing For Apples.mp3
One with the dashes (-) & underlines (_) & one without.
The dashes (-) & underlines (_) being filtered out.
Re: option to use period (.) as file name separator
Didn't notice the first time that this opened a new browser tab. But now it does (?).
Anyway, that void(0) takes care of that (we should ask @void what that void(0) means. If it was void(NotNull), you could ask me )
Good teamwork!
Hope this is what @nuitlejour and @a.voider were after ...
Anyway, that void(0) takes care of that (we should ask @void what that void(0) means. If it was void(NotNull), you could ask me )
Good teamwork!
Hope this is what @nuitlejour and @a.voider were after ...
Re: option to use period (.) as file name separator
I just realized that this could be further simplified by specifying which characters you *don't* want to replace:
replace(/[^a-zA-Z0-9]/g,' ') means: Replace all characters that are NOT in a-z, A-Z or 0-9 with a space.
Although I suspect this goes terribly wrong when you also use non-Latin characters, like Cyrillic, Chinese, Hebrew, ... that you do want to include. But if you;re only using abc, ABC, 123 characters, this will do.
Off-topic: How do these people do that? Do they include unicode ranges? Are there (for example) Chinese punctuation characters/symbols?
So much I don't know ....
Code: Select all
javascript:location.href='es:'+document.getSelection().toString().replace(/[^a-zA-Z0-9]/g,' ');void(0);
Although I suspect this goes terribly wrong when you also use non-Latin characters, like Cyrillic, Chinese, Hebrew, ... that you do want to include. But if you;re only using abc, ABC, 123 characters, this will do.
Off-topic: How do these people do that? Do they include unicode ranges? Are there (for example) Chinese punctuation characters/symbols?
So much I don't know ....
Re: option to use period (.) as file name separator
Yes, that's another way to go about it.
That's what I would think.Do they include unicode ranges?
Code: Select all
; in my terminology
; non-ASCII
regex:[\x{0000}-\x{007f}]
; Arabic
regex:[\x{0600}-\x{06ff}]
; Hebrew
regex:[\x{0591}-\x{05f4}]
Re: option to use period (.) as file name separator
Turns out that this was not a good idea after all: it also strips characters like à é ü and a lot of otherstherube wrote:Yes, that's another way to go about it.
Let's see what an internet-search will bring up (this is probably not the first time that this is an issue ...)
That's what I would think.Do they include unicode ranges?
Code: Select all
; in my terminology
; non-ASCII
regex:[\x{0000}-\x{007f}]
; Arabic
regex:[\x{0600}-\x{06ff}]
; Hebrew
regex:[\x{0591}-\x{05f4}]
Thanks!
But the more I think about it, the more confusing it gets ... Arabic and Hebrew are right-to-left languages. How do yo specify a regex in that case (as regex works left to right)? How do you even read text that has Arabic and English combined? Your eyes have to jump all over the line. How ...
But this is probably not the right place for questions like that ...
Re: option to use period (.) as file name separator
Thank you!!!Stamimail wrote:I made a short movie.
Shift+RightArrow all the way.
https://postimg.cc/image/4wugu7bx3/
That explains a lot.
I guess reading/writing that is somewhat like switching from driving at the left side of the road to driving right (after every corner..). You must stay alert ..
Funny when the first word of a sentence is Hebrew, the text is outlined to the right (makes sense of course, but didn't realize that)
Thanks for the eye-opener!
Re: option to use period (.) as file name separator
What you see is 4 paragraphs.Funny when the first word of a sentence is Hebrew, the text is outlined to the right (makes sense of course, but didn't realize that)
All paragraphs are LTR, except the 3rd that is RTL (because it is sentence in Hebrew).
It's not made automatically. In Microsoft Word I can determine the writing/reading direction for each paragraph. Typically LTR for English paragraph, and RTL for Hebrew paragraph.
This is usuallly made by:
LTR: LeftCtrl+LeftShift
RTL: RightCtrl+RightShift
No matter what is the writing direction, you can make a mixture of the 2 languages.
As long as the combined text is short (few words), it is (more) readable.
The longer it will be, the harder it will be to read the text.
Re: option to use period (.) as file name separator
Heh, didn't even notice there was a solution posted. Thanks, therube & NotNull. Wish they'd implement this into Everything though. I'd basically have to turn on my Bookmarks bar solely for this.therube wrote: ↑Mon Apr 16, 2018 5:23 pm Slight change, appending, ";void(0)":
That gets rid of the search "displaying" as the "web page" (too, & not that I know what void(0) does ).Code: Select all
javascript:location.href='es:'+document.getSelection().toString().replace(/[\!\#\$\-\{\}\(\)\[\]\)\.\,]/g,'%20');void(0)
And of course you can add your own "filters".
So, add, "_" to ignore:Code: Select all
javascript:location.href='es:'+document.getSelection().toString().replace(/[\!\#\$\-\{\}\(\)\[\]\)\.\,\_]/g,'%20');void(0)
So, with that...
From here: http://widujfvh.atspace.com/andrew-rosz.htm
If you highlight the string on the web page, "Andrew_Rosz_-_Bobbing_For_Apples.mp3"
It will find both:
Andrew_Rosz_-_Bobbing_For_Apples.mp3
and also:
Andrew Rosz Bobbing For Apples.mp3
One with the dashes (-) & underlines (_) & one without.
The dashes (-) & underlines (_) being filtered out.
Could you do a brother a favor and create this bookmarklet?
I need one that will redirect an imdb.com link to another website while keeping a part of the ## part of the link in the new website.
e.g. redirect https://www.imdb.com/title/tt0803096/
to https://www.somesitehere.com/seek.php?movieid=0803096
Please and thank you.