Permlink Replies: 29 - Pages: 2 [ 1 2 | Next ] - Last Post: 28-Apr-2012 13:53 Last Post By: MarkE
MarkE

Posts: 87
Registered: 24-Apr-2006
Ignore Pattern
Posted: 24-Jul-2006 16:57
  Click to reply to this thread Reply
Chameleon v3.11 skin.

I have a folder structure arranged in months, 01 January 2006, 02 February 2006 etc which contain images. Each folder has a sub-folder named Video which has movies. I wish to create an image-only album without having to manually edit the source folder structure, or manually exclude the folders.

I thought the JAlbum Ignore Pattern would do the trick, but whatever I try to enter doesn't work, like video, Video (is it case sensitive?), \video, \video*, \video.* and so on.

Can someone please enlightne me?

Cheers,

Mark
jimberry

Posts: 495
Registered: 30-Aug-2004
Re: Ignore Pattern
Posted: 25-Jul-2006 03:41   in response to: MarkE in response to: MarkE
  Click to reply to this thread Reply
You need to use a regular expression that identifies something in the filename that is unique for the type of file you want to exclude.(e.g. starting character/s, ending character/s, contains character string etc)
MarkE

Posts: 87
Registered: 24-Apr-2006
Re: Ignore Pattern
Posted: 25-Jul-2006 09:59   in response to: jimberry in response to: jimberry
  Click to reply to this thread Reply
You need to use a regular expression that identifies
something in the filename that is unique for the type
of file you want to exclude.(e.g. starting
character/s, ending character/s, contains character
string etc)

Jim,

So you're saying that I can't exclude a folder named "Video", but can exclude things contained therein, say *.avi & *.wmv?

Seems a little odd .....

Cheers,

Mark

jimberry

Posts: 495
Registered: 30-Aug-2004
Re: Ignore Pattern
Posted: 25-Jul-2006 10:34   in response to: MarkE in response to: MarkE
  Click to reply to this thread Reply
No, I am not sure about folders, I would assume that they can be excluded as well, but I've never tried it. AFAIK, with the "ignore pattern", you can exclude any folder or file if you can identify it with a regular expression that doesn't also exclude files or folders that you want to keep (am I making sense?).

Personally, I use the edit tab to exclude (per album) files and/or folders, because for me, there wouldn't be any recognizable "pattern" that would hold for all possible file/folder names I might want to exclude.

(bpp\-generated)|((\.|_).*|.*\.(wav|mp3|wma|voc|mid|au|rm)) is the standard BPP ignore pattern

Have you tried (Video)?

I expect (*\.avi)|*\.wmv) or (*\.(avi|wmp) would also work.

I assume from the above BPP example that "\" is required as an escape for some characters such as "-" or ".".

However, remember that this is all conjecture on my part, as I don't use the ignore pattern except by default. (In other words, I don't know $#@% ;-)

If the above suggestions from an ignoramus don't work, hopefully some geek who actually knows something about it will come along and tell you the good stuff!

MarkE

Posts: 87
Registered: 24-Apr-2006
Re: Ignore Pattern
Posted: 25-Jul-2006 11:28   in response to: jimberry in response to: jimberry
  Click to reply to this thread Reply
No, I am not sure about folders, I would assume that
they can be excluded as well, but I've never tried
it. AFAIK, with the "ignore pattern", you can exclude
any folder or file if you can identify it with a
regular expression that doesn't also exclude files or
folders that you want to keep (am I making sense?).

Of course!

Personally, I use the edit tab to exclude (per album)
files and/or folders, because for me, there wouldn't
be any recognizable "pattern" that would hold for all
possible file/folder names I might want to exclude.

I do too, normally, but this time it would involve too much manual labour :(

Have you tried (Video)?

However, remember that this is all conjecture on my
part, as I don't use the ignore pattern except by
default. (In other words, I don't know $#@% ;-)

Join the club!

If the above suggestions from an ignoramus don't
work, hopefully some geek who actually knows
something about it will come along and tell you the
good stuff!

Hey, David, YOU must know! (Not that we would call you a geek, of course) :D

Mark
jimberry

Posts: 495
Registered: 30-Aug-2004
Re: Ignore Pattern
Posted: 25-Jul-2006 11:59   in response to: MarkE in response to: MarkE
  Click to reply to this thread Reply
Not like you to pass up a challenge, Mark!!! ;-)

I decided to test my own assumptions and generated a gallery with the following ignore pattern

(Video)|((\.|_).*|.*\.(avi|wmp|wma|voc|mid|au|rm))

As I surmised, this ignored a folder called Video, and a *.avi file in another folder
MarkE

Posts: 87
Registered: 24-Apr-2006
Re: Ignore Pattern
Posted: 25-Jul-2006 12:27   in response to: jimberry in response to: jimberry
  Click to reply to this thread Reply
Not like you to pass up a challenge, Mark!!! ;-)

Yeah, Jim, but busy busy ... and at work, too :(

I decided to test my own assumptions and generated a
gallery with the following ignore pattern

(Video)|((\.|_).*|.*\.(avi|wmp|wma|voc|mid|au|rm))

As I surmised, this ignored a folder called Video,
and a *.avi file in another folder


Ah! I'll try the (Video) ... I wonder if it's case-sensitive?

Cheers,

Mark
MarkE

Posts: 87
Registered: 24-Apr-2006
Re: Ignore Pattern
Posted: 25-Jul-2006 12:44   in response to: jimberry in response to: jimberry
  Click to reply to this thread Reply
Not like you to pass up a challenge, Mark!!! ;-)

Not like me to make a complete dog's dinner of something! I tried (Video) and (video). Both worked, so it's case insensitive.

I then tried video with no () and that worked, too!

I don't know WHAT I was trying before ...

Just to be sure, now that I don't trust myself, can you confirm that using plain video works for you, too.

Cheers,

Mark

Just to add : created New Folder, and entering new folder also works, so it deals with spaces OK, too.

Message was edited by: Mark Worthington

Message was edited by: Mark Worthington

alan927

Posts: 42
Registered: 18-Jun-2005
Re: Ignore Pattern
Posted: 26-Jul-2006 02:31   in response to: MarkE in response to: MarkE
  Click to reply to this thread Reply
It takes me 4 separate projects to build my site since I use different settings for different parts. When going back and forth between the root dir project and the "everything but the root and 2 folders" project I had to exclude the 2 "other" folders in the "everything else" project and then re-include them when I rebuilt the root. Every once in a while I'd forget to do the exclude and clobber the 2 "other" folders... it was annoying to have to go back and reassemble the 2 "others".

I had never even thought about the Ignore Pattern...

So I just put this expression in:

(\..*)|(Animations)|(Wallpaper)

...and it excludes my two "other" folders without me having to remember to do it manually on the Edit tab. This will eliminate my "human error" and save me time building the site!

Thanks for figuring this out, guys! :-) This is a great tip for those of us who use different settings for different parts of our sites.
camner

