How to change TM to use paragraph segmentation?

Hi all,

I'm attempting to create a new FileBasedMemory (via Studio 2015 API) which will then be used to import a paragraph segmented tmx file. The TM creation and tmx import parts are working fine, but I cannot see any way to change the tm to paragraph based segmentation. Is this possible?

 

Thanks

Alan

Parents Reply
  • //Set Paragraph segmentation

    FileBasedTranslationMemory TM = new FileBasedTranslationMemory(tmFilePath);

    LanguageResourceBundleCollection lrbc = TM.LanguageResourceBundles;


    // Create bundle 
    LanguageResourceBundle newbundle = new LanguageResourceBundle("en-US");
    // Create rules
    newbundle.SegmentationRules = new Sdl.LanguagePlatform.Core.Segmentation.SegmentationRules("en-US","Some discription");

    lrbc.Add(newbundle);
    TM.Save();

    // Reset to default

    FileBasedTranslationMemory TM = new FileBasedTranslationMemory(tmFilePath);

    LanguageResourceBundleCollection lrbc = TM.LanguageResourceBundles;

    lrbc.Clear();
    TM.Save();

Children
No Data