Forum Replies Created
-
AuthorPosts
-
Kai Rübsamen
MemberI 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 ;-)
Kai Rübsamen
MemberThis is a known bug in the current version.
Kai Rübsamen
MemberJette, 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.
Kai Rübsamen
MemberJette, only idml can “wash” the file. If you interested in a individual (paid) script, please mail me directly at: forum@ruebiarts.de
Kai
April 28, 2017 at 6:57 am in reply to: Script for automatically relink missing links with different file names #93932Kai Rübsamen
MemberI read this 3 times and think the task is not clear. Please provide a visal example before / after. Thanks.
Kai Rübsamen
MemberAlexandro, 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.
Kai Rübsamen
MemberGood 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); } } () );Kai Rübsamen
MemberAlexandro, it seems, that for Peters version the quotation marks are messed up. This can happen during copy/paste > should be straight ones.
Kai Rübsamen
MemberAlexandro, 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
Kai Rübsamen
Member> 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
Kai Rübsamen
MemberHi Tim, there isn’t any script, that will fit your needs, but this script can be written for you.
Kai
Kai Rübsamen
MemberAlexandro, 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
April 13, 2017 at 5:53 am in reply to: Edit script to convert certain paragraph-style to sidenotes. #93693Kai Rübsamen
MemberI 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
Kai Rübsamen
MemberJohanna, 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 beforeMy 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
KaiKai Rübsamen
MemberAarti, 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
-
AuthorPosts
