Thanks for the tips! lots to explore there. I have very little experience with sed, though I appreciate its power; here on a corporate W*ws box (so no chance of installing cygwin) I'd do batch search/replace with a good editor that supports "change in all open files".
On Thu, Oct 17, 2013 at 12:41 PM, Hussein Shafie <huss...@xmlmind.com>wrote: > On 10/17/2013 11:16 AM, Niels Grundtvig Nielsen wrote: > >> Good morning! after a very productive day building repetitive tables >> thanks to the new Paste options, I generated a .pdf of the results and >> realised I'd made a mistake: I've set colwidth="3*" in a colspec, and it >> would give better results with colwidth="2*". >> >> Question, then: is there something built in for this, >> > > > No. When I need to do this, I proceed as follows: > > * EITHER record and play a macro: > > 1) Press "Esc m" to start recording. > > 2) Press "Esc g" (Find Element). Specify attribute "colwidth" equals to > "3*". Clicking OK will select the first colspec having colwidth="3* > following the caret location. > > 3) Use the Attributes tool normally to change colwidth="3* to > colwidth="2*". > > 4) Press "Esc m" to finish recording. > > 5) Press "Esc p" to ``play the macro'', as many times as needed to. > > Tutorial: Automating repetitive tasks by recording macros > http://www.xmlmind.com/**xmleditor/_tutorial/record_**macro/index.html<http://www.xmlmind.com/xmleditor/_tutorial/record_macro/index.html> > > > > * OR use the Source View which has a Search/Replace facility of its own > ("View|XML Source" is new to XXE v5.8). > > > > > > or would I correct >> my mistake more quickly by opening the .dita files in a text editor? >> >> > When I have a large number of files to modify ``mechanically'', I prefer > to use a sed script: > > --- > sed -r -e '/colwidth="3\*"/colwidth="2*"**/g' -iBAK foo.dita > --- > > > >
-- XMLmind XML Editor Support List xmleditor-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support