//FindChangeList.txt //A support file for the InDesign CS4 JavaScript FindChangeByList.jsx // //This data file is tab-delimited, with carriage returns separating records. // //The format of each record in the file is: //findTypefindPropertieschangePropertiesfindChangeOptionsdescription // //Where: // is a tab character //findType is "text", "grep", or "glyph" (this sets the type of find/change operation to use). //findProperties is a properties record (as text) of the find preferences. //changeProperties is a properties record (as text) of the change preferences. //findChangeOptions is a properties record (as text) of the find/change options. //description is a description of the find/change operation // //Very simple example: //text {findWhat:"--"} {changeTo:"^_"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false} Find all double dashes and replace with an em dash. // //More complex example: //text {findWhat:"^9^9.^9^9"} {appliedCharacterStyle:"price"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false} Find $10.00 to $99.99 and apply the character style "price". // //All InDesign search metacharacters are allowed in the "findWhat" and "changeTo" properties for findTextPreferences and changeTextPreferences. // //If you enter backslashes in the findWhat property of the findGrepPreferences object, they must be "escaped" //as shown in the example below: // //{findWhat:"\\s+"} // grep {findWhat:"(

)(.+)"} {changeTo:"$2", appliedParagraphStyle:"Title"} {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:true, includeMasterPages:true, includeFootnotes:true, kanaSensitive:true, widthSensitive:true} grep {findWhat:"(

)(.+)"} {changeTo:"$2", appliedParagraphStyle:"H2"} {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:true, includeMasterPages:true, includeFootnotes:true, kanaSensitive:true, widthSensitive:true} grep {findWhat:"(

)(.+)"} {changeTo:"$2", appliedParagraphStyle:"H3"} {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:true, includeMasterPages:true, includeFootnotes:true, kanaSensitive:true, widthSensitive:true} grep {findWhat:"(

)(.+)"} {changeTo:"$2", appliedParagraphStyle:"H4"} {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:true, includeMasterPages:true, includeFootnotes:true, kanaSensitive:true, widthSensitive:true} grep {findWhat:"(
    )(.+)"} {changeTo:"$2", appliedParagraphStyle:"Unordered List"} {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:true, includeMasterPages:true, includeFootnotes:true, kanaSensitive:true, widthSensitive:true} grep {findWhat:"(
      )(.+)"} {changeTo:"$2", appliedParagraphStyle:"Ordered List"} {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:true, includeMasterPages:true, includeFootnotes:true, kanaSensitive:true, widthSensitive:true} grep {findWhat:"()(.+?)"} {changeTo:"$2", appliedParagraphStyle:"Term"} {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:true, includeMasterPages:true, includeFootnotes:true, kanaSensitive:true, widthSensitive:true} grep {findWhat:"()(.+?)()"} {changeTo:"$2", appliedCharacterStyle:"Bold"} {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:true, includeMasterPages:true, includeFootnotes:true, kanaSensitive:true, widthSensitive:true} grep {findWhat:"()(.+?)()"} {changeTo:"$2", appliedCharacterStyle:"Italic"} {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:true, includeMasterPages:true, includeFootnotes:true, kanaSensitive:true, widthSensitive:true} text {findWhat:"[ ]"} {changeTo:"[0]"} {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:true, includeMasterPages:true, includeFootnotes:true, wholeWord:false, caseSensitive:false, kanaSensitive:true, widthSensitive:true, ignoreKashidas:true, ignoreDiacritics:false} grep {findWhat:"(\\[)(\\+|\\-|0)(\\])"} {changeTo:"$2", appliedCharacterStyle:"Fudge Dice"} {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:true, includeMasterPages:true, includeFootnotes:true, kanaSensitive:true, widthSensitive:true}