Forum Replies Created
-
AuthorPosts
-
March 9, 2018 at 5:05 pm in reply to: Centred paragraph style for a heading with rules/lines #102290
Michel Allio for FRIdNGE
Participanthttps://forums.adobe.com/message/9649561#9649561
After this thread, I’ve studied again the matter and, not really satisfied, written a script I think more relevant!
With it, it’s not automatic [1 click], but the construction is really “pure”: 2 simple para rules!
The Key: the Script makes calculations faster than you and me to define the good length of each of them! … ;-)
Best,
Michel, from FRIdNGE
michel.allio.fridnge@gmail.comMarch 9, 2018 at 4:38 pm in reply to: Centred paragraph style for a heading with rules/lines #102288Michel Allio for FRIdNGE
ParticipantHi! …
Even if fun, not the way I prefer! … [Obi-wan was a Jedi using The Force, not a Scripter! …]
Best,
Michel, from FRIdNGE
michel.allio.fridnge@gmail.comMichel Allio for FRIdNGE
Participant(?=[^]*$)
~yBest,
Michel, from FRIdNGE
michel.allio.fridnge@gmail.comMichel Allio for FRIdNGE
ParticipantHi Mark,
I’ve written a [“for free”] script that removes all anchorings included in the paras-source [no need for you here] and updates ALL the TOCs created in the doc.
So, of course, you can have several TOC in a same doc and update them just with a click!
https://www.dropbox.com/s/cal3f9u5fcn6o85/_FRIdNGE-0306_UpdateTOC.jsxbin?dl=0
Best,
Michel, from FRIdNGE
michel.allio.fridnge@gmail.comMichel Allio for FRIdNGE
ParticipantHi,
You’re totally right! It’s a Grep code weird behavior! … The way I used to eliminate the issue is a personal small script.
Best,
Michel, from FRIdNGE
michel.allio.fridnge@gmail.comMichel Allio for FRIdNGE
ParticipantHi,
The true question I see is:
How are defined the sets of bullet paras? always 3 paras or something less systematic?
Best,
Michel, from FRIdNGE
michel.allio.fridnge@gmail.comFebruary 21, 2018 at 4:54 pm in reply to: linking table of contents, page ranges in document #101916Michel Allio for FRIdNGE
ParticipantNo TOC InDesign feature use,
no Cross-Reference,
no Index, …… just a simple piece of text, a Script and 1 click! …
Even if the layout moves, you’ll always just need … 1 click!Best,
Michel, from FRIdNGEMichel Allio for FRIdNGE
ParticipantDavid,
After test, I really think it could be done as I said above [but we’ll need 2 clicks! …] because we talk about 2 docs:
English version vs. English version + text frames added for the dutch translation!So, imho, it’s simple:
1/ Open the “English version” and play this:
//————————————————————————————————————-
var myTextFrames = app.activeDocument.textFrames.everyItem().getElements(),
T = myTextFrames.length, t,
myIDs = [];
for ( var t = 0; t < T; t++ ) myIDs.push(myTextFrames[t].id);
myIDs.sort(sortnum);
function sortnum (a, b) {return a > b};alert (myIDs[T-1]);
//————————————————————————————————————-
This script will give us the bigger ID of text frame included into the English version InDesign file ==> XXXX. [close this file without saving it]
2/ Then open the Dutch version and play this 2nd script modifying “XXXX” by the number given by the first script :
//————————————————————————————————————-
var myTextFrames = app.activeDocument.textFrames.everyItem().getElements(),
T = myTextFrames.length, t;
for ( var t = 0; t < T; t++ ) if ( myTextFrames[t].id > XXXX ) myTextFrames[t].characters[0].changecase (ChangecaseMode.uppercase);//————————————————————————————————————-
Done! =D
The 2nd script will only change the case of the first char of a text frame IF the ID of this text frame is bigger than XXXX!
… More clearly, if that frame has been created later than the most recent text frame of the English version!Simply cool! …
Good night!
Michel, from FRIdNGE
Michel Allio for FRIdNGE
ParticipantSasha, play this:
var mySel = app.selection, S = mySel.length, s;
for ( var s = 0; s < S; s++ ) mySel[s].characters[0].changecase (ChangecaseMode.uppercase);With this light version, you’ll just need to display spread [2 pages] per spread on the screen and select all the text frames [by clicking or sweeping] where you need to change the case of the first letter! Not the text, just text boxes!
Best,
MichelMichel Allio for FRIdNGE
ParticipantDavid,
I let you try!
I’ld be curious to take a look to Sasha’s doc.! ;-)
Michel Allio for FRIdNGE
ParticipantNot sure, David! … And, imho, not so simple!
When I read Sasha, I could think it could be done in 1 click!
… Because Sasha talks about a new “Dutch” version based on an “English” one where guys have added small text frames to cover english text with dutch one!
Maybe we just need to find the first one added in the doc! Logically, at the beginning of the doc and “loop” on the ID taking in account the “first one” ID!
In this case, it’s just a simple find/replace!
Clues:
Find: “\A.”
myFound[f].changecase (ChangecaseMode.uppercase);Best,
Michel, from FRIdNGE
michel.allio.fridnge@gmail.comMichel Allio for FRIdNGE
ParticipantMichel Allio for FRIdNGE
ParticipantYou said:
“– All this should be done ONLY for selected text boxes (cause some other parts should stay unchanged)”
Have you often these “some other parts”?
Michel Allio for FRIdNGE
ParticipantHi,
Could you share screenshots (with hidden chars)?
Best,
Michel, from FRIdNGEMichel Allio for FRIdNGE
ParticipantNo! … And you won’t see with “hidden chars”! … But if you associate to this numbering a cross-ref., you’ll see it!
Best,
Michel, from FRIdNGE -
AuthorPosts
