Pages in topic:   [1 2] >
Urgent: Studio 2011, How can I convert sdltm to txt?
Thread poster: Rain Na Bun

Rain Na Bun
Thailand
Local time: 05:27
Member (2011)
English to Thai
Apr 20, 2012

Hi,

Please help,
I have SDL Trados Studio 2011.
How can I convert sdltm to txt?

Thank you.


Direct link Reply with quote
 

SDL Community  Identity Verified
United Kingdom
Local time: 23:27
English
TXT as in TXT TM? Apr 20, 2012

Hi,

Guess you export to TMX from Studio, then import the TMX into a TMW TM using Workbench, then export as TXT.

Regards

Paul


Direct link Reply with quote
 

Rain Na Bun
Thailand
Local time: 05:27
Member (2011)
English to Thai
TOPIC STARTER
where is workbence in Studio 2011? Apr 20, 2012

Thank you Paul,

I have already convert sdltm to tmx.
Where is workbench in Studio 2011?
How can I do that?

Thank you.


Direct link Reply with quote
 

SDL Community  Identity Verified
United Kingdom
Local time: 23:27
English
No Workbench in 2011 Apr 20, 2012

Hi,

Workbench is a component of SDL trados 2007. So if you do not have this, but my guess is you do as I seem to recall seeing your name on 2009 queries a few times, then you either need to purchase it seperately or find someone who can do this conversion for you (I can do this if you like?)

But it would be interesting to know why you need this? If you don't know about Workbench then why do you need this? If a customer has asked you should also be able to give them the TMX.

Regards

Paul


Direct link Reply with quote
 

Rain Na Bun
Thailand
Local time: 05:27
Member (2011)
English to Thai
TOPIC STARTER
Thank you Apr 20, 2012

Thank you Paul,

I never have Studio 2009 or have any query about it.
I have already submitted the tmx type to client.

Thank you very much.

[Edited at 2012-04-20 16:03 GMT]


Direct link Reply with quote
 

SDL Community  Identity Verified
United Kingdom
Local time: 23:27
English
My mistake :-| Apr 20, 2012

Apologies... I thought I recognised your name.

I hope your client is happy with the TMX.

Regards

Paul


Direct link Reply with quote
 
Joakim Braun  Identity Verified
Sweden
Local time: 23:27
German to Swedish
+ ...
Add a CSS style sheet to the TMX memory Apr 20, 2012

Since TMX is an XML file, you can associate a CSS style sheet to it.
The style sheet can be set up to display your TMX data as a HTML table.

Like this:
1. Rename the TMX file with an .xml extension.
2. Open the TMX/XML file in a plaintext editor.
3. Beneath the first line (which should read "<?xml version="1.0" encoding="UTF-8"?>"), add this line:
<?xml-stylesheet type="text/css" href="test.css"?>

4. Create a plaintext file in the same directory as the TMX/XML file. Name it "test.css". Enter this text:

note{display:none}
prop{display:none}
body{display:table}
tu{display:table-row}
tuv{display:table-cell}

5. Open the TMX/XML file in a Web browser. The text of the translation units should be displayed in a simple tabular format. This text can be copied as plaintext.

[Bearbeitet am 2012-04-20 17:10 GMT]


Direct link Reply with quote
 

Michael Joseph Wdowiak Beijer  Identity Verified
United Kingdom
Local time: 22:27
Member (2009)
Dutch to English
+ ...
:) Apr 20, 2012

Thanks for that great little tip Joakim! I just tried it and it works beautifully.

Direct link Reply with quote
 
Joakim Braun  Identity Verified
Sweden
Local time: 23:27
German to Swedish
+ ...
(OT) .sdlxliff as plaintext Apr 20, 2012

For .sdlxliff it gets more complicated. Can't get a bilingual table layout working out of hand. But here's CSS to display all the source TU:s in an .sdlxliff file as plaintext:

body{display:table}
doc-info,header{display:none}
group,trans-unit{display:table-row}
trans-unit source{display:table-cell}
trans-unit target{display:none}
trans-unit[translate=no]{display:none}
trans-unit seg-source{display:none}

(Follow instructions for TMX file in earlier post.)



[Bearbeitet am 2012-04-20 17:56 GMT]


Direct link Reply with quote
 

Rain Na Bun
Thailand
Local time: 05:27
Member (2011)
English to Thai
TOPIC STARTER
Thank you Apr 21, 2012

Joakim Braun wrote:

Since TMX is an XML file, you can associate a CSS style sheet to it.
The style sheet can be set up to display your TMX data as a HTML table.

Like this:
1. Rename the TMX file with an .xml extension.
2. Open the TMX/XML file in a plaintext editor.
3. Beneath the first line (which should read ""), add this line:


4. Create a plaintext file in the same directory as the TMX/XML file. Name it "test.css". Enter this text:

note{display:none}
prop{display:none}
body{display:table}
tu{display:table-row}
tuv{display:table-cell}

5. Open the TMX/XML file in a Web browser. The text of the translation units should be displayed in a simple tabular format. This text can be copied as plaintext.

[Bearbeitet am 2012-04-20 17:10 GMT]



Thank you Joakim,

