Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 15 posts - 181 through 195 (of 372 total)
  • Author
    Posts
  • in reply to: Superscript with underline #93942

    I assume, the font has no ordinal-characters? First idea: Insert a space after, give the space the underline and negativ kerning between h and the space.

    Edit: Second idea: create a character style with strikethrough and offset, disable underline. Third idea: simply create a new character style with underline ;-)

    in reply to: Duplicating table loses the Header Row #93941

    This is a known bug in the current version.

    in reply to: Unknown plugin-reference #93935

    Jette, I make a short test with Peters batch processor: So if you use his script, a idml-file will get the name from the indd-file. So in a second step, you can use also Peters script to create indds from your idmls. After that, select all your new indds and create a book.

    in reply to: Unknown plugin-reference #93933

    Jette, only idml can “wash” the file. If you interested in a individual (paid) script, please mail me directly at: forum@ruebiarts.de

    Kai

    I read this 3 times and think the task is not clear. Please provide a visal example before / after. Thanks.

    in reply to: Apply color to all tracked changes in Story Editor #93888

    Alexandro, the last script is only for single words, if you want to exlude the highlight in the PDF. If you want to delete everything at the end, simply delete the condition. I have no desire for building a dialog with a dropdown at the moment ;-)

    While this seems to work for track changes, I can see another use case for conditions: marking words for an index. At the moment I’m working on a book with 250 pages and the author used a character style with magenta for highlighting words. Allthough I talked to him, only apply the style to words with black, he applied the style also to paras with gray or other color and messed up the complete document. So either use local styling or a condition.

    in reply to: Apply color to all tracked changes in Story Editor #93885

    Good to know, that both solutions are helpful :)

    It seems not to be possible, to add a shortcut to “Unconditional”. But we can script this command and give the script a shortcut:

    (function() { 
      var curSel = app.selection[0];
    
      if (!(curSel && curSel.hasOwnProperty ("baseline")) || curSel.constructor.name == "InsertionPoint") {
        alert("Select some text with a condition!");
        return;
      }
      if (curSel.appliedConditions.length > 0) {
        curSel.applyConditions([], true);
      }
    } () );
    
    in reply to: Apply color to all tracked changes in Story Editor #93882

    Alexandro, it seems, that for Peters version the quotation marks are messed up. This can happen during copy/paste > should be straight ones.

    in reply to: Apply color to all tracked changes in Story Editor #93881

    Alexandro, Peter gave you this one line for adding local Magenta.

    I think, the benefit of conditions are, that conditions are easier to control than local styling. Did you see the conditions-panel with the dropdown and those 3 options? If you want to remove the condition from special words, highlight the word and click on “unconditional”.

    Kai

    in reply to: Apply color to all tracked changes in Story Editor #93879

    > Condition highlights don’t show in a PDF.

    Peter, if the condition is applied to visible text and you use “ConditionIndicatorMode.SHOW_AND_PRINT_INDICATORS”, I can see here the hightlighting in a PDF.

    Kai

    in reply to: script to copy strings of a certain color #93876

    Hi Tim, there isn’t any script, that will fit your needs, but this script can be written for you.

    Kai

    in reply to: Apply color to all tracked changes in Story Editor #93875

    Alexandro, if you do it in your way, you highlight only additional and not removed text? If this is enough for you, conditions could also work:

    (function() { 
      var curDoc = app.activeDocument;
    
      if (!curDoc.conditions.itemByName("Highlight").isValid) {  
        var colorToHighlight = curDoc.conditions.add(
          {name:"Highlight",indicatorMethod:ConditionIndicatorMethod.USE_HIGHLIGHT, indicatorColor:UIColors.YELLOW}
        );
      } 
      else {
        var colorToHighlight = curDoc.conditions.itemByName("Highlight");
      }
    
      curDoc.conditionalTextPreferences.showConditionIndicators = ConditionIndicatorMode.SHOW_AND_PRINT_INDICATORS;
      curDoc.stories.everyItem().changes.everyItem().characters.everyItem().appliedConditions = [colorToHighlight];
    } () );
    

    Edit: It seems also possible to loop through all changes and different changes have a different type, e.g. changeType = DELETED_TEXT. So a more or less complex script could set a flag, draw a frame or whatever at this location or could even display the deleted text …

    Kai

    I wrote something for our german forum years ago: The script assumes a object-style “SIDE HEADER” with textframe width, auto height and anchoring options.

    var curDoc = app.documents[0]; 
     
    // Zurücksetzen der Sucheinstellungen   
    app.findGrepPreferences = app.changeGrepPreferences = null; 
    // Setzen der Sucheinstellungen   
    app.findGrepPreferences.appliedParagraphStyle = curDoc.paragraphStyles.itemByName("SIDE HEADER"); 
     
    // Suchen und Ergebnisse in Variable speichern   
    var results = curDoc.findGrep(true);   
     
    // Den Text in einen neuen Rahmen verschieben   
    for (var n = 0; n < results.length; n++) {
        
      var curResult = results[n];
      var a = curResult.insertionPoints[-1];
      var newTf = a.textFrames.add();
      newTf.appliedObjectStyle = curDoc.objectStyles.itemByName("SIDE HEADER");
    
      var myTextToMove = curResult.characters.itemByRange(0,-1);
      myTextToMove.move(LocationOptions.AFTER, newTf.insertionPoints[0]);
     
      // Zurücksetzen der Sucheinstellungen   
      app.findGrepPreferences = app.changeGrepPreferences = null;
      // Suchen nach
      app.findGrepPreferences.findWhat = "r+"; 
      // Ändern in
      app.changeGrepPreferences.changeTo = "";
      // Alle Ändern
      newTf.changeGrep();
    }  
     
    // Zurücksetzen der Sucheinstellungen   
    app.findGrepPreferences = app.changeGrepPreferences = null;
    
    
    Kai
    in reply to: tips & scripts for bilingual bible #93625

    Johanna, there are three things, that can control the first baseline of a paragraph:

    1. a table cell as David described
    2. a new text frame
    3. the first line of a para itself, with calculated space before

    My first feeling is, that table cells aren’t flexible. So I vote probably for no. 3. This depends on how the verse is structered and if every new line is splitted with a return or Forced line break. Even, if everyhting has a return, I would try to package a verse in one para.

    Then determine the “longest language” as the starting point and create different para styles as David suggested. But do it not manually: A script can calculate the starting point for the second language …

    so far
    Kai

    in reply to: Remove # character in the middle of document #93163

    Aarti, since EPUB from InDesign is a difficult topic, I recommend watching the courses at lynda.com and visit epubsecrets.com. This gives you a good starting point.

    Kai

Viewing 15 posts - 181 through 195 (of 372 total)