Search/replace text in metafile files
Autor de la hebra: Jaroslaw Michalak
Jaroslaw Michalak
Jaroslaw Michalak  Identity Verified
Polonia
Local time: 13:50
Miembro 2004
inglés al polaco
LOCALIZADOR DEL SITIO
Jun 18, 2004

Is there a tool for replacing text in metafiles (wmf, emf)? I have multiple graphic files in which text is saved as text objects and I wonder if it is possible to automate some operations.

 
Brandis (X)
Brandis (X)
Local time: 13:50
inglés al alemán
+ ...
yes, here Jun 18, 2004

Jabberwock wrote:

Is there a tool for replacing text in metafiles (wmf, emf)? I have multiple graphic files in which text is saved as text objects and I wonder if it is possible to automate some operations.
Hi! convert these to .png and process with Fireworks, then you can process the text in the graphics.
Regards,
Brandis


 
Jan Sundström
Jan Sundström  Identity Verified
Suecia
Local time: 13:50
inglés al sueco
+ ...
Which program? Jun 7, 2007

Brandis wrote:
convert these to .png and process with Fireworks, then you can process the text in the graphics.
Regards,
Brandis


Hi Brandis and all,

Sorry to resurrect an old thread.
When you click on the .emf to convert them, which program do you open them in first?!
I was astonished to see that neither Acrobat 7 nor Photoshop CS2 wants to open these files.

Windows suggested that I open them in Microsoft Office Picture Manager, but this lousy software seems to only export as lo-res .png, which means that the resulting files are unreadable.

I don't have Fireworks at hand, but I doubt that the minimal .png from MOPM will work out.

Did anyone try CS3 yet, maybe Adobe has better support for the EMF format now?!

/Jan


 
Jaroslaw Michalak
Jaroslaw Michalak  Identity Verified
Polonia
Local time: 13:50
Miembro 2004
inglés al polaco
PERSONA QUE INICIÓ LA HEBRA
LOCALIZADOR DEL SITIO
Working with Word... Jun 7, 2007

I've noticed that when you edit the embedded emf file within Word (right-click and "Edit picture"), Word converts it to its internal picture format. This, in turn, may be easily exposed to editing (in TagEditor, for example).

Note that you will lose some settings at conversion (for example, the placeholder is bigger so some graphics have to be resized), but it still may be worth it...


 
Jan Sundström
Jan Sundström  Identity Verified
Suecia
Local time: 13:50
inglés al sueco
+ ...
Not embedded Jun 7, 2007

Jabberwock wrote:

I've noticed that when you edit the embedded emf file within Word (right-click and "Edit picture"), Word converts it to its internal picture format.


Hi Jabberwock,

