Forum Replies Created

Viewing 15 posts - 136 through 150 (of 341 total)
  • Author
    Posts
  • Peter Kahrel
    Participant

    Interesting. 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();
      }
    }());
    in reply to: Import/Export ID Index tags #104336
    Peter Kahrel
    Participant

    Can you not paste the InDesign documents into one document? Or are the documents too big and/or too complex for that? If you really have to roundtrip them via Word, you’ll have to convert the index markers as plain text, do the roundtrip, then convert the index text tags to Indesign index markers. See https://www.kahrel.plus.com/indesign/lists_indexes.html under ‘convert page references to text tags’ and ‘Build index from textual markers’.

    P.

    in reply to: How to Make the File Extension Go Away in Captions #103206
    Peter Kahrel
    Participant

    Ok, third time lucky we all hope. Use \.psd and don’t add anything. Not \ w, not anything at all. Nothing.

    in reply to: How to Make the File Extension Go Away in Captions #103204
    Peter Kahrel
    Participant

    Rafael — Read David’s post carefully. Look for \.psd — you have a space before ‘psd’ so you won’t find any .psd extensions.

    P.

    in reply to: GREP pagenumbers to page range when consecutive pages #103203
    Peter Kahrel
    Participant

    A single GREP isn’t going to do this for you, you need a bit more machinery. Here’s a script that does what you’re after:

    https://www.kahrel.plus.com/indesign/index_update.html

    Peter

    in reply to: How to append a text var to the page numbers #102846
    Peter Kahrel
    Participant

    One possibility is to use short forms of the DOIs (placeholders) as section prefixes and create a table that maps the short forms to long forms. A relatively simple script would have to override the text frames with the page number on to the document pages so that you can expand the placeholder DOI and mark it up for the index. That script should expand those short forms in the toc and in the index.

    Peter Kahrel
    Participant

    The question is, how do you tell the difference between pronunciation keys and parentheticals that are not pronunciation keys? The presence of stress marks? Capitals? Any systematic difference?

    in reply to: How to change 'space' to 'tab' with GREP #102728
    Peter Kahrel
    Participant

    …findWhat = “d+.t”;

    You have to double the backslashes. There’s no need for the parentheses.

    And it might be a good idea to start a new topic for a new query.
    And since this query is a script problem, ask the question in the scripting forum.

    P.

    in reply to: Stretch image in one dimension only #102022
    Peter Kahrel
    Participant
    in reply to: Non breaking space in cross reference? #101848
    Peter Kahrel
    Participant

    Ah, pasting a fixed space there works indeed — clever, but far from obvious, mon brave. Why didn’t you mention pasting a character there in the first place?

    P.

    in reply to: Non breaking space in cross reference? #101846
    Peter Kahrel
    Participant

    Michel — Did you try including a non-breaking space in the Number field of the Numbering Style panel of the paragraph style window? If you got it to work, please share.

    Peter

    in reply to: Em-dash, En-dash, hyphen, ellipsis #101727
    Peter Kahrel
    Participant

    Kirk — The use of hyphens and dashes differs in the UK and the US (and other Anglophone countries). For US use, consult the Chicago Manual of Style. For UK usage, use New Hart’s Rules (by Oxford University Press).

    Nigel’s approach is a funny hybrid. Generally, in the US you use unspaced em-dashes, in Europe (including the UK), spaced en-dashes. So 80% em-dashes with thin or half spaces is somewhere in-between US and European usage. Even their names differ on both sides of the pond: what you call em- and en-dashes are called em- and en-rules in the UK!

    Anyway, it’s up to the publisher how they want the punctuation to appear. If your job is for an individual who leaves the design and the copy-edit to you, then follow either the CMS or the Hart’s.

    Peter

    in reply to: Import Endnotes as plain text in CC2018? #100398
    Peter Kahrel
    Participant

    The “Convert endnotes to static endnotes” script needed a fix, it’s updated and on the web.

    P.

    in reply to: Import Endnotes as plain text in CC2018? #100392
    Peter Kahrel
    Participant

    Difficult to say, Jamie. Could you send me the file so I can see what goes wrong?

    in reply to: Import Endnotes as plain text in CC2018? #100379
    Peter Kahrel
    Participant

    Here’s a script to convert InDesign 2018 endnotes to static notes:
    https://www.kahrel.plus.com/indesign/footnote_endnote_conversion_cc2018.html

    > Can I cut and paste the marker to the correct spot

    The cross-reference? Yes, you can.

    P.

Viewing 15 posts - 136 through 150 (of 341 total)