Quantcast
Channel: ProZ.com Translation Forums
Viewing all articles
Browse latest Browse all 3905

How to extract content from SGML to create TMX file | I like these puzzles too...

$
0
0
Forum: CAT Tools Technical Help
Topic: How to extract content from SGML to create TMX file
Poster: SDL Community
Post title: I like these puzzles too...

... maybe try this if you have Studio.

Create a filetype for this sgml... simple with two rules:

//s (always translatable)
//* (Don't translate)

Then open the file in Studio and save it. Now you have an SDLXLIFF with source/target repeated in the source column only thorughout the file.

Now use the SDLXLIFF Converter for MSOffice (installed with Studio since 2011) and convert the SDLXLIFF to Excel.

Now you have an excel file with an ID column, a source column (populated) and a target column (and an empty notes column).

Use this formulae in the target column:

=IF(ISEVEN(A3),B3,"")

This will look at the ID column (column A) and check if's an even number or not. If it is then it will copy the contents in the cell. If it's an odd number it puts nothing. Once you did this copy the formulae down the spreadsheet. Now copy all of column C (target column) and paste as plain text to remove the formulae.

Now you have a spreadheet with every other row containing source on the left and target on the right. So filter on the target column and sort in alphabetical order. Now just delete all the rows with nothing in the target.

Now you have a simple spreadsheet you can drag into the Glossary Converter and convert to TMX.

Worked nicely, and easily, with your sample text :-)

Regards

Paul
[url= [url removed] ]SDL Community Support[/url]

Viewing all articles
Browse latest Browse all 3905

Trending Articles