Maybe I missed something, but my EMF files are not embedded.
They are flowcharts that have been exported from MS Visio (no, I don't have access to the originals).

So if I would try to open the .emf in Word, I only get garbled data, since it cannot be parsed.

/Jan


 
Jaroslaw Michalak
Jaroslaw Michalak  Identity Verified
Polonia
Local time: 13:50
Miembro 2004
inglés al polaco
PERSONA QUE INICIÓ LA HEBRA
LOCALIZADOR DEL SITIO
Standalone emf? Jun 7, 2007

Sorry, it seems I was too preoccupied with my previous problem...

Then the files are standalone, not included in the Word file?

It all depends really on what you want to do with them. If you want the same set of emf files, but translated, then this might is somewhat more difficult (but doable).

Here is what I would do:

1. Insert the files into a Word document (using Insert/Picture from file, as Word does not open the files directly).
2. C
... See more
Sorry, it seems I was too preoccupied with my previous problem...

Then the files are standalone, not included in the Word file?

It all depends really on what you want to do with them. If you want the same set of emf files, but translated, then this might is somewhat more difficult (but doable).

Here is what I would do:

1. Insert the files into a Word document (using Insert/Picture from file, as Word does not open the files directly).
2. Convert (by editing) the pictures into internal Word pictures, hoping they are not too messed up.
3. Edit the files with TagEditor or equivalent.
4. If the client is OK with a Word file (or PDF etc.), then it stops there. If not, I would try this:
5. "Convert" the internal Word files into emf files by cutting them out and pasting as metafile again (could be done with a macro, if there are many of them).
5. Extract the graphic files as described here: http://www.proz.com/post/582040#582040 The files will be saved as emz, which is simply zipped emf.

I hope this is clear enough. If not, feel free to ask, preferably here as someone else might find it useful.

[Zmieniono 2007-06-07 14:17]
Collapse


 
Jaroslaw Michalak
Jaroslaw Michalak  Identity Verified
Polonia
Local time: 13:50
Miembro 2004
inglés al polaco
PERSONA QUE INICIÓ LA HEBRA
LOCALIZADOR DEL SITIO
Yet another solution... Jun 7, 2007

Another solution might be to open the emf files with another editor (it must be a vector graphics editor, such as Illustrator, Corel Draw, etc.) and save it as a SVG file.

A lot depends on the import/export method of a given program, as some of them tend to interpret text as curves (e.g. Corel Draw imports and exports the files I tried it with properly, Inkscape does not). If the export works as expected, i.e. the text may be seen in the svg (which is a subset of xml) as text, then
... See more
Another solution might be to open the emf files with another editor (it must be a vector graphics editor, such as Illustrator, Corel Draw, etc.) and save it as a SVG file.

A lot depends on the import/export method of a given program, as some of them tend to interpret text as curves (e.g. Corel Draw imports and exports the files I tried it with properly, Inkscape does not). If the export works as expected, i.e. the text may be seen in the svg (which is a subset of xml) as text, then you might edit the SVG files directly with TagEditor, or any other CAT which allows xml definitions.
Collapse


 
Jan Sundström
Jan Sundström  Identity Verified
Suecia
Local time: 13:50
inglés al sueco
+ ...
Thanks a million! Jun 13, 2007

Thanks Jabberwock, you're really resourceful!

I didn't have time to try your methods yet, the client was satisfied with a crappy PDF with translation pasted as stickies...

But this surely will be the way to go next time.

/Jan


 
TSDM
TSDM
Federación Rusa
Local time: 14:50
ruso al inglés
segmenting for imported svg files — any ideas? Aug 31, 2009

Jabberwock,
This seems like a very very good idea. However, when I imported the svg file using the xml filter each letter is segmented as a seperate segment (quite a challenge)!
I would appreciate anyone's input into how to make segmenting work on emf files converted to svg.
I'll also contact tech support at memoq, who are amazing at coming up with elegant solutions to difficult problems, and post here any results.
Here's hoping that you will still see this posting even t
... See more
Jabberwock,
This seems like a very very good idea. However, when I imported the svg file using the xml filter each letter is segmented as a seperate segment (quite a challenge)!
I would appreciate anyone's input into how to make segmenting work on emf files converted to svg.
I'll also contact tech support at memoq, who are amazing at coming up with elegant solutions to difficult problems, and post here any results.
Here's hoping that you will still see this posting even though the thread is quite old at this point.
Collapse


 
Jaroslaw Michalak
Jaroslaw Michalak  Identity Verified
Polonia
Local time: 13:50
Miembro 2004
inglés al polaco
PERSONA QUE INICIÓ LA HEBRA
LOCALIZADOR DEL SITIO
Hard to tell... Sep 1, 2009

Yes, I'm still there

Have you checked the SVG file with a text editor?

I suspect it might be a Unicode issue, but have not idea how to solve it...


 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

Search/replace text in metafile files






CafeTran Espresso
You've never met a CAT tool this clever!

Translate faster & easier, using a sophisticated CAT tool built by a translator / developer. Accept jobs from clients who use Trados, MemoQ, Wordfast & major CAT tools. Download and start using CafeTran Espresso -- for free

Buy now! »
Anycount & Translation Office 3000
Translation Office 3000

Translation Office 3000 is an advanced accounting tool for freelance translators and small agencies. TO3000 easily and seamlessly integrates with the business life of professional freelance translators.

More info »