#1 2010-08-04 17:28

eR@SeR
Senior Member
From: Земун, Србија
Registered: 2008-01-23
Posts: 353

How to IGNORE specific words from renaming rules?

I would like to know how can specific words be IGNORED from renaming rules? That is mostly related to Translit rule. You have some word(s) that you don't want to touch... Can anybody provide me a script? roll Thanks


TRUTH, FREEDOM, JUSTICE and FATHERLAND are the highest morale values which human is born, lives and dies for!

Offline

#2 2010-08-06 19:49

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

Re: How to IGNORE specific words from renaming rules?

Something like:

Parts = split(FileName, " ")

For Each Part in Parts Do
If (Part == "NoTouchWord1") Then Skip
If (Part == "NoTouchWord2") Then Skip
If (Part == "NoTouchWord3") Then Skip
If (Part == "NoTouchWord4") Then Skip

Else
//Translit rule
OUT = OUT + replace ( Part, ê, e) + ' '
OUT = OUT + replace ( Part, ä, a) + ' '

FileName := OUT



could be become complicated?





Maybe first translit all words with translit rule
and then use PascalScript rule to replace un-wanted translated words back?

All depends off how many words and translit items we talk.

I have less ideas, sorry


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

#3 2010-08-07 08:45

SafetyCar
Senior Member
Registered: 2008-04-28
Posts: 446
Website

Re: How to IGNORE specific words from renaming rules?

A way to do it (maybe not very good) could be replacing the word with something you know it's not gonna be changed, and then restore it back. For example


Rule 1:
Replace: "something"
With:     "<1>"

Rule 2:
Translit...

Rule 3:
...

Rule 4:
Replace: "<1>"
With:     "something"

Last edited by SafetyCar (2010-08-07 08:45)


If this software has helped you, consider getting your pro version. :)

Offline

#4 2010-08-07 08:49

ozzii
Senior Member
Registered: 2007-07-04
Posts: 101

Re: How to IGNORE specific words from renaming rules?

SafetyCar wrote:

A way to do it (maybe not very good) could be replacing the word with something you know it's not gonna be changed, and then restore it back. For example


Rule 1:
Replace: "something"
With:     "<1>"

Rule 2:
Translit...

Rule 3:
...

Rule 4:
Replace: "<1>"
With:     "something"

This is also what I do. It's not so "beautiful" but it's working very good.


_________________
Do, or do not. There is no 'try.'" --  Jedi Master Yoda

Offline

#5 2010-08-07 13:11

eR@SeR
Senior Member
From: Земун, Србија
Registered: 2008-01-23
Posts: 353

Re: How to IGNORE specific words from renaming rules?

Stefan wrote:

Something like:

Parts = split(FileName, " ")

For Each Part in Parts Do
If (Part == "NoTouchWord1") Then Skip
If (Part == "NoTouchWord2") Then Skip
If (Part == "NoTouchWord3") Then Skip
If (Part == "NoTouchWord4") Then Skip

Else
//Translit rule
OUT = OUT + replace ( Part, ê, e) + ' '
OUT = OUT + replace ( Part, ä, a) + ' '

FileName := OUT

Yes something like that. It will be much easier for me to specify words in Script, rather to use Safety Car's solution which is feasible, for now. Thanks

Stefan wrote:

Maybe first translit all words with translit rule
and then use PascalScript rule to replace un-wanted translated words back?

All depends off how many words and translit items we talk.

I have less ideas, sorry

That could be very tedious if I have 10+ words, I think? hmm

As I said, script would be great only if there is command to "ignore" or "skip" characters/words.

Thanks for giving your opinions guys smile

P.S. Поздрав Ozzii wink


TRUTH, FREEDOM, JUSTICE and FATHERLAND are the highest morale values which human is born, lives and dies for!

Offline

Board footer

Powered by FluxBB