Forum Replies Created
-
AuthorPosts
-
Peter KahrelParticipant> I’ve got hundreds of text boxes applied to a character style
Not sure what you mean here. How does one apply a text box to a character style? Can you explain what you’re after?
P.
December 21, 2018 at 9:25 am in reply to: Is it possible to link same position text boxes on multiple page with a script? #113039
Peter KahrelParticipantAha. So you have more than one text frame on each master page, is that correct?
December 21, 2018 at 5:19 am in reply to: Is it possible to link same position text boxes on multiple page with a script? #113035
Peter KahrelParticipantThat’s a basic InDesign thing. Hold the Shift key down when you place the text. Look under ‘auto flow’ (or something like that) in the InDesign help file or a book.
P.
December 20, 2018 at 10:34 am in reply to: Is it possible to link same position text boxes on multiple page with a script? #113023
Peter KahrelParticipantI think I understand what you’re after, not sure — your explanation isn’t entirely clear. E.g., what do you mean by ‘a book which will have A, B, A, B etc.’? And you format text in a spreadsheet then paste it in InDesign? Wel. . .
Anyway, here’s what I think you’re after. On a master spread, place a text frame on the left-hand page and one on the right-hand page. Now when you thread the two frames on the master, and you place the text on a document page, the text flows from p. 1 to p. 2, p2 to p. 3, etc.
When you do not thread the frames on the master, then place the text on p. 1, the full text flows from p.1 to p. 3, from p. 3 to p. 5, etc. And when you place a second text stream on p. 2, it will flow on the even pages only.
Maybe you don’t need a script all!
P.
Peter KahrelParticipantA separate paragraph style. Include paragraph shading.
P.
Peter KahrelParticipantUnfortunately you can’t delete them globally because text anchors share their code (U+FEFF) with index markers, tags, endnote delimiters, and several other things. You could try and see what goes on with this script and selectively delete them:
https://www.kahrel.plus.com/indesign/text_anchors.html
Or you can open the story editor, where you can see them better, and delete them in there. Do make a copy of your document, because you may be deleting more than is good for you.
Peter KahrelParticipantThey are text anchors. They overlap the following text because they themselves have no width, whereas their screen representations do. You can check them by opening the Story editor (Edit > Edit in story editor).
P.
Peter KahrelParticipant65Bit surely puts those anchors there for a reason, but you could ask what the purpose is and whether it’s safe to remove those characters. On the other hand, maybe it’s safer to redefine your script’s notion of what constitutes an empty cell. Instead of saying ‘a cell is empty if its text is an empty string’, say ‘a cell is empty if its text is a (: character) or an empty string’. And add your content to the cell’s content.
Peter KahrelParticipant> unless there’s a difference in a minor version but i couldnt figure out how to find this exactly
Help > Ctrl+click ‘About InDesign
> The only difference is that i got EeasyCatalog installed on 1 pc
That’ll be the one where you see that : code, right? That code indicates a text anchor, which is probably placed there by EasyCatalog. You can verify that by uninstalling EasyCatalog and see if that makes a difference in InDesign.
Peter KahrelParticipantWith the current paragraph language/hypenation settings, the string can’t be broken and is too long for the text frame. When you add spaces that problem doesn’t occur. Instead of spaces, add discretionary line breaks: find the centre dots and replace with ^k (in the Text tab of the Find/Change dialog).
Peter KahrelParticipantI second David’s comment: forget MathType, go for movemen’s MathTools. MathTools’s equations are plain text. It comes with various predefined character styles so that various parts of equations can be coloured in different ways. You can enter equations in InDesign, and you can translate MathType EPSs to MathTools equations. MathTools supports scripting. And MathTools equations export well to PDF, Epub, and HTML.
Peter
Peter KahrelParticipantHard to say. Can you send me that file? Please use pkahrel@gmail.com and I’ll have a look.
P.
Peter KahrelParticipantMathTools can convert MathType equations in placed Word files to its (MathTool’s) own format. Works very well.
Peter KahrelParticipantI had the same experience a few times, and it turned out to be curly quotes. Double ones for sure, forgot whether single ones were a problem too. After replacing the curly quotes with a temporary character the index generated fine. After generation reverted to quotes in the generated index. Double quotes aren’t always a problem, that’s the confusing part. Accented character have never been a problem in my experience.
June 19, 2018 at 1:09 pm in reply to: Converting Existing Footnotes to End-notes Selectively. #104357
Peter KahrelParticipantInteresting. The below script does what you want. An alternative would be to place the sidenotes anchored frames (a variant of https://www.kahrel.plus.com/indesign/sidenotes.html). This alternative requires the set-up of some styles but is probably easier to use in the long run.
Anyway, here’s the script. Select the footnote you want to convert and run the script.
Peter
function () { if (app.selection.length && app.selection[0] instanceof Character && app.selection[0].contents == SpecialCharacters.FOOTNOTE_SYMBOL) { var sep = app.documents[0].footnoteOptions.separatorText.length; var story = app.selection[0].parentStory; var n = story.insertionPoints.itemByRange (0, app.selection[0].index).footnotes.length; var fnote = story.footnotes[n]; var ix = fnote.storyOffset.index; var enote = fnote.storyOffset.createEndnote(); // InDesign adds a space after the new endnote, delete it. if (story.characters[p+1].contents == ' ') { story.characters[p+1].contents = ''; } fnote.characters.itemByRange (0, sep+1).contents = ''; fnote.texts[0].move (LocationOptions.AFTER, enote.insertionPoints[-1]); fnote.remove(); } }()); -
AuthorPosts
