#11 2009-08-03 15:35

narayan
Senior Member
Registered: 2009-02-08
Posts: 470

Re: New Swap or Rearrange rule

Stefan,

My proposal is the same, except that the delimiters are to be listed without any gaps or separators. Secondly, it should also allow meta tags and other tokens (such as serially running numbers as quoted in my post above).

You have already shown that literal text can be added to the new name's template.


BTW you separated the original name at "-" also, but it is not listed as a separator.

Offline

#12 2009-08-03 15:46

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: New Swap or Rearrange rule

Maybe we can get Meta Tag :File_Path: also?

- 1. i have file "Song.mp2"
- 2. Rule1:   Insert Meta  :File_Path:  ==> "X_MP2s_Metall_Manowar_Beast_CD1 Song.mp2"
- 3. Rule2:   split into parts at " /_"  and rename with parts you want  "\4 - \7"  ==> "Manowar - Song.mp2"


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#13 2009-08-03 15:53

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: New Swap or Rearrange rule

narayan wrote:

Stefan,

>My proposal is the same, except that the delimiters are to be listed without any gaps or separators.
What would be your separator? An Blank?
How will you use an blank as delimiter then?

>Secondly, it should also allow meta tags and other tokens (such as serially running numbers as quoted in my post above).
I thought about this too, but drop it because the main issue here is to split into parts or swap parts.
All others would be too much for the to reaching novice users.


>You have already shown that literal text can be added to the new name's template.
I thought an picture says more then hundred words big_smile Was it to brash?


>BTW you separated the original name at "-" also, but it is not listed as a separator.
Really?  Thanks, but well, i am in the brainstorming-, not in the implementing process right now tongue


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#14 2009-08-03 16:34

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: New Swap or Rearrange rule

I just browsed the forum and paste here some examples of what users asked:


Example 1
I need to get rid of the numbers and spacers at the beginnings so they will sort in alphabetical order.

From:
0001 - Afilename.zip
0002 - Bfilename.zip
0003 - Cfilename.zip
To:
Afilename.zip
Bfilename.zip
Cfilename.zip

Delimiter: "- "
New Order: $2
---------------------------------------------------------------------------------------

Example 2
I want to move "-1", "-10" etc to the start and swap the "-" and the "n"

From:
DSC_0001-1.jpg
DSC_0001-10.jpg
DSC_0001-2.jpg
To:
1-DSC_0001.jpg
10-DSC_0001.jpg
2-DSC_0001.jpg


Delimiter: "-"
New Order: $2-$1
---------------------------------------------------------------------------------------

Example 3
I would like to insert "sent_" before the last 3 digits,

From:
family_001.jpg
work_023.jpg
friend_098.jpg

To:
family_sent_001.jpg
work_sent_023.jpg
friend_sent_098.jpg

Delimiter: "_"
New Order: $1_sent_$2
---------------------------------------------------------------------------------------

Example 4
I want to be able to switch them

From:
King, Stephen
Cook, Robin
Rami, Sam
To:
Stephen King
Robin Cook
Sam Rami

Delimiter: ", "
New Order: $2 $1
---------------------------------------------------------------------------------------

Example 5
I need to remove [Time ???? Cold] from the following file name:

From:
Artist - Title {BPM 120} [Time 4 02 Cold] [2004].mpg
To:
Artist - Title {BPM 120} [2004].mpg

Delimiter: " [T|d] "              <--- using string as delimiter: "space[T"  and  "d]space"
New Order: $1 $3

---------------------------------------------------------------------------------------

Example 6
For example I have a file named ... and I want the new file name to be:

From:
adirving example 1234 07-07-07
To:
1234 adirving example 07-07-07

Delimiter: " "         <---- an space
New Order: $3 $1 $2 $4
---------------------------------------------------------------------------------------

Example 7
I would like to remove text from files until " - "

From:
"Sting - All This Time.mp3"
To:
"All This Time.mp3".


Delimiter:  "- "
New Order:  $2
---------------------------------------------------------------------------------------

Example 8

What I want to do it is to delete the last part behind the dot (without the extension).

From:
"title.text1.text2.extension"
"title.text1.text2.text3.extension"
To:
"title.text1.extension"     
"title.text1.text2.extension"


1.) Add Rule Replace Last "."  with  "#", Skip Extension

New from:
"title.text1#text2.extension"
"title.text1.text2#text3.extension"
To:
"title.text1.extension"     
"title.text1.text2.extension"


2.) Add new Swap Rule
Delimiter:  "#"
Skip Extension [X]
New Order:  "$1"
---------------------------------------------------------------------------------------

Example 9

I want to remove the track numbers from the beginning of the filenames:
From...
08. Madonna - Like A Prayer.wma
08.-Madonna - Like A Prayer.wma
08 Madonna - Like A Prayer.wma
To..
Madonna - Like A Prayer.wma

Delimiter:  "Mad"
New Order:  Mad$2
---------------------------------------------------------------------------------------

Example 10

From:
"Name XXX [0001].jpg"
To:
"0001 - Name XXX.jpg"

Delimiter:  "[|]"
New Order:  $2 - $1
---------------------------------------------------------------------------------------

Example 11
Note: to much possibilities to use an single rule, use several RegEx runs and or PascalScript.
See: http://www.den4b.com/forum/viewtopic.php?pid=1752#p1752

From:
A. Bertram Chandler - Giant Killer v1.0.html.rar
H F W Tatham - The True King.cover.html.pdf.txt.rar
Jeannine D Van Eperen - Willow Spring.txt.zip

To:
Chandler, A Bertram - Giant Killer v1.0.html.rar
Tatham, HFW - The True King.pdf.rar
Van Eperen, Jeannine D - Willow Spring.txt.zip

---------------------------------------------------------------------------------------

Example 12

From:
TEST.aaa.bbb.100.ext
To:
aaa.bbb.100.TEST.ext

Delimiter:  "."
Skip Extension [X]
New Order: $2.$3.$4.$1 
---------------------------------------------------------------------------------------

Example 13
From:
Song Title_Artist.mp3
To:
Artist - Song Title.mp3

Delimiter:  " |_"
Skip Extension [ ]
New Order: $3 - $1 $2 
---------------------------------------------------------------------------------------

Example 14

From:
A File_01.mp3
B File_03.mp3
C File_02.mp3
To:
01. A File.mp3
02. C File.mp3
03. B File.mp3

Delimiter:  " |_"
Skip Extension [ ]
New Order:  $3. $1 $2
---------------------------------------------------------------------------------------

Example 15

Example provided by prologician

The only thing I can think of is that $s are legal in filenames...
it could get interesting if someone were trying to rename something to "Case $1 - $2 (Cost $5000)"
(a lame courtroom-like example, where the person was putting expenditures into the filename).
Not that this is a BIG point, it could be handled by an Insert or something
(or an alternative, use $ as an "escape character", so $$ in the "New Pattern/Order" box
produces a single $ in the output filename?)

From:
"Case $1 - $2 (Cost $5000)"
To:
"Cost $5000 Case $1 - $2"

Delimiter:  "(|)"
Skip Extension [ ]
New Order:  $2 $1
---------------------------------------------------------------------------------------

Example 16

From:
I. Author - Book title - True story.pdf
I. Author - Book title.pdf
To:
Book title - True story (I. Author).pdf
Book title (I. Author).pdf


1.) Add Replace Rule
Replace First " - "  with  "#", Skip Extension

New from:
I. Author # Book title - True story.pdf
I. Author # Book title.pdf
To:
Book title - True story (I. Author).pdf
Book title (I. Author).pdf


2.) Add new Swap Rule
Delimiter:  "#"
Skip Extension [X]
New Order:  "$2 ($1)"
---------------------------------------------------------------------------------------

Example 17

I want to add something in front and another thing at the end to file names:

From:
FileName.ext
To:
newsuffix FileName newsuffix.ext

Delimiter:  <leave empty>
Skip Extension [X]
New Order: newprefix $0 newsuffix
---------------------------------------------------------------------------------------

Example 18

I want always only the last part of an file name:

From:
title text1 text2.extension
title text1 text2 text3.extension
To:
text2.extension
text3.extension


Delimiter:  " "
Skip Extension [ ]
New Order: $-1



I want always only the second last part of an file name:

From:
title text1 text2.ext
title text1 text2 text3.ext
To:
text1.ext
text2.ext


Delimiter:  " "
Skip Extension [X]
New Order: $-2
---------------------------------------------------------------------------------------

Example 19

Delimiter:  " "
Skip Extension [ ]
New Order:
---------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------

to be continued...

Last edited by Stefan (2009-08-15 23:50)


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#15 2009-08-03 16:37

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: New Swap or Rearrange rule

Can we also split at uppercase letters?

Like sometimes user want to add an space before uppercase letters like 
From:
ThisIsALongSentenceWithoutSpaces.txt
To:
This Is A Long Sentence Without Spaces.txt

Delimiter: {uc}
New Order: {part} {part}

Last edited by Stefan (2009-08-03 16:44)


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#16 2009-08-03 16:41

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: New Swap or Rearrange rule

And just for brainstorming big_smile my favorite renaming scheme:

From:
this is a song - without uppercase letters.mp2
To:
This Is A Song - Without uppercase letters.mp2

Delimiter: -
New Order: {titlecase}\1 - {sentencecase}\2


Oh well, this is again much to far from immediate issue roll


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#17 2009-08-03 17:04

narayan
Senior Member
Registered: 2009-02-08
Posts: 470

Re: New Swap or Rearrange rule

smile

Before answering your points, a little clarification about my scheme:

I use "delimiter" to mean the character at which ReNamer splits the original name.
The resultant tokens do NOT have this character.
(I do not favor "keep the delimiter" scheme because it is not required at all.)

Create the new name by arranging all tokens with spaces (or any other characters).
ReNamer would insert these extra characters literally.

Now your points:
1. If multiple delimiters are used in the same name, they are all listed without  any separator. This would work just like the Strip Rule.

2. You cannot use a blank as delimiter. ReNamer has to use a character as delimiter.
Space can be used as a delimiter (is that what you meant by "blank"?)

3. Meta tags is only used by the power users. Including them does not hurt the newbies!
They will simply not use meta tags, that's all!

@was it too brash?
NAH! Loved your picture! In fact, I have sent Denis  a couple of such screenshots myself!

Cheers!
**********
Additional note:

The "split at specified positions" option also would work just fine. The tokens are created differently, that's it!

Last edited by narayan (2009-08-03 17:33)

Offline

#18 2009-08-03 17:15

narayan
Senior Member
Registered: 2009-02-08
Posts: 470

Re: New Swap or Rearrange rule

Stefan,

I think in your last post, you are moving towards what mrename does.

See-
http://fly.srk.fer.hr/~rajko/MRename/He … Select.htm
http://fly.srk.fer.hr/~rajko/MRename/He … Rename.htm

It is very complicated to use- Requires a PhD in its syntax. smile
We would need a simpler scheme.

Last edited by narayan (2009-08-03 17:16)

Offline

#19 2009-08-03 20:49

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: New Swap or Rearrange rule

narayan wrote:

Stefan,

I think in your last post, you are moving towards what mrename does.

Nothing to do with Mrename.
That are just extended regex features
unfortunately missing with the engine Denis use (http://www.den4b.com/forum/viewtopic.php?id=362)


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#20 2009-08-04 03:17

narayan
Senior Member
Registered: 2009-02-08
Posts: 470

Re: New Swap or Rearrange rule

@nothing to do with mrename:
That's right, I mentioned it because it also provides flexible ways of case-manipulation, string-extraction, etc.

Our approach is far easier for the users. smile

BTW I like what you proposed (and your other thread too).
This rule is the perfect place to do it.

And as your long list shows, a lot of popular demand is going to be met with this ONE single rule.

So let's develop that theme and make the rule even more powerful!

Your other thread has proposed the case-manipulation with remarkable details.
Do you think it can be applied lock-stock-and-barrel?
Or is there any modification required in the escape character, etc.?

I think you are also proposing a new feature: wildcards (in Example 5). I like that too.

Can we have one more screenshot please, so that we can visualize the whole thing in integrated form? smile

Last edited by narayan (2009-08-04 03:22)

Offline

Board footer

Powered by FluxBB