Posts: 17
Registered: 24-Sep-2003
Re: Ignore Pattern
Posted: 26-Jul-2006 04:43   in response to: alan927 in response to: alan927
  Click to reply to this thread Reply
I somehow feel I ought to be smart enough to understand regular expressions, but I just haven't taken enough time to do so (just enough time to know it is more complicated than I want to take the time to fully master).
jimberry

Posts: 495
Registered: 30-Aug-2004
Re: Ignore Pattern
Posted: 26-Jul-2006 05:46   in response to: camner in response to: camner
  Click to reply to this thread Reply
Robert, for someone of your obvious intelligence (and, for once, I am not being facetious here) I think the default BPP ignore pattern has enough examples to let you quickly work out the implications of
() * \ and |
and from there it's a breeze.
I think it is actually a lot easier than you imagine.

But then again, if you don't need it, why bother? The defaults have always worked for me, although I notice that some people with Canon cameras come to grief when using BluPlusPlus and their filenames start with an underscore!
And if they change skins after trying BPP without opening a new project, the default BPP ignore pattern remains in place.
camner

Posts: 17
Registered: 24-Sep-2003
Re: Ignore Pattern
Posted: 26-Jul-2006 07:42   in response to: jimberry in response to: jimberry
  Click to reply to this thread Reply
Thanks for your vote of confidence, even if perhaps somewhat misplaced! I have had no problem customizing the ignore pattern based on the default one for BPP, but I can't say I really know what I'm doing (why the various combinations of symbols has the particular result that it does is beyond my present level of understanding).
scottDUP

Posts: 2
Registered: 9-Jun-2004
Re: Ignore Pattern
Posted: 26-Jul-2006 09:31   in response to: camner in response to: camner
  Click to reply to this thread Reply
Tools like Perl and Awk make extensive use of regular expression so you can do worse than look at a perl reference to see how they work. You can do simple things very easily but equally you could spend a year studying them and still only scratch the surface of the tricks that are possible.

http://www.perl.com/doc/manual/html/pod/perlre.html
MarkE

Posts: 87
Registered: 24-Apr-2006
Re: Ignore Pattern
Posted: 26-Jul-2006 09:38   in response to: alan927 in response to: alan927
  Click to reply to this thread Reply
So I just put this expression in:

(\..*)|(Animations)|(Wallpaper)

...and it excludes my two "other" folders without me
having to remember to do it manually on the Edit tab.
This will eliminate my "human error" and save me
e time building the site!


Alan927,

Do you need the (\..*)? Won't (Animations)|(Wallpaper) ignore the 2 folders, whatever is in them?

Thanks for figuring this out, guys! :-) This is a
great tip for those of us who use different settings
for different parts of our sites.

Maybe you could put your Post in the Tips sections with a link to this post ...

Mark
camner

Posts: 17
Registered: 24-Sep-2003
Re: Ignore Pattern
Posted: 26-Jul-2006 16:41   in response to: scottDUP in response to: scottDUP
  Click to reply to this thread Reply
but equally you could spend a year
studying them and still only scratch the surface of
the tricks that are possible.

Seems as if wisdom about time management rather than lack of intellectual capacity could be fairly (if not entirely accurately) claimed as my justification for not delving too deeply in regular expressions!

Thanks for the link!
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums