ToolkitSmall

A computer newsletter for translation professionals

Issue 9-1-131
(the one hundred thirty-first edition)
Contents
1. XML Files with HTML -- Again! (Premium Content)
2. A New Approach to AutoCAD Files
3. Seeing Clearly
4. More Conversions
5. Another Partnership Between TM and MT
6. Future Glimpse of Trados II
7. A Love Story (continued)
The Last Word on the Tool Kit
Killing Time

Developments with Jeromobot turned dramatic this week -- more on that story in two weeks. In the meantime, he had a chance to meet family, dinosaurs, and famous architects. Oh, and if you'd like to encounter the name of God or Jim Knopf, you can have a look at the article that Gabe Bokor kindly asked me to write for his Translation Journal -- I enjoyed writing that one.

If you still need to kill some time, here's something I think you will like: Wordle. Gabi Ortiz pointed me to this and it's essentially a way to create beautiful and yet meaningful images with words contained in documents. For instance, take a look at this representation of the last newsletter. I could think of a couple of additional features that I would like to see in this tool (such as the ability to define multi-word phrases), but it's grand as it is. In fact, the only problem might be that you waste too much time playing with it.

Happy Wordling.

There's one more thing I discovered last week that some of you might enjoy (I admit, it won't be everyone's cup of tea). I watched Helvetica, a movie about fonts, typography, and the power of written language. Whether you like the movie or not, you'll look at writing differently after watching it (provided that you live in a culture with a Latin-based script).

1. XML Files with HTML -- Again! (Premium Content)

Here is something that we dealt with extensively several years ago, but it must be time to review. Last week I received some files from a client (a long-time subscriber to the newsletter) that were a terrible mess, exactly the mess that I tried to avoid when I talked about processing XML files with embedded HTML in TEnTs (translation environment tools). Since that client did not want to pay for consulting services to make it better (shame on them), they now have to share it with everyone else:

Virtually every TEnT separates translatables from non-translatables. This makes a lot of sense: The non-translatable stuff needs to be protected from over-eager translators, who at the same time don't want to waste their time making decisions about whether something is translatable or not. To achieve that goal, the different tools use different filters for different file formats, and these typically are similar across different tools: office formats, DTP formats, and tagged formats (HTML, XML, etc.). However, sometimes you encounter files that follow more than one format. Imagine a Word file with an embedded Excel spreadsheet, or a PowerPoint file with an embedded Visio file. The problem of TEnTs is that once they make a "decision" for one filter, they stay with it. This in turn means that they will simply ignore embedded files in the above examples, and you will have to extract that file from the "container" file and translate it separately. All of this is really not too much of a problem (as long as you notice it and don't send back a file with a great deal of untranslated text).

However, there are some cases that are not nearly as clear-cut, and this is true when the "contained" content is not actually a file but just snippets that follow different format conventions, like so often with HTML that is embedded within XML. XML and HTML are siblings that both use <markup that is surrounded by less-than and greater-than symbols> to describe formatting (HTML) or content (XML). If HTML text and code is embedded within XML, these symbols are written as special characters (&lt; and &gt;) so the application that processes the files knows how to distinguish XML code from HTML code. TEnTs, not being stupid, also "think" that they know what to do with it: They decode the special characters into the "correct" forms: < and >. Unfortunately, they stop right there rather than hiding them from the view of the translator.

This is an actual example of an XML snippet with embedded HTML that I worked on last week:

<Text LanguageId="7">&lt;center&gt;&lt;font color=red size=3&gt;Thank you&lt;/font&gt; for your interest in our survey.&lt;br&gt;This window will now close.&lt;br&gt;&lt;input type="button" value=^f('cqhidCustomMessages')['5'].label()^ onClick="closewindow()"&gt;</Text>

You can see that the XML tags are enclosed with the typical <less-than and greater-than> tag markers and they will be recognized easily by your TEnT. The actual translatable text ("Thank you for your interest in our survey. This window will now close.") is full of HTML code encoded with the less-than and greater-than tag markers (&lt; and &gt;). Importing a file with this segment into an XML-enabled TEnT results in this:

<center><font color=red size=3>Thank you</font> for your interest in our survey.<br>This window will now close.<br><input type="button" value=^f('cqhidCustomMessages')['5'].label()^ onClick="closewindow()">

The XML codes are hidden (or write-protected). The encoded HTML codes have been turned into proper HTML codes, but they are not protected and can thus be easily corrupted. Aside from the danger of corruption, these are an incredible nuisance because a) you will have to understand them, b) you will have to translate around them, c) they will make spell-checking a nightmare, and d) they will pollute your translation memory to no end.

Let's deal with the good news first: Two tools, Idiom WorldServer and Trados, allow a post-filtering of already-processed data to catch and protect those codes. Since we probably don't have to worry much about Idiom anymore, here is how Trados does it: Trados TagEditor includes a utility (Tools> Plug-ins> Snippet Mark-up Plug-in) that allows you to post-process any non-native tags within an Excel (!) or XML file. No, it's not particularly user-friendly, but, yes, it's very powerful once you get the hang of it. Here's how it works once you have it set up: When you open an Excel or XML file in TagEditor that also contains other code, it asks you whether you would like to process the remaining code as well. If you agree, it processes the file again, closes it, and when you reopen it, all the ugly code is protected. You'll need a few trial-and-error runs to make it catch all the code, but it's time well invested.

The other TEnT vendors have yet to introduce comparable features, but until they do, here is a workaround: Open Word and select Tools> Options> General> Confirm conversion at Open (Word 2003 and earlier) or Office button> Word Options> Advanced> General> Confirm file format conversion on open (Word 2007). Open the XML file in Word and, when prompted, open it as an encoded text file and make sure that you select as the code page UTF-8 or whatever the original code page of the file was. The file will now be displayed as a plain text file. Now, depending on the tool that you are using, you can change the style or the formatting of both the XML and HTML tags so that they will be treated as external or internal tags once the file is saved to RTF.

For instance, with Across, Transit, and Déjà Vu you can open the Find and Replace dialog in Word (Ctrl+H), select More, check "Use wildcards," search for \<*\> and &lt;*&gt; and replace it with hidden text (select Format> Font> Hidden for that). After that, uncheck Use wildcards and replace &amp;nbsp; with hidden text.

For Wordfast, MemoQ, and SDLX, you can do the same, only in this case you can replace the same items with the Trados-style tw4winExternal and/or tw4winInternal. (If it is not listed in the list of available styles, copy and paste a couple of characters from another document with that style into your document -- it will then be listed -- and make sure to delete the characters once you have used the style.)

Once this is done (and I'm pretty sure you can find a style or format that your tool of choice recognizes as non-translatable text), save the file as an RTF file, import it into or open it with your TEnT, translate it, export or clean it, open it in Word, and save it as a text file. Make sure that you set the code page correctly and that the extension is .xml rather than .txt. (You can achieve that by placing quotation marks around the complete file name in the Save as dialog.)

Sound a bit involved? I agree, it does. The problem is that it is REALLY involved to translate files with tons and tons of non-protected formatting like the one I describe above. So I would rather spend the few minutes to prepare the file adequately in the project preparation phase rather than messing up code or being annoyed in the much longer translation phase.

2. A New Approach to AutoCAD Files 

I found this mentioned by MultiLingual: TranslateCAD is a tool that extracts text from AutoCAD drawing so they can be translated in a TEnT (translation environment tool) and then reinserted into the AutoCAD drawing.

Those of you who work with AutoCAD files know that it has been a very cumbersome process to translate these files. (For whose who don't know what these files are: AutoCAD is the leader in the Computer-Aided Design field, so these are files with very complex drawing for design purposes that often contain translatable text.) The Mexican LSP TranslationToSpanish.com has now made things a lot easier with their tool that uses a very straightforward, no-nonsense approach to the text extraction process. But before you go out and try it, here are some things you need to be aware of. It does not work on the AutoCAD-native DWG format, but instead in the exchange format DXF. This is good news because a handful of other CAD programs also support this format; the bad news is that you'll need an actual CAD program to save the original DWG file as a DXF file. Now, there are any number of free or cheap converters out there, but as TranslationToSpanish.com's website states: "I recommend using your original AutoCAD software to avoid incompatibilities between formats." And this is probably a wise idea, in particular because some of the newest features in AutoCAD files are not supported by the exchange format.

All in all, TranslateCAD is not perfect, but it's pretty darn good since there was little else out there before.

ADVERTISEMENT
Albrecht Immigration Strategies, PC is a small law firm quietly doing big things for its clients.
  • Many other immigration lawyers only use their left brain hemisphere. I also use my right.
  • Many other immigration lawyers only see a picture of a hat when you show them a picture of a boa constrictor digesting an elephant. 
  • Many other immigration lawyers make simple things complicated. I make complicated things simple.
It should not be a surprise then that many other immigration lawyers actually hire me to help them win their own cases. Perhaps you too can hire me to help you win yours.

3. Seeing Clearly

Recently, Richard Sikes sent me an interesting report on choosing monitors. This might be helpful to some:

I just recently decided to buy a new flat-screen monitor for my home office. As my home office monitor I had previously had a 21" CRT [the old cathode ray tube monitors], and at my downtown office I used a 17" Samsung flat-screen that I really liked because of the readability of text. I first bought a used Lenovo LCD monitor but, after a very short period of time, the graininess really bothered me. So, I started by investigating what the pixel pitch on the Samsung was and discovered that it was considerably smaller than the Lenovo. [Pixel pitch is the physical distance between the pixels.]

With that as a basis, I began researching different monitors and, to my surprise, discovered that the majority of manufacturers do not list the pixel pitch for many or most models.  This really surprised me, as the pixel pitch makes a very noticeable difference, especially for someone such as myself who works a lot with text. One would think that manufacturers would use pixel pitch as a differentiator.  After some research, however, I discovered that the bulk of affordable monitors that listed pixel pitch in their specifications have a rating of 0.282 millimeters. So it appears to me that manufacturers are assuming that this metric satisfies the majority of potential buyers. But it did not satisfy me, as that was the pixel pitch of my disappointing Lenovo model.

After considerable surfing, I did find an HP model that listed a pixel pitch of .255, which is close to that of my old Samsung. (...) To my great delight, it is really good.  Even small font sizes are not grainy. The monitor is truly easy on my eyes, and I'm finally a happy camper!

The fruit of my labours: HP w2007 (approximately $300) and HP 2065 (approximately $400).  I didn't need the extra bells and whistles on the 2065, so I opted to save the $100 difference. I should point out, though, that the more expensive model can rotate 90° to offer more vertical space and it has handy USB ports that are easily within reach so, if I win the lottery sometime soon, perhaps I'll shell out the $400 for a second monitor.

And Moshe Devere had this to say about readability:

In my lectures and help sessions with newbies trying to get ahead in translation work I advise setting the monitor's background color from pure white to a manila-tone to cut down on the light reaching the eye.

Cutting back on brightness does not work as well. With a color change the contrast is preserved. I first noticed this on a Samsung preset for text. It changed the monitor color temperature along with a few other settings. For some people it doesn't work or it's uncomfortable. So I set the color to their liking.

You can never learn enough!

4. More Conversions

Here are two sites that do many helpful conversions for free: youconvertit and Zamzar. I think I mentioned Zamzar before, so here is some info about the beautifully streamlined and easy-to-use youconvertit. It essentially allows you to do four things: convert units (I know that there are many other places for this as well, but it just happens to be one of the features offered); send large and multiple files (kind of what you can also do with the cousin-in-name yousendit); download YouTube videos in a specified format or have them emailed to you; and, last but not least, convert file formats. Especially this last feature should prove to be particularly helpful to translators. The main categories of conversion formats are document, video, audio, graphic, and archived files (.zip etc.), but there are about 180 different actual file formats you can convert into, including of course all the office and HTML formats.

ADVERTISEMENT

AnyMem

New User-Friendly Translation Memory Tool

Happy 2009!

Hidden 35% discount on all AIT products:

5. Another Partnership Between TM and MT

MultiCorpora, a TEnT provider, and Systran, the most well-known rules-based MT provider, have formed an agreement "to add machine translation functionality to the MultiTrans client-server application." I have not seen how this actually works but I take it as a positive sign. It is partnerships like these between TEnT, project workflow system, and MT vendors (as well as possibly other vendors) that I think have the most realistic chance of giving us the most powerful all-around solutions.

And this is doubtlessly also the first of many responses yet to come to the new Trados/MT integration.
6. Future Glimpse of Trados II

In the last newsletter, I mentioned some things about the upcoming version of Trados. One of them was this:

The translation memory format has also changed and will, according to the review, be maintained in a version of MS SQL Server. I hope that this isn't true since it would require a gigantic installation and a possible drain on computer resources -- but we will see what the new year brings.

Daniel Brockmann from SDL wrote this back:

At this point I'd just like to clarify one aspect for you regarding the file format for TMs. Similar to current versions, we will keep the approach that users can work with both file-based and server-based TMs. So SQL Server (with SQL Express being the entry level free version) will not be a requirement. As you state, requiring this would be problematic especially when it comes to scaling down to typical professional freelance translators' desktop machines.

More good news!

7. A Love Story (continued)

This one took me by surprise -- who would have thought that Georgian looks so elegant?

If you have a Javascript-enabled browser, hold your cursor over the character for a definition.
The Last Word on the Tool Kit

If you would like to promote this newsletter by placing a link on your website, I will in turn mention your website in a future edition of the Tool Kit. Just paste the code you find here into the HTML code of your webpage, and the little icon that is displayed on that page with a link to my website will be displayed.

© 2009 International Writers' Group