How do I set up the Document structure for an .md file?

I actually posted on another thread, but I figured maybe I'd get more help if I started my own post. I'm trying to set up a new file type for an .md file. I'm a veteran Trados user, but new to file types and regex, so forgive my extremely basic question, but how do I configure the Document structure so that Trados knows what is translatable text? I've read Paul's post about the inline tags and I think I might be able to figure those out (I'm sure I'll be back if I can't), but I can't even get Trados to display any text at all if I attempt to process the file. 

Parents
  • Hi Beatriz,

    We need to see a sample of the file to answer that one.

    Paul Filkin | RWS

    Design your own training!
    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

  • Hi Beatriz,

    Just to follow up on my short response from my phone. The reason we need to see a sample is because of the following:

    1. Whether something is translatable or not is not related to the document structure (unless this is embedded content?)
    2. How you handle this could depend on whether it's a text file format, xml file, html file etc.

    So if you can provide a small sample it would be very helpful. You can also email me the file if you like?

    Regards

    Paul
    pfilkin@sdl.com

    Paul Filkin | RWS

    Design your own training!
    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

  • Hi Beatriz,

    Doh... completely forgot until I read your other post that *.md was a markdown filetype! Sorry!

    However, it would still be useful to have a sample. The idea here is that the regex filetype will take everything as translatable, and then you specific which parts you don't want to be translated by using regular expressions.

    Make sense?

    Regards

    Paul

    Paul Filkin | RWS

    Design your own training!
    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

  • Paul,

    Thanks so much! These *.md files are for a large website, so we have hundreds (I think it's over 400). I will email you 2 or 3 different ones so you can see the structure. What you say about the regex filetype making everything translatable makes perfect sense, but when I try to process it, it marks the file as "reference" only. It won't let me switch it to translatable. As a test, I put in one or two regex rules under "Document structure" and it finally changed the file to "translatable" and processed it... except I got 0 words in the analysis and no segments appeared. So I am at a loss as to what I'm doing wrong. Any help from you would be fantastic. I'd love to understand how this works.

    Beatriz
  • So, I actually did some more testing on this file and tried processing it again. It turns out that the reason why nothing was showing in the Editor view is because I had processed the file with only *.md as the "File dialog wildcard expression". I tried again with both *.txt and *.md in that field and it processed it. Is this the way you're supposed to do it? Is it just a matter now of adding the non translatable inline tag rules?
  • Hi again, Paul. I have two questions regarding regex rules. One, I have a document (which I sent to you) that has pipes (|) and dashes (-) to mark a table. I'd like to make the pipe and the dashes placeholders so that they don't appear as translatable. I created the rule \| and that successfully marked the pipes as tags. Is there any way to make it so that the pipes don't show up in the document at all and the segments break there instead? For example, if I have Column | Column, is there a way to make it so that each "Column" is its own segment and there's no pipe to be seen?

    My second question is as follows: my document uses ``` and ``` as code. I need to make it so that everything in between ``` and ```, including ```, is non translatable. I don't think my knowledge of regex is nearly advanced enough to write that one from scratch. Any ideas?
Reply
  • Hi again, Paul. I have two questions regarding regex rules. One, I have a document (which I sent to you) that has pipes (|) and dashes (-) to mark a table. I'd like to make the pipe and the dashes placeholders so that they don't appear as translatable. I created the rule \| and that successfully marked the pipes as tags. Is there any way to make it so that the pipes don't show up in the document at all and the segments break there instead? For example, if I have Column | Column, is there a way to make it so that each "Column" is its own segment and there's no pipe to be seen?

    My second question is as follows: my document uses ``` and ``` as code. I need to make it so that everything in between ``` and ```, including ```, is non translatable. I don't think my knowledge of regex is nearly advanced enough to write that one from scratch. Any ideas?
Children