<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Dear Salome,<br>
<br>
If you know how to write regular expressions, or know someone who
does and is available to help you, I guess my experience may be
helpful:<br>
<br>
I work remotely for a major molding machine manufacturer in
Europe - I translate and typeset their manuals into Chinese in
FrameMaker. And I also head a team which handles Japanese and
Korean. <br>
<br>
My contact sends in her files in a zip package of fm/book files.
The thing is, from time to time, or rather, almost every time, the
fm files in the book file are grabbed from different folders on
their systems, and when I open/update the files, the warnings
about broken cross-ref's and missing images are overwhelming. I
used to correct all these manually, and it was hell to me! Now we
have an in-house tool to manipulate the re-saved MIF files. The
tool searches the content of each MIF file by using regular
expressions and comes up with a list of linked images and
cross-ref's, and then tries to locate them on the hard disk. If
any files cannot be found, then you can specify a base folder for
the tool to search. After all the files are found, then you can
instruct the tool to modify the MIF accordingly. <br>
<br>
In your case, you do not really need to write any code. You may
just use a regular expression developing tool to complete all the
above steps, for example, RegexBuddy. This tool is very
sophisticated, and it even has a GREP function, which enables you
to search and modify all files in a folder (and all its
subfolders!). <br>
<br>
Just for your reference, the regular expression for looking for a
cross-ref'ed fm that is located in another folder is:<br>
<br>
(<XRefSrcFile
`)<u\\>.*?(<c\\>[^\\<>]+?.fm'>)<br>
And you replace this with "$1$2", and the cross-ref'ed fm will be
the one in the current folder.<br>
<br>
I'm sure you can fairly easily come up with a regular expression
to correct the image linkage info.<br>
<br>
Hope the above is helpful to you.<br>
<br>
Kindest,<br>
Wei JIANG<br>
Senior Translator & Project Manager <br>
Based in Beijing, China<br>
<br>
<br>
On 9/28/2012 11:18 PM, Abungu, Salome (TTI Mpls) wrote:<br>
</div>
<blockquote
cite="mid:914B886BE0FB554885963352E3F792B7043617@CH1PRD0510MB380.namprd05.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Does anyone
know of a program that will allow me to move several files
to another folder without breaking links to graphics in
other folders? We’ve imported graphics by using the “import
by reference” option instead of copying the graphics to the
document. We’ve done this because copying the graphics into
the document bloats it. Our manuals have been created by
several writers over the years. I have hundreds of files to
move but haven’t done it yet because of this issue. I could
open each book file and FrameMaker files and just archive
them but again, there are hundreds of these things to move.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Any ideas are
certainly appreciated.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Have a great
weekend!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Salome Abungu<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
You are currently subscribed to framers as <a class="moz-txt-link-abbreviated" href="mailto:jiangw@polytrans.com.cn">jiangw@polytrans.com.cn</a>.
Send list messages to <a class="moz-txt-link-abbreviated" href="mailto:framers@lists.frameusers.com">framers@lists.frameusers.com</a>.
To unsubscribe send a blank email to
<a class="moz-txt-link-abbreviated" href="mailto:framers-unsubscribe@lists.frameusers.com">framers-unsubscribe@lists.frameusers.com</a>
or visit <a class="moz-txt-link-freetext" href="http://lists.frameusers.com/mailman/options/framers/jiangw%40polytrans.com.cn">http://lists.frameusers.com/mailman/options/framers/jiangw%40polytrans.com.cn</a>
Send administrative questions to <a class="moz-txt-link-abbreviated" href="mailto:listadmin@frameusers.com">listadmin@frameusers.com</a>. Visit
<a class="moz-txt-link-freetext" href="http://www.frameusers.com/">http://www.frameusers.com/</a> for more resources and info.
</pre>
</blockquote>
<br>
</body>
</html>