I have some questions,

I. I have already convert it to txt in unicode format, is this OK?
I can convert it anyway.

II. The end of the document has the following message,
Cannot view XML input using CSS style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Invalid at the top level of the document. Error processing resource 'file:///D:/Translation/Global LT/Ford/test.css.xml'. ...



Is this OK?
I deleted the message and there is no problem.

III. The format of txt I receive from client before I convert to sdltm and convert back to tmx, and then convert to txt (follow your instruction), is quite different from the final txt that I did.

My final txt looks like word, but txt from my client has format like,



{\fonttbl
{\f1 \fmodern\fprq1 \fcharset0 Courier New;}
{\f2 \fswiss\fprq2 \fcharset0 Arial;}
{\f3 \fcharset222 Tahoma;}
{\f4 \froman\fprq2 {\*\panose 02020603050405020304}\fcharset0 Times New Roman;}
{\f5 \froman\fprq2 {\*\panose 02020500000000000000}{\*\falt ?s?}\fcharset136 PMingLiU;}
{\f6 \fswiss\fprq2 {\*\panose 020b0604030504040204}\fcharset0 Tahoma;}
{\f7 \froman\fprq2 {\*\panose 02020500000000000000}\fcharset136 @PMingLiU;}

Is this OK?
I did anything wrong, didn't I?

Thank you so much.


Direct link Reply with quote
 

Rain Na Bun
Thailand
Local time: 05:27
Member (2011)
English to Thai
TOPIC STARTER
Not in simple tabular format Apr 21, 2012

I see that my final txt is not in simple tabular format.

I may be do something wrong.
1. Rename the TMX file with an .xml extension.
2. Open the TMX/XML file in NOTEPAD.
3. Beneath the first line (which should read ""), add this line:

4. I save the file, and it is save in my xml. I Name it "test.css"
5. I add
note{display:none}
prop{display:none}
body{display:table}
tu{display:table-row}
tuv{display:table-cell}
5. Open the TMX/XML file in a Web browser. It is not in simple tabular format. It looks like word.

Thank you for your help.


Direct link Reply with quote
 
Joakim Braun  Identity Verified
Sweden
Local time: 23:27
German to Swedish
+ ...
RTF Apr 21, 2012

The question was "How can I convert sdltm to txt". My solution displays the *text* of translation units in a TMX file. That's all it does or can do...

The {\fonttbl..... stuff that you are missing are RTF formatting tags. They indicate that your initial text file actually was an RTF file. If you have imported an RTF file into Trados, there may be all kinds of Trados settings that affect how it is imported and stored. Apparently the tags aren't exported into TMX and so aren't visible. So if you need to create a text file containing the translated text with the original RTF codes, my solution won't do that.

From the error message you appear to have saved the style sheet (CSS) as an XML file ("test.css.xml"). Follow the instructions and save it as a plaintext file with the .css extension. (This won't solve your RTF problem, though.)


Direct link Reply with quote
 
FarkasAndras
Local time: 23:27
English to Hungarian
+ ...
CSS Apr 21, 2012

Joakim Braun wrote:

Since TMX is an XML file, you can associate a CSS style sheet to it.
The style sheet can be set up to display your TMX data as a HTML table.


That is ingenious.
Some other options are described here: http://www.proz.com/translation-articles/articles/3194/
The tool I wrote for the purpose could come in handy for very large TMX files, which browsers can't display.
Also, I'm not sure what your HTML trick does with inline formatting tags (bpt, ept, it, ph etc.). Tmx2tabbed offers to strip them, which is probably a good idea.

P.s. I'll add your method to the article, if you don't mind.

[Edited at 2012-04-21 08:14 GMT]


Direct link Reply with quote
 

SDL Community  Identity Verified
United Kingdom
Local time: 23:27
English
TXT and TXT Apr 21, 2012

Rain Na Bun wrote:

III. The format of txt I receive from client before I convert to sdltm and convert back to tmx, and then convert to txt (follow your instruction), is quite different from the final txt that I did.



Hi,

Joakim is referring to a TEXT file really and has extracted the text from the TMX file. You are talking about a TXT Translation Memory Format which is something different... I think. The TXT your client sent you is probably the TXT you would get by exporting from Workbench.

Regards

Paul


Direct link Reply with quote
 
Joakim Braun  Identity Verified
Sweden
Local time: 23:27
German to Swedish
+ ...
So Apr 21, 2012

So it's not a text file at all! Thanks for clearing up that mystery.

Direct link Reply with quote
 
Pages in topic:   [1 2] >


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


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

Urgent: Studio 2011, How can I convert sdltm to txt?

Advanced search







BaccS – Business Accounting Software
Modern desktop project management for freelance translators

BaccS makes it easy for translators to manage their projects, schedule tasks, create invoices, and view highly customizable reports. User-friendly, ProZ.com integration, community-driven development – a few reasons BaccS is trusted by translators!

More info »
Déjà Vu X3
Try it, Love it

Find out why Déjà Vu is today the most flexible, customizable and user-friendly tool on the market. See the brand new features in action: *Completely redesigned user interface *Live Preview *Inline spell checking *Inline

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search