Forum Replies Created
-
AuthorPosts
-
Michel Allio for FRIdNGE
ParticipantToo fast post and no possibility to modify it! [grrr!]
Take this code [better! even if the previous works]
/*
_FRIdNGE-0811_SelectionToBeVectorized.jsx
Script written by Michel Allio [07/04/25]
See: https://creativepro.com/topic/split-outlined-text-words-in-to-individual-letters/ [07/04/25]
*/app.doScript(“main()”, ScriptLanguage.javascript, undefined, UndoModes.ENTIRE_SCRIPT, “Selection To Be Vectorized!…”);
function main() {
var mySel = app.selection[0],
myChars = mySel.characters,
C = myChars.length, c;
for ( c = C-1; c >= 0; c– ) myChars[c].createOutlines(false);
mySel.parentTextFrames[0].remove();
}Michel Allio for FRIdNGE
ParticipantSelect the Text in a text frame and play this Script:
/*
_FRIdNGE-0811_SelectionToBeVectorized.jsx
Script written by Michel Allio [07/04/25]
See: https://creativepro.com/topic/split-outlined-text-words-in-to-individual-letters/ [07/04/25]
*/app.doScript(“main()”, ScriptLanguage.javascript, undefined, UndoModes.ENTIRE_SCRIPT, “Selection To Be Vectorized!…”);
function main() {
var mySel = app.selection[0];
var myChars = mySel.characters;
C = myChars.length;
for ( c = C-1; c >= 0; c– ) myChars[c].createOutlines(false);
mySel.parentTextFrames[0].remove();
}Done!
(^/) The Jedi
January 3, 2025 at 5:51 am in reply to: How to search for ‘any colour that is NOT 100% black’ #14410247Michel Allio for FRIdNGE
ParticipantHenry clearly wrote:
“The book needs to use only 100% black type… But somehow some instances of black variations have crept into the document and I would like to identify them and replace with 100% black.”
So just a simple Grep Find/Replace:
Find: [Black] color (that means any tint, including of course 100% tint!)
Replace by: [Black] color + 100% tint(^/) The Jedi
Michel Allio for FRIdNGE
ParticipantBetter now to take a look at this article written by Peter Kahrel this summer about the InDesign 2024 new “Case” feature:
(^/) The Jedi
Michel Allio for FRIdNGE
ParticipantMichel Allio for FRIdNGE
ParticipantOctober 7, 2024 at 10:21 pm in reply to: Script to Auto-Adjust Page Length based on content #14407001Michel Allio for FRIdNGE
ParticipantProblem with the quotes! …
When I paste the code copied here, the quotes are bad!
(^/)
September 4, 2024 at 7:09 am in reply to: Script to Auto-Adjust Page Length based on content #14406137Michel Allio for FRIdNGE
ParticipantJust For Fun! …
https://snipboard.io/3iCQpY.jpg
By Script of course:
/*
_FRIdNGE-0758_ResizePageOnTextFrame.jsx
Script written by FRIdNGE, Michel Allio [04/09/2024]
*/app.doScript(“main()”, ScriptLanguage.javascript, undefined, UndoModes.ENTIRE_SCRIPT, “Resize Page On Text Frame! …”);
function main() {
app.scriptPreferences.measurementUnit = MeasurementUnits.POINTS;
var myDoc = app.activeDocument;
myDoc.zeroPoint = [0,0];
myDoc.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN;var myPages = myDoc.pages,
P = myPages.length, p;for ( p = 0; p < P; p++ ) {
var myPage = myPages[p];
myPage.marginPreferences.properties = {top: 0, left: 0, bottom: 0, right: 0};
var myTFrame = myPage.textFrames[0];
myTFrame.move([0,0]);
var myPageWidth = myTFrame.geometricBounds[3]-myTFrame.geometricBounds[1];
var myPageHeight = myTFrame.geometricBounds[2]-myTFrame.geometricBounds[0];
myPage.resize(BoundingBoxLimits.GEOMETRIC_PATH_BOUNDS, AnchorPoint.TOP_LEFT_ANCHOR, ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH, [myPageWidth, myPageHeight]);
}alert( “Done! …\rby FRIdNGE, Michel Allio [04/09/2024]” )
}
(^/) The Jedi
Michel Allio for FRIdNGE
ParticipantSimplistically, but fastidious if you do it manually! … [it could be scripted and just need “1 click”! — contact me in private]
Considering each “Sub-section” as a “InDesign section”, you will have to type this for each first “Sub-section” page in its “Numbering & Section Options” settings:
Section Marker = “Section I, subsection A, page ”
Just change “I” by “II”, “I” by “III”, “I” by “IV”, …
Just change “A” by “B”, “A” by “C”, “A” by “D”, …https://snipboard.io/dkgiTm.jpg
(^/) The Jedi
Michel Allio for FRIdNGE
ParticipantHi,
In fact, as usual with InDesign, it’s so simplistic:
3 Para Styles [of course, everybody will understand that the “Level 1B” para style is” invisible”!] + 3 simple Regex [run 0 to reset, then 1 and 2!]
(^/) The Jedi
https://snipboard.io/1Ceotd.jpg
https://snipboard.io/VTHXho.jpg
https://snipboard.io/dvjzJV.jpghttps://snipboard.io/9A1Sok.jpg
https://snipboard.io/CGQ2sY.jpg
https://snipboard.io/qoCrcK.jpgAugust 27, 2024 at 6:54 am in reply to: Turning Characters in a Numbered List into Hyperlinks #14405942Michel Allio for FRIdNGE
ParticipantHi David and Peter,
Use Auto-num is a good and simple idea! …
https://snipboard.io/5Ougam.jpg
1/ Use Auto-num in the current para style “xxx” [“NEW! “], not in the TOC para style “xxx_TOC”, and in the TOC Settings don’t forget to choose “Include Full Paragraph” in the “Numbered Paragraphs dropllist.
2/ If not useful, make the “xxx” para style auto-num not visible.
3/ in the “xxx_TOC” para style, include 2 Grep Styles:
a) NEW!(?!~j) + “Invisible” Char Style
b) NEW!~j + “Blue” Char Style
Now just go to the current text and add a “non-joiner” char at the beginning of each “NEW!” recipe! … And update the TOC! ;-)
(^/) The Jedi
Michel Allio for FRIdNGE
ParticipantMichel Allio for FRIdNGE
ParticipantHi Peter,
I’ve studied Dave Saunder’s script and sure using the “DropCap” feature is really clever!
But I don’t find explanation about these 3 last code lines:
var normalizedKernAmount = (neededShift * 12/myChar.pointSize) + .5;
myPara.insertionPoints[0].contents = SpecialCharacters.hairSpace;
myPara.insertionPoints[1].kerningValue = normalizedKernAmount*-1000/12;I suppose “12” and “.5” are linked to the use of the special char “hairSpace” but Dave doesn’t give us more info!
So, truly perplexe!
(^/)
Michel Allio for FRIdNGE
Participant… Using a very old Script written for a Client 6/7 years ago: just precise at 4,000%!
Here, “black color” = before the Script, “red color” = after the Script, zoom at 1,102.3%:
https://snipboard.io/jb72oI.jpg
and for all the alphabet:
https://snipboard.io/vCqNk8.jpg
(^/) The Jedi
-
AuthorPosts
