Forum Replies Created
-
AuthorPosts
-
David BlatnerKeymasterPerhaps I am missing something obvious, but what does this mean: “Not use a ‘tab’ as delimiter but another space-type”?
I was getting a syntax error… I see how that our forum also changes the “-” to an en dash! That is strange. So line 14 and 15 were causing problems until I changed the code to this:
/*
_FRIdNGE-0662_Justif-Center.jsx
Script written by FRIdNGE, Michel Allio [26/10/2020]
See: https://creativepro.com/topic/hanging-indents-on-centered-text/ [Flavio Mini, 21/10/2020]
Object: Left-indent calculated on para first line parameters. Not use a “tab” as delimiter but another space-type.
*/app.doScript("main()", ScriptLanguage.javascript, undefined, UndoModes.FAST_ENTIRE_SCRIPT, "Justif-Center! …");
function main()
{
var mySel = app.selection[0].paragraphs[0],
myLeft = mySel.lines[0].insertionPoints[0].horizontalOffset - app.selection[0].parentTextFrames[0].geometricBounds[1];
myRight = app.selection[0].parentTextFrames[0].geometricBounds[3] - mySel.lines[0].insertionPoints[-2].horizontalOffset;
mySel.justification = Justification.LEFT_ALIGN;
mySel.leftIndent = myLeft;
mySel.rightIndent = myRight;
mySel.firstLineIndent = -myLeft + myRight;
}
David BlatnerKeymaster@Michel: It is important to explain how to use this code: What needs to be selected? What kind of “setup” do we need? I have tested it and only get errors.
David BlatnerKeymasterThis should help:
How to Install a Script in InDesign That You Found in a Forum or Blog Post
Especially note the need to change curly quotes to straight quotes!! (Our forum automatically changes the quotes.)
Michel: In the future, please put <code> or pre html tags around the code. :-)
David BlatnerKeymasterThere are several ways… see:
and
andOctober 26, 2020 at 3:54 pm in reply to: Replace text with image, where text = image name? #14331834
David BlatnerKeymasterNot sure why this disappeared, but this was the reply from Kasyan years ago.
====
Hi Panda,Check out this script: https://kasyan.ho.ua/indesign/image/place_images.html
Kasyan
David BlatnerKeymasterYes, we have had a few problems with the new site. So I think maybe a few forum posts have disappeared! That is very strange. I will check with the developers.
If I recall, I had suggested you use this tip:
and then you can also do a Find/Change afterward to change the cross-references from “Figure” to “fig”. That is a simple solution, but of course if you update the x-refs, then you will need to do the Find/Change again.
David BlatnerKeymaster@Michel: not sure what you mean. The forum appears to be working.
@Bala: There is no way to do this in InDesign. However, it can probably be “faked” by breaking cells manually or with a script.
This is one of the most-frequently asked for features. Vote for it here: https://indesign.uservoice.com/forums/601021-adobe-indesign-feature-requests/suggestions/33854788-option-to-split-table-rows-across-pages
David BlatnerKeymasterWell, thank goodness for Google Translate. :-)
I did remove the moderation here… I thought I did. But it looks like something might still be stuck. So please forgive me, and be patient.
David BlatnerKeymasterBien, j’ai fait le changement. J’espère que vous pouvez jouer selon les règles! J’ai hâte que vous aidiez les gens plus que de les rendre fous.
David BlatnerKeymasterLOL. Michel is back!
Yes, I am sure it is very possible with scripting. :-)October 21, 2020 at 5:10 pm in reply to: Open Datamerge Preview within End Script script software #14331164
David BlatnerKeymasterDeanette, not sure what ENDscript is… is it possibly ExtendScript? There are some scripters here; and even more on the Adobe InDesign Scripting forum (on Adobe.com), and the InDesign Scripting Group on Facebook: https://www.facebook.com/groups/639232573329900
David BlatnerKeymasterAh! I see now. That is going to be very tricky. But it would be easy if you use a table. Put the “Figure 1” in one column, and the other text in the second column.
Or maybe you can use an anchored frame, like in this poetry example:
-
AuthorPosts
