<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://uat.community.rws.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks</link><description>This wiki was used to provide helpful information related to the apps from the RWS AppStore. For the latest information please visit https://appstore.rws.com/</description><dc:language>en-US</dc:language><generator>Telligent Community 12 Non-Production</generator><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks</link><pubDate>Wed, 10 Jan 2024 14:53:13 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Oana Nagy</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Current Revision posted to Wiki by Oana Nagy on 1/10/2024 2:53:13 PM&lt;br /&gt;
&lt;h4&gt;&lt;strong&gt;IMPORTANT NOTIFICATION:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;The RWS AppStore &amp;gt; Wiki is no longer being maintained. For the latest updates and changes being published, please visit the official&amp;nbsp;&lt;a href="https://appstore.rws.com/"&gt;RWS AppStore&lt;/a&gt;, where you will find supporting information such as documentation &amp;amp; change log details that is associated to each app.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Alternatively if you are using Trados Studio 2022 SR2, you will find the same information within the Integrated AppStore.&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;span style="font-size:200%;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;span style="font-size:200%;"&gt;Important Note:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please note that there is a possible scenario when using this application where you may find you are seeing results and information in the user interface (UI) that don&amp;#39;t seem to match the project you are working on.&amp;nbsp; It is not possible to change this behavior using the APIs that are currently available in Studio without completely rewriting the application to work in another way.&amp;nbsp; So for now it&amp;#39;s important that you note the following.&lt;/p&gt;
&lt;p&gt;If you are working in the &amp;quot;Files View&amp;quot; and you have managed to activate a project in the &amp;quot;Projects View&amp;quot; which is different to the project belonging to the files you are working on, the &lt;strong&gt;Cleanup Tasks&lt;/strong&gt; batch task will not work as expected.&amp;nbsp; This is because the batch task will be applied to the files you are working on, but the information used to perform the task within the UI will be drawn from the active project.&amp;nbsp; For example, this is what I&amp;#39;m expecting to see for the project I am working on:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-03-37/0537.pastedimage1578759715179v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;But as I have managed to activate a different project altogether in the &amp;quot;Projects View&amp;quot; these are the settings that are being used:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-03-37/8524.pastedimage1578759946257v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;color:#000000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;It is more likely that this could occur when you open a single file for translation.&amp;nbsp; When&amp;nbsp;you select &amp;quot;Translate Single Document&amp;quot;&amp;nbsp;your document will be opened in the editor but the active and highlighted project in the &amp;quot;Projects View&amp;quot;&amp;nbsp;may still remain highlighted and influence the batch task&amp;nbsp;as described above.&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;font-size:150%;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;So before starting the CleanUp Tasks while in the &amp;quot;Files View&amp;quot; or the &amp;quot;Editor View&amp;quot; make sure&amp;nbsp;that the CURRENT project&amp;nbsp;is also active, HIGHLIGHTED.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;The content below was mostly provided by Jesse Good in his original article on this plugin.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/8688.cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-03-37/8688.cleanup_2D00_batchtask_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Cleanup Source&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/7220.cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-03-37/7220.cleanup_2D00_settings_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/2577.segment_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-03-37/2577.segment_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/5736.content_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-03-37/5736.content_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/4722.structure_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-03-37/4722.structure_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/3718.tag_2D00_remover.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-03-37/3718.tag_2D00_remover.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/7167.cf_2D00_tag_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-03-37/7167.cf_2D00_tag_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/1325.cf_2D00_tag_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-03-37/1325.cf_2D00_tag_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/5684.tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-03-37/5684.tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/0842.tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-03-37/0842.tag_2D00_remover_2D00_select_2D00_italic.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/3201.tag_2D00_remover_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-03-37/3201.tag_2D00_remover_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, I do not permit removing other types of tags other than the above. Let me know though if you have a use case for removing other types of tags.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Modifying text&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now to the main part of the plug-in. When you first start out, you will have an empty screen like below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/6825.conversion_2D00_blank.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-03-37/6825.conversion_2D00_blank.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, click on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;New&lt;/code&gt;&amp;nbsp;button to create a new &amp;ldquo;Conversion File&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The following window should pop up and it will appear blank at first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/1273.conversion_2D00_file_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-03-37/1273.conversion_2D00_file_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;+&amp;rdquo; mark in the top right corner as shown and a new row will be added to the grid like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/5432.conversion_2D00_file_2D00_view_2D00_row_2D00_added.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-03-37/5432.conversion_2D00_file_2D00_view_2D00_row_2D00_added.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, I would like to demonstrate a few use cases to show how to use the tool.&lt;/p&gt;
&lt;h4 id="use-case-converting-wide-characters-to-their-narrow-equivalent"&gt;Use Case: Converting wide characters to their narrow equivalent&lt;/h4&gt;
&lt;p&gt;In Japanese text, wide and narrow forms of characters are used:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wide&lt;/th&gt;
&lt;th&gt;Narrow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ＡＢＣＤ&lt;/td&gt;
&lt;td&gt;ABCD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;１２３４&lt;/td&gt;
&lt;td&gt;1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;カタカナ&lt;/td&gt;
&lt;td&gt;ｶﾀｶﾅ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One issue is that, depending on the client, they may use different forms in their documents. You may even find a mix of these forms in the same document. These mixed forms can also cause problems with your matching results, and your translation memories will be cluttered with them.&lt;/p&gt;
&lt;p&gt;One solution is to unify these forms before translation:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/8780.conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/823x323/__key/communityserver-wikis-components-files/00-00-00-03-37/8780.conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above screenshot I have created 3 rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wide to narrow: Alphabetic
&lt;ul&gt;
&lt;li&gt;Ensure all alphabetic characters are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wide to narrow: Numbers
&lt;ul&gt;
&lt;li&gt;Ensure all numbers are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Narrow to wide: Katakana
&lt;ul&gt;
&lt;li&gt;Ensure all Katakana characters are wide&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To create a rule, you enter your information in the input area shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/3058.conversion_2D00_file_2D00_view_2D00_input_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-03-37/3058.conversion_2D00_file_2D00_view_2D00_input_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Title&lt;/em&gt;: This field can be left blank, it just gives a description of the search item, and allows you to find an item easier in the grid view.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search&lt;/em&gt;: The text you want to search for. In the example I use a regular expression to search for a single wide alphabetic character, it probably would be more efficient to use&amp;nbsp;&lt;code class="highlighter-rouge"&gt;[Ａ-Ｚ]+&lt;/code&gt;&amp;nbsp;to search for groups of characters though.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search Settings&lt;/em&gt;: The search settings explained from left to right are:
&lt;ul&gt;
&lt;li&gt;Case Sensitive: Case sensitive searching&lt;/li&gt;
&lt;li&gt;Regex: Use regular expression matching&lt;/li&gt;
&lt;li&gt;Whole Word: Match whole words&lt;/li&gt;
&lt;li&gt;Tag Pair&lt;/li&gt;
&lt;li&gt;Embedded Tags&lt;/li&gt;
&lt;li&gt;StrConv&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Embeded Tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A common issue with translations, is handling embedded tags.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/2045.embedded_2D00_tags.png"&gt;&lt;img alt=" " src="/resized-image/__size/772x61/__key/communityserver-wikis-components-files/00-00-00-03-37/2045.embedded_2D00_tags.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The cleanup tasks tool provides a way to convert these into &amp;ldquo;real&amp;rdquo; tags.&lt;/p&gt;
&lt;p&gt;You could use the following setting:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/1565.embedded_2D00_tags_2D00_setting.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-03-37/1565.embedded_2D00_tags_2D00_setting.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above setting will detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag in the example.&lt;/p&gt;
&lt;p&gt;When you run the task on the example, it will be converted as shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/6012.embedded_2D00_tags_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/769x64/__key/communityserver-wikis-components-files/00-00-00-03-37/6012.embedded_2D00_tags_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Note that in my example, I did not show a setting converting the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;span&amp;gt;&lt;/code&gt;&amp;nbsp;tag. This is important, as even though I only created a rule to detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag, the plug-in will convert&amp;nbsp;&lt;em&gt;all&lt;/em&gt;&amp;nbsp;tags it finds within the segment.&lt;/p&gt;
&lt;p&gt;Now, when you generate the target translations, any converted tags will be restored to their former form:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/6712.embedded_2D00_tags_2D00_generate_2D00_target.png"&gt;&lt;img alt=" " src="/resized-image/__size/887x76/__key/communityserver-wikis-components-files/00-00-00-03-37/6712.embedded_2D00_tags_2D00_generate_2D00_target.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;StrConv&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;happens to be a handy&amp;nbsp;&lt;a title="method" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.strings.strconv?redirectedfrom=MSDN&amp;amp;view=netframework-4.7.2#Microsoft_VisualBasic_Strings_StrConv_System_String_Microsoft_VisualBasic_VbStrConv_System_Int32_"&gt;method&amp;nbsp;&lt;/a&gt;from Visual Basic. You can find it in a lot of Microsoft Products, such as&amp;nbsp;&lt;a href="https://msdn.microsoft.com/en-us/library/office/gg264628.aspx"&gt;Office VBA&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The handy part is shown in the following screenshot (courtesy MSDN).&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/6076.strconv_2D00_chart_2D00_microsoft.png"&gt;&lt;img alt=" " src="/resized-image/__size/875x512/__key/communityserver-wikis-components-files/00-00-00-03-37/6076.strconv_2D00_chart_2D00_microsoft.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;All the options above are available under their same names in the tool: By selecting&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Narrow&lt;/code&gt;&amp;nbsp;in the tool, I can convert any wide character to its narrow equivalent.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/0245.strconv_2D00_options.png"&gt;&lt;img alt=" " src="/resized-image/__size/225x275/__key/communityserver-wikis-components-files/00-00-00-03-37/0245.strconv_2D00_options.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you turn on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;option, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Replace&lt;/code&gt;&amp;nbsp;window becomes greyed out.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Storing conversion files for reuse&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;One problem I have found with current solutions, is there is little ability for reuse. For example,&amp;nbsp;&lt;a href="http://appstore.sdl.com/app/sdlxliff-toolkit/296/"&gt;SDLXLIFF Toolkit&lt;/a&gt;&amp;nbsp;is a great tool, but you have to retype each item you need to search for. With this tool, click&amp;nbsp;Save As&amp;nbsp;in the bottom right corner to save your settings file for later use:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/0410.conversion_2D00_file_2D00_saveas.png"&gt;&lt;img alt=" " src="/resized-image/__size/338x291/__key/communityserver-wikis-components-files/00-00-00-03-37/0410.conversion_2D00_file_2D00_saveas.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you have saved your file, it will appear in the following list.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Order matters! Each file will be used for processing starting from top to bottom.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/8306.conversion_2D00_file_2D00_list.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-03-37/8306.conversion_2D00_file_2D00_list.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would recommend creating separate conversion files based on project, or divide them into categories.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Tag Pair&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I actually don&amp;rsquo;t know how useful this feature will be, but you can detect tag pairs in the source text and modify them.&lt;/p&gt;
&lt;p&gt;For example, in the following screenshot, I look for a&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf highlight=&amp;quot;yellow&amp;quot;&amp;gt;&lt;/code&gt;&amp;nbsp;tag and replace the contents with some random text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/7026.conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-03-37/7026.conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another example is taking a tag pair and replacing it with a placeholder instead:&lt;/p&gt;
&lt;p&gt;Say you had the following made up&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;inline&amp;gt;&lt;/code&gt;&amp;nbsp;tag pair in your XML file:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/6013.conversion_2D00_file_2D00_placeholder_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/305x43/__key/communityserver-wikis-components-files/00-00-00-03-37/6013.conversion_2D00_file_2D00_placeholder_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With the following rule (make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;placeholder&lt;/code&gt;&amp;nbsp;is turned ON!):&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/2450.rule.jpg"&gt;&lt;img alt=" " src="/resized-image/__size/328x293/__key/communityserver-wikis-components-files/00-00-00-03-37/2450.rule.jpg" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can turn it into a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/2158.conversion_2D00_file_2D00_placeholder_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/342x43/__key/communityserver-wikis-components-files/00-00-00-03-37/2158.conversion_2D00_file_2D00_placeholder_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, placeholders have a much more useful application, which will be discussed next.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Placeholders&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The main use case for placeholders I see is marking proper nouns, such as product or company names that never change in a translation.&lt;/p&gt;
&lt;p&gt;For example, imagine a company named&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;as below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/1780.contoso_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/344x186/__key/communityserver-wikis-components-files/00-00-00-03-37/1780.contoso_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can mark these as placeholders with the following rule:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/0310.conversion_2D00_file_2D00_contoso_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-03-37/0310.conversion_2D00_file_2D00_contoso_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: You can create placeholders that do not use attributes, for example in the above, I could of made the rule&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;&amp;nbsp;instead. However, when using elements only, you have to make sure it is a valid XML name.&lt;/p&gt;
&lt;p&gt;This will take each instance of&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;and replace it with a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/0841.contoso_2D00_example_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/314x221/__key/communityserver-wikis-components-files/00-00-00-03-37/0841.contoso_2D00_example_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, when you do this, a few issues come up:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;You will notice it replaced&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;in the third example, but left the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;, Ltd&lt;/code&gt;. In other words, you have to be careful what you replace. To fix this problem, you could create a rule that replace&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso, Ltd&lt;/code&gt;&amp;nbsp;&lt;em&gt;before&lt;/em&gt;&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;or use regular expression to match both versions.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Having placeholders is great for translation purposes, but you want to return these to their original forms when generating the translation. This functionality &lt;span style="font-family:arial, helvetica, sans-serif;"&gt;is part of the next section,&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Target and Generate Files&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is the second batch task, which allows you to run modify text in the target and generate the target translations. The settings screen looks like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/4377.cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x449/__key/communityserver-wikis-components-files/00-00-00-03-37/4377.cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Save Folder&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you want to generate the target translations when this batch task is ran, click&amp;nbsp;Generate Target. You can also specify where the files will be saved. The default is the&amp;nbsp;Desktop.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/3364.cleanup_2D00_target_2D00_save_2D00_folder.png"&gt;&lt;img alt=" " src="/resized-image/__size/416x80/__key/communityserver-wikis-components-files/00-00-00-03-37/3364.cleanup_2D00_target_2D00_save_2D00_folder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="backup-folder"&gt;Backup Folder&lt;/h2&gt;
&lt;p&gt;Before generating target translations, you can save the sdlxliff files to a backup folder. Click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Make Backups&lt;/code&gt;&amp;nbsp;to make this happen. You can specify the folder to save them, and if not, by default a folder called&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Backups&lt;/code&gt;&amp;nbsp;is created in the project.&lt;/p&gt;
&lt;p&gt;Also, if you click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Preserve Placeholder Tags&lt;/code&gt;, the backups you make will&amp;nbsp;&lt;em&gt;overwrite&lt;/em&gt;&amp;nbsp;the original sdlxliff files in the project.&lt;/p&gt;
&lt;h3 id="preserve-placeholder-tags"&gt;Preserve Placeholder Tags&lt;/h3&gt;
&lt;p&gt;If you have been following along, under&amp;nbsp;&lt;a href="http://jessegood.github.io/translation/cleanuptool.html#placeholders"&gt;Placeholder&lt;/a&gt;&amp;nbsp;we converted some proper nouns into placeholders. The problem is that when you generate the target translation, if these placeholders appear in the target segment, they will remain as a tag, or even worse be ignored completely when generating the translation. In order to solve this problem, any placeholders created during&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;will be stored in the project file so that they can be returned to text when generating the translation.&lt;/p&gt;
&lt;p&gt;It is an automatic process, but when you run&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;, if a stored placeholder is found in the target segment, it will be converted back to plain text.&lt;/p&gt;
&lt;p&gt;This is all done by convention, so if the placeholder was&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;, it will be replaced with simply&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;. When using attributes, the placeholder will be replaced with the contents of the attribute, so&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Locked Name=&amp;quot;Contoso&amp;quot; /&amp;gt;&lt;/code&gt;&amp;nbsp;will be replaced with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Before&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/4617.placeholder_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/388x258/__key/communityserver-wikis-components-files/00-00-00-03-37/4617.placeholder_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/8154.contoso_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/418x218/__key/communityserver-wikis-components-files/00-00-00-03-37/8154.contoso_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="automating-the-process"&gt;Automating the Process&lt;/h3&gt;
&lt;p&gt;They key to any successful translation workflow is&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Automation&lt;/code&gt;, the more we can automate, the more we can focus on the important stuff. Now for this Batch Task Plug-in, you can create a custom sequence so that this is ran automatically during project creation. However, there is an important point that you need to be aware of when doing this:&lt;/p&gt;
&lt;p&gt;Segments are not generated until the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Pre-Translate Files&lt;/code&gt;&amp;nbsp;task is ran, so you need to make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;appears after that.&lt;/p&gt;
&lt;p&gt;This is somewhat limiting though, as&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;may affect matching. I will look into other options when I get a chance.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/3312.custom_2D00_task_2D00_sequence.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-03-37/3312.custom_2D00_task_2D00_sequence.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="reports"&gt;Reports&lt;/h3&gt;
&lt;p&gt;Also, note that the tool generates reports and log files of what it does!&lt;/p&gt;
&lt;p&gt;The report itself (shown below) does not give very much information, only a count of each item and a path to the log file. The log file itself though will contain a lot more detailed information about what happened, so if you need to find out why something changed, please look at the log file. (I considered adding all the info about what happened to the report here, but I found the size of the report gets too large quickly.)&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/6661.report_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x119/__key/communityserver-wikis-components-files/00-00-00-03-37/6661.report_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: I wanted to create links so you can just click on it to open the log file, but I haven&amp;rsquo;t figured it out. I asked a question on&amp;nbsp;&lt;a href="/products-solutions/solutions/customer_experience_cloud/language/language-developers/f/57/t/7246"&gt;sdl community&lt;/a&gt;&amp;nbsp;about it.&lt;/p&gt;
&lt;h1 id="updating-formatting-attributes-experimental-support"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Updating Formatting Attributes (Experimental Support)&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;There is current partial (read as &amp;ldquo;very limited&amp;rdquo;) support for updating formatting attributes.&lt;/p&gt;
&lt;p&gt;For example, with the following text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/6201.highlight_2D00_change_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/452x53/__key/communityserver-wikis-components-files/00-00-00-03-37/6201.highlight_2D00_change_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you create the following rule (note how I changed&amp;nbsp;&lt;code class="highlighter-rouge"&gt;yellow&lt;/code&gt;&amp;nbsp;to&amp;nbsp;&lt;code class="highlighter-rouge"&gt;blue&lt;/code&gt;):&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/0550.tagpair_2D00_attribute_2D00_update_2D00_settings.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-03-37/0550.tagpair_2D00_attribute_2D00_update_2D00_settings.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can update the color of the highlight:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/0181.highlight_2D00_change_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/444x58/__key/communityserver-wikis-components-files/00-00-00-03-37/0181.highlight_2D00_change_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;However, there are a lot of issues with this feature that need to be worked on, so I advise&amp;nbsp;&lt;em&gt;against&lt;/em&gt;&amp;nbsp;using it except for experimentation. The biggest problem stems from the fact that you need to understand the underlying file type to update the formatting in the generated target file.&lt;/p&gt;
&lt;p&gt;For anyone interested, all source code is&amp;nbsp;&lt;a href="https://github.com/sdl/Sdl-Community/tree/master/CleanUpTasks"&gt;published here.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks/revision/27</link><pubDate>Tue, 13 Jul 2021 11:20:58 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Oana Nagy</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Revision 27 posted to Wiki by Oana Nagy on 7/13/2021 11:20:58 AM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;span style="font-size:200%;"&gt;Important Note:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please note that there is a possible scenario when using this application where you may find you are seeing results and information in the user interface (UI) that don&amp;#39;t seem to match the project you are working on.&amp;nbsp; It is not possible to change this behavior using the APIs that are currently available in Studio without completely rewriting the application to work in another way.&amp;nbsp; So for now it&amp;#39;s important that you note the following.&lt;/p&gt;
&lt;p&gt;If you are working in the &amp;quot;Files View&amp;quot; and you have managed to activate a project in the &amp;quot;Projects View&amp;quot; which is different to the project belonging to the files you are working on, the &lt;strong&gt;Cleanup Tasks&lt;/strong&gt; batch task will not work as expected.&amp;nbsp; This is because the batch task will be applied to the files you are working on, but the information used to perform the task within the UI will be drawn from the active project.&amp;nbsp; For example, this is what I&amp;#39;m expecting to see for the project I am working on:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-17/pastedimage1578759715179v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;But as I have managed to activate a different project altogether in the &amp;quot;Projects View&amp;quot; these are the settings that are being used:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-17/pastedimage1578759946257v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;color:#000000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;It is more likely that this could occur when you open a single file for translation.&amp;nbsp; When&amp;nbsp;you select &amp;quot;Translate Single Document&amp;quot;&amp;nbsp;your document will be opened in the editor but the active and highlighted project in the &amp;quot;Projects View&amp;quot;&amp;nbsp;may still remain highlighted and influence the batch task&amp;nbsp;as described above.&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;font-size:150%;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;So before starting the CleanUp Tasks while in the &amp;quot;Files View&amp;quot; or the &amp;quot;Editor View&amp;quot; make sure&amp;nbsp;that the CURRENT project&amp;nbsp;is also active, HIGHLIGHTED.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;The content below was mostly provided by Jesse Good in his original article on this plugin.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Cleanup Source&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, I do not permit removing other types of tags other than the above. Let me know though if you have a use case for removing other types of tags.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Modifying text&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now to the main part of the plug-in. When you first start out, you will have an empty screen like below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, click on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;New&lt;/code&gt;&amp;nbsp;button to create a new &amp;ldquo;Conversion File&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The following window should pop up and it will appear blank at first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;+&amp;rdquo; mark in the top right corner as shown and a new row will be added to the grid like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, I would like to demonstrate a few use cases to show how to use the tool.&lt;/p&gt;
&lt;h4 id="use-case-converting-wide-characters-to-their-narrow-equivalent"&gt;Use Case: Converting wide characters to their narrow equivalent&lt;/h4&gt;
&lt;p&gt;In Japanese text, wide and narrow forms of characters are used:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wide&lt;/th&gt;
&lt;th&gt;Narrow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ＡＢＣＤ&lt;/td&gt;
&lt;td&gt;ABCD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;１２３４&lt;/td&gt;
&lt;td&gt;1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;カタカナ&lt;/td&gt;
&lt;td&gt;ｶﾀｶﾅ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One issue is that, depending on the client, they may use different forms in their documents. You may even find a mix of these forms in the same document. These mixed forms can also cause problems with your matching results, and your translation memories will be cluttered with them.&lt;/p&gt;
&lt;p&gt;One solution is to unify these forms before translation:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/823x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above screenshot I have created 3 rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wide to narrow: Alphabetic
&lt;ul&gt;
&lt;li&gt;Ensure all alphabetic characters are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wide to narrow: Numbers
&lt;ul&gt;
&lt;li&gt;Ensure all numbers are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Narrow to wide: Katakana
&lt;ul&gt;
&lt;li&gt;Ensure all Katakana characters are wide&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To create a rule, you enter your information in the input area shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Title&lt;/em&gt;: This field can be left blank, it just gives a description of the search item, and allows you to find an item easier in the grid view.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search&lt;/em&gt;: The text you want to search for. In the example I use a regular expression to search for a single wide alphabetic character, it probably would be more efficient to use&amp;nbsp;&lt;code class="highlighter-rouge"&gt;[Ａ-Ｚ]+&lt;/code&gt;&amp;nbsp;to search for groups of characters though.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search Settings&lt;/em&gt;: The search settings explained from left to right are:
&lt;ul&gt;
&lt;li&gt;Case Sensitive: Case sensitive searching&lt;/li&gt;
&lt;li&gt;Regex: Use regular expression matching&lt;/li&gt;
&lt;li&gt;Whole Word: Match whole words&lt;/li&gt;
&lt;li&gt;Tag Pair&lt;/li&gt;
&lt;li&gt;Embedded Tags&lt;/li&gt;
&lt;li&gt;StrConv&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Embeded Tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A common issue with translations, is handling embedded tags.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png"&gt;&lt;img alt=" " src="/resized-image/__size/772x61/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The cleanup tasks tool provides a way to convert these into &amp;ldquo;real&amp;rdquo; tags.&lt;/p&gt;
&lt;p&gt;You could use the following setting:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above setting will detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag in the example.&lt;/p&gt;
&lt;p&gt;When you run the task on the example, it will be converted as shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/769x64/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Note that in my example, I did not show a setting converting the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;span&amp;gt;&lt;/code&gt;&amp;nbsp;tag. This is important, as even though I only created a rule to detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag, the plug-in will convert&amp;nbsp;&lt;em&gt;all&lt;/em&gt;&amp;nbsp;tags it finds within the segment.&lt;/p&gt;
&lt;p&gt;Now, when you generate the target translations, any converted tags will be restored to their former form:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png"&gt;&lt;img alt=" " src="/resized-image/__size/887x76/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;StrConv&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;happens to be a handy&amp;nbsp;&lt;a title="method" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.strings.strconv?redirectedfrom=MSDN&amp;amp;view=netframework-4.7.2#Microsoft_VisualBasic_Strings_StrConv_System_String_Microsoft_VisualBasic_VbStrConv_System_Int32_"&gt;method&amp;nbsp;&lt;/a&gt;from Visual Basic. You can find it in a lot of Microsoft Products, such as&amp;nbsp;&lt;a href="https://msdn.microsoft.com/en-us/library/office/gg264628.aspx"&gt;Office VBA&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The handy part is shown in the following screenshot (courtesy MSDN).&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png"&gt;&lt;img alt=" " src="/resized-image/__size/875x512/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;All the options above are available under their same names in the tool: By selecting&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Narrow&lt;/code&gt;&amp;nbsp;in the tool, I can convert any wide character to its narrow equivalent.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png"&gt;&lt;img alt=" " src="/resized-image/__size/225x275/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you turn on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;option, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Replace&lt;/code&gt;&amp;nbsp;window becomes greyed out.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Storing conversion files for reuse&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;One problem I have found with current solutions, is there is little ability for reuse. For example,&amp;nbsp;&lt;a href="http://appstore.sdl.com/app/sdlxliff-toolkit/296/"&gt;SDLXLIFF Toolkit&lt;/a&gt;&amp;nbsp;is a great tool, but you have to retype each item you need to search for. With this tool, click&amp;nbsp;Save As&amp;nbsp;in the bottom right corner to save your settings file for later use:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png"&gt;&lt;img alt=" " src="/resized-image/__size/338x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you have saved your file, it will appear in the following list.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Order matters! Each file will be used for processing starting from top to bottom.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would recommend creating separate conversion files based on project, or divide them into categories.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Tag Pair&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I actually don&amp;rsquo;t know how useful this feature will be, but you can detect tag pairs in the source text and modify them.&lt;/p&gt;
&lt;p&gt;For example, in the following screenshot, I look for a&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf highlight=&amp;quot;yellow&amp;quot;&amp;gt;&lt;/code&gt;&amp;nbsp;tag and replace the contents with some random text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another example is taking a tag pair and replacing it with a placeholder instead:&lt;/p&gt;
&lt;p&gt;Say you had the following made up&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;inline&amp;gt;&lt;/code&gt;&amp;nbsp;tag pair in your XML file:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/305x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With the following rule (make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;placeholder&lt;/code&gt;&amp;nbsp;is turned ON!):&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg"&gt;&lt;img alt=" " src="/resized-image/__size/328x293/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can turn it into a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/342x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, placeholders have a much more useful application, which will be discussed next.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Placeholders&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The main use case for placeholders I see is marking proper nouns, such as product or company names that never change in a translation.&lt;/p&gt;
&lt;p&gt;For example, imagine a company named&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;as below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/344x186/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can mark these as placeholders with the following rule:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: You can create placeholders that do not use attributes, for example in the above, I could of made the rule&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;&amp;nbsp;instead. However, when using elements only, you have to make sure it is a valid XML name.&lt;/p&gt;
&lt;p&gt;This will take each instance of&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;and replace it with a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/314x221/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, when you do this, a few issues come up:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;You will notice it replaced&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;in the third example, but left the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;, Ltd&lt;/code&gt;. In other words, you have to be careful what you replace. To fix this problem, you could create a rule that replace&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso, Ltd&lt;/code&gt;&amp;nbsp;&lt;em&gt;before&lt;/em&gt;&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;or use regular expression to match both versions.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Having placeholders is great for translation purposes, but you want to return these to their original forms when generating the translation. This functionality &lt;span style="font-family:arial, helvetica, sans-serif;"&gt;is part of the next section,&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Target and Generate Files&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is the second batch task, which allows you to run modify text in the target and generate the target translations. The settings screen looks like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x449/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Save Folder&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you want to generate the target translations when this batch task is ran, click&amp;nbsp;Generate Target. You can also specify where the files will be saved. The default is the&amp;nbsp;Desktop.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png"&gt;&lt;img alt=" " src="/resized-image/__size/416x80/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="backup-folder"&gt;Backup Folder&lt;/h2&gt;
&lt;p&gt;Before generating target translations, you can save the sdlxliff files to a backup folder. Click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Make Backups&lt;/code&gt;&amp;nbsp;to make this happen. You can specify the folder to save them, and if not, by default a folder called&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Backups&lt;/code&gt;&amp;nbsp;is created in the project.&lt;/p&gt;
&lt;p&gt;Also, if you click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Preserve Placeholder Tags&lt;/code&gt;, the backups you make will&amp;nbsp;&lt;em&gt;overwrite&lt;/em&gt;&amp;nbsp;the original sdlxliff files in the project.&lt;/p&gt;
&lt;h3 id="preserve-placeholder-tags"&gt;Preserve Placeholder Tags&lt;/h3&gt;
&lt;p&gt;If you have been following along, under&amp;nbsp;&lt;a href="http://jessegood.github.io/translation/cleanuptool.html#placeholders"&gt;Placeholder&lt;/a&gt;&amp;nbsp;we converted some proper nouns into placeholders. The problem is that when you generate the target translation, if these placeholders appear in the target segment, they will remain as a tag, or even worse be ignored completely when generating the translation. In order to solve this problem, any placeholders created during&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;will be stored in the project file so that they can be returned to text when generating the translation.&lt;/p&gt;
&lt;p&gt;It is an automatic process, but when you run&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;, if a stored placeholder is found in the target segment, it will be converted back to plain text.&lt;/p&gt;
&lt;p&gt;This is all done by convention, so if the placeholder was&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;, it will be replaced with simply&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;. When using attributes, the placeholder will be replaced with the contents of the attribute, so&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Locked Name=&amp;quot;Contoso&amp;quot; /&amp;gt;&lt;/code&gt;&amp;nbsp;will be replaced with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Before&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/388x258/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/418x218/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="automating-the-process"&gt;Automating the Process&lt;/h3&gt;
&lt;p&gt;They key to any successful translation workflow is&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Automation&lt;/code&gt;, the more we can automate, the more we can focus on the important stuff. Now for this Batch Task Plug-in, you can create a custom sequence so that this is ran automatically during project creation. However, there is an important point that you need to be aware of when doing this:&lt;/p&gt;
&lt;p&gt;Segments are not generated until the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Pre-Translate Files&lt;/code&gt;&amp;nbsp;task is ran, so you need to make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;appears after that.&lt;/p&gt;
&lt;p&gt;This is somewhat limiting though, as&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;may affect matching. I will look into other options when I get a chance.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="reports"&gt;Reports&lt;/h3&gt;
&lt;p&gt;Also, note that the tool generates reports and log files of what it does!&lt;/p&gt;
&lt;p&gt;The report itself (shown below) does not give very much information, only a count of each item and a path to the log file. The log file itself though will contain a lot more detailed information about what happened, so if you need to find out why something changed, please look at the log file. (I considered adding all the info about what happened to the report here, but I found the size of the report gets too large quickly.)&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x119/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: I wanted to create links so you can just click on it to open the log file, but I haven&amp;rsquo;t figured it out. I asked a question on&amp;nbsp;&lt;a href="/products-solutions/solutions/customer_experience_cloud/language/language-developers/f/57/t/7246"&gt;sdl community&lt;/a&gt;&amp;nbsp;about it.&lt;/p&gt;
&lt;h1 id="updating-formatting-attributes-experimental-support"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Updating Formatting Attributes (Experimental Support)&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;There is current partial (read as &amp;ldquo;very limited&amp;rdquo;) support for updating formatting attributes.&lt;/p&gt;
&lt;p&gt;For example, with the following text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/452x53/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you create the following rule (note how I changed&amp;nbsp;&lt;code class="highlighter-rouge"&gt;yellow&lt;/code&gt;&amp;nbsp;to&amp;nbsp;&lt;code class="highlighter-rouge"&gt;blue&lt;/code&gt;):&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tagpair_2D00_attribute_2D00_update_2D00_settings.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/tagpair_2D00_attribute_2D00_update_2D00_settings.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can update the color of the highlight:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/444x58/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;However, there are a lot of issues with this feature that need to be worked on, so I advise&amp;nbsp;&lt;em&gt;against&lt;/em&gt;&amp;nbsp;using it except for experimentation. The biggest problem stems from the fact that you need to understand the underlying file type to update the formatting in the generated target file.&lt;/p&gt;
&lt;p&gt;For anyone interested, all source code is&amp;nbsp;&lt;a href="https://github.com/sdl/Sdl-Community/tree/master/CleanUpTasks"&gt;published here.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks/revision/28</link><pubDate>Tue, 13 Jul 2021 11:20:58 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Oana Nagy</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Revision 28 posted to Wiki by Oana Nagy on 7/13/2021 11:20:58 AM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;span style="font-size:200%;"&gt;Important Note:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please note that there is a possible scenario when using this application where you may find you are seeing results and information in the user interface (UI) that don&amp;#39;t seem to match the project you are working on.&amp;nbsp; It is not possible to change this behavior using the APIs that are currently available in Studio without completely rewriting the application to work in another way.&amp;nbsp; So for now it&amp;#39;s important that you note the following.&lt;/p&gt;
&lt;p&gt;If you are working in the &amp;quot;Files View&amp;quot; and you have managed to activate a project in the &amp;quot;Projects View&amp;quot; which is different to the project belonging to the files you are working on, the &lt;strong&gt;Cleanup Tasks&lt;/strong&gt; batch task will not work as expected.&amp;nbsp; This is because the batch task will be applied to the files you are working on, but the information used to perform the task within the UI will be drawn from the active project.&amp;nbsp; For example, this is what I&amp;#39;m expecting to see for the project I am working on:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-03-36/pastedimage1578759715179v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;But as I have managed to activate a different project altogether in the &amp;quot;Projects View&amp;quot; these are the settings that are being used:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-03-36/pastedimage1578759946257v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;color:#000000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;It is more likely that this could occur when you open a single file for translation.&amp;nbsp; When&amp;nbsp;you select &amp;quot;Translate Single Document&amp;quot;&amp;nbsp;your document will be opened in the editor but the active and highlighted project in the &amp;quot;Projects View&amp;quot;&amp;nbsp;may still remain highlighted and influence the batch task&amp;nbsp;as described above.&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;font-size:150%;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;So before starting the CleanUp Tasks while in the &amp;quot;Files View&amp;quot; or the &amp;quot;Editor View&amp;quot; make sure&amp;nbsp;that the CURRENT project&amp;nbsp;is also active, HIGHLIGHTED.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;The content below was mostly provided by Jesse Good in his original article on this plugin.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-03-36/cleanup_2D00_batchtask_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Cleanup Source&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-03-36/cleanup_2D00_settings_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/segment_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-03-36/segment_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/content_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-03-36/content_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/structure_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-03-36/structure_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/tag_2D00_remover.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-03-36/tag_2D00_remover.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/cf_2D00_tag_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-03-36/cf_2D00_tag_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/cf_2D00_tag_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-03-36/cf_2D00_tag_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-03-36/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-03-36/tag_2D00_remover_2D00_select_2D00_italic.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/tag_2D00_remover_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-03-36/tag_2D00_remover_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, I do not permit removing other types of tags other than the above. Let me know though if you have a use case for removing other types of tags.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Modifying text&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now to the main part of the plug-in. When you first start out, you will have an empty screen like below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_blank.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_blank.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, click on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;New&lt;/code&gt;&amp;nbsp;button to create a new &amp;ldquo;Conversion File&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The following window should pop up and it will appear blank at first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_file_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_file_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;+&amp;rdquo; mark in the top right corner as shown and a new row will be added to the grid like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, I would like to demonstrate a few use cases to show how to use the tool.&lt;/p&gt;
&lt;h4 id="use-case-converting-wide-characters-to-their-narrow-equivalent"&gt;Use Case: Converting wide characters to their narrow equivalent&lt;/h4&gt;
&lt;p&gt;In Japanese text, wide and narrow forms of characters are used:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wide&lt;/th&gt;
&lt;th&gt;Narrow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ＡＢＣＤ&lt;/td&gt;
&lt;td&gt;ABCD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;１２３４&lt;/td&gt;
&lt;td&gt;1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;カタカナ&lt;/td&gt;
&lt;td&gt;ｶﾀｶﾅ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One issue is that, depending on the client, they may use different forms in their documents. You may even find a mix of these forms in the same document. These mixed forms can also cause problems with your matching results, and your translation memories will be cluttered with them.&lt;/p&gt;
&lt;p&gt;One solution is to unify these forms before translation:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/823x323/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above screenshot I have created 3 rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wide to narrow: Alphabetic
&lt;ul&gt;
&lt;li&gt;Ensure all alphabetic characters are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wide to narrow: Numbers
&lt;ul&gt;
&lt;li&gt;Ensure all numbers are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Narrow to wide: Katakana
&lt;ul&gt;
&lt;li&gt;Ensure all Katakana characters are wide&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To create a rule, you enter your information in the input area shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Title&lt;/em&gt;: This field can be left blank, it just gives a description of the search item, and allows you to find an item easier in the grid view.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search&lt;/em&gt;: The text you want to search for. In the example I use a regular expression to search for a single wide alphabetic character, it probably would be more efficient to use&amp;nbsp;&lt;code class="highlighter-rouge"&gt;[Ａ-Ｚ]+&lt;/code&gt;&amp;nbsp;to search for groups of characters though.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search Settings&lt;/em&gt;: The search settings explained from left to right are:
&lt;ul&gt;
&lt;li&gt;Case Sensitive: Case sensitive searching&lt;/li&gt;
&lt;li&gt;Regex: Use regular expression matching&lt;/li&gt;
&lt;li&gt;Whole Word: Match whole words&lt;/li&gt;
&lt;li&gt;Tag Pair&lt;/li&gt;
&lt;li&gt;Embedded Tags&lt;/li&gt;
&lt;li&gt;StrConv&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Embeded Tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A common issue with translations, is handling embedded tags.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/embedded_2D00_tags.png"&gt;&lt;img alt=" " src="/resized-image/__size/772x61/__key/communityserver-wikis-components-files/00-00-00-03-36/embedded_2D00_tags.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The cleanup tasks tool provides a way to convert these into &amp;ldquo;real&amp;rdquo; tags.&lt;/p&gt;
&lt;p&gt;You could use the following setting:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/embedded_2D00_tags_2D00_setting.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-03-36/embedded_2D00_tags_2D00_setting.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above setting will detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag in the example.&lt;/p&gt;
&lt;p&gt;When you run the task on the example, it will be converted as shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/embedded_2D00_tags_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/769x64/__key/communityserver-wikis-components-files/00-00-00-03-36/embedded_2D00_tags_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Note that in my example, I did not show a setting converting the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;span&amp;gt;&lt;/code&gt;&amp;nbsp;tag. This is important, as even though I only created a rule to detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag, the plug-in will convert&amp;nbsp;&lt;em&gt;all&lt;/em&gt;&amp;nbsp;tags it finds within the segment.&lt;/p&gt;
&lt;p&gt;Now, when you generate the target translations, any converted tags will be restored to their former form:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/embedded_2D00_tags_2D00_generate_2D00_target.png"&gt;&lt;img alt=" " src="/resized-image/__size/887x76/__key/communityserver-wikis-components-files/00-00-00-03-36/embedded_2D00_tags_2D00_generate_2D00_target.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;StrConv&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;happens to be a handy&amp;nbsp;&lt;a title="method" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.strings.strconv?redirectedfrom=MSDN&amp;amp;view=netframework-4.7.2#Microsoft_VisualBasic_Strings_StrConv_System_String_Microsoft_VisualBasic_VbStrConv_System_Int32_"&gt;method&amp;nbsp;&lt;/a&gt;from Visual Basic. You can find it in a lot of Microsoft Products, such as&amp;nbsp;&lt;a href="https://msdn.microsoft.com/en-us/library/office/gg264628.aspx"&gt;Office VBA&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The handy part is shown in the following screenshot (courtesy MSDN).&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/strconv_2D00_chart_2D00_microsoft.png"&gt;&lt;img alt=" " src="/resized-image/__size/875x512/__key/communityserver-wikis-components-files/00-00-00-03-36/strconv_2D00_chart_2D00_microsoft.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;All the options above are available under their same names in the tool: By selecting&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Narrow&lt;/code&gt;&amp;nbsp;in the tool, I can convert any wide character to its narrow equivalent.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/strconv_2D00_options.png"&gt;&lt;img alt=" " src="/resized-image/__size/225x275/__key/communityserver-wikis-components-files/00-00-00-03-36/strconv_2D00_options.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you turn on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;option, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Replace&lt;/code&gt;&amp;nbsp;window becomes greyed out.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Storing conversion files for reuse&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;One problem I have found with current solutions, is there is little ability for reuse. For example,&amp;nbsp;&lt;a href="http://appstore.sdl.com/app/sdlxliff-toolkit/296/"&gt;SDLXLIFF Toolkit&lt;/a&gt;&amp;nbsp;is a great tool, but you have to retype each item you need to search for. With this tool, click&amp;nbsp;Save As&amp;nbsp;in the bottom right corner to save your settings file for later use:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_file_2D00_saveas.png"&gt;&lt;img alt=" " src="/resized-image/__size/338x291/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_file_2D00_saveas.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you have saved your file, it will appear in the following list.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Order matters! Each file will be used for processing starting from top to bottom.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_file_2D00_list.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_file_2D00_list.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would recommend creating separate conversion files based on project, or divide them into categories.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Tag Pair&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I actually don&amp;rsquo;t know how useful this feature will be, but you can detect tag pairs in the source text and modify them.&lt;/p&gt;
&lt;p&gt;For example, in the following screenshot, I look for a&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf highlight=&amp;quot;yellow&amp;quot;&amp;gt;&lt;/code&gt;&amp;nbsp;tag and replace the contents with some random text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another example is taking a tag pair and replacing it with a placeholder instead:&lt;/p&gt;
&lt;p&gt;Say you had the following made up&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;inline&amp;gt;&lt;/code&gt;&amp;nbsp;tag pair in your XML file:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_file_2D00_placeholder_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/305x43/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_file_2D00_placeholder_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With the following rule (make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;placeholder&lt;/code&gt;&amp;nbsp;is turned ON!):&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/rule.jpg"&gt;&lt;img alt=" " src="/resized-image/__size/328x293/__key/communityserver-wikis-components-files/00-00-00-03-36/rule.jpg" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can turn it into a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_file_2D00_placeholder_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/342x43/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_file_2D00_placeholder_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, placeholders have a much more useful application, which will be discussed next.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Placeholders&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The main use case for placeholders I see is marking proper nouns, such as product or company names that never change in a translation.&lt;/p&gt;
&lt;p&gt;For example, imagine a company named&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;as below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/contoso_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/344x186/__key/communityserver-wikis-components-files/00-00-00-03-36/contoso_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can mark these as placeholders with the following rule:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_file_2D00_contoso_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-03-36/conversion_2D00_file_2D00_contoso_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: You can create placeholders that do not use attributes, for example in the above, I could of made the rule&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;&amp;nbsp;instead. However, when using elements only, you have to make sure it is a valid XML name.&lt;/p&gt;
&lt;p&gt;This will take each instance of&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;and replace it with a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/contoso_2D00_example_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/314x221/__key/communityserver-wikis-components-files/00-00-00-03-36/contoso_2D00_example_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, when you do this, a few issues come up:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;You will notice it replaced&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;in the third example, but left the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;, Ltd&lt;/code&gt;. In other words, you have to be careful what you replace. To fix this problem, you could create a rule that replace&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso, Ltd&lt;/code&gt;&amp;nbsp;&lt;em&gt;before&lt;/em&gt;&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;or use regular expression to match both versions.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Having placeholders is great for translation purposes, but you want to return these to their original forms when generating the translation. This functionality &lt;span style="font-family:arial, helvetica, sans-serif;"&gt;is part of the next section,&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Target and Generate Files&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is the second batch task, which allows you to run modify text in the target and generate the target translations. The settings screen looks like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x449/__key/communityserver-wikis-components-files/00-00-00-03-36/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Save Folder&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you want to generate the target translations when this batch task is ran, click&amp;nbsp;Generate Target. You can also specify where the files will be saved. The default is the&amp;nbsp;Desktop.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/cleanup_2D00_target_2D00_save_2D00_folder.png"&gt;&lt;img alt=" " src="/resized-image/__size/416x80/__key/communityserver-wikis-components-files/00-00-00-03-36/cleanup_2D00_target_2D00_save_2D00_folder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="backup-folder"&gt;Backup Folder&lt;/h2&gt;
&lt;p&gt;Before generating target translations, you can save the sdlxliff files to a backup folder. Click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Make Backups&lt;/code&gt;&amp;nbsp;to make this happen. You can specify the folder to save them, and if not, by default a folder called&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Backups&lt;/code&gt;&amp;nbsp;is created in the project.&lt;/p&gt;
&lt;p&gt;Also, if you click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Preserve Placeholder Tags&lt;/code&gt;, the backups you make will&amp;nbsp;&lt;em&gt;overwrite&lt;/em&gt;&amp;nbsp;the original sdlxliff files in the project.&lt;/p&gt;
&lt;h3 id="preserve-placeholder-tags"&gt;Preserve Placeholder Tags&lt;/h3&gt;
&lt;p&gt;If you have been following along, under&amp;nbsp;&lt;a href="http://jessegood.github.io/translation/cleanuptool.html#placeholders"&gt;Placeholder&lt;/a&gt;&amp;nbsp;we converted some proper nouns into placeholders. The problem is that when you generate the target translation, if these placeholders appear in the target segment, they will remain as a tag, or even worse be ignored completely when generating the translation. In order to solve this problem, any placeholders created during&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;will be stored in the project file so that they can be returned to text when generating the translation.&lt;/p&gt;
&lt;p&gt;It is an automatic process, but when you run&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;, if a stored placeholder is found in the target segment, it will be converted back to plain text.&lt;/p&gt;
&lt;p&gt;This is all done by convention, so if the placeholder was&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;, it will be replaced with simply&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;. When using attributes, the placeholder will be replaced with the contents of the attribute, so&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Locked Name=&amp;quot;Contoso&amp;quot; /&amp;gt;&lt;/code&gt;&amp;nbsp;will be replaced with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Before&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/placeholder_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/388x258/__key/communityserver-wikis-components-files/00-00-00-03-36/placeholder_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/contoso_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/418x218/__key/communityserver-wikis-components-files/00-00-00-03-36/contoso_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="automating-the-process"&gt;Automating the Process&lt;/h3&gt;
&lt;p&gt;They key to any successful translation workflow is&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Automation&lt;/code&gt;, the more we can automate, the more we can focus on the important stuff. Now for this Batch Task Plug-in, you can create a custom sequence so that this is ran automatically during project creation. However, there is an important point that you need to be aware of when doing this:&lt;/p&gt;
&lt;p&gt;Segments are not generated until the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Pre-Translate Files&lt;/code&gt;&amp;nbsp;task is ran, so you need to make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;appears after that.&lt;/p&gt;
&lt;p&gt;This is somewhat limiting though, as&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;may affect matching. I will look into other options when I get a chance.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/custom_2D00_task_2D00_sequence.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-03-36/custom_2D00_task_2D00_sequence.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="reports"&gt;Reports&lt;/h3&gt;
&lt;p&gt;Also, note that the tool generates reports and log files of what it does!&lt;/p&gt;
&lt;p&gt;The report itself (shown below) does not give very much information, only a count of each item and a path to the log file. The log file itself though will contain a lot more detailed information about what happened, so if you need to find out why something changed, please look at the log file. (I considered adding all the info about what happened to the report here, but I found the size of the report gets too large quickly.)&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/report_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x119/__key/communityserver-wikis-components-files/00-00-00-03-36/report_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: I wanted to create links so you can just click on it to open the log file, but I haven&amp;rsquo;t figured it out. I asked a question on&amp;nbsp;&lt;a href="/products-solutions/solutions/customer_experience_cloud/language/language-developers/f/57/t/7246"&gt;sdl community&lt;/a&gt;&amp;nbsp;about it.&lt;/p&gt;
&lt;h1 id="updating-formatting-attributes-experimental-support"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Updating Formatting Attributes (Experimental Support)&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;There is current partial (read as &amp;ldquo;very limited&amp;rdquo;) support for updating formatting attributes.&lt;/p&gt;
&lt;p&gt;For example, with the following text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/highlight_2D00_change_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/452x53/__key/communityserver-wikis-components-files/00-00-00-03-36/highlight_2D00_change_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you create the following rule (note how I changed&amp;nbsp;&lt;code class="highlighter-rouge"&gt;yellow&lt;/code&gt;&amp;nbsp;to&amp;nbsp;&lt;code class="highlighter-rouge"&gt;blue&lt;/code&gt;):&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/tagpair_2D00_attribute_2D00_update_2D00_settings.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-03-36/tagpair_2D00_attribute_2D00_update_2D00_settings.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can update the color of the highlight:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-36/highlight_2D00_change_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/444x58/__key/communityserver-wikis-components-files/00-00-00-03-36/highlight_2D00_change_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;However, there are a lot of issues with this feature that need to be worked on, so I advise&amp;nbsp;&lt;em&gt;against&lt;/em&gt;&amp;nbsp;using it except for experimentation. The biggest problem stems from the fact that you need to understand the underlying file type to update the formatting in the generated target file.&lt;/p&gt;
&lt;p&gt;For anyone interested, all source code is&amp;nbsp;&lt;a href="https://github.com/sdl/Sdl-Community/tree/master/CleanUpTasks"&gt;published here.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks/revision/29</link><pubDate>Tue, 13 Jul 2021 11:20:58 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Oana Nagy</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Revision 29 posted to Wiki by Oana Nagy on 7/13/2021 11:20:58 AM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;span style="font-size:200%;"&gt;Important Note:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please note that there is a possible scenario when using this application where you may find you are seeing results and information in the user interface (UI) that don&amp;#39;t seem to match the project you are working on.&amp;nbsp; It is not possible to change this behavior using the APIs that are currently available in Studio without completely rewriting the application to work in another way.&amp;nbsp; So for now it&amp;#39;s important that you note the following.&lt;/p&gt;
&lt;p&gt;If you are working in the &amp;quot;Files View&amp;quot; and you have managed to activate a project in the &amp;quot;Projects View&amp;quot; which is different to the project belonging to the files you are working on, the &lt;strong&gt;Cleanup Tasks&lt;/strong&gt; batch task will not work as expected.&amp;nbsp; This is because the batch task will be applied to the files you are working on, but the information used to perform the task within the UI will be drawn from the active project.&amp;nbsp; For example, this is what I&amp;#39;m expecting to see for the project I am working on:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-17/0537.pastedimage1578759715179v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;But as I have managed to activate a different project altogether in the &amp;quot;Projects View&amp;quot; these are the settings that are being used:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-17/8524.pastedimage1578759946257v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;color:#000000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;It is more likely that this could occur when you open a single file for translation.&amp;nbsp; When&amp;nbsp;you select &amp;quot;Translate Single Document&amp;quot;&amp;nbsp;your document will be opened in the editor but the active and highlighted project in the &amp;quot;Projects View&amp;quot;&amp;nbsp;may still remain highlighted and influence the batch task&amp;nbsp;as described above.&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;font-size:150%;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;So before starting the CleanUp Tasks while in the &amp;quot;Files View&amp;quot; or the &amp;quot;Editor View&amp;quot; make sure&amp;nbsp;that the CURRENT project&amp;nbsp;is also active, HIGHLIGHTED.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;The content below was mostly provided by Jesse Good in his original article on this plugin.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/8688.cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-02-17/8688.cleanup_2D00_batchtask_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Cleanup Source&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/7220.cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/7220.cleanup_2D00_settings_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/2577.segment_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-02-17/2577.segment_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/5736.content_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-02-17/5736.content_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/4722.structure_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-02-17/4722.structure_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/3718.tag_2D00_remover.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-02-17/3718.tag_2D00_remover.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/7167.cf_2D00_tag_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-02-17/7167.cf_2D00_tag_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/1325.cf_2D00_tag_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-02-17/1325.cf_2D00_tag_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/5684.tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/5684.tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/0842.tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/0842.tag_2D00_remover_2D00_select_2D00_italic.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/3201.tag_2D00_remover_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/3201.tag_2D00_remover_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, I do not permit removing other types of tags other than the above. Let me know though if you have a use case for removing other types of tags.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Modifying text&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now to the main part of the plug-in. When you first start out, you will have an empty screen like below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/6825.conversion_2D00_blank.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/6825.conversion_2D00_blank.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, click on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;New&lt;/code&gt;&amp;nbsp;button to create a new &amp;ldquo;Conversion File&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The following window should pop up and it will appear blank at first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/1273.conversion_2D00_file_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/1273.conversion_2D00_file_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;+&amp;rdquo; mark in the top right corner as shown and a new row will be added to the grid like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/5432.conversion_2D00_file_2D00_view_2D00_row_2D00_added.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/5432.conversion_2D00_file_2D00_view_2D00_row_2D00_added.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, I would like to demonstrate a few use cases to show how to use the tool.&lt;/p&gt;
&lt;h4 id="use-case-converting-wide-characters-to-their-narrow-equivalent"&gt;Use Case: Converting wide characters to their narrow equivalent&lt;/h4&gt;
&lt;p&gt;In Japanese text, wide and narrow forms of characters are used:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wide&lt;/th&gt;
&lt;th&gt;Narrow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ＡＢＣＤ&lt;/td&gt;
&lt;td&gt;ABCD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;１２３４&lt;/td&gt;
&lt;td&gt;1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;カタカナ&lt;/td&gt;
&lt;td&gt;ｶﾀｶﾅ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One issue is that, depending on the client, they may use different forms in their documents. You may even find a mix of these forms in the same document. These mixed forms can also cause problems with your matching results, and your translation memories will be cluttered with them.&lt;/p&gt;
&lt;p&gt;One solution is to unify these forms before translation:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/8780.conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/823x323/__key/communityserver-wikis-components-files/00-00-00-02-17/8780.conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above screenshot I have created 3 rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wide to narrow: Alphabetic
&lt;ul&gt;
&lt;li&gt;Ensure all alphabetic characters are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wide to narrow: Numbers
&lt;ul&gt;
&lt;li&gt;Ensure all numbers are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Narrow to wide: Katakana
&lt;ul&gt;
&lt;li&gt;Ensure all Katakana characters are wide&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To create a rule, you enter your information in the input area shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/3058.conversion_2D00_file_2D00_view_2D00_input_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/3058.conversion_2D00_file_2D00_view_2D00_input_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Title&lt;/em&gt;: This field can be left blank, it just gives a description of the search item, and allows you to find an item easier in the grid view.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search&lt;/em&gt;: The text you want to search for. In the example I use a regular expression to search for a single wide alphabetic character, it probably would be more efficient to use&amp;nbsp;&lt;code class="highlighter-rouge"&gt;[Ａ-Ｚ]+&lt;/code&gt;&amp;nbsp;to search for groups of characters though.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search Settings&lt;/em&gt;: The search settings explained from left to right are:
&lt;ul&gt;
&lt;li&gt;Case Sensitive: Case sensitive searching&lt;/li&gt;
&lt;li&gt;Regex: Use regular expression matching&lt;/li&gt;
&lt;li&gt;Whole Word: Match whole words&lt;/li&gt;
&lt;li&gt;Tag Pair&lt;/li&gt;
&lt;li&gt;Embedded Tags&lt;/li&gt;
&lt;li&gt;StrConv&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Embeded Tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A common issue with translations, is handling embedded tags.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/2045.embedded_2D00_tags.png"&gt;&lt;img alt=" " src="/resized-image/__size/772x61/__key/communityserver-wikis-components-files/00-00-00-02-17/2045.embedded_2D00_tags.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The cleanup tasks tool provides a way to convert these into &amp;ldquo;real&amp;rdquo; tags.&lt;/p&gt;
&lt;p&gt;You could use the following setting:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/1565.embedded_2D00_tags_2D00_setting.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/1565.embedded_2D00_tags_2D00_setting.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above setting will detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag in the example.&lt;/p&gt;
&lt;p&gt;When you run the task on the example, it will be converted as shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/6012.embedded_2D00_tags_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/769x64/__key/communityserver-wikis-components-files/00-00-00-02-17/6012.embedded_2D00_tags_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Note that in my example, I did not show a setting converting the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;span&amp;gt;&lt;/code&gt;&amp;nbsp;tag. This is important, as even though I only created a rule to detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag, the plug-in will convert&amp;nbsp;&lt;em&gt;all&lt;/em&gt;&amp;nbsp;tags it finds within the segment.&lt;/p&gt;
&lt;p&gt;Now, when you generate the target translations, any converted tags will be restored to their former form:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/6712.embedded_2D00_tags_2D00_generate_2D00_target.png"&gt;&lt;img alt=" " src="/resized-image/__size/887x76/__key/communityserver-wikis-components-files/00-00-00-02-17/6712.embedded_2D00_tags_2D00_generate_2D00_target.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;StrConv&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;happens to be a handy&amp;nbsp;&lt;a title="method" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.strings.strconv?redirectedfrom=MSDN&amp;amp;view=netframework-4.7.2#Microsoft_VisualBasic_Strings_StrConv_System_String_Microsoft_VisualBasic_VbStrConv_System_Int32_"&gt;method&amp;nbsp;&lt;/a&gt;from Visual Basic. You can find it in a lot of Microsoft Products, such as&amp;nbsp;&lt;a href="https://msdn.microsoft.com/en-us/library/office/gg264628.aspx"&gt;Office VBA&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The handy part is shown in the following screenshot (courtesy MSDN).&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/6076.strconv_2D00_chart_2D00_microsoft.png"&gt;&lt;img alt=" " src="/resized-image/__size/875x512/__key/communityserver-wikis-components-files/00-00-00-02-17/6076.strconv_2D00_chart_2D00_microsoft.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;All the options above are available under their same names in the tool: By selecting&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Narrow&lt;/code&gt;&amp;nbsp;in the tool, I can convert any wide character to its narrow equivalent.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/0245.strconv_2D00_options.png"&gt;&lt;img alt=" " src="/resized-image/__size/225x275/__key/communityserver-wikis-components-files/00-00-00-02-17/0245.strconv_2D00_options.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you turn on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;option, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Replace&lt;/code&gt;&amp;nbsp;window becomes greyed out.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Storing conversion files for reuse&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;One problem I have found with current solutions, is there is little ability for reuse. For example,&amp;nbsp;&lt;a href="http://appstore.sdl.com/app/sdlxliff-toolkit/296/"&gt;SDLXLIFF Toolkit&lt;/a&gt;&amp;nbsp;is a great tool, but you have to retype each item you need to search for. With this tool, click&amp;nbsp;Save As&amp;nbsp;in the bottom right corner to save your settings file for later use:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/0410.conversion_2D00_file_2D00_saveas.png"&gt;&lt;img alt=" " src="/resized-image/__size/338x291/__key/communityserver-wikis-components-files/00-00-00-02-17/0410.conversion_2D00_file_2D00_saveas.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you have saved your file, it will appear in the following list.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Order matters! Each file will be used for processing starting from top to bottom.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/8306.conversion_2D00_file_2D00_list.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/8306.conversion_2D00_file_2D00_list.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would recommend creating separate conversion files based on project, or divide them into categories.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Tag Pair&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I actually don&amp;rsquo;t know how useful this feature will be, but you can detect tag pairs in the source text and modify them.&lt;/p&gt;
&lt;p&gt;For example, in the following screenshot, I look for a&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf highlight=&amp;quot;yellow&amp;quot;&amp;gt;&lt;/code&gt;&amp;nbsp;tag and replace the contents with some random text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/7026.conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/7026.conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another example is taking a tag pair and replacing it with a placeholder instead:&lt;/p&gt;
&lt;p&gt;Say you had the following made up&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;inline&amp;gt;&lt;/code&gt;&amp;nbsp;tag pair in your XML file:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/6013.conversion_2D00_file_2D00_placeholder_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/305x43/__key/communityserver-wikis-components-files/00-00-00-02-17/6013.conversion_2D00_file_2D00_placeholder_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With the following rule (make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;placeholder&lt;/code&gt;&amp;nbsp;is turned ON!):&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/2450.rule.jpg"&gt;&lt;img alt=" " src="/resized-image/__size/328x293/__key/communityserver-wikis-components-files/00-00-00-02-17/2450.rule.jpg" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can turn it into a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/2158.conversion_2D00_file_2D00_placeholder_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/342x43/__key/communityserver-wikis-components-files/00-00-00-02-17/2158.conversion_2D00_file_2D00_placeholder_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, placeholders have a much more useful application, which will be discussed next.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Placeholders&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The main use case for placeholders I see is marking proper nouns, such as product or company names that never change in a translation.&lt;/p&gt;
&lt;p&gt;For example, imagine a company named&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;as below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/1780.contoso_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/344x186/__key/communityserver-wikis-components-files/00-00-00-02-17/1780.contoso_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can mark these as placeholders with the following rule:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/0310.conversion_2D00_file_2D00_contoso_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/0310.conversion_2D00_file_2D00_contoso_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: You can create placeholders that do not use attributes, for example in the above, I could of made the rule&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;&amp;nbsp;instead. However, when using elements only, you have to make sure it is a valid XML name.&lt;/p&gt;
&lt;p&gt;This will take each instance of&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;and replace it with a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/0841.contoso_2D00_example_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/314x221/__key/communityserver-wikis-components-files/00-00-00-02-17/0841.contoso_2D00_example_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, when you do this, a few issues come up:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;You will notice it replaced&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;in the third example, but left the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;, Ltd&lt;/code&gt;. In other words, you have to be careful what you replace. To fix this problem, you could create a rule that replace&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso, Ltd&lt;/code&gt;&amp;nbsp;&lt;em&gt;before&lt;/em&gt;&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;or use regular expression to match both versions.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Having placeholders is great for translation purposes, but you want to return these to their original forms when generating the translation. This functionality &lt;span style="font-family:arial, helvetica, sans-serif;"&gt;is part of the next section,&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Target and Generate Files&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is the second batch task, which allows you to run modify text in the target and generate the target translations. The settings screen looks like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/4377.cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x449/__key/communityserver-wikis-components-files/00-00-00-02-17/4377.cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Save Folder&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you want to generate the target translations when this batch task is ran, click&amp;nbsp;Generate Target. You can also specify where the files will be saved. The default is the&amp;nbsp;Desktop.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/3364.cleanup_2D00_target_2D00_save_2D00_folder.png"&gt;&lt;img alt=" " src="/resized-image/__size/416x80/__key/communityserver-wikis-components-files/00-00-00-02-17/3364.cleanup_2D00_target_2D00_save_2D00_folder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="backup-folder"&gt;Backup Folder&lt;/h2&gt;
&lt;p&gt;Before generating target translations, you can save the sdlxliff files to a backup folder. Click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Make Backups&lt;/code&gt;&amp;nbsp;to make this happen. You can specify the folder to save them, and if not, by default a folder called&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Backups&lt;/code&gt;&amp;nbsp;is created in the project.&lt;/p&gt;
&lt;p&gt;Also, if you click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Preserve Placeholder Tags&lt;/code&gt;, the backups you make will&amp;nbsp;&lt;em&gt;overwrite&lt;/em&gt;&amp;nbsp;the original sdlxliff files in the project.&lt;/p&gt;
&lt;h3 id="preserve-placeholder-tags"&gt;Preserve Placeholder Tags&lt;/h3&gt;
&lt;p&gt;If you have been following along, under&amp;nbsp;&lt;a href="http://jessegood.github.io/translation/cleanuptool.html#placeholders"&gt;Placeholder&lt;/a&gt;&amp;nbsp;we converted some proper nouns into placeholders. The problem is that when you generate the target translation, if these placeholders appear in the target segment, they will remain as a tag, or even worse be ignored completely when generating the translation. In order to solve this problem, any placeholders created during&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;will be stored in the project file so that they can be returned to text when generating the translation.&lt;/p&gt;
&lt;p&gt;It is an automatic process, but when you run&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;, if a stored placeholder is found in the target segment, it will be converted back to plain text.&lt;/p&gt;
&lt;p&gt;This is all done by convention, so if the placeholder was&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;, it will be replaced with simply&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;. When using attributes, the placeholder will be replaced with the contents of the attribute, so&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Locked Name=&amp;quot;Contoso&amp;quot; /&amp;gt;&lt;/code&gt;&amp;nbsp;will be replaced with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Before&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/4617.placeholder_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/388x258/__key/communityserver-wikis-components-files/00-00-00-02-17/4617.placeholder_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/8154.contoso_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/418x218/__key/communityserver-wikis-components-files/00-00-00-02-17/8154.contoso_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="automating-the-process"&gt;Automating the Process&lt;/h3&gt;
&lt;p&gt;They key to any successful translation workflow is&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Automation&lt;/code&gt;, the more we can automate, the more we can focus on the important stuff. Now for this Batch Task Plug-in, you can create a custom sequence so that this is ran automatically during project creation. However, there is an important point that you need to be aware of when doing this:&lt;/p&gt;
&lt;p&gt;Segments are not generated until the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Pre-Translate Files&lt;/code&gt;&amp;nbsp;task is ran, so you need to make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;appears after that.&lt;/p&gt;
&lt;p&gt;This is somewhat limiting though, as&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;may affect matching. I will look into other options when I get a chance.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/3312.custom_2D00_task_2D00_sequence.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/3312.custom_2D00_task_2D00_sequence.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="reports"&gt;Reports&lt;/h3&gt;
&lt;p&gt;Also, note that the tool generates reports and log files of what it does!&lt;/p&gt;
&lt;p&gt;The report itself (shown below) does not give very much information, only a count of each item and a path to the log file. The log file itself though will contain a lot more detailed information about what happened, so if you need to find out why something changed, please look at the log file. (I considered adding all the info about what happened to the report here, but I found the size of the report gets too large quickly.)&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/6661.report_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x119/__key/communityserver-wikis-components-files/00-00-00-02-17/6661.report_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: I wanted to create links so you can just click on it to open the log file, but I haven&amp;rsquo;t figured it out. I asked a question on&amp;nbsp;&lt;a href="/products-solutions/solutions/customer_experience_cloud/language/language-developers/f/57/t/7246"&gt;sdl community&lt;/a&gt;&amp;nbsp;about it.&lt;/p&gt;
&lt;h1 id="updating-formatting-attributes-experimental-support"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Updating Formatting Attributes (Experimental Support)&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;There is current partial (read as &amp;ldquo;very limited&amp;rdquo;) support for updating formatting attributes.&lt;/p&gt;
&lt;p&gt;For example, with the following text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/6201.highlight_2D00_change_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/452x53/__key/communityserver-wikis-components-files/00-00-00-02-17/6201.highlight_2D00_change_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you create the following rule (note how I changed&amp;nbsp;&lt;code class="highlighter-rouge"&gt;yellow&lt;/code&gt;&amp;nbsp;to&amp;nbsp;&lt;code class="highlighter-rouge"&gt;blue&lt;/code&gt;):&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/0550.tagpair_2D00_attribute_2D00_update_2D00_settings.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/0550.tagpair_2D00_attribute_2D00_update_2D00_settings.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can update the color of the highlight:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/0181.highlight_2D00_change_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/444x58/__key/communityserver-wikis-components-files/00-00-00-02-17/0181.highlight_2D00_change_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;However, there are a lot of issues with this feature that need to be worked on, so I advise&amp;nbsp;&lt;em&gt;against&lt;/em&gt;&amp;nbsp;using it except for experimentation. The biggest problem stems from the fact that you need to understand the underlying file type to update the formatting in the generated target file.&lt;/p&gt;
&lt;p&gt;For anyone interested, all source code is&amp;nbsp;&lt;a href="https://github.com/sdl/Sdl-Community/tree/master/CleanUpTasks"&gt;published here.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks/revision/30</link><pubDate>Tue, 13 Jul 2021 11:20:58 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Oana Nagy</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Revision 30 posted to Wiki by Oana Nagy on 7/13/2021 11:20:58 AM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;span style="font-size:200%;"&gt;Important Note:&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please note that there is a possible scenario when using this application where you may find you are seeing results and information in the user interface (UI) that don&amp;#39;t seem to match the project you are working on.&amp;nbsp; It is not possible to change this behavior using the APIs that are currently available in Studio without completely rewriting the application to work in another way.&amp;nbsp; So for now it&amp;#39;s important that you note the following.&lt;/p&gt;
&lt;p&gt;If you are working in the &amp;quot;Files View&amp;quot; and you have managed to activate a project in the &amp;quot;Projects View&amp;quot; which is different to the project belonging to the files you are working on, the &lt;strong&gt;Cleanup Tasks&lt;/strong&gt; batch task will not work as expected.&amp;nbsp; This is because the batch task will be applied to the files you are working on, but the information used to perform the task within the UI will be drawn from the active project.&amp;nbsp; For example, this is what I&amp;#39;m expecting to see for the project I am working on:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-03-37/0537.pastedimage1578759715179v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;But as I have managed to activate a different project altogether in the &amp;quot;Projects View&amp;quot; these are the settings that are being used:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-03-37/8524.pastedimage1578759946257v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;color:#000000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;It is more likely that this could occur when you open a single file for translation.&amp;nbsp; When&amp;nbsp;you select &amp;quot;Translate Single Document&amp;quot;&amp;nbsp;your document will be opened in the editor but the active and highlighted project in the &amp;quot;Projects View&amp;quot;&amp;nbsp;may still remain highlighted and influence the batch task&amp;nbsp;as described above.&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;font-size:150%;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;So before starting the CleanUp Tasks while in the &amp;quot;Files View&amp;quot; or the &amp;quot;Editor View&amp;quot; make sure&amp;nbsp;that the CURRENT project&amp;nbsp;is also active, HIGHLIGHTED.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;The content below was mostly provided by Jesse Good in his original article on this plugin.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/8688.cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-03-37/8688.cleanup_2D00_batchtask_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Cleanup Source&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/7220.cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-03-37/7220.cleanup_2D00_settings_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/2577.segment_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-03-37/2577.segment_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/5736.content_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-03-37/5736.content_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/4722.structure_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-03-37/4722.structure_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/3718.tag_2D00_remover.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-03-37/3718.tag_2D00_remover.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/7167.cf_2D00_tag_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-03-37/7167.cf_2D00_tag_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/1325.cf_2D00_tag_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-03-37/1325.cf_2D00_tag_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/5684.tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-03-37/5684.tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/0842.tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-03-37/0842.tag_2D00_remover_2D00_select_2D00_italic.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/3201.tag_2D00_remover_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-03-37/3201.tag_2D00_remover_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, I do not permit removing other types of tags other than the above. Let me know though if you have a use case for removing other types of tags.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Modifying text&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now to the main part of the plug-in. When you first start out, you will have an empty screen like below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/6825.conversion_2D00_blank.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-03-37/6825.conversion_2D00_blank.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, click on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;New&lt;/code&gt;&amp;nbsp;button to create a new &amp;ldquo;Conversion File&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The following window should pop up and it will appear blank at first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/1273.conversion_2D00_file_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-03-37/1273.conversion_2D00_file_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;+&amp;rdquo; mark in the top right corner as shown and a new row will be added to the grid like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/5432.conversion_2D00_file_2D00_view_2D00_row_2D00_added.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-03-37/5432.conversion_2D00_file_2D00_view_2D00_row_2D00_added.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, I would like to demonstrate a few use cases to show how to use the tool.&lt;/p&gt;
&lt;h4 id="use-case-converting-wide-characters-to-their-narrow-equivalent"&gt;Use Case: Converting wide characters to their narrow equivalent&lt;/h4&gt;
&lt;p&gt;In Japanese text, wide and narrow forms of characters are used:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wide&lt;/th&gt;
&lt;th&gt;Narrow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ＡＢＣＤ&lt;/td&gt;
&lt;td&gt;ABCD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;１２３４&lt;/td&gt;
&lt;td&gt;1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;カタカナ&lt;/td&gt;
&lt;td&gt;ｶﾀｶﾅ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One issue is that, depending on the client, they may use different forms in their documents. You may even find a mix of these forms in the same document. These mixed forms can also cause problems with your matching results, and your translation memories will be cluttered with them.&lt;/p&gt;
&lt;p&gt;One solution is to unify these forms before translation:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/8780.conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/823x323/__key/communityserver-wikis-components-files/00-00-00-03-37/8780.conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above screenshot I have created 3 rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wide to narrow: Alphabetic
&lt;ul&gt;
&lt;li&gt;Ensure all alphabetic characters are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wide to narrow: Numbers
&lt;ul&gt;
&lt;li&gt;Ensure all numbers are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Narrow to wide: Katakana
&lt;ul&gt;
&lt;li&gt;Ensure all Katakana characters are wide&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To create a rule, you enter your information in the input area shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/3058.conversion_2D00_file_2D00_view_2D00_input_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-03-37/3058.conversion_2D00_file_2D00_view_2D00_input_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Title&lt;/em&gt;: This field can be left blank, it just gives a description of the search item, and allows you to find an item easier in the grid view.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search&lt;/em&gt;: The text you want to search for. In the example I use a regular expression to search for a single wide alphabetic character, it probably would be more efficient to use&amp;nbsp;&lt;code class="highlighter-rouge"&gt;[Ａ-Ｚ]+&lt;/code&gt;&amp;nbsp;to search for groups of characters though.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search Settings&lt;/em&gt;: The search settings explained from left to right are:
&lt;ul&gt;
&lt;li&gt;Case Sensitive: Case sensitive searching&lt;/li&gt;
&lt;li&gt;Regex: Use regular expression matching&lt;/li&gt;
&lt;li&gt;Whole Word: Match whole words&lt;/li&gt;
&lt;li&gt;Tag Pair&lt;/li&gt;
&lt;li&gt;Embedded Tags&lt;/li&gt;
&lt;li&gt;StrConv&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Embeded Tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A common issue with translations, is handling embedded tags.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/2045.embedded_2D00_tags.png"&gt;&lt;img alt=" " src="/resized-image/__size/772x61/__key/communityserver-wikis-components-files/00-00-00-03-37/2045.embedded_2D00_tags.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The cleanup tasks tool provides a way to convert these into &amp;ldquo;real&amp;rdquo; tags.&lt;/p&gt;
&lt;p&gt;You could use the following setting:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/1565.embedded_2D00_tags_2D00_setting.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-03-37/1565.embedded_2D00_tags_2D00_setting.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above setting will detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag in the example.&lt;/p&gt;
&lt;p&gt;When you run the task on the example, it will be converted as shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/6012.embedded_2D00_tags_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/769x64/__key/communityserver-wikis-components-files/00-00-00-03-37/6012.embedded_2D00_tags_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Note that in my example, I did not show a setting converting the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;span&amp;gt;&lt;/code&gt;&amp;nbsp;tag. This is important, as even though I only created a rule to detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag, the plug-in will convert&amp;nbsp;&lt;em&gt;all&lt;/em&gt;&amp;nbsp;tags it finds within the segment.&lt;/p&gt;
&lt;p&gt;Now, when you generate the target translations, any converted tags will be restored to their former form:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/6712.embedded_2D00_tags_2D00_generate_2D00_target.png"&gt;&lt;img alt=" " src="/resized-image/__size/887x76/__key/communityserver-wikis-components-files/00-00-00-03-37/6712.embedded_2D00_tags_2D00_generate_2D00_target.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;StrConv&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;happens to be a handy&amp;nbsp;&lt;a title="method" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.strings.strconv?redirectedfrom=MSDN&amp;amp;view=netframework-4.7.2#Microsoft_VisualBasic_Strings_StrConv_System_String_Microsoft_VisualBasic_VbStrConv_System_Int32_"&gt;method&amp;nbsp;&lt;/a&gt;from Visual Basic. You can find it in a lot of Microsoft Products, such as&amp;nbsp;&lt;a href="https://msdn.microsoft.com/en-us/library/office/gg264628.aspx"&gt;Office VBA&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The handy part is shown in the following screenshot (courtesy MSDN).&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/6076.strconv_2D00_chart_2D00_microsoft.png"&gt;&lt;img alt=" " src="/resized-image/__size/875x512/__key/communityserver-wikis-components-files/00-00-00-03-37/6076.strconv_2D00_chart_2D00_microsoft.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;All the options above are available under their same names in the tool: By selecting&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Narrow&lt;/code&gt;&amp;nbsp;in the tool, I can convert any wide character to its narrow equivalent.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/0245.strconv_2D00_options.png"&gt;&lt;img alt=" " src="/resized-image/__size/225x275/__key/communityserver-wikis-components-files/00-00-00-03-37/0245.strconv_2D00_options.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you turn on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;option, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Replace&lt;/code&gt;&amp;nbsp;window becomes greyed out.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Storing conversion files for reuse&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;One problem I have found with current solutions, is there is little ability for reuse. For example,&amp;nbsp;&lt;a href="http://appstore.sdl.com/app/sdlxliff-toolkit/296/"&gt;SDLXLIFF Toolkit&lt;/a&gt;&amp;nbsp;is a great tool, but you have to retype each item you need to search for. With this tool, click&amp;nbsp;Save As&amp;nbsp;in the bottom right corner to save your settings file for later use:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/0410.conversion_2D00_file_2D00_saveas.png"&gt;&lt;img alt=" " src="/resized-image/__size/338x291/__key/communityserver-wikis-components-files/00-00-00-03-37/0410.conversion_2D00_file_2D00_saveas.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you have saved your file, it will appear in the following list.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Order matters! Each file will be used for processing starting from top to bottom.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/8306.conversion_2D00_file_2D00_list.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-03-37/8306.conversion_2D00_file_2D00_list.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would recommend creating separate conversion files based on project, or divide them into categories.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Tag Pair&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I actually don&amp;rsquo;t know how useful this feature will be, but you can detect tag pairs in the source text and modify them.&lt;/p&gt;
&lt;p&gt;For example, in the following screenshot, I look for a&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf highlight=&amp;quot;yellow&amp;quot;&amp;gt;&lt;/code&gt;&amp;nbsp;tag and replace the contents with some random text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/7026.conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-03-37/7026.conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another example is taking a tag pair and replacing it with a placeholder instead:&lt;/p&gt;
&lt;p&gt;Say you had the following made up&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;inline&amp;gt;&lt;/code&gt;&amp;nbsp;tag pair in your XML file:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/6013.conversion_2D00_file_2D00_placeholder_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/305x43/__key/communityserver-wikis-components-files/00-00-00-03-37/6013.conversion_2D00_file_2D00_placeholder_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With the following rule (make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;placeholder&lt;/code&gt;&amp;nbsp;is turned ON!):&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/2450.rule.jpg"&gt;&lt;img alt=" " src="/resized-image/__size/328x293/__key/communityserver-wikis-components-files/00-00-00-03-37/2450.rule.jpg" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can turn it into a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/2158.conversion_2D00_file_2D00_placeholder_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/342x43/__key/communityserver-wikis-components-files/00-00-00-03-37/2158.conversion_2D00_file_2D00_placeholder_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, placeholders have a much more useful application, which will be discussed next.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Placeholders&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The main use case for placeholders I see is marking proper nouns, such as product or company names that never change in a translation.&lt;/p&gt;
&lt;p&gt;For example, imagine a company named&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;as below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/1780.contoso_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/344x186/__key/communityserver-wikis-components-files/00-00-00-03-37/1780.contoso_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can mark these as placeholders with the following rule:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/0310.conversion_2D00_file_2D00_contoso_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-03-37/0310.conversion_2D00_file_2D00_contoso_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: You can create placeholders that do not use attributes, for example in the above, I could of made the rule&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;&amp;nbsp;instead. However, when using elements only, you have to make sure it is a valid XML name.&lt;/p&gt;
&lt;p&gt;This will take each instance of&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;and replace it with a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/0841.contoso_2D00_example_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/314x221/__key/communityserver-wikis-components-files/00-00-00-03-37/0841.contoso_2D00_example_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, when you do this, a few issues come up:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;You will notice it replaced&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;in the third example, but left the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;, Ltd&lt;/code&gt;. In other words, you have to be careful what you replace. To fix this problem, you could create a rule that replace&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso, Ltd&lt;/code&gt;&amp;nbsp;&lt;em&gt;before&lt;/em&gt;&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;or use regular expression to match both versions.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Having placeholders is great for translation purposes, but you want to return these to their original forms when generating the translation. This functionality &lt;span style="font-family:arial, helvetica, sans-serif;"&gt;is part of the next section,&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Target and Generate Files&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is the second batch task, which allows you to run modify text in the target and generate the target translations. The settings screen looks like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/4377.cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x449/__key/communityserver-wikis-components-files/00-00-00-03-37/4377.cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Save Folder&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you want to generate the target translations when this batch task is ran, click&amp;nbsp;Generate Target. You can also specify where the files will be saved. The default is the&amp;nbsp;Desktop.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/3364.cleanup_2D00_target_2D00_save_2D00_folder.png"&gt;&lt;img alt=" " src="/resized-image/__size/416x80/__key/communityserver-wikis-components-files/00-00-00-03-37/3364.cleanup_2D00_target_2D00_save_2D00_folder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="backup-folder"&gt;Backup Folder&lt;/h2&gt;
&lt;p&gt;Before generating target translations, you can save the sdlxliff files to a backup folder. Click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Make Backups&lt;/code&gt;&amp;nbsp;to make this happen. You can specify the folder to save them, and if not, by default a folder called&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Backups&lt;/code&gt;&amp;nbsp;is created in the project.&lt;/p&gt;
&lt;p&gt;Also, if you click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Preserve Placeholder Tags&lt;/code&gt;, the backups you make will&amp;nbsp;&lt;em&gt;overwrite&lt;/em&gt;&amp;nbsp;the original sdlxliff files in the project.&lt;/p&gt;
&lt;h3 id="preserve-placeholder-tags"&gt;Preserve Placeholder Tags&lt;/h3&gt;
&lt;p&gt;If you have been following along, under&amp;nbsp;&lt;a href="http://jessegood.github.io/translation/cleanuptool.html#placeholders"&gt;Placeholder&lt;/a&gt;&amp;nbsp;we converted some proper nouns into placeholders. The problem is that when you generate the target translation, if these placeholders appear in the target segment, they will remain as a tag, or even worse be ignored completely when generating the translation. In order to solve this problem, any placeholders created during&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;will be stored in the project file so that they can be returned to text when generating the translation.&lt;/p&gt;
&lt;p&gt;It is an automatic process, but when you run&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;, if a stored placeholder is found in the target segment, it will be converted back to plain text.&lt;/p&gt;
&lt;p&gt;This is all done by convention, so if the placeholder was&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;, it will be replaced with simply&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;. When using attributes, the placeholder will be replaced with the contents of the attribute, so&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Locked Name=&amp;quot;Contoso&amp;quot; /&amp;gt;&lt;/code&gt;&amp;nbsp;will be replaced with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Before&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/4617.placeholder_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/388x258/__key/communityserver-wikis-components-files/00-00-00-03-37/4617.placeholder_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/8154.contoso_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/418x218/__key/communityserver-wikis-components-files/00-00-00-03-37/8154.contoso_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="automating-the-process"&gt;Automating the Process&lt;/h3&gt;
&lt;p&gt;They key to any successful translation workflow is&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Automation&lt;/code&gt;, the more we can automate, the more we can focus on the important stuff. Now for this Batch Task Plug-in, you can create a custom sequence so that this is ran automatically during project creation. However, there is an important point that you need to be aware of when doing this:&lt;/p&gt;
&lt;p&gt;Segments are not generated until the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Pre-Translate Files&lt;/code&gt;&amp;nbsp;task is ran, so you need to make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;appears after that.&lt;/p&gt;
&lt;p&gt;This is somewhat limiting though, as&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;may affect matching. I will look into other options when I get a chance.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/3312.custom_2D00_task_2D00_sequence.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-03-37/3312.custom_2D00_task_2D00_sequence.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="reports"&gt;Reports&lt;/h3&gt;
&lt;p&gt;Also, note that the tool generates reports and log files of what it does!&lt;/p&gt;
&lt;p&gt;The report itself (shown below) does not give very much information, only a count of each item and a path to the log file. The log file itself though will contain a lot more detailed information about what happened, so if you need to find out why something changed, please look at the log file. (I considered adding all the info about what happened to the report here, but I found the size of the report gets too large quickly.)&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/6661.report_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x119/__key/communityserver-wikis-components-files/00-00-00-03-37/6661.report_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: I wanted to create links so you can just click on it to open the log file, but I haven&amp;rsquo;t figured it out. I asked a question on&amp;nbsp;&lt;a href="/products-solutions/solutions/customer_experience_cloud/language/language-developers/f/57/t/7246"&gt;sdl community&lt;/a&gt;&amp;nbsp;about it.&lt;/p&gt;
&lt;h1 id="updating-formatting-attributes-experimental-support"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Updating Formatting Attributes (Experimental Support)&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;There is current partial (read as &amp;ldquo;very limited&amp;rdquo;) support for updating formatting attributes.&lt;/p&gt;
&lt;p&gt;For example, with the following text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/6201.highlight_2D00_change_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/452x53/__key/communityserver-wikis-components-files/00-00-00-03-37/6201.highlight_2D00_change_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you create the following rule (note how I changed&amp;nbsp;&lt;code class="highlighter-rouge"&gt;yellow&lt;/code&gt;&amp;nbsp;to&amp;nbsp;&lt;code class="highlighter-rouge"&gt;blue&lt;/code&gt;):&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/0550.tagpair_2D00_attribute_2D00_update_2D00_settings.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-03-37/0550.tagpair_2D00_attribute_2D00_update_2D00_settings.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can update the color of the highlight:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-03-37/0181.highlight_2D00_change_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/444x58/__key/communityserver-wikis-components-files/00-00-00-03-37/0181.highlight_2D00_change_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;However, there are a lot of issues with this feature that need to be worked on, so I advise&amp;nbsp;&lt;em&gt;against&lt;/em&gt;&amp;nbsp;using it except for experimentation. The biggest problem stems from the fact that you need to understand the underlying file type to update the formatting in the generated target file.&lt;/p&gt;
&lt;p&gt;For anyone interested, all source code is&amp;nbsp;&lt;a href="https://github.com/sdl/Sdl-Community/tree/master/CleanUpTasks"&gt;published here.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks/revision/26</link><pubDate>Sat, 11 Jan 2020 16:32:41 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Paul Filkin</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Revision 26 posted to Wiki by Paul Filkin on 1/11/2020 4:32:41 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;span style="background-color:#ff0000;font-size:200%;"&gt;Important Note:&lt;/span&gt;&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please note that there is a possible scenario when using this application where you may find you are seeing results and information in the user interface (UI) that don&amp;#39;t seem to match the project you are working on.&amp;nbsp; It is not possible to change this behaviour using the APIs that are currently available in Studio without completely rewriting the application to work in another way.&amp;nbsp; So for now it&amp;#39;s important that you note the following.&lt;/p&gt;
&lt;p&gt;If you are working in the &amp;quot;Files View&amp;quot; and you have managed to activate a project in the &amp;quot;Projects View&amp;quot; which is different to the project belonging to the files you are working on, the &lt;strong&gt;Cleanup Tasks&lt;/strong&gt; batch task will not work as expected.&amp;nbsp; This is because the batch task will be applied to the files you are working on, but the information used to perform the task within the UI will be drawn from the active project.&amp;nbsp; For example, this is what I&amp;#39;m expecting to see for the project I am working on:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-17/pastedimage1578759715179v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;But as I have managed to activate a different project altogether in the &amp;quot;Projects View&amp;quot; these are the settings that are being used:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-02-17/pastedimage1578759946257v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;color:#000000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;It is more likely that this could occur when you open a single file for translation.&amp;nbsp; When&amp;nbsp;you select &amp;quot;Translate Single Document&amp;quot;&amp;nbsp;your document will be opened in the editor but the active and highlighted project in the &amp;quot;Projects View&amp;quot;&amp;nbsp;may still remain highlighted and influence the batch task&amp;nbsp;as described above.&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;color:#000000;font-size:150%;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;So before starting the CleanUp Tasks while in the &amp;quot;Files View&amp;quot; or the &amp;quot;Editor View&amp;quot; make sure&amp;nbsp;that the CURRENT project&amp;nbsp;is also active, HIGHLIGHTED.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;The content below was mostly provided by Jesse Good in his original article on this plugin.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Source&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, I do not permit removing other types of tags other than the above. Let me know though if you have a use case for removing other types of tags.&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Modifying text&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now to the main part of the plug-in. When you first start out, you will have an empty screen like below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, click on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;New&lt;/code&gt;&amp;nbsp;button to create a new &amp;ldquo;Conversion File&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The following window should pop up and it will appear blank at first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;+&amp;rdquo; mark in the top right corner as shown and a new row will be added to the grid like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, I would like to demonstrate a few use cases to show how to use the tool.&lt;/p&gt;
&lt;h4 id="use-case-converting-wide-characters-to-their-narrow-equivalent"&gt;Use Case: Converting wide characters to their narrow equivalent&lt;/h4&gt;
&lt;p&gt;In Japanese text, wide and narrow forms of characters are used:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wide&lt;/th&gt;
&lt;th&gt;Narrow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ＡＢＣＤ&lt;/td&gt;
&lt;td&gt;ABCD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;１２３４&lt;/td&gt;
&lt;td&gt;1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;カタカナ&lt;/td&gt;
&lt;td&gt;ｶﾀｶﾅ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One issue is that, depending on the client, they may use different forms in their documents. You may even find a mix of these forms in the same document. These mixed forms can also cause problems with your matching results, and your translation memories will be cluttered with them.&lt;/p&gt;
&lt;p&gt;One solution is to unify these forms before translation:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/823x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above screenshot I have created 3 rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wide to narrow: Alphabetic
&lt;ul&gt;
&lt;li&gt;Ensure all alphabetic characters are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wide to narrow: Numbers
&lt;ul&gt;
&lt;li&gt;Ensure all numbers are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Narrow to wide: Katakana
&lt;ul&gt;
&lt;li&gt;Ensure all Katakana characters are wide&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To create a rule, you enter your information in the input area shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Title&lt;/em&gt;: This field can be left blank, it just gives a description of the search item, and allows you to find an item easier in the grid view.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search&lt;/em&gt;: The text you want to search for. In the example I use a regular expression to search for a single wide alphabetic character, it probably would be more efficient to use&amp;nbsp;&lt;code class="highlighter-rouge"&gt;[Ａ-Ｚ]+&lt;/code&gt;&amp;nbsp;to search for groups of characters though.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search Settings&lt;/em&gt;: The search settings explained from left to right are:
&lt;ul&gt;
&lt;li&gt;Case Sensitive: Case sensitive searching&lt;/li&gt;
&lt;li&gt;Regex: Use regular expression matching&lt;/li&gt;
&lt;li&gt;Whole Word: Match whole words&lt;/li&gt;
&lt;li&gt;Tag Pair&lt;/li&gt;
&lt;li&gt;Embedded Tags&lt;/li&gt;
&lt;li&gt;StrConv&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Embeded Tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A common issue with translations, is handling embedded tags.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png"&gt;&lt;img alt=" " src="/resized-image/__size/772x61/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The cleanup tasks tool provides a way to convert these into &amp;ldquo;real&amp;rdquo; tags.&lt;/p&gt;
&lt;p&gt;You could use the following setting:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above setting will detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag in the example.&lt;/p&gt;
&lt;p&gt;When you run the task on the example, it will be converted as shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/769x64/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Note that in my example, I did not show a setting converting the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;span&amp;gt;&lt;/code&gt;&amp;nbsp;tag. This is important, as even though I only created a rule to detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag, the plug-in will convert&amp;nbsp;&lt;em&gt;all&lt;/em&gt;&amp;nbsp;tags it finds within the segment.&lt;/p&gt;
&lt;p&gt;Now, when you generate the target translations, any converted tags will be restored to their former form:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png"&gt;&lt;img alt=" " src="/resized-image/__size/887x76/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;StrConv&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;happens to be a handy&amp;nbsp;&lt;a title="method" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.strings.strconv?redirectedfrom=MSDN&amp;amp;view=netframework-4.7.2#Microsoft_VisualBasic_Strings_StrConv_System_String_Microsoft_VisualBasic_VbStrConv_System_Int32_"&gt;method&amp;nbsp;&lt;/a&gt;from Visual Basic. You can find it in a lot of Microsoft Products, such as&amp;nbsp;&lt;a href="https://msdn.microsoft.com/en-us/library/office/gg264628.aspx"&gt;Office VBA&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The handy part is shown in the following screenshot (courtesy MSDN).&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png"&gt;&lt;img alt=" " src="/resized-image/__size/875x512/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;All the options above are available under their same names in the tool: By selecting&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Narrow&lt;/code&gt;&amp;nbsp;in the tool, I can convert any wide character to its narrow equivalent.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png"&gt;&lt;img alt=" " src="/resized-image/__size/225x275/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you turn on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;option, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Replace&lt;/code&gt;&amp;nbsp;window becomes greyed out.&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Storing conversion files for reuse&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;One problem I have found with current solutions, is there is little ability for reuse. For example,&amp;nbsp;&lt;a href="http://appstore.sdl.com/app/sdlxliff-toolkit/296/"&gt;SDLXLIFF Toolkit&lt;/a&gt;&amp;nbsp;is a great tool, but you have to retype each item you need to search for. With this tool, click&amp;nbsp;Save As&amp;nbsp;in the bottom right corner to save your settings file for later use:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png"&gt;&lt;img alt=" " src="/resized-image/__size/338x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you have saved your file, it will appear in the following list.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Order matters! Each file will be used for processing starting from top to bottom.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would recommend creating separate conversion files based on project, or divide them into categories.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Tag Pair&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I actually don&amp;rsquo;t know how useful this feature will be, but you can detect tag pairs in the source text and modify them.&lt;/p&gt;
&lt;p&gt;For example, in the following screenshot, I look for a&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf highlight=&amp;quot;yellow&amp;quot;&amp;gt;&lt;/code&gt;&amp;nbsp;tag and replace the contents with some random text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another example is taking a tag pair and replacing it with a placeholder instead:&lt;/p&gt;
&lt;p&gt;Say you had the following made up&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;inline&amp;gt;&lt;/code&gt;&amp;nbsp;tag pair in your XML file:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/305x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With the following rule (make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;placeholder&lt;/code&gt;&amp;nbsp;is turned ON!):&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg"&gt;&lt;img alt=" " src="/resized-image/__size/328x293/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can turn it into a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/342x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, placeholders have a much more useful application, which will be discussed next.&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Placeholders&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The main use case for placeholders I see is marking proper nouns, such as product or company names that never change in a translation.&lt;/p&gt;
&lt;p&gt;For example, imagine a company named&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;as below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/344x186/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can mark these as placeholders with the following rule:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: You can create placeholders that do not use attributes, for example in the above, I could of made the rule&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;&amp;nbsp;instead. However, when using elements only, you have to make sure it is a valid XML name.&lt;/p&gt;
&lt;p&gt;This will take each instance of&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;and replace it with a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/314x221/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, when you do this, a few issues come up:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;You will notice it replaced&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;in the third example, but left the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;, Ltd&lt;/code&gt;. In other words, you have to be careful what you replace. To fix this problem, you could create a rule that replace&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso, Ltd&lt;/code&gt;&amp;nbsp;&lt;em&gt;before&lt;/em&gt;&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;or use regular expression to match both versions.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Having placeholders is great for translation purposes, but you want to return these to their original forms when generating the translation. This functionality &lt;span style="font-family:arial, helvetica, sans-serif;"&gt;is part of the next section,&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Target and Generate Files&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is the second batch task, which allows you to run modify text in the target and generate the target translations. The settings screen looks like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x449/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Save Folder&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you want to generate the target translations when this batch task is ran, click&amp;nbsp;Generate Target. You can also specify where the files will be saved. The default is the&amp;nbsp;Desktop.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png"&gt;&lt;img alt=" " src="/resized-image/__size/416x80/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="backup-folder"&gt;Backup Folder&lt;/h2&gt;
&lt;p&gt;Before generating target translations, you can save the sdlxliff files to a backup folder. Click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Make Backups&lt;/code&gt;&amp;nbsp;to make this happen. You can specify the folder to save them, and if not, by default a folder called&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Backups&lt;/code&gt;&amp;nbsp;is created in the project.&lt;/p&gt;
&lt;p&gt;Also, if you click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Preserve Placeholder Tags&lt;/code&gt;, the backups you make will&amp;nbsp;&lt;em&gt;overwrite&lt;/em&gt;&amp;nbsp;the original sdlxliff files in the project.&lt;/p&gt;
&lt;h3 id="preserve-placeholder-tags"&gt;Preserve Placeholder Tags&lt;/h3&gt;
&lt;p&gt;If you have been following along, under&amp;nbsp;&lt;a href="http://jessegood.github.io/translation/cleanuptool.html#placeholders"&gt;Placeholder&lt;/a&gt;&amp;nbsp;we converted some proper nouns into placeholders. The problem is that when you generate the target translation, if these placeholders appear in the target segment, they will remain as a tag, or even worse be ignored completely when generating the translation. In order to solve this problem, any placeholders created during&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;will be stored in the project file so that they can be returned to text when generating the translation.&lt;/p&gt;
&lt;p&gt;It is an automatic process, but when you run&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;, if a stored placeholder is found in the target segment, it will be converted back to plain text.&lt;/p&gt;
&lt;p&gt;This is all done by convention, so if the placeholder was&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;, it will be replaced with simply&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;. When using attributes, the placeholder will be replaced with the contents of the attribute, so&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Locked Name=&amp;quot;Contoso&amp;quot; /&amp;gt;&lt;/code&gt;&amp;nbsp;will be replaced with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Before&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/388x258/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/418x218/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="automating-the-process"&gt;Automating the Process&lt;/h3&gt;
&lt;p&gt;They key to any successful translation workflow is&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Automation&lt;/code&gt;, the more we can automate, the more we can focus on the important stuff. Now for this Batch Task Plug-in, you can create a custom sequence so that this is ran automatically during project creation. However, there is an important point that you need to be aware of when doing this:&lt;/p&gt;
&lt;p&gt;Segments are not generated until the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Pre-Translate Files&lt;/code&gt;&amp;nbsp;task is ran, so you need to make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;appears after that.&lt;/p&gt;
&lt;p&gt;This is somewhat limiting though, as&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;may affect matching. I will look into other options when I get a chance.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="reports"&gt;Reports&lt;/h3&gt;
&lt;p&gt;Also, note that the tool generates reports and log files of what it does!&lt;/p&gt;
&lt;p&gt;The report itself (shown below) does not give very much information, only a count of each item and a path to the log file. The log file itself though will contain a lot more detailed information about what happened, so if you need to find out why something changed, please look at the log file. (I considered adding all the info about what happened to the report here, but I found the size of the report gets too large quickly.)&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x119/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: I wanted to create links so you can just click on it to open the log file, but I haven&amp;rsquo;t figured it out. I asked a question on&amp;nbsp;&lt;a href="/products-solutions/solutions/customer_experience_cloud/language/language-developers/f/57/t/7246"&gt;sdl community&lt;/a&gt;&amp;nbsp;about it.&lt;/p&gt;
&lt;h1 id="updating-formatting-attributes-experimental-support"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Updating Formatting Attributes (Experimental Support)&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;There is current partial (read as &amp;ldquo;very limited&amp;rdquo;) support for updating formatting attributes.&lt;/p&gt;
&lt;p&gt;For example, with the following text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/452x53/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you create the following rule (note how I changed&amp;nbsp;&lt;code class="highlighter-rouge"&gt;yellow&lt;/code&gt;&amp;nbsp;to&amp;nbsp;&lt;code class="highlighter-rouge"&gt;blue&lt;/code&gt;):&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tagpair_2D00_attribute_2D00_update_2D00_settings.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/tagpair_2D00_attribute_2D00_update_2D00_settings.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can update the color of the highlight:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/444x58/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;However, there are a lot of issues with this feature that need to be worked on, so I advise&amp;nbsp;&lt;em&gt;against&lt;/em&gt;&amp;nbsp;using it except for experimentation. The biggest problem stems from the fact that you need to understand the underlying file type to update the formatting in the generated target file.&lt;/p&gt;
&lt;p&gt;For anyone interested, all source code is&amp;nbsp;&lt;a href="https://github.com/sdl/Sdl-Community/tree/master/CleanUpTasks"&gt;published here.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks/revision/25</link><pubDate>Sat, 11 Jan 2020 15:36:53 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Emanuel Albu</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Revision 25 posted to Wiki by Emanuel Albu on 1/11/2020 3:36:53 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Important:&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please note that in the unlikely scenario in which you&amp;#39;re in files view, click on projects view, highlight another project than the current one and then click on&amp;nbsp;files view and start CleanUp Tasks, the batch task won&amp;#39;t work as expected; it will be applied on the files selected in the files view, but the tags loaded will be those in the highlighted project from the project view.&lt;span style="background-color:#ff0000;color:#000000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It is more likely, however, that this will occur when you open a single file for translation. Something is highlighted in the projects view and you select &amp;quot;Translate Single Document&amp;quot;; that document will be opened in the editor but the highlighted project will still remain highlighted in projects view and influence the batch task like described in the previous scenario.&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;color:#000000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;So before starting the CleanUp Tasks while in files or editor view, make sure&amp;nbsp;that the CURRENT project&amp;nbsp;is also HIGHLIGHTED.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;Content mostly provided by Jesse Good in his original article on this plugin.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Source&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, I do not permit removing other types of tags other than the above. Let me know though if you have a use case for removing other types of tags.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Modifying text&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now to the main part of the plug-in. When you first start out, you will have an empty screen like below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, click on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;New&lt;/code&gt;&amp;nbsp;button to create a new &amp;ldquo;Conversion File&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The following window should pop up and it will appear blank at first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;+&amp;rdquo; mark in the top right corner as shown and a new row will be added to the grid like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, I would like to demonstrate a few use cases to show how to use the tool.&lt;/p&gt;
&lt;h4 id="use-case-converting-wide-characters-to-their-narrow-equivalent"&gt;Use Case: Converting wide characters to their narrow equivalent&lt;/h4&gt;
&lt;p&gt;In Japanese text, wide and narrow forms of characters are used:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wide&lt;/th&gt;
&lt;th&gt;Narrow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ＡＢＣＤ&lt;/td&gt;
&lt;td&gt;ABCD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;１２３４&lt;/td&gt;
&lt;td&gt;1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;カタカナ&lt;/td&gt;
&lt;td&gt;ｶﾀｶﾅ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One issue is that, depending on the client, they may use different forms in their documents. You may even find a mix of these forms in the same document. These mixed forms can also cause problems with your matching results, and your translation memories will be cluttered with them.&lt;/p&gt;
&lt;p&gt;One solution is to unify these forms before translation:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/823x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above screenshot I have created 3 rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wide to narrow: Alphabetic
&lt;ul&gt;
&lt;li&gt;Ensure all alphabetic characters are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wide to narrow: Numbers
&lt;ul&gt;
&lt;li&gt;Ensure all numbers are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Narrow to wide: Katakana
&lt;ul&gt;
&lt;li&gt;Ensure all Katakana characters are wide&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To create a rule, you enter your information in the input area shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Title&lt;/em&gt;: This field can be left blank, it just gives a description of the search item, and allows you to find an item easier in the grid view.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search&lt;/em&gt;: The text you want to search for. In the example I use a regular expression to search for a single wide alphabetic character, it probably would be more efficient to use&amp;nbsp;&lt;code class="highlighter-rouge"&gt;[Ａ-Ｚ]+&lt;/code&gt;&amp;nbsp;to search for groups of characters though.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search Settings&lt;/em&gt;: The search settings explained from left to right are:
&lt;ul&gt;
&lt;li&gt;Case Sensitive: Case sensitive searching&lt;/li&gt;
&lt;li&gt;Regex: Use regular expression matching&lt;/li&gt;
&lt;li&gt;Whole Word: Match whole words&lt;/li&gt;
&lt;li&gt;Tag Pair&lt;/li&gt;
&lt;li&gt;Embedded Tags&lt;/li&gt;
&lt;li&gt;StrConv&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Embeded Tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A common issue with translations, is handling embedded tags.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png"&gt;&lt;img alt=" " src="/resized-image/__size/772x61/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The cleanup tasks tool provides a way to convert these into &amp;ldquo;real&amp;rdquo; tags.&lt;/p&gt;
&lt;p&gt;You could use the following setting:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above setting will detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag in the example.&lt;/p&gt;
&lt;p&gt;When you run the task on the example, it will be converted as shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/769x64/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Note that in my example, I did not show a setting converting the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;span&amp;gt;&lt;/code&gt;&amp;nbsp;tag. This is important, as even though I only created a rule to detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag, the plug-in will convert&amp;nbsp;&lt;em&gt;all&lt;/em&gt;&amp;nbsp;tags it finds within the segment.&lt;/p&gt;
&lt;p&gt;Now, when you generate the target translations, any converted tags will be restored to their former form:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png"&gt;&lt;img alt=" " src="/resized-image/__size/887x76/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;StrConv&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;happens to be a handy&amp;nbsp;&lt;a title="method" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.strings.strconv?redirectedfrom=MSDN&amp;amp;view=netframework-4.7.2#Microsoft_VisualBasic_Strings_StrConv_System_String_Microsoft_VisualBasic_VbStrConv_System_Int32_"&gt;method&amp;nbsp;&lt;/a&gt;from Visual Basic. You can find it in a lot of Microsoft Products, such as&amp;nbsp;&lt;a href="https://msdn.microsoft.com/en-us/library/office/gg264628.aspx"&gt;Office VBA&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The handy part is shown in the following screenshot (courtesy MSDN).&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png"&gt;&lt;img alt=" " src="/resized-image/__size/875x512/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;All the options above are available under their same names in the tool: By selecting&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Narrow&lt;/code&gt;&amp;nbsp;in the tool, I can convert any wide character to its narrow equivalent.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png"&gt;&lt;img alt=" " src="/resized-image/__size/225x275/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you turn on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;option, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Replace&lt;/code&gt;&amp;nbsp;window becomes greyed out.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Storing conversion files for reuse&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;One problem I have found with current solutions, is there is little ability for reuse. For example,&amp;nbsp;&lt;a href="http://appstore.sdl.com/app/sdlxliff-toolkit/296/"&gt;SDLXLIFF Toolkit&lt;/a&gt;&amp;nbsp;is a great tool, but you have to retype each item you need to search for. With this tool, click&amp;nbsp;Save As&amp;nbsp;in the bottom right corner to save your settings file for later use:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png"&gt;&lt;img alt=" " src="/resized-image/__size/338x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you have saved your file, it will appear in the following list.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Order matters! Each file will be used for processing starting from top to bottom.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would recommend creating separate conversion files based on project, or divide them into categories.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Tag Pair&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I actually don&amp;rsquo;t know how useful this feature will be, but you can detect tag pairs in the source text and modify them.&lt;/p&gt;
&lt;p&gt;For example, in the following screenshot, I look for a&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf highlight=&amp;quot;yellow&amp;quot;&amp;gt;&lt;/code&gt;&amp;nbsp;tag and replace the contents with some random text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another example is taking a tag pair and replacing it with a placeholder instead:&lt;/p&gt;
&lt;p&gt;Say you had the following made up&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;inline&amp;gt;&lt;/code&gt;&amp;nbsp;tag pair in your XML file:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/305x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With the following rule (make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;placeholder&lt;/code&gt;&amp;nbsp;is turned ON!):&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg"&gt;&lt;img alt=" " src="/resized-image/__size/328x293/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can turn it into a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/342x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, placeholders have a much more useful application, which will be discussed next.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Placeholders&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The main use case for placeholders I see is marking proper nouns, such as product or company names that never change in a translation.&lt;/p&gt;
&lt;p&gt;For example, imagine a company named&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;as below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/344x186/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can mark these as placeholders with the following rule:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: You can create placeholders that do not use attributes, for example in the above, I could of made the rule&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;&amp;nbsp;instead. However, when using elements only, you have to make sure it is a valid XML name.&lt;/p&gt;
&lt;p&gt;This will take each instance of&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;and replace it with a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/314x221/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, when you do this, a few issues come up:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;You will notice it replaced&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;in the third example, but left the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;, Ltd&lt;/code&gt;. In other words, you have to be careful what you replace. To fix this problem, you could create a rule that replace&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso, Ltd&lt;/code&gt;&amp;nbsp;&lt;em&gt;before&lt;/em&gt;&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;or use regular expression to match both versions.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Having placeholders is great for translation purposes, but you want to return these to their original forms when generating the translation. This functionality &lt;span style="font-family:arial, helvetica, sans-serif;"&gt;is part of the next section,&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Target and Generate Files&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is the second batch task, which allows you to run modify text in the target and generate the target translations. The settings screen looks like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x449/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Save Folder&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you want to generate the target translations when this batch task is ran, click&amp;nbsp;Generate Target. You can also specify where the files will be saved. The default is the&amp;nbsp;Desktop.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png"&gt;&lt;img alt=" " src="/resized-image/__size/416x80/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="backup-folder"&gt;Backup Folder&lt;/h2&gt;
&lt;p&gt;Before generating target translations, you can save the sdlxliff files to a backup folder. Click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Make Backups&lt;/code&gt;&amp;nbsp;to make this happen. You can specify the folder to save them, and if not, by default a folder called&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Backups&lt;/code&gt;&amp;nbsp;is created in the project.&lt;/p&gt;
&lt;p&gt;Also, if you click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Preserve Placeholder Tags&lt;/code&gt;, the backups you make will&amp;nbsp;&lt;em&gt;overwrite&lt;/em&gt;&amp;nbsp;the original sdlxliff files in the project.&lt;/p&gt;
&lt;h3 id="preserve-placeholder-tags"&gt;Preserve Placeholder Tags&lt;/h3&gt;
&lt;p&gt;If you have been following along, under&amp;nbsp;&lt;a href="http://jessegood.github.io/translation/cleanuptool.html#placeholders"&gt;Placeholder&lt;/a&gt;&amp;nbsp;we converted some proper nouns into placeholders. The problem is that when you generate the target translation, if these placeholders appear in the target segment, they will remain as a tag, or even worse be ignored completely when generating the translation. In order to solve this problem, any placeholders created during&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;will be stored in the project file so that they can be returned to text when generating the translation.&lt;/p&gt;
&lt;p&gt;It is an automatic process, but when you run&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;, if a stored placeholder is found in the target segment, it will be converted back to plain text.&lt;/p&gt;
&lt;p&gt;This is all done by convention, so if the placeholder was&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;, it will be replaced with simply&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;. When using attributes, the placeholder will be replaced with the contents of the attribute, so&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Locked Name=&amp;quot;Contoso&amp;quot; /&amp;gt;&lt;/code&gt;&amp;nbsp;will be replaced with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Before&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/388x258/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/418x218/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="automating-the-process"&gt;Automating the Process&lt;/h3&gt;
&lt;p&gt;They key to any successful translation workflow is&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Automation&lt;/code&gt;, the more we can automate, the more we can focus on the important stuff. Now for this Batch Task Plug-in, you can create a custom sequence so that this is ran automatically during project creation. However, there is an important point that you need to be aware of when doing this:&lt;/p&gt;
&lt;p&gt;Segments are not generated until the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Pre-Translate Files&lt;/code&gt;&amp;nbsp;task is ran, so you need to make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;appears after that.&lt;/p&gt;
&lt;p&gt;This is somewhat limiting though, as&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;may affect matching. I will look into other options when I get a chance.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="reports"&gt;Reports&lt;/h3&gt;
&lt;p&gt;Also, note that the tool generates reports and log files of what it does!&lt;/p&gt;
&lt;p&gt;The report itself (shown below) does not give very much information, only a count of each item and a path to the log file. The log file itself though will contain a lot more detailed information about what happened, so if you need to find out why something changed, please look at the log file. (I considered adding all the info about what happened to the report here, but I found the size of the report gets too large quickly.)&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x119/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: I wanted to create links so you can just click on it to open the log file, but I haven&amp;rsquo;t figured it out. I asked a question on&amp;nbsp;&lt;a href="/products-solutions/solutions/customer_experience_cloud/language/language-developers/f/57/t/7246"&gt;sdl community&lt;/a&gt;&amp;nbsp;about it.&lt;/p&gt;
&lt;h1 id="updating-formatting-attributes-experimental-support"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Updating Formatting Attributes (Experimental Support)&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;There is current partial (read as &amp;ldquo;very limited&amp;rdquo;) support for updating formatting attributes.&lt;/p&gt;
&lt;p&gt;For example, with the following text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/452x53/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you create the following rule (note how I changed&amp;nbsp;&lt;code class="highlighter-rouge"&gt;yellow&lt;/code&gt;&amp;nbsp;to&amp;nbsp;&lt;code class="highlighter-rouge"&gt;blue&lt;/code&gt;):&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tagpair_2D00_attribute_2D00_update_2D00_settings.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/tagpair_2D00_attribute_2D00_update_2D00_settings.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can update the color of the highlight:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/444x58/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;However, there are a lot of issues with this feature that need to be worked on, so I advise&amp;nbsp;&lt;em&gt;against&lt;/em&gt;&amp;nbsp;using it except for experimentation. The biggest problem stems from the fact that you need to understand the underlying file type to update the formatting in the generated target file.&lt;/p&gt;
&lt;p&gt;For anyone interested, all source code is&amp;nbsp;&lt;a href="https://github.com/sdl/Sdl-Community/tree/master/CleanUpTasks"&gt;published here.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks/revision/24</link><pubDate>Sat, 11 Jan 2020 15:36:13 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Emanuel Albu</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Revision 24 posted to Wiki by Emanuel Albu on 1/11/2020 3:36:13 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Important:&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please note that in the unlikely scenario in which you&amp;#39;re in files view, click on project view, highlight another project than the current one and then click on&amp;nbsp;files view and start CleanUp Tasks, the batch task won&amp;#39;t work as expected; it will be applied on the files selected in the files view, but the tags loaded will be those in the highlighted project from the project view.&lt;span style="background-color:#ff0000;color:#000000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It is more likely, however, that this will occur when you open a single file for translation. Something is highlighted in the projects view and you select &amp;quot;Translate Single Document&amp;quot;; that document will be opened in the editor but the highlighted project will still remain highlighted in projects view and influence the batch task like described in the previous scenario.&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;color:#000000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;So before starting the CleanUp Tasks while in files or editor view, make sure&amp;nbsp;that the CURRENT project&amp;nbsp;is also HIGHLIGHTED.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;Content mostly provided by Jesse Good in his original article on this plugin.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Source&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, I do not permit removing other types of tags other than the above. Let me know though if you have a use case for removing other types of tags.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Modifying text&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now to the main part of the plug-in. When you first start out, you will have an empty screen like below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, click on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;New&lt;/code&gt;&amp;nbsp;button to create a new &amp;ldquo;Conversion File&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The following window should pop up and it will appear blank at first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;+&amp;rdquo; mark in the top right corner as shown and a new row will be added to the grid like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, I would like to demonstrate a few use cases to show how to use the tool.&lt;/p&gt;
&lt;h4 id="use-case-converting-wide-characters-to-their-narrow-equivalent"&gt;Use Case: Converting wide characters to their narrow equivalent&lt;/h4&gt;
&lt;p&gt;In Japanese text, wide and narrow forms of characters are used:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wide&lt;/th&gt;
&lt;th&gt;Narrow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ＡＢＣＤ&lt;/td&gt;
&lt;td&gt;ABCD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;１２３４&lt;/td&gt;
&lt;td&gt;1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;カタカナ&lt;/td&gt;
&lt;td&gt;ｶﾀｶﾅ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One issue is that, depending on the client, they may use different forms in their documents. You may even find a mix of these forms in the same document. These mixed forms can also cause problems with your matching results, and your translation memories will be cluttered with them.&lt;/p&gt;
&lt;p&gt;One solution is to unify these forms before translation:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/823x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above screenshot I have created 3 rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wide to narrow: Alphabetic
&lt;ul&gt;
&lt;li&gt;Ensure all alphabetic characters are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wide to narrow: Numbers
&lt;ul&gt;
&lt;li&gt;Ensure all numbers are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Narrow to wide: Katakana
&lt;ul&gt;
&lt;li&gt;Ensure all Katakana characters are wide&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To create a rule, you enter your information in the input area shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Title&lt;/em&gt;: This field can be left blank, it just gives a description of the search item, and allows you to find an item easier in the grid view.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search&lt;/em&gt;: The text you want to search for. In the example I use a regular expression to search for a single wide alphabetic character, it probably would be more efficient to use&amp;nbsp;&lt;code class="highlighter-rouge"&gt;[Ａ-Ｚ]+&lt;/code&gt;&amp;nbsp;to search for groups of characters though.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search Settings&lt;/em&gt;: The search settings explained from left to right are:
&lt;ul&gt;
&lt;li&gt;Case Sensitive: Case sensitive searching&lt;/li&gt;
&lt;li&gt;Regex: Use regular expression matching&lt;/li&gt;
&lt;li&gt;Whole Word: Match whole words&lt;/li&gt;
&lt;li&gt;Tag Pair&lt;/li&gt;
&lt;li&gt;Embedded Tags&lt;/li&gt;
&lt;li&gt;StrConv&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Embeded Tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A common issue with translations, is handling embedded tags.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png"&gt;&lt;img alt=" " src="/resized-image/__size/772x61/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The cleanup tasks tool provides a way to convert these into &amp;ldquo;real&amp;rdquo; tags.&lt;/p&gt;
&lt;p&gt;You could use the following setting:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above setting will detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag in the example.&lt;/p&gt;
&lt;p&gt;When you run the task on the example, it will be converted as shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/769x64/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Note that in my example, I did not show a setting converting the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;span&amp;gt;&lt;/code&gt;&amp;nbsp;tag. This is important, as even though I only created a rule to detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag, the plug-in will convert&amp;nbsp;&lt;em&gt;all&lt;/em&gt;&amp;nbsp;tags it finds within the segment.&lt;/p&gt;
&lt;p&gt;Now, when you generate the target translations, any converted tags will be restored to their former form:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png"&gt;&lt;img alt=" " src="/resized-image/__size/887x76/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;StrConv&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;happens to be a handy&amp;nbsp;&lt;a title="method" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.strings.strconv?redirectedfrom=MSDN&amp;amp;view=netframework-4.7.2#Microsoft_VisualBasic_Strings_StrConv_System_String_Microsoft_VisualBasic_VbStrConv_System_Int32_"&gt;method&amp;nbsp;&lt;/a&gt;from Visual Basic. You can find it in a lot of Microsoft Products, such as&amp;nbsp;&lt;a href="https://msdn.microsoft.com/en-us/library/office/gg264628.aspx"&gt;Office VBA&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The handy part is shown in the following screenshot (courtesy MSDN).&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png"&gt;&lt;img alt=" " src="/resized-image/__size/875x512/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;All the options above are available under their same names in the tool: By selecting&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Narrow&lt;/code&gt;&amp;nbsp;in the tool, I can convert any wide character to its narrow equivalent.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png"&gt;&lt;img alt=" " src="/resized-image/__size/225x275/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you turn on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;option, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Replace&lt;/code&gt;&amp;nbsp;window becomes greyed out.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Storing conversion files for reuse&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;One problem I have found with current solutions, is there is little ability for reuse. For example,&amp;nbsp;&lt;a href="http://appstore.sdl.com/app/sdlxliff-toolkit/296/"&gt;SDLXLIFF Toolkit&lt;/a&gt;&amp;nbsp;is a great tool, but you have to retype each item you need to search for. With this tool, click&amp;nbsp;Save As&amp;nbsp;in the bottom right corner to save your settings file for later use:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png"&gt;&lt;img alt=" " src="/resized-image/__size/338x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you have saved your file, it will appear in the following list.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Order matters! Each file will be used for processing starting from top to bottom.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would recommend creating separate conversion files based on project, or divide them into categories.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Tag Pair&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I actually don&amp;rsquo;t know how useful this feature will be, but you can detect tag pairs in the source text and modify them.&lt;/p&gt;
&lt;p&gt;For example, in the following screenshot, I look for a&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf highlight=&amp;quot;yellow&amp;quot;&amp;gt;&lt;/code&gt;&amp;nbsp;tag and replace the contents with some random text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another example is taking a tag pair and replacing it with a placeholder instead:&lt;/p&gt;
&lt;p&gt;Say you had the following made up&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;inline&amp;gt;&lt;/code&gt;&amp;nbsp;tag pair in your XML file:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/305x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With the following rule (make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;placeholder&lt;/code&gt;&amp;nbsp;is turned ON!):&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg"&gt;&lt;img alt=" " src="/resized-image/__size/328x293/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can turn it into a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/342x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, placeholders have a much more useful application, which will be discussed next.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Placeholders&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The main use case for placeholders I see is marking proper nouns, such as product or company names that never change in a translation.&lt;/p&gt;
&lt;p&gt;For example, imagine a company named&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;as below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/344x186/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can mark these as placeholders with the following rule:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: You can create placeholders that do not use attributes, for example in the above, I could of made the rule&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;&amp;nbsp;instead. However, when using elements only, you have to make sure it is a valid XML name.&lt;/p&gt;
&lt;p&gt;This will take each instance of&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;and replace it with a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/314x221/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, when you do this, a few issues come up:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;You will notice it replaced&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;in the third example, but left the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;, Ltd&lt;/code&gt;. In other words, you have to be careful what you replace. To fix this problem, you could create a rule that replace&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso, Ltd&lt;/code&gt;&amp;nbsp;&lt;em&gt;before&lt;/em&gt;&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;or use regular expression to match both versions.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Having placeholders is great for translation purposes, but you want to return these to their original forms when generating the translation. This functionality &lt;span style="font-family:arial, helvetica, sans-serif;"&gt;is part of the next section,&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Target and Generate Files&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is the second batch task, which allows you to run modify text in the target and generate the target translations. The settings screen looks like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x449/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Save Folder&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you want to generate the target translations when this batch task is ran, click&amp;nbsp;Generate Target. You can also specify where the files will be saved. The default is the&amp;nbsp;Desktop.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png"&gt;&lt;img alt=" " src="/resized-image/__size/416x80/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="backup-folder"&gt;Backup Folder&lt;/h2&gt;
&lt;p&gt;Before generating target translations, you can save the sdlxliff files to a backup folder. Click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Make Backups&lt;/code&gt;&amp;nbsp;to make this happen. You can specify the folder to save them, and if not, by default a folder called&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Backups&lt;/code&gt;&amp;nbsp;is created in the project.&lt;/p&gt;
&lt;p&gt;Also, if you click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Preserve Placeholder Tags&lt;/code&gt;, the backups you make will&amp;nbsp;&lt;em&gt;overwrite&lt;/em&gt;&amp;nbsp;the original sdlxliff files in the project.&lt;/p&gt;
&lt;h3 id="preserve-placeholder-tags"&gt;Preserve Placeholder Tags&lt;/h3&gt;
&lt;p&gt;If you have been following along, under&amp;nbsp;&lt;a href="http://jessegood.github.io/translation/cleanuptool.html#placeholders"&gt;Placeholder&lt;/a&gt;&amp;nbsp;we converted some proper nouns into placeholders. The problem is that when you generate the target translation, if these placeholders appear in the target segment, they will remain as a tag, or even worse be ignored completely when generating the translation. In order to solve this problem, any placeholders created during&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;will be stored in the project file so that they can be returned to text when generating the translation.&lt;/p&gt;
&lt;p&gt;It is an automatic process, but when you run&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;, if a stored placeholder is found in the target segment, it will be converted back to plain text.&lt;/p&gt;
&lt;p&gt;This is all done by convention, so if the placeholder was&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;, it will be replaced with simply&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;. When using attributes, the placeholder will be replaced with the contents of the attribute, so&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Locked Name=&amp;quot;Contoso&amp;quot; /&amp;gt;&lt;/code&gt;&amp;nbsp;will be replaced with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Before&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/388x258/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/418x218/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="automating-the-process"&gt;Automating the Process&lt;/h3&gt;
&lt;p&gt;They key to any successful translation workflow is&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Automation&lt;/code&gt;, the more we can automate, the more we can focus on the important stuff. Now for this Batch Task Plug-in, you can create a custom sequence so that this is ran automatically during project creation. However, there is an important point that you need to be aware of when doing this:&lt;/p&gt;
&lt;p&gt;Segments are not generated until the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Pre-Translate Files&lt;/code&gt;&amp;nbsp;task is ran, so you need to make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;appears after that.&lt;/p&gt;
&lt;p&gt;This is somewhat limiting though, as&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;may affect matching. I will look into other options when I get a chance.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="reports"&gt;Reports&lt;/h3&gt;
&lt;p&gt;Also, note that the tool generates reports and log files of what it does!&lt;/p&gt;
&lt;p&gt;The report itself (shown below) does not give very much information, only a count of each item and a path to the log file. The log file itself though will contain a lot more detailed information about what happened, so if you need to find out why something changed, please look at the log file. (I considered adding all the info about what happened to the report here, but I found the size of the report gets too large quickly.)&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x119/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: I wanted to create links so you can just click on it to open the log file, but I haven&amp;rsquo;t figured it out. I asked a question on&amp;nbsp;&lt;a href="/products-solutions/solutions/customer_experience_cloud/language/language-developers/f/57/t/7246"&gt;sdl community&lt;/a&gt;&amp;nbsp;about it.&lt;/p&gt;
&lt;h1 id="updating-formatting-attributes-experimental-support"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Updating Formatting Attributes (Experimental Support)&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;There is current partial (read as &amp;ldquo;very limited&amp;rdquo;) support for updating formatting attributes.&lt;/p&gt;
&lt;p&gt;For example, with the following text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/452x53/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you create the following rule (note how I changed&amp;nbsp;&lt;code class="highlighter-rouge"&gt;yellow&lt;/code&gt;&amp;nbsp;to&amp;nbsp;&lt;code class="highlighter-rouge"&gt;blue&lt;/code&gt;):&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tagpair_2D00_attribute_2D00_update_2D00_settings.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/tagpair_2D00_attribute_2D00_update_2D00_settings.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can update the color of the highlight:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/444x58/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;However, there are a lot of issues with this feature that need to be worked on, so I advise&amp;nbsp;&lt;em&gt;against&lt;/em&gt;&amp;nbsp;using it except for experimentation. The biggest problem stems from the fact that you need to understand the underlying file type to update the formatting in the generated target file.&lt;/p&gt;
&lt;p&gt;For anyone interested, all source code is&amp;nbsp;&lt;a href="https://github.com/sdl/Sdl-Community/tree/master/CleanUpTasks"&gt;published here.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks/revision/23</link><pubDate>Sat, 11 Jan 2020 14:52:54 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Emanuel Albu</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Revision 23 posted to Wiki by Emanuel Albu on 1/11/2020 2:52:54 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Important:&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please note that in the unlikely scenario in which you&amp;#39;re in files view, click on project view, highlight another project than the current one and then click on&amp;nbsp;files view and start CleanUp Tasks, the batch task won&amp;#39;t work as expected; it will be applied on the files selected in the files view, but the tags loaded will be those in the highlighted project from the project view.&lt;span style="background-color:#ff0000;color:#000000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;color:#000000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;So before starting the CleanUp Tasks while in files view, make sure&amp;nbsp;that the CURRENT project&amp;nbsp;is also HIGHLIGHTED.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;Content mostly provided by Jesse Good in his original article on this plugin.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Source&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, I do not permit removing other types of tags other than the above. Let me know though if you have a use case for removing other types of tags.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Modifying text&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now to the main part of the plug-in. When you first start out, you will have an empty screen like below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, click on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;New&lt;/code&gt;&amp;nbsp;button to create a new &amp;ldquo;Conversion File&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The following window should pop up and it will appear blank at first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;+&amp;rdquo; mark in the top right corner as shown and a new row will be added to the grid like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, I would like to demonstrate a few use cases to show how to use the tool.&lt;/p&gt;
&lt;h4 id="use-case-converting-wide-characters-to-their-narrow-equivalent"&gt;Use Case: Converting wide characters to their narrow equivalent&lt;/h4&gt;
&lt;p&gt;In Japanese text, wide and narrow forms of characters are used:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wide&lt;/th&gt;
&lt;th&gt;Narrow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ＡＢＣＤ&lt;/td&gt;
&lt;td&gt;ABCD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;１２３４&lt;/td&gt;
&lt;td&gt;1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;カタカナ&lt;/td&gt;
&lt;td&gt;ｶﾀｶﾅ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One issue is that, depending on the client, they may use different forms in their documents. You may even find a mix of these forms in the same document. These mixed forms can also cause problems with your matching results, and your translation memories will be cluttered with them.&lt;/p&gt;
&lt;p&gt;One solution is to unify these forms before translation:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/823x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above screenshot I have created 3 rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wide to narrow: Alphabetic
&lt;ul&gt;
&lt;li&gt;Ensure all alphabetic characters are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wide to narrow: Numbers
&lt;ul&gt;
&lt;li&gt;Ensure all numbers are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Narrow to wide: Katakana
&lt;ul&gt;
&lt;li&gt;Ensure all Katakana characters are wide&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To create a rule, you enter your information in the input area shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Title&lt;/em&gt;: This field can be left blank, it just gives a description of the search item, and allows you to find an item easier in the grid view.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search&lt;/em&gt;: The text you want to search for. In the example I use a regular expression to search for a single wide alphabetic character, it probably would be more efficient to use&amp;nbsp;&lt;code class="highlighter-rouge"&gt;[Ａ-Ｚ]+&lt;/code&gt;&amp;nbsp;to search for groups of characters though.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search Settings&lt;/em&gt;: The search settings explained from left to right are:
&lt;ul&gt;
&lt;li&gt;Case Sensitive: Case sensitive searching&lt;/li&gt;
&lt;li&gt;Regex: Use regular expression matching&lt;/li&gt;
&lt;li&gt;Whole Word: Match whole words&lt;/li&gt;
&lt;li&gt;Tag Pair&lt;/li&gt;
&lt;li&gt;Embedded Tags&lt;/li&gt;
&lt;li&gt;StrConv&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Embeded Tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A common issue with translations, is handling embedded tags.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png"&gt;&lt;img alt=" " src="/resized-image/__size/772x61/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The cleanup tasks tool provides a way to convert these into &amp;ldquo;real&amp;rdquo; tags.&lt;/p&gt;
&lt;p&gt;You could use the following setting:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above setting will detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag in the example.&lt;/p&gt;
&lt;p&gt;When you run the task on the example, it will be converted as shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/769x64/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Note that in my example, I did not show a setting converting the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;span&amp;gt;&lt;/code&gt;&amp;nbsp;tag. This is important, as even though I only created a rule to detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag, the plug-in will convert&amp;nbsp;&lt;em&gt;all&lt;/em&gt;&amp;nbsp;tags it finds within the segment.&lt;/p&gt;
&lt;p&gt;Now, when you generate the target translations, any converted tags will be restored to their former form:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png"&gt;&lt;img alt=" " src="/resized-image/__size/887x76/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;StrConv&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;happens to be a handy&amp;nbsp;&lt;a title="method" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.strings.strconv?redirectedfrom=MSDN&amp;amp;view=netframework-4.7.2#Microsoft_VisualBasic_Strings_StrConv_System_String_Microsoft_VisualBasic_VbStrConv_System_Int32_"&gt;method&amp;nbsp;&lt;/a&gt;from Visual Basic. You can find it in a lot of Microsoft Products, such as&amp;nbsp;&lt;a href="https://msdn.microsoft.com/en-us/library/office/gg264628.aspx"&gt;Office VBA&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The handy part is shown in the following screenshot (courtesy MSDN).&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png"&gt;&lt;img alt=" " src="/resized-image/__size/875x512/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;All the options above are available under their same names in the tool: By selecting&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Narrow&lt;/code&gt;&amp;nbsp;in the tool, I can convert any wide character to its narrow equivalent.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png"&gt;&lt;img alt=" " src="/resized-image/__size/225x275/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you turn on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;option, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Replace&lt;/code&gt;&amp;nbsp;window becomes greyed out.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Storing conversion files for reuse&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;One problem I have found with current solutions, is there is little ability for reuse. For example,&amp;nbsp;&lt;a href="http://appstore.sdl.com/app/sdlxliff-toolkit/296/"&gt;SDLXLIFF Toolkit&lt;/a&gt;&amp;nbsp;is a great tool, but you have to retype each item you need to search for. With this tool, click&amp;nbsp;Save As&amp;nbsp;in the bottom right corner to save your settings file for later use:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png"&gt;&lt;img alt=" " src="/resized-image/__size/338x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you have saved your file, it will appear in the following list.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Order matters! Each file will be used for processing starting from top to bottom.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would recommend creating separate conversion files based on project, or divide them into categories.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Tag Pair&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I actually don&amp;rsquo;t know how useful this feature will be, but you can detect tag pairs in the source text and modify them.&lt;/p&gt;
&lt;p&gt;For example, in the following screenshot, I look for a&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf highlight=&amp;quot;yellow&amp;quot;&amp;gt;&lt;/code&gt;&amp;nbsp;tag and replace the contents with some random text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another example is taking a tag pair and replacing it with a placeholder instead:&lt;/p&gt;
&lt;p&gt;Say you had the following made up&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;inline&amp;gt;&lt;/code&gt;&amp;nbsp;tag pair in your XML file:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/305x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With the following rule (make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;placeholder&lt;/code&gt;&amp;nbsp;is turned ON!):&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg"&gt;&lt;img alt=" " src="/resized-image/__size/328x293/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can turn it into a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/342x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, placeholders have a much more useful application, which will be discussed next.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Placeholders&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The main use case for placeholders I see is marking proper nouns, such as product or company names that never change in a translation.&lt;/p&gt;
&lt;p&gt;For example, imagine a company named&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;as below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/344x186/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can mark these as placeholders with the following rule:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: You can create placeholders that do not use attributes, for example in the above, I could of made the rule&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;&amp;nbsp;instead. However, when using elements only, you have to make sure it is a valid XML name.&lt;/p&gt;
&lt;p&gt;This will take each instance of&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;and replace it with a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/314x221/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, when you do this, a few issues come up:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;You will notice it replaced&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;in the third example, but left the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;, Ltd&lt;/code&gt;. In other words, you have to be careful what you replace. To fix this problem, you could create a rule that replace&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso, Ltd&lt;/code&gt;&amp;nbsp;&lt;em&gt;before&lt;/em&gt;&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;or use regular expression to match both versions.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Having placeholders is great for translation purposes, but you want to return these to their original forms when generating the translation. This functionality &lt;span style="font-family:arial, helvetica, sans-serif;"&gt;is part of the next section,&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Target and Generate Files&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is the second batch task, which allows you to run modify text in the target and generate the target translations. The settings screen looks like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x449/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Save Folder&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you want to generate the target translations when this batch task is ran, click&amp;nbsp;Generate Target. You can also specify where the files will be saved. The default is the&amp;nbsp;Desktop.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png"&gt;&lt;img alt=" " src="/resized-image/__size/416x80/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="backup-folder"&gt;Backup Folder&lt;/h2&gt;
&lt;p&gt;Before generating target translations, you can save the sdlxliff files to a backup folder. Click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Make Backups&lt;/code&gt;&amp;nbsp;to make this happen. You can specify the folder to save them, and if not, by default a folder called&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Backups&lt;/code&gt;&amp;nbsp;is created in the project.&lt;/p&gt;
&lt;p&gt;Also, if you click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Preserve Placeholder Tags&lt;/code&gt;, the backups you make will&amp;nbsp;&lt;em&gt;overwrite&lt;/em&gt;&amp;nbsp;the original sdlxliff files in the project.&lt;/p&gt;
&lt;h3 id="preserve-placeholder-tags"&gt;Preserve Placeholder Tags&lt;/h3&gt;
&lt;p&gt;If you have been following along, under&amp;nbsp;&lt;a href="http://jessegood.github.io/translation/cleanuptool.html#placeholders"&gt;Placeholder&lt;/a&gt;&amp;nbsp;we converted some proper nouns into placeholders. The problem is that when you generate the target translation, if these placeholders appear in the target segment, they will remain as a tag, or even worse be ignored completely when generating the translation. In order to solve this problem, any placeholders created during&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;will be stored in the project file so that they can be returned to text when generating the translation.&lt;/p&gt;
&lt;p&gt;It is an automatic process, but when you run&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;, if a stored placeholder is found in the target segment, it will be converted back to plain text.&lt;/p&gt;
&lt;p&gt;This is all done by convention, so if the placeholder was&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;, it will be replaced with simply&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;. When using attributes, the placeholder will be replaced with the contents of the attribute, so&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Locked Name=&amp;quot;Contoso&amp;quot; /&amp;gt;&lt;/code&gt;&amp;nbsp;will be replaced with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Before&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/388x258/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/418x218/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="automating-the-process"&gt;Automating the Process&lt;/h3&gt;
&lt;p&gt;They key to any successful translation workflow is&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Automation&lt;/code&gt;, the more we can automate, the more we can focus on the important stuff. Now for this Batch Task Plug-in, you can create a custom sequence so that this is ran automatically during project creation. However, there is an important point that you need to be aware of when doing this:&lt;/p&gt;
&lt;p&gt;Segments are not generated until the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Pre-Translate Files&lt;/code&gt;&amp;nbsp;task is ran, so you need to make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;appears after that.&lt;/p&gt;
&lt;p&gt;This is somewhat limiting though, as&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;may affect matching. I will look into other options when I get a chance.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="reports"&gt;Reports&lt;/h3&gt;
&lt;p&gt;Also, note that the tool generates reports and log files of what it does!&lt;/p&gt;
&lt;p&gt;The report itself (shown below) does not give very much information, only a count of each item and a path to the log file. The log file itself though will contain a lot more detailed information about what happened, so if you need to find out why something changed, please look at the log file. (I considered adding all the info about what happened to the report here, but I found the size of the report gets too large quickly.)&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x119/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: I wanted to create links so you can just click on it to open the log file, but I haven&amp;rsquo;t figured it out. I asked a question on&amp;nbsp;&lt;a href="/products-solutions/solutions/customer_experience_cloud/language/language-developers/f/57/t/7246"&gt;sdl community&lt;/a&gt;&amp;nbsp;about it.&lt;/p&gt;
&lt;h1 id="updating-formatting-attributes-experimental-support"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Updating Formatting Attributes (Experimental Support)&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;There is current partial (read as &amp;ldquo;very limited&amp;rdquo;) support for updating formatting attributes.&lt;/p&gt;
&lt;p&gt;For example, with the following text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/452x53/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you create the following rule (note how I changed&amp;nbsp;&lt;code class="highlighter-rouge"&gt;yellow&lt;/code&gt;&amp;nbsp;to&amp;nbsp;&lt;code class="highlighter-rouge"&gt;blue&lt;/code&gt;):&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tagpair_2D00_attribute_2D00_update_2D00_settings.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/tagpair_2D00_attribute_2D00_update_2D00_settings.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can update the color of the highlight:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/444x58/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;However, there are a lot of issues with this feature that need to be worked on, so I advise&amp;nbsp;&lt;em&gt;against&lt;/em&gt;&amp;nbsp;using it except for experimentation. The biggest problem stems from the fact that you need to understand the underlying file type to update the formatting in the generated target file.&lt;/p&gt;
&lt;p&gt;For anyone interested, all source code is&amp;nbsp;&lt;a href="https://github.com/sdl/Sdl-Community/tree/master/CleanUpTasks"&gt;published here.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks/revision/22</link><pubDate>Sat, 11 Jan 2020 14:49:22 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Emanuel Albu</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Revision 22 posted to Wiki by Emanuel Albu on 1/11/2020 2:49:22 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Important:&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;color:#000000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;span style="background-color:#ffffff;"&gt;Please note that in the unlikely scenario in which you&amp;#39;re in files view, click on project view, highlight another project than the current one and then click on&amp;nbsp;files view and start CleanUp Tasks, the batch task won&amp;#39;t work as expected; it will be applied on the files selected in the files view, but the tags loaded will be those in the highlighted project from the project view.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;color:#000000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;span style="background-color:#ffffff;"&gt;So before starting the CleanUp Tasks while in files view, make sure&amp;nbsp;that the CURRENT project&amp;nbsp;is also HIGHLIGHTED.&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;Content mostly provided by Jesse Good in his original article on this plugin.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Source&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, I do not permit removing other types of tags other than the above. Let me know though if you have a use case for removing other types of tags.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Modifying text&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now to the main part of the plug-in. When you first start out, you will have an empty screen like below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, click on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;New&lt;/code&gt;&amp;nbsp;button to create a new &amp;ldquo;Conversion File&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The following window should pop up and it will appear blank at first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;+&amp;rdquo; mark in the top right corner as shown and a new row will be added to the grid like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, I would like to demonstrate a few use cases to show how to use the tool.&lt;/p&gt;
&lt;h4 id="use-case-converting-wide-characters-to-their-narrow-equivalent"&gt;Use Case: Converting wide characters to their narrow equivalent&lt;/h4&gt;
&lt;p&gt;In Japanese text, wide and narrow forms of characters are used:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wide&lt;/th&gt;
&lt;th&gt;Narrow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ＡＢＣＤ&lt;/td&gt;
&lt;td&gt;ABCD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;１２３４&lt;/td&gt;
&lt;td&gt;1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;カタカナ&lt;/td&gt;
&lt;td&gt;ｶﾀｶﾅ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One issue is that, depending on the client, they may use different forms in their documents. You may even find a mix of these forms in the same document. These mixed forms can also cause problems with your matching results, and your translation memories will be cluttered with them.&lt;/p&gt;
&lt;p&gt;One solution is to unify these forms before translation:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/823x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above screenshot I have created 3 rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wide to narrow: Alphabetic
&lt;ul&gt;
&lt;li&gt;Ensure all alphabetic characters are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wide to narrow: Numbers
&lt;ul&gt;
&lt;li&gt;Ensure all numbers are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Narrow to wide: Katakana
&lt;ul&gt;
&lt;li&gt;Ensure all Katakana characters are wide&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To create a rule, you enter your information in the input area shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Title&lt;/em&gt;: This field can be left blank, it just gives a description of the search item, and allows you to find an item easier in the grid view.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search&lt;/em&gt;: The text you want to search for. In the example I use a regular expression to search for a single wide alphabetic character, it probably would be more efficient to use&amp;nbsp;&lt;code class="highlighter-rouge"&gt;[Ａ-Ｚ]+&lt;/code&gt;&amp;nbsp;to search for groups of characters though.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search Settings&lt;/em&gt;: The search settings explained from left to right are:
&lt;ul&gt;
&lt;li&gt;Case Sensitive: Case sensitive searching&lt;/li&gt;
&lt;li&gt;Regex: Use regular expression matching&lt;/li&gt;
&lt;li&gt;Whole Word: Match whole words&lt;/li&gt;
&lt;li&gt;Tag Pair&lt;/li&gt;
&lt;li&gt;Embedded Tags&lt;/li&gt;
&lt;li&gt;StrConv&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Embeded Tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A common issue with translations, is handling embedded tags.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png"&gt;&lt;img alt=" " src="/resized-image/__size/772x61/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The cleanup tasks tool provides a way to convert these into &amp;ldquo;real&amp;rdquo; tags.&lt;/p&gt;
&lt;p&gt;You could use the following setting:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above setting will detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag in the example.&lt;/p&gt;
&lt;p&gt;When you run the task on the example, it will be converted as shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/769x64/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Note that in my example, I did not show a setting converting the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;span&amp;gt;&lt;/code&gt;&amp;nbsp;tag. This is important, as even though I only created a rule to detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag, the plug-in will convert&amp;nbsp;&lt;em&gt;all&lt;/em&gt;&amp;nbsp;tags it finds within the segment.&lt;/p&gt;
&lt;p&gt;Now, when you generate the target translations, any converted tags will be restored to their former form:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png"&gt;&lt;img alt=" " src="/resized-image/__size/887x76/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;StrConv&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;happens to be a handy&amp;nbsp;&lt;a title="method" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.strings.strconv?redirectedfrom=MSDN&amp;amp;view=netframework-4.7.2#Microsoft_VisualBasic_Strings_StrConv_System_String_Microsoft_VisualBasic_VbStrConv_System_Int32_"&gt;method&amp;nbsp;&lt;/a&gt;from Visual Basic. You can find it in a lot of Microsoft Products, such as&amp;nbsp;&lt;a href="https://msdn.microsoft.com/en-us/library/office/gg264628.aspx"&gt;Office VBA&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The handy part is shown in the following screenshot (courtesy MSDN).&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png"&gt;&lt;img alt=" " src="/resized-image/__size/875x512/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;All the options above are available under their same names in the tool: By selecting&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Narrow&lt;/code&gt;&amp;nbsp;in the tool, I can convert any wide character to its narrow equivalent.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png"&gt;&lt;img alt=" " src="/resized-image/__size/225x275/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you turn on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;option, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Replace&lt;/code&gt;&amp;nbsp;window becomes greyed out.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Storing conversion files for reuse&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;One problem I have found with current solutions, is there is little ability for reuse. For example,&amp;nbsp;&lt;a href="http://appstore.sdl.com/app/sdlxliff-toolkit/296/"&gt;SDLXLIFF Toolkit&lt;/a&gt;&amp;nbsp;is a great tool, but you have to retype each item you need to search for. With this tool, click&amp;nbsp;Save As&amp;nbsp;in the bottom right corner to save your settings file for later use:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png"&gt;&lt;img alt=" " src="/resized-image/__size/338x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you have saved your file, it will appear in the following list.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Order matters! Each file will be used for processing starting from top to bottom.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would recommend creating separate conversion files based on project, or divide them into categories.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Tag Pair&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I actually don&amp;rsquo;t know how useful this feature will be, but you can detect tag pairs in the source text and modify them.&lt;/p&gt;
&lt;p&gt;For example, in the following screenshot, I look for a&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf highlight=&amp;quot;yellow&amp;quot;&amp;gt;&lt;/code&gt;&amp;nbsp;tag and replace the contents with some random text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another example is taking a tag pair and replacing it with a placeholder instead:&lt;/p&gt;
&lt;p&gt;Say you had the following made up&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;inline&amp;gt;&lt;/code&gt;&amp;nbsp;tag pair in your XML file:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/305x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With the following rule (make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;placeholder&lt;/code&gt;&amp;nbsp;is turned ON!):&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg"&gt;&lt;img alt=" " src="/resized-image/__size/328x293/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can turn it into a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/342x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, placeholders have a much more useful application, which will be discussed next.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Placeholders&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The main use case for placeholders I see is marking proper nouns, such as product or company names that never change in a translation.&lt;/p&gt;
&lt;p&gt;For example, imagine a company named&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;as below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/344x186/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can mark these as placeholders with the following rule:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: You can create placeholders that do not use attributes, for example in the above, I could of made the rule&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;&amp;nbsp;instead. However, when using elements only, you have to make sure it is a valid XML name.&lt;/p&gt;
&lt;p&gt;This will take each instance of&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;and replace it with a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/314x221/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, when you do this, a few issues come up:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;You will notice it replaced&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;in the third example, but left the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;, Ltd&lt;/code&gt;. In other words, you have to be careful what you replace. To fix this problem, you could create a rule that replace&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso, Ltd&lt;/code&gt;&amp;nbsp;&lt;em&gt;before&lt;/em&gt;&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;or use regular expression to match both versions.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Having placeholders is great for translation purposes, but you want to return these to their original forms when generating the translation. This functionality &lt;span style="font-family:arial, helvetica, sans-serif;"&gt;is part of the next section,&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Target and Generate Files&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is the second batch task, which allows you to run modify text in the target and generate the target translations. The settings screen looks like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x449/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Save Folder&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you want to generate the target translations when this batch task is ran, click&amp;nbsp;Generate Target. You can also specify where the files will be saved. The default is the&amp;nbsp;Desktop.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png"&gt;&lt;img alt=" " src="/resized-image/__size/416x80/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="backup-folder"&gt;Backup Folder&lt;/h2&gt;
&lt;p&gt;Before generating target translations, you can save the sdlxliff files to a backup folder. Click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Make Backups&lt;/code&gt;&amp;nbsp;to make this happen. You can specify the folder to save them, and if not, by default a folder called&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Backups&lt;/code&gt;&amp;nbsp;is created in the project.&lt;/p&gt;
&lt;p&gt;Also, if you click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Preserve Placeholder Tags&lt;/code&gt;, the backups you make will&amp;nbsp;&lt;em&gt;overwrite&lt;/em&gt;&amp;nbsp;the original sdlxliff files in the project.&lt;/p&gt;
&lt;h3 id="preserve-placeholder-tags"&gt;Preserve Placeholder Tags&lt;/h3&gt;
&lt;p&gt;If you have been following along, under&amp;nbsp;&lt;a href="http://jessegood.github.io/translation/cleanuptool.html#placeholders"&gt;Placeholder&lt;/a&gt;&amp;nbsp;we converted some proper nouns into placeholders. The problem is that when you generate the target translation, if these placeholders appear in the target segment, they will remain as a tag, or even worse be ignored completely when generating the translation. In order to solve this problem, any placeholders created during&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;will be stored in the project file so that they can be returned to text when generating the translation.&lt;/p&gt;
&lt;p&gt;It is an automatic process, but when you run&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;, if a stored placeholder is found in the target segment, it will be converted back to plain text.&lt;/p&gt;
&lt;p&gt;This is all done by convention, so if the placeholder was&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;, it will be replaced with simply&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;. When using attributes, the placeholder will be replaced with the contents of the attribute, so&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Locked Name=&amp;quot;Contoso&amp;quot; /&amp;gt;&lt;/code&gt;&amp;nbsp;will be replaced with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Before&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/388x258/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/418x218/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="automating-the-process"&gt;Automating the Process&lt;/h3&gt;
&lt;p&gt;They key to any successful translation workflow is&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Automation&lt;/code&gt;, the more we can automate, the more we can focus on the important stuff. Now for this Batch Task Plug-in, you can create a custom sequence so that this is ran automatically during project creation. However, there is an important point that you need to be aware of when doing this:&lt;/p&gt;
&lt;p&gt;Segments are not generated until the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Pre-Translate Files&lt;/code&gt;&amp;nbsp;task is ran, so you need to make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;appears after that.&lt;/p&gt;
&lt;p&gt;This is somewhat limiting though, as&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;may affect matching. I will look into other options when I get a chance.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="reports"&gt;Reports&lt;/h3&gt;
&lt;p&gt;Also, note that the tool generates reports and log files of what it does!&lt;/p&gt;
&lt;p&gt;The report itself (shown below) does not give very much information, only a count of each item and a path to the log file. The log file itself though will contain a lot more detailed information about what happened, so if you need to find out why something changed, please look at the log file. (I considered adding all the info about what happened to the report here, but I found the size of the report gets too large quickly.)&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x119/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: I wanted to create links so you can just click on it to open the log file, but I haven&amp;rsquo;t figured it out. I asked a question on&amp;nbsp;&lt;a href="/products-solutions/solutions/customer_experience_cloud/language/language-developers/f/57/t/7246"&gt;sdl community&lt;/a&gt;&amp;nbsp;about it.&lt;/p&gt;
&lt;h1 id="updating-formatting-attributes-experimental-support"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Updating Formatting Attributes (Experimental Support)&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;There is current partial (read as &amp;ldquo;very limited&amp;rdquo;) support for updating formatting attributes.&lt;/p&gt;
&lt;p&gt;For example, with the following text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/452x53/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you create the following rule (note how I changed&amp;nbsp;&lt;code class="highlighter-rouge"&gt;yellow&lt;/code&gt;&amp;nbsp;to&amp;nbsp;&lt;code class="highlighter-rouge"&gt;blue&lt;/code&gt;):&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tagpair_2D00_attribute_2D00_update_2D00_settings.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/tagpair_2D00_attribute_2D00_update_2D00_settings.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can update the color of the highlight:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/444x58/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;However, there are a lot of issues with this feature that need to be worked on, so I advise&amp;nbsp;&lt;em&gt;against&lt;/em&gt;&amp;nbsp;using it except for experimentation. The biggest problem stems from the fact that you need to understand the underlying file type to update the formatting in the generated target file.&lt;/p&gt;
&lt;p&gt;For anyone interested, all source code is&amp;nbsp;&lt;a href="https://github.com/sdl/Sdl-Community/tree/master/CleanUpTasks"&gt;published here.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks/revision/21</link><pubDate>Sat, 11 Jan 2020 14:48:16 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Emanuel Albu</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Revision 21 posted to Wiki by Emanuel Albu on 1/11/2020 2:48:16 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Important:&lt;span style="background-color:#ffffff;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;span style="background-color:#ffffff;"&gt;Please note that in the unlikely scenario in which you&amp;#39;re in files view, click on project view, highlight another project than the current one and then click on&amp;nbsp;files view and start CleanUp Tasks, the batch task won&amp;#39;t work as expected; it will be applied on the files selected in the files view, but the tags loaded will be those in the highlighted project from the project view.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ff0000;font-size:inherit;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;span style="background-color:#ffffff;"&gt;So before starting the CleanUp Tasks while in files view, make sure&amp;nbsp;that the CURRENT project&amp;nbsp;is also HIGHLIGHTED.&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;Content mostly provided by Jesse Good in his original article on this plugin.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Source&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png"&gt;&lt;img alt=" " src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png"&gt;&lt;img alt=" " src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, I do not permit removing other types of tags other than the above. Let me know though if you have a use case for removing other types of tags.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Modifying text&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now to the main part of the plug-in. When you first start out, you will have an empty screen like below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, click on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;New&lt;/code&gt;&amp;nbsp;button to create a new &amp;ldquo;Conversion File&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The following window should pop up and it will appear blank at first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;+&amp;rdquo; mark in the top right corner as shown and a new row will be added to the grid like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png"&gt;&lt;img alt=" " src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, I would like to demonstrate a few use cases to show how to use the tool.&lt;/p&gt;
&lt;h4 id="use-case-converting-wide-characters-to-their-narrow-equivalent"&gt;Use Case: Converting wide characters to their narrow equivalent&lt;/h4&gt;
&lt;p&gt;In Japanese text, wide and narrow forms of characters are used:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wide&lt;/th&gt;
&lt;th&gt;Narrow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ＡＢＣＤ&lt;/td&gt;
&lt;td&gt;ABCD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;１２３４&lt;/td&gt;
&lt;td&gt;1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;カタカナ&lt;/td&gt;
&lt;td&gt;ｶﾀｶﾅ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One issue is that, depending on the client, they may use different forms in their documents. You may even find a mix of these forms in the same document. These mixed forms can also cause problems with your matching results, and your translation memories will be cluttered with them.&lt;/p&gt;
&lt;p&gt;One solution is to unify these forms before translation:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/823x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above screenshot I have created 3 rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wide to narrow: Alphabetic
&lt;ul&gt;
&lt;li&gt;Ensure all alphabetic characters are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wide to narrow: Numbers
&lt;ul&gt;
&lt;li&gt;Ensure all numbers are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Narrow to wide: Katakana
&lt;ul&gt;
&lt;li&gt;Ensure all Katakana characters are wide&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To create a rule, you enter your information in the input area shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Title&lt;/em&gt;: This field can be left blank, it just gives a description of the search item, and allows you to find an item easier in the grid view.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search&lt;/em&gt;: The text you want to search for. In the example I use a regular expression to search for a single wide alphabetic character, it probably would be more efficient to use&amp;nbsp;&lt;code class="highlighter-rouge"&gt;[Ａ-Ｚ]+&lt;/code&gt;&amp;nbsp;to search for groups of characters though.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search Settings&lt;/em&gt;: The search settings explained from left to right are:
&lt;ul&gt;
&lt;li&gt;Case Sensitive: Case sensitive searching&lt;/li&gt;
&lt;li&gt;Regex: Use regular expression matching&lt;/li&gt;
&lt;li&gt;Whole Word: Match whole words&lt;/li&gt;
&lt;li&gt;Tag Pair&lt;/li&gt;
&lt;li&gt;Embedded Tags&lt;/li&gt;
&lt;li&gt;StrConv&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Embeded Tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A common issue with translations, is handling embedded tags.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png"&gt;&lt;img alt=" " src="/resized-image/__size/772x61/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The cleanup tasks tool provides a way to convert these into &amp;ldquo;real&amp;rdquo; tags.&lt;/p&gt;
&lt;p&gt;You could use the following setting:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above setting will detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag in the example.&lt;/p&gt;
&lt;p&gt;When you run the task on the example, it will be converted as shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/769x64/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Note that in my example, I did not show a setting converting the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;span&amp;gt;&lt;/code&gt;&amp;nbsp;tag. This is important, as even though I only created a rule to detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag, the plug-in will convert&amp;nbsp;&lt;em&gt;all&lt;/em&gt;&amp;nbsp;tags it finds within the segment.&lt;/p&gt;
&lt;p&gt;Now, when you generate the target translations, any converted tags will be restored to their former form:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png"&gt;&lt;img alt=" " src="/resized-image/__size/887x76/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;StrConv&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;happens to be a handy&amp;nbsp;&lt;a title="method" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.strings.strconv?redirectedfrom=MSDN&amp;amp;view=netframework-4.7.2#Microsoft_VisualBasic_Strings_StrConv_System_String_Microsoft_VisualBasic_VbStrConv_System_Int32_"&gt;method&amp;nbsp;&lt;/a&gt;from Visual Basic. You can find it in a lot of Microsoft Products, such as&amp;nbsp;&lt;a href="https://msdn.microsoft.com/en-us/library/office/gg264628.aspx"&gt;Office VBA&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The handy part is shown in the following screenshot (courtesy MSDN).&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png"&gt;&lt;img alt=" " src="/resized-image/__size/875x512/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;All the options above are available under their same names in the tool: By selecting&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Narrow&lt;/code&gt;&amp;nbsp;in the tool, I can convert any wide character to its narrow equivalent.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png"&gt;&lt;img alt=" " src="/resized-image/__size/225x275/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you turn on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;option, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Replace&lt;/code&gt;&amp;nbsp;window becomes greyed out.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Storing conversion files for reuse&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;One problem I have found with current solutions, is there is little ability for reuse. For example,&amp;nbsp;&lt;a href="http://appstore.sdl.com/app/sdlxliff-toolkit/296/"&gt;SDLXLIFF Toolkit&lt;/a&gt;&amp;nbsp;is a great tool, but you have to retype each item you need to search for. With this tool, click&amp;nbsp;Save As&amp;nbsp;in the bottom right corner to save your settings file for later use:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png"&gt;&lt;img alt=" " src="/resized-image/__size/338x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you have saved your file, it will appear in the following list.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Order matters! Each file will be used for processing starting from top to bottom.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would recommend creating separate conversion files based on project, or divide them into categories.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Tag Pair&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I actually don&amp;rsquo;t know how useful this feature will be, but you can detect tag pairs in the source text and modify them.&lt;/p&gt;
&lt;p&gt;For example, in the following screenshot, I look for a&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf highlight=&amp;quot;yellow&amp;quot;&amp;gt;&lt;/code&gt;&amp;nbsp;tag and replace the contents with some random text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another example is taking a tag pair and replacing it with a placeholder instead:&lt;/p&gt;
&lt;p&gt;Say you had the following made up&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;inline&amp;gt;&lt;/code&gt;&amp;nbsp;tag pair in your XML file:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png"&gt;&lt;img alt=" " src="/resized-image/__size/305x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With the following rule (make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;placeholder&lt;/code&gt;&amp;nbsp;is turned ON!):&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg"&gt;&lt;img alt=" " src="/resized-image/__size/328x293/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can turn it into a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png"&gt;&lt;img alt=" " src="/resized-image/__size/342x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, placeholders have a much more useful application, which will be discussed next.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Placeholders&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The main use case for placeholders I see is marking proper nouns, such as product or company names that never change in a translation.&lt;/p&gt;
&lt;p&gt;For example, imagine a company named&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;as below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/344x186/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can mark these as placeholders with the following rule:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: You can create placeholders that do not use attributes, for example in the above, I could of made the rule&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;&amp;nbsp;instead. However, when using elements only, you have to make sure it is a valid XML name.&lt;/p&gt;
&lt;p&gt;This will take each instance of&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;and replace it with a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/314x221/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, when you do this, a few issues come up:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;You will notice it replaced&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;in the third example, but left the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;, Ltd&lt;/code&gt;. In other words, you have to be careful what you replace. To fix this problem, you could create a rule that replace&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso, Ltd&lt;/code&gt;&amp;nbsp;&lt;em&gt;before&lt;/em&gt;&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;or use regular expression to match both versions.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Having placeholders is great for translation purposes, but you want to return these to their original forms when generating the translation. This functionality &lt;span style="font-family:arial, helvetica, sans-serif;"&gt;is part of the next section,&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Target and Generate Files&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is the second batch task, which allows you to run modify text in the target and generate the target translations. The settings screen looks like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png"&gt;&lt;img alt=" " src="/resized-image/__size/496x449/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Save Folder&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you want to generate the target translations when this batch task is ran, click&amp;nbsp;Generate Target. You can also specify where the files will be saved. The default is the&amp;nbsp;Desktop.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png"&gt;&lt;img alt=" " src="/resized-image/__size/416x80/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="backup-folder"&gt;Backup Folder&lt;/h2&gt;
&lt;p&gt;Before generating target translations, you can save the sdlxliff files to a backup folder. Click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Make Backups&lt;/code&gt;&amp;nbsp;to make this happen. You can specify the folder to save them, and if not, by default a folder called&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Backups&lt;/code&gt;&amp;nbsp;is created in the project.&lt;/p&gt;
&lt;p&gt;Also, if you click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Preserve Placeholder Tags&lt;/code&gt;, the backups you make will&amp;nbsp;&lt;em&gt;overwrite&lt;/em&gt;&amp;nbsp;the original sdlxliff files in the project.&lt;/p&gt;
&lt;h3 id="preserve-placeholder-tags"&gt;Preserve Placeholder Tags&lt;/h3&gt;
&lt;p&gt;If you have been following along, under&amp;nbsp;&lt;a href="http://jessegood.github.io/translation/cleanuptool.html#placeholders"&gt;Placeholder&lt;/a&gt;&amp;nbsp;we converted some proper nouns into placeholders. The problem is that when you generate the target translation, if these placeholders appear in the target segment, they will remain as a tag, or even worse be ignored completely when generating the translation. In order to solve this problem, any placeholders created during&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;will be stored in the project file so that they can be returned to text when generating the translation.&lt;/p&gt;
&lt;p&gt;It is an automatic process, but when you run&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;, if a stored placeholder is found in the target segment, it will be converted back to plain text.&lt;/p&gt;
&lt;p&gt;This is all done by convention, so if the placeholder was&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;, it will be replaced with simply&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;. When using attributes, the placeholder will be replaced with the contents of the attribute, so&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Locked Name=&amp;quot;Contoso&amp;quot; /&amp;gt;&lt;/code&gt;&amp;nbsp;will be replaced with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Before&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/388x258/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/418x218/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="automating-the-process"&gt;Automating the Process&lt;/h3&gt;
&lt;p&gt;They key to any successful translation workflow is&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Automation&lt;/code&gt;, the more we can automate, the more we can focus on the important stuff. Now for this Batch Task Plug-in, you can create a custom sequence so that this is ran automatically during project creation. However, there is an important point that you need to be aware of when doing this:&lt;/p&gt;
&lt;p&gt;Segments are not generated until the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Pre-Translate Files&lt;/code&gt;&amp;nbsp;task is ran, so you need to make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;appears after that.&lt;/p&gt;
&lt;p&gt;This is somewhat limiting though, as&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;may affect matching. I will look into other options when I get a chance.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png"&gt;&lt;img alt=" " src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="reports"&gt;Reports&lt;/h3&gt;
&lt;p&gt;Also, note that the tool generates reports and log files of what it does!&lt;/p&gt;
&lt;p&gt;The report itself (shown below) does not give very much information, only a count of each item and a path to the log file. The log file itself though will contain a lot more detailed information about what happened, so if you need to find out why something changed, please look at the log file. (I considered adding all the info about what happened to the report here, but I found the size of the report gets too large quickly.)&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png"&gt;&lt;img alt=" " src="/resized-image/__size/940x119/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: I wanted to create links so you can just click on it to open the log file, but I haven&amp;rsquo;t figured it out. I asked a question on&amp;nbsp;&lt;a href="/products-solutions/solutions/customer_experience_cloud/language/language-developers/f/57/t/7246"&gt;sdl community&lt;/a&gt;&amp;nbsp;about it.&lt;/p&gt;
&lt;h1 id="updating-formatting-attributes-experimental-support"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Updating Formatting Attributes (Experimental Support)&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;There is current partial (read as &amp;ldquo;very limited&amp;rdquo;) support for updating formatting attributes.&lt;/p&gt;
&lt;p&gt;For example, with the following text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_before.png"&gt;&lt;img alt=" " src="/resized-image/__size/452x53/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_before.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you create the following rule (note how I changed&amp;nbsp;&lt;code class="highlighter-rouge"&gt;yellow&lt;/code&gt;&amp;nbsp;to&amp;nbsp;&lt;code class="highlighter-rouge"&gt;blue&lt;/code&gt;):&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tagpair_2D00_attribute_2D00_update_2D00_settings.png"&gt;&lt;img alt=" " src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/tagpair_2D00_attribute_2D00_update_2D00_settings.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can update the color of the highlight:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_after.png"&gt;&lt;img alt=" " src="/resized-image/__size/444x58/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_after.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;However, there are a lot of issues with this feature that need to be worked on, so I advise&amp;nbsp;&lt;em&gt;against&lt;/em&gt;&amp;nbsp;using it except for experimentation. The biggest problem stems from the fact that you need to understand the underlying file type to update the formatting in the generated target file.&lt;/p&gt;
&lt;p&gt;For anyone interested, all source code is&amp;nbsp;&lt;a href="https://github.com/sdl/Sdl-Community/tree/master/CleanUpTasks"&gt;published here.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks/revision/20</link><pubDate>Tue, 19 Feb 2019 21:13:17 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Paul Filkin</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Revision 20 posted to Wiki by Paul Filkin on 2/19/2019 9:13:17 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;&lt;strong&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:inherit;"&gt;Content mostly provided by Jesse Good in his original article on this plugin.&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;font-family:arial, helvetica, sans-serif;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Source&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png"&gt;&lt;img src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png"&gt;&lt;img src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png"&gt;&lt;img src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png" alt=" " /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, I do not permit removing other types of tags other than the above. Let me know though if you have a use case for removing other types of tags.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Modifying text&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now to the main part of the plug-in. When you first start out, you will have an empty screen like below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png"&gt;&lt;img src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, click on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;New&lt;/code&gt;&amp;nbsp;button to create a new &amp;ldquo;Conversion File&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The following window should pop up and it will appear blank at first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png"&gt;&lt;img src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;+&amp;rdquo; mark in the top right corner as shown and a new row will be added to the grid like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png"&gt;&lt;img src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, I would like to demonstrate a few use cases to show how to use the tool.&lt;/p&gt;
&lt;h4 id="use-case-converting-wide-characters-to-their-narrow-equivalent"&gt;Use Case: Converting wide characters to their narrow equivalent&lt;/h4&gt;
&lt;p&gt;In Japanese text, wide and narrow forms of characters are used:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wide&lt;/th&gt;
&lt;th&gt;Narrow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ＡＢＣＤ&lt;/td&gt;
&lt;td&gt;ABCD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;１２３４&lt;/td&gt;
&lt;td&gt;1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;カタカナ&lt;/td&gt;
&lt;td&gt;ｶﾀｶﾅ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One issue is that, depending on the client, they may use different forms in their documents. You may even find a mix of these forms in the same document. These mixed forms can also cause problems with your matching results, and your translation memories will be cluttered with them.&lt;/p&gt;
&lt;p&gt;One solution is to unify these forms before translation:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png"&gt;&lt;img src="/resized-image/__size/823x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above screenshot I have created 3 rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wide to narrow: Alphabetic
&lt;ul&gt;
&lt;li&gt;Ensure all alphabetic characters are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wide to narrow: Numbers
&lt;ul&gt;
&lt;li&gt;Ensure all numbers are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Narrow to wide: Katakana
&lt;ul&gt;
&lt;li&gt;Ensure all Katakana characters are wide&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To create a rule, you enter your information in the input area shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png"&gt;&lt;img src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Title&lt;/em&gt;: This field can be left blank, it just gives a description of the search item, and allows you to find an item easier in the grid view.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search&lt;/em&gt;: The text you want to search for. In the example I use a regular expression to search for a single wide alphabetic character, it probably would be more efficient to use&amp;nbsp;&lt;code class="highlighter-rouge"&gt;[Ａ-Ｚ]+&lt;/code&gt;&amp;nbsp;to search for groups of characters though.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search Settings&lt;/em&gt;: The search settings explained from left to right are:
&lt;ul&gt;
&lt;li&gt;Case Sensitive: Case sensitive searching&lt;/li&gt;
&lt;li&gt;Regex: Use regular expression matching&lt;/li&gt;
&lt;li&gt;Whole Word: Match whole words&lt;/li&gt;
&lt;li&gt;Tag Pair&lt;/li&gt;
&lt;li&gt;Embedded Tags&lt;/li&gt;
&lt;li&gt;StrConv&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Embeded Tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A common issue with translations, is handling embedded tags.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png"&gt;&lt;img src="/resized-image/__size/772x61/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The cleanup tasks tool provides a way to convert these into &amp;ldquo;real&amp;rdquo; tags.&lt;/p&gt;
&lt;p&gt;You could use the following setting:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png"&gt;&lt;img src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above setting will detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag in the example.&lt;/p&gt;
&lt;p&gt;When you run the task on the example, it will be converted as shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png"&gt;&lt;img src="/resized-image/__size/769x64/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Note that in my example, I did not show a setting converting the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;span&amp;gt;&lt;/code&gt;&amp;nbsp;tag. This is important, as even though I only created a rule to detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag, the plug-in will convert&amp;nbsp;&lt;em&gt;all&lt;/em&gt;&amp;nbsp;tags it finds within the segment.&lt;/p&gt;
&lt;p&gt;Now, when you generate the target translations, any converted tags will be restored to their former form:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png"&gt;&lt;img src="/resized-image/__size/887x76/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;StrConv&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;happens to be a handy&amp;nbsp;&lt;a title="method" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.strings.strconv?redirectedfrom=MSDN&amp;amp;view=netframework-4.7.2#Microsoft_VisualBasic_Strings_StrConv_System_String_Microsoft_VisualBasic_VbStrConv_System_Int32_"&gt;method&amp;nbsp;&lt;/a&gt;from Visual Basic. You can find it in a lot of Microsoft Products, such as&amp;nbsp;&lt;a href="https://msdn.microsoft.com/en-us/library/office/gg264628.aspx"&gt;Office VBA&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The handy part is shown in the following screenshot (courtesy MSDN).&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png"&gt;&lt;img src="/resized-image/__size/875x512/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;All the options above are available under their same names in the tool: By selecting&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Narrow&lt;/code&gt;&amp;nbsp;in the tool, I can convert any wide character to its narrow equivalent.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png"&gt;&lt;img src="/resized-image/__size/225x275/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you turn on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;option, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Replace&lt;/code&gt;&amp;nbsp;window becomes greyed out.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Storing conversion files for reuse&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;One problem I have found with current solutions, is there is little ability for reuse. For example,&amp;nbsp;&lt;a href="http://appstore.sdl.com/app/sdlxliff-toolkit/296/"&gt;SDLXLIFF Toolkit&lt;/a&gt;&amp;nbsp;is a great tool, but you have to retype each item you need to search for. With this tool, click&amp;nbsp;Save As&amp;nbsp;in the bottom right corner to save your settings file for later use:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png"&gt;&lt;img src="/resized-image/__size/338x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you have saved your file, it will appear in the following list.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Order matters! Each file will be used for processing starting from top to bottom.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png"&gt;&lt;img src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would recommend creating separate conversion files based on project, or divide them into categories.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Tag Pair&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I actually don&amp;rsquo;t know how useful this feature will be, but you can detect tag pairs in the source text and modify them.&lt;/p&gt;
&lt;p&gt;For example, in the following screenshot, I look for a&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf highlight=&amp;quot;yellow&amp;quot;&amp;gt;&lt;/code&gt;&amp;nbsp;tag and replace the contents with some random text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png"&gt;&lt;img src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another example is taking a tag pair and replacing it with a placeholder instead:&lt;/p&gt;
&lt;p&gt;Say you had the following made up&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;inline&amp;gt;&lt;/code&gt;&amp;nbsp;tag pair in your XML file:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png"&gt;&lt;img src="/resized-image/__size/305x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With the following rule (make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;placeholder&lt;/code&gt;&amp;nbsp;is turned ON!):&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg"&gt;&lt;img src="/resized-image/__size/328x293/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can turn it into a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png"&gt;&lt;img src="/resized-image/__size/342x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, placeholders have a much more useful application, which will be discussed next.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Placeholders&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The main use case for placeholders I see is marking proper nouns, such as product or company names that never change in a translation.&lt;/p&gt;
&lt;p&gt;For example, imagine a company named&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;as below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png"&gt;&lt;img src="/resized-image/__size/344x186/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can mark these as placeholders with the following rule:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png"&gt;&lt;img src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: You can create placeholders that do not use attributes, for example in the above, I could of made the rule&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;&amp;nbsp;instead. However, when using elements only, you have to make sure it is a valid XML name.&lt;/p&gt;
&lt;p&gt;This will take each instance of&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;and replace it with a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png"&gt;&lt;img src="/resized-image/__size/314x221/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, when you do this, a few issues come up:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;You will notice it replaced&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;in the third example, but left the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;, Ltd&lt;/code&gt;. In other words, you have to be careful what you replace. To fix this problem, you could create a rule that replace&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso, Ltd&lt;/code&gt;&amp;nbsp;&lt;em&gt;before&lt;/em&gt;&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;or use regular expression to match both versions.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Having placeholders is great for translation purposes, but you want to return these to their original forms when generating the translation. This functionality &lt;span style="font-family:arial, helvetica, sans-serif;"&gt;is part of the next section,&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Target and Generate Files&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is the second batch task, which allows you to run modify text in the target and generate the target translations. The settings screen looks like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png"&gt;&lt;img src="/resized-image/__size/496x449/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Save Folder&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you want to generate the target translations when this batch task is ran, click&amp;nbsp;Generate Target. You can also specify where the files will be saved. The default is the&amp;nbsp;Desktop.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png"&gt;&lt;img src="/resized-image/__size/416x80/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="backup-folder"&gt;Backup Folder&lt;/h2&gt;
&lt;p&gt;Before generating target translations, you can save the sdlxliff files to a backup folder. Click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Make Backups&lt;/code&gt;&amp;nbsp;to make this happen. You can specify the folder to save them, and if not, by default a folder called&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Backups&lt;/code&gt;&amp;nbsp;is created in the project.&lt;/p&gt;
&lt;p&gt;Also, if you click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Preserve Placeholder Tags&lt;/code&gt;, the backups you make will&amp;nbsp;&lt;em&gt;overwrite&lt;/em&gt;&amp;nbsp;the original sdlxliff files in the project.&lt;/p&gt;
&lt;h3 id="preserve-placeholder-tags"&gt;Preserve Placeholder Tags&lt;/h3&gt;
&lt;p&gt;If you have been following along, under&amp;nbsp;&lt;a href="http://jessegood.github.io/translation/cleanuptool.html#placeholders"&gt;Placeholder&lt;/a&gt;&amp;nbsp;we converted some proper nouns into placeholders. The problem is that when you generate the target translation, if these placeholders appear in the target segment, they will remain as a tag, or even worse be ignored completely when generating the translation. In order to solve this problem, any placeholders created during&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;will be stored in the project file so that they can be returned to text when generating the translation.&lt;/p&gt;
&lt;p&gt;It is an automatic process, but when you run&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;, if a stored placeholder is found in the target segment, it will be converted back to plain text.&lt;/p&gt;
&lt;p&gt;This is all done by convention, so if the placeholder was&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;, it will be replaced with simply&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;. When using attributes, the placeholder will be replaced with the contents of the attribute, so&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Locked Name=&amp;quot;Contoso&amp;quot; /&amp;gt;&lt;/code&gt;&amp;nbsp;will be replaced with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Before&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png"&gt;&lt;img src="/resized-image/__size/388x258/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png"&gt;&lt;img src="/resized-image/__size/418x218/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="automating-the-process"&gt;Automating the Process&lt;/h3&gt;
&lt;p&gt;They key to any successful translation workflow is&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Automation&lt;/code&gt;, the more we can automate, the more we can focus on the important stuff. Now for this Batch Task Plug-in, you can create a custom sequence so that this is ran automatically during project creation. However, there is an important point that you need to be aware of when doing this:&lt;/p&gt;
&lt;p&gt;Segments are not generated until the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Pre-Translate Files&lt;/code&gt;&amp;nbsp;task is ran, so you need to make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;appears after that.&lt;/p&gt;
&lt;p&gt;This is somewhat limiting though, as&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;may affect matching. I will look into other options when I get a chance.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png"&gt;&lt;img src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="reports"&gt;Reports&lt;/h3&gt;
&lt;p&gt;Also, note that the tool generates reports and log files of what it does!&lt;/p&gt;
&lt;p&gt;The report itself (shown below) does not give very much information, only a count of each item and a path to the log file. The log file itself though will contain a lot more detailed information about what happened, so if you need to find out why something changed, please look at the log file. (I considered adding all the info about what happened to the report here, but I found the size of the report gets too large quickly.)&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png"&gt;&lt;img src="/resized-image/__size/940x119/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: I wanted to create links so you can just click on it to open the log file, but I haven&amp;rsquo;t figured it out. I asked a question on&amp;nbsp;&lt;a href="/products-solutions/solutions/customer_experience_cloud/language/language-developers/f/57/t/7246"&gt;sdl community&lt;/a&gt;&amp;nbsp;about it.&lt;/p&gt;
&lt;h1 id="updating-formatting-attributes-experimental-support"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Updating Formatting Attributes (Experimental Support)&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;There is current partial (read as &amp;ldquo;very limited&amp;rdquo;) support for updating formatting attributes.&lt;/p&gt;
&lt;p&gt;For example, with the following text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_before.png"&gt;&lt;img src="/resized-image/__size/452x53/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_before.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you create the following rule (note how I changed&amp;nbsp;&lt;code class="highlighter-rouge"&gt;yellow&lt;/code&gt;&amp;nbsp;to&amp;nbsp;&lt;code class="highlighter-rouge"&gt;blue&lt;/code&gt;):&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tagpair_2D00_attribute_2D00_update_2D00_settings.png"&gt;&lt;img src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/tagpair_2D00_attribute_2D00_update_2D00_settings.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can update the color of the highlight:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_after.png"&gt;&lt;img src="/resized-image/__size/444x58/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_after.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;However, there are a lot of issues with this feature that need to be worked on, so I advise&amp;nbsp;&lt;em&gt;against&lt;/em&gt;&amp;nbsp;using it except for experimentation. The biggest problem stems from the fact that you need to understand the underlying file type to update the formatting in the generated target file.&lt;/p&gt;
&lt;p&gt;For anyone interested, all source code is&amp;nbsp;&lt;a href="https://github.com/sdl/Sdl-Community/tree/master/CleanUpTasks"&gt;published here.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks/revision/19</link><pubDate>Fri, 08 Feb 2019 13:06:08 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Andrea-Melinda Ghisa</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Revision 19 posted to Wiki by Andrea-Melinda Ghisa on 2/8/2019 1:06:08 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;font-family:arial, helvetica, sans-serif;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Source&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png"&gt;&lt;img src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png"&gt;&lt;img src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png"&gt;&lt;img src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png" alt=" " /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, I do not permit removing other types of tags other than the above. Let me know though if you have a use case for removing other types of tags.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Modifying text&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now to the main part of the plug-in. When you first start out, you will have an empty screen like below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png"&gt;&lt;img src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, click on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;New&lt;/code&gt;&amp;nbsp;button to create a new &amp;ldquo;Conversion File&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The following window should pop up and it will appear blank at first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png"&gt;&lt;img src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;+&amp;rdquo; mark in the top right corner as shown and a new row will be added to the grid like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png"&gt;&lt;img src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, I would like to demonstrate a few use cases to show how to use the tool.&lt;/p&gt;
&lt;h4 id="use-case-converting-wide-characters-to-their-narrow-equivalent"&gt;Use Case: Converting wide characters to their narrow equivalent&lt;/h4&gt;
&lt;p&gt;In Japanese text, wide and narrow forms of characters are used:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wide&lt;/th&gt;
&lt;th&gt;Narrow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ＡＢＣＤ&lt;/td&gt;
&lt;td&gt;ABCD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;１２３４&lt;/td&gt;
&lt;td&gt;1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;カタカナ&lt;/td&gt;
&lt;td&gt;ｶﾀｶﾅ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One issue is that, depending on the client, they may use different forms in their documents. You may even find a mix of these forms in the same document. These mixed forms can also cause problems with your matching results, and your translation memories will be cluttered with them.&lt;/p&gt;
&lt;p&gt;One solution is to unify these forms before translation:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png"&gt;&lt;img src="/resized-image/__size/823x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above screenshot I have created 3 rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wide to narrow: Alphabetic
&lt;ul&gt;
&lt;li&gt;Ensure all alphabetic characters are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wide to narrow: Numbers
&lt;ul&gt;
&lt;li&gt;Ensure all numbers are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Narrow to wide: Katakana
&lt;ul&gt;
&lt;li&gt;Ensure all Katakana characters are wide&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To create a rule, you enter your information in the input area shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png"&gt;&lt;img src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Title&lt;/em&gt;: This field can be left blank, it just gives a description of the search item, and allows you to find an item easier in the grid view.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search&lt;/em&gt;: The text you want to search for. In the example I use a regular expression to search for a single wide alphabetic character, it probably would be more efficient to use&amp;nbsp;&lt;code class="highlighter-rouge"&gt;[Ａ-Ｚ]+&lt;/code&gt;&amp;nbsp;to search for groups of characters though.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search Settings&lt;/em&gt;: The search settings explained from left to right are:
&lt;ul&gt;
&lt;li&gt;Case Sensitive: Case sensitive searching&lt;/li&gt;
&lt;li&gt;Regex: Use regular expression matching&lt;/li&gt;
&lt;li&gt;Whole Word: Match whole words&lt;/li&gt;
&lt;li&gt;Tag Pair&lt;/li&gt;
&lt;li&gt;Embedded Tags&lt;/li&gt;
&lt;li&gt;StrConv&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Embeded Tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A common issue with translations, is handling embedded tags.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png"&gt;&lt;img src="/resized-image/__size/772x61/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The cleanup tasks tool provides a way to convert these into &amp;ldquo;real&amp;rdquo; tags.&lt;/p&gt;
&lt;p&gt;You could use the following setting:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png"&gt;&lt;img src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above setting will detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag in the example.&lt;/p&gt;
&lt;p&gt;When you run the task on the example, it will be converted as shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png"&gt;&lt;img src="/resized-image/__size/769x64/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Note that in my example, I did not show a setting converting the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;span&amp;gt;&lt;/code&gt;&amp;nbsp;tag. This is important, as even though I only created a rule to detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag, the plug-in will convert&amp;nbsp;&lt;em&gt;all&lt;/em&gt;&amp;nbsp;tags it finds within the segment.&lt;/p&gt;
&lt;p&gt;Now, when you generate the target translations, any converted tags will be restored to their former form:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png"&gt;&lt;img src="/resized-image/__size/887x76/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;StrConv&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;happens to be a handy&amp;nbsp;&lt;a title="method" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.strings.strconv?redirectedfrom=MSDN&amp;amp;view=netframework-4.7.2#Microsoft_VisualBasic_Strings_StrConv_System_String_Microsoft_VisualBasic_VbStrConv_System_Int32_"&gt;method&amp;nbsp;&lt;/a&gt;from Visual Basic. You can find it in a lot of Microsoft Products, such as&amp;nbsp;&lt;a href="https://msdn.microsoft.com/en-us/library/office/gg264628.aspx"&gt;Office VBA&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The handy part is shown in the following screenshot (courtesy MSDN).&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png"&gt;&lt;img src="/resized-image/__size/875x512/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;All the options above are available under their same names in the tool: By selecting&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Narrow&lt;/code&gt;&amp;nbsp;in the tool, I can convert any wide character to its narrow equivalent.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png"&gt;&lt;img src="/resized-image/__size/225x275/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you turn on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;option, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Replace&lt;/code&gt;&amp;nbsp;window becomes greyed out.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Storing conversion files for reuse&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;One problem I have found with current solutions, is there is little ability for reuse. For example,&amp;nbsp;&lt;a href="http://appstore.sdl.com/app/sdlxliff-toolkit/296/"&gt;SDLXLIFF Toolkit&lt;/a&gt;&amp;nbsp;is a great tool, but you have to retype each item you need to search for. With this tool, click&amp;nbsp;Save As&amp;nbsp;in the bottom right corner to save your settings file for later use:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png"&gt;&lt;img src="/resized-image/__size/338x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you have saved your file, it will appear in the following list.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Order matters! Each file will be used for processing starting from top to bottom.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png"&gt;&lt;img src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would recommend creating separate conversion files based on project, or divide them into categories.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Tag Pair&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I actually don&amp;rsquo;t know how useful this feature will be, but you can detect tag pairs in the source text and modify them.&lt;/p&gt;
&lt;p&gt;For example, in the following screenshot, I look for a&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf highlight=&amp;quot;yellow&amp;quot;&amp;gt;&lt;/code&gt;&amp;nbsp;tag and replace the contents with some random text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png"&gt;&lt;img src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another example is taking a tag pair and replacing it with a placeholder instead:&lt;/p&gt;
&lt;p&gt;Say you had the following made up&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;inline&amp;gt;&lt;/code&gt;&amp;nbsp;tag pair in your XML file:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png"&gt;&lt;img src="/resized-image/__size/305x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With the following rule (make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;placeholder&lt;/code&gt;&amp;nbsp;is turned ON!):&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg"&gt;&lt;img src="/resized-image/__size/328x293/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can turn it into a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png"&gt;&lt;img src="/resized-image/__size/342x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, placeholders have a much more useful application, which will be discussed next.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Placeholders&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The main use case for placeholders I see is marking proper nouns, such as product or company names that never change in a translation.&lt;/p&gt;
&lt;p&gt;For example, imagine a company named&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;as below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png"&gt;&lt;img src="/resized-image/__size/344x186/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can mark these as placeholders with the following rule:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png"&gt;&lt;img src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: You can create placeholders that do not use attributes, for example in the above, I could of made the rule&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;&amp;nbsp;instead. However, when using elements only, you have to make sure it is a valid XML name.&lt;/p&gt;
&lt;p&gt;This will take each instance of&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;and replace it with a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png"&gt;&lt;img src="/resized-image/__size/314x221/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, when you do this, a few issues come up:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;You will notice it replaced&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;in the third example, but left the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;, Ltd&lt;/code&gt;. In other words, you have to be careful what you replace. To fix this problem, you could create a rule that replace&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso, Ltd&lt;/code&gt;&amp;nbsp;&lt;em&gt;before&lt;/em&gt;&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;or use regular expression to match both versions.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Having placeholders is great for translation purposes, but you want to return these to their original forms when generating the translation. This functionality &lt;span style="font-family:arial, helvetica, sans-serif;"&gt;is part of the next section,&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Target and Generate Files&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is the second batch task, which allows you to run modify text in the target and generate the target translations. The settings screen looks like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png"&gt;&lt;img src="/resized-image/__size/496x449/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Save Folder&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you want to generate the target translations when this batch task is ran, click&amp;nbsp;Generate Target. You can also specify where the files will be saved. The default is the&amp;nbsp;Desktop.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png"&gt;&lt;img src="/resized-image/__size/416x80/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="backup-folder"&gt;Backup Folder&lt;/h2&gt;
&lt;p&gt;Before generating target translations, you can save the sdlxliff files to a backup folder. Click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Make Backups&lt;/code&gt;&amp;nbsp;to make this happen. You can specify the folder to save them, and if not, by default a folder called&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Backups&lt;/code&gt;&amp;nbsp;is created in the project.&lt;/p&gt;
&lt;p&gt;Also, if you click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Preserve Placeholder Tags&lt;/code&gt;, the backups you make will&amp;nbsp;&lt;em&gt;overwrite&lt;/em&gt;&amp;nbsp;the original sdlxliff files in the project.&lt;/p&gt;
&lt;h3 id="preserve-placeholder-tags"&gt;Preserve Placeholder Tags&lt;/h3&gt;
&lt;p&gt;If you have been following along, under&amp;nbsp;&lt;a href="http://jessegood.github.io/translation/cleanuptool.html#placeholders"&gt;Placeholder&lt;/a&gt;&amp;nbsp;we converted some proper nouns into placeholders. The problem is that when you generate the target translation, if these placeholders appear in the target segment, they will remain as a tag, or even worse be ignored completely when generating the translation. In order to solve this problem, any placeholders created during&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;will be stored in the project file so that they can be returned to text when generating the translation.&lt;/p&gt;
&lt;p&gt;It is an automatic process, but when you run&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;, if a stored placeholder is found in the target segment, it will be converted back to plain text.&lt;/p&gt;
&lt;p&gt;This is all done by convention, so if the placeholder was&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;, it will be replaced with simply&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;. When using attributes, the placeholder will be replaced with the contents of the attribute, so&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Locked Name=&amp;quot;Contoso&amp;quot; /&amp;gt;&lt;/code&gt;&amp;nbsp;will be replaced with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Before&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png"&gt;&lt;img src="/resized-image/__size/388x258/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png"&gt;&lt;img src="/resized-image/__size/418x218/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="automating-the-process"&gt;Automating the Process&lt;/h3&gt;
&lt;p&gt;They key to any successful translation workflow is&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Automation&lt;/code&gt;, the more we can automate, the more we can focus on the important stuff. Now for this Batch Task Plug-in, you can create a custom sequence so that this is ran automatically during project creation. However, there is an important point that you need to be aware of when doing this:&lt;/p&gt;
&lt;p&gt;Segments are not generated until the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Pre-Translate Files&lt;/code&gt;&amp;nbsp;task is ran, so you need to make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;appears after that.&lt;/p&gt;
&lt;p&gt;This is somewhat limiting though, as&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;may affect matching. I will look into other options when I get a chance.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png"&gt;&lt;img src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="reports"&gt;Reports&lt;/h3&gt;
&lt;p&gt;Also, note that the tool generates reports and log files of what it does!&lt;/p&gt;
&lt;p&gt;The report itself (shown below) does not give very much information, only a count of each item and a path to the log file. The log file itself though will contain a lot more detailed information about what happened, so if you need to find out why something changed, please look at the log file. (I considered adding all the info about what happened to the report here, but I found the size of the report gets too large quickly.)&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png"&gt;&lt;img src="/resized-image/__size/940x119/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: I wanted to create links so you can just click on it to open the log file, but I haven&amp;rsquo;t figured it out. I asked a question on&amp;nbsp;&lt;a href="/products-solutions/solutions/customer_experience_cloud/language/language-developers/f/57/t/7246"&gt;sdl community&lt;/a&gt;&amp;nbsp;about it.&lt;/p&gt;
&lt;h1 id="updating-formatting-attributes-experimental-support"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Updating Formatting Attributes (Experimental Support)&lt;/span&gt;&lt;/h1&gt;
&lt;p&gt;There is current partial (read as &amp;ldquo;very limited&amp;rdquo;) support for updating formatting attributes.&lt;/p&gt;
&lt;p&gt;For example, with the following text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_before.png"&gt;&lt;img src="/resized-image/__size/452x53/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_before.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you create the following rule (note how I changed&amp;nbsp;&lt;code class="highlighter-rouge"&gt;yellow&lt;/code&gt;&amp;nbsp;to&amp;nbsp;&lt;code class="highlighter-rouge"&gt;blue&lt;/code&gt;):&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tagpair_2D00_attribute_2D00_update_2D00_settings.png"&gt;&lt;img src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/tagpair_2D00_attribute_2D00_update_2D00_settings.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can update the color of the highlight:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_after.png"&gt;&lt;img src="/resized-image/__size/444x58/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_after.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;However, there are a lot of issues with this feature that need to be worked on, so I advise&amp;nbsp;&lt;em&gt;against&lt;/em&gt;&amp;nbsp;using it except for experimentation. The biggest problem stems from the fact that you need to understand the underlying file type to update the formatting in the generated target file.&lt;/p&gt;
&lt;p&gt;For anyone interested, all source code is&amp;nbsp;&lt;a href="https://github.com/sdl/Sdl-Community/tree/master/CleanUpTasks"&gt;published here.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks/revision/18</link><pubDate>Fri, 08 Feb 2019 13:05:27 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Andrea-Melinda Ghisa</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Revision 18 posted to Wiki by Andrea-Melinda Ghisa on 2/8/2019 1:05:27 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;font-family:arial, helvetica, sans-serif;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Source&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png"&gt;&lt;img src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png"&gt;&lt;img src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png"&gt;&lt;img src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png" alt=" " /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, I do not permit removing other types of tags other than the above. Let me know though if you have a use case for removing other types of tags.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Modifying text&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now to the main part of the plug-in. When you first start out, you will have an empty screen like below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png"&gt;&lt;img src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, click on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;New&lt;/code&gt;&amp;nbsp;button to create a new &amp;ldquo;Conversion File&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The following window should pop up and it will appear blank at first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png"&gt;&lt;img src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;+&amp;rdquo; mark in the top right corner as shown and a new row will be added to the grid like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png"&gt;&lt;img src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, I would like to demonstrate a few use cases to show how to use the tool.&lt;/p&gt;
&lt;h4 id="use-case-converting-wide-characters-to-their-narrow-equivalent"&gt;Use Case: Converting wide characters to their narrow equivalent&lt;/h4&gt;
&lt;p&gt;In Japanese text, wide and narrow forms of characters are used:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wide&lt;/th&gt;
&lt;th&gt;Narrow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ＡＢＣＤ&lt;/td&gt;
&lt;td&gt;ABCD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;１２３４&lt;/td&gt;
&lt;td&gt;1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;カタカナ&lt;/td&gt;
&lt;td&gt;ｶﾀｶﾅ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One issue is that, depending on the client, they may use different forms in their documents. You may even find a mix of these forms in the same document. These mixed forms can also cause problems with your matching results, and your translation memories will be cluttered with them.&lt;/p&gt;
&lt;p&gt;One solution is to unify these forms before translation:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png"&gt;&lt;img src="/resized-image/__size/823x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above screenshot I have created 3 rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wide to narrow: Alphabetic
&lt;ul&gt;
&lt;li&gt;Ensure all alphabetic characters are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wide to narrow: Numbers
&lt;ul&gt;
&lt;li&gt;Ensure all numbers are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Narrow to wide: Katakana
&lt;ul&gt;
&lt;li&gt;Ensure all Katakana characters are wide&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To create a rule, you enter your information in the input area shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png"&gt;&lt;img src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Title&lt;/em&gt;: This field can be left blank, it just gives a description of the search item, and allows you to find an item easier in the grid view.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search&lt;/em&gt;: The text you want to search for. In the example I use a regular expression to search for a single wide alphabetic character, it probably would be more efficient to use&amp;nbsp;&lt;code class="highlighter-rouge"&gt;[Ａ-Ｚ]+&lt;/code&gt;&amp;nbsp;to search for groups of characters though.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search Settings&lt;/em&gt;: The search settings explained from left to right are:
&lt;ul&gt;
&lt;li&gt;Case Sensitive: Case sensitive searching&lt;/li&gt;
&lt;li&gt;Regex: Use regular expression matching&lt;/li&gt;
&lt;li&gt;Whole Word: Match whole words&lt;/li&gt;
&lt;li&gt;Tag Pair&lt;/li&gt;
&lt;li&gt;Embedded Tags&lt;/li&gt;
&lt;li&gt;StrConv&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Embeded Tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A common issue with translations, is handling embedded tags.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png"&gt;&lt;img src="/resized-image/__size/772x61/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The cleanup tasks tool provides a way to convert these into &amp;ldquo;real&amp;rdquo; tags.&lt;/p&gt;
&lt;p&gt;You could use the following setting:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png"&gt;&lt;img src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above setting will detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag in the example.&lt;/p&gt;
&lt;p&gt;When you run the task on the example, it will be converted as shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png"&gt;&lt;img src="/resized-image/__size/769x64/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Note that in my example, I did not show a setting converting the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;span&amp;gt;&lt;/code&gt;&amp;nbsp;tag. This is important, as even though I only created a rule to detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag, the plug-in will convert&amp;nbsp;&lt;em&gt;all&lt;/em&gt;&amp;nbsp;tags it finds within the segment.&lt;/p&gt;
&lt;p&gt;Now, when you generate the target translations, any converted tags will be restored to their former form:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png"&gt;&lt;img src="/resized-image/__size/887x76/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;StrConv&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;happens to be a handy&amp;nbsp;&lt;a title="method" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.strings.strconv?redirectedfrom=MSDN&amp;amp;view=netframework-4.7.2#Microsoft_VisualBasic_Strings_StrConv_System_String_Microsoft_VisualBasic_VbStrConv_System_Int32_"&gt;method&amp;nbsp;&lt;/a&gt;from Visual Basic. You can find it in a lot of Microsoft Products, such as&amp;nbsp;&lt;a href="https://msdn.microsoft.com/en-us/library/office/gg264628.aspx"&gt;Office VBA&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The handy part is shown in the following screenshot (courtesy MSDN).&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png"&gt;&lt;img src="/resized-image/__size/875x512/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;All the options above are available under their same names in the tool: By selecting&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Narrow&lt;/code&gt;&amp;nbsp;in the tool, I can convert any wide character to its narrow equivalent.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png"&gt;&lt;img src="/resized-image/__size/225x275/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you turn on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;option, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Replace&lt;/code&gt;&amp;nbsp;window becomes greyed out.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Storing conversion files for reuse&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;One problem I have found with current solutions, is there is little ability for reuse. For example,&amp;nbsp;&lt;a href="http://appstore.sdl.com/app/sdlxliff-toolkit/296/"&gt;SDLXLIFF Toolkit&lt;/a&gt;&amp;nbsp;is a great tool, but you have to retype each item you need to search for. With this tool, click&amp;nbsp;Save As&amp;nbsp;in the bottom right corner to save your settings file for later use:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png"&gt;&lt;img src="/resized-image/__size/338x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you have saved your file, it will appear in the following list.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Order matters! Each file will be used for processing starting from top to bottom.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png"&gt;&lt;img src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would recommend creating separate conversion files based on project, or divide them into categories.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Tag Pair&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I actually don&amp;rsquo;t know how useful this feature will be, but you can detect tag pairs in the source text and modify them.&lt;/p&gt;
&lt;p&gt;For example, in the following screenshot, I look for a&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf highlight=&amp;quot;yellow&amp;quot;&amp;gt;&lt;/code&gt;&amp;nbsp;tag and replace the contents with some random text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png"&gt;&lt;img src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another example is taking a tag pair and replacing it with a placeholder instead:&lt;/p&gt;
&lt;p&gt;Say you had the following made up&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;inline&amp;gt;&lt;/code&gt;&amp;nbsp;tag pair in your XML file:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png"&gt;&lt;img src="/resized-image/__size/305x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With the following rule (make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;placeholder&lt;/code&gt;&amp;nbsp;is turned ON!):&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg"&gt;&lt;img src="/resized-image/__size/328x293/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can turn it into a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png"&gt;&lt;img src="/resized-image/__size/342x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, placeholders have a much more useful application, which will be discussed next.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Placeholders&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The main use case for placeholders I see is marking proper nouns, such as product or company names that never change in a translation.&lt;/p&gt;
&lt;p&gt;For example, imagine a company named&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;as below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png"&gt;&lt;img src="/resized-image/__size/344x186/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can mark these as placeholders with the following rule:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png"&gt;&lt;img src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: You can create placeholders that do not use attributes, for example in the above, I could of made the rule&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;&amp;nbsp;instead. However, when using elements only, you have to make sure it is a valid XML name.&lt;/p&gt;
&lt;p&gt;This will take each instance of&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;and replace it with a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png"&gt;&lt;img src="/resized-image/__size/314x221/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, when you do this, a few issues come up:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;You will notice it replaced&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;in the third example, but left the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;, Ltd&lt;/code&gt;. In other words, you have to be careful what you replace. To fix this problem, you could create a rule that replace&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso, Ltd&lt;/code&gt;&amp;nbsp;&lt;em&gt;before&lt;/em&gt;&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;or use regular expression to match both versions.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Having placeholders is great for translation purposes, but you want to return these to their original forms when generating the translation. This functionality &lt;span style="font-family:arial, helvetica, sans-serif;"&gt;is part of the next section,&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Target and Generate Files&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is the second batch task, which allows you to run modify text in the target and generate the target translations. The settings screen looks like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png"&gt;&lt;img src="/resized-image/__size/496x449/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Save Folder&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you want to generate the target translations when this batch task is ran, click&amp;nbsp;Generate Target. You can also specify where the files will be saved. The default is the&amp;nbsp;Desktop.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png"&gt;&lt;img src="/resized-image/__size/416x80/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="backup-folder"&gt;Backup Folder&lt;/h2&gt;
&lt;p&gt;Before generating target translations, you can save the sdlxliff files to a backup folder. Click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Make Backups&lt;/code&gt;&amp;nbsp;to make this happen. You can specify the folder to save them, and if not, by default a folder called&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Backups&lt;/code&gt;&amp;nbsp;is created in the project.&lt;/p&gt;
&lt;p&gt;Also, if you click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Preserve Placeholder Tags&lt;/code&gt;, the backups you make will&amp;nbsp;&lt;em&gt;overwrite&lt;/em&gt;&amp;nbsp;the original sdlxliff files in the project.&lt;/p&gt;
&lt;h3 id="preserve-placeholder-tags"&gt;Preserve Placeholder Tags&lt;/h3&gt;
&lt;p&gt;If you have been following along, under&amp;nbsp;&lt;a href="http://jessegood.github.io/translation/cleanuptool.html#placeholders"&gt;Placeholder&lt;/a&gt;&amp;nbsp;we converted some proper nouns into placeholders. The problem is that when you generate the target translation, if these placeholders appear in the target segment, they will remain as a tag, or even worse be ignored completely when generating the translation. In order to solve this problem, any placeholders created during&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;will be stored in the project file so that they can be returned to text when generating the translation.&lt;/p&gt;
&lt;p&gt;It is an automatic process, but when you run&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;, if a stored placeholder is found in the target segment, it will be converted back to plain text.&lt;/p&gt;
&lt;p&gt;This is all done by convention, so if the placeholder was&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;, it will be replaced with simply&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;. When using attributes, the placeholder will be replaced with the contents of the attribute, so&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Locked Name=&amp;quot;Contoso&amp;quot; /&amp;gt;&lt;/code&gt;&amp;nbsp;will be replaced with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Before&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png"&gt;&lt;img src="/resized-image/__size/388x258/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png"&gt;&lt;img src="/resized-image/__size/418x218/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="automating-the-process"&gt;Automating the Process&lt;/h3&gt;
&lt;p&gt;They key to any successful translation workflow is&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Automation&lt;/code&gt;, the more we can automate, the more we can focus on the important stuff. Now for this Batch Task Plug-in, you can create a custom sequence so that this is ran automatically during project creation. However, there is an important point that you need to be aware of when doing this:&lt;/p&gt;
&lt;p&gt;Segments are not generated until the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Pre-Translate Files&lt;/code&gt;&amp;nbsp;task is ran, so you need to make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;appears after that.&lt;/p&gt;
&lt;p&gt;This is somewhat limiting though, as&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;may affect matching. I will look into other options when I get a chance.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png"&gt;&lt;img src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="reports"&gt;Reports&lt;/h3&gt;
&lt;p&gt;Also, note that the tool generates reports and log files of what it does!&lt;/p&gt;
&lt;p&gt;The report itself (shown below) does not give very much information, only a count of each item and a path to the log file. The log file itself though will contain a lot more detailed information about what happened, so if you need to find out why something changed, please look at the log file. (I considered adding all the info about what happened to the report here, but I found the size of the report gets too large quickly.)&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png"&gt;&lt;img src="/resized-image/__size/940x119/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: I wanted to create links so you can just click on it to open the log file, but I haven&amp;rsquo;t figured it out. I asked a question on&amp;nbsp;&lt;a href="/products-solutions/solutions/customer_experience_cloud/language/language-developers/f/57/t/7246"&gt;sdl community&lt;/a&gt;&amp;nbsp;about it.&lt;/p&gt;
&lt;h1 id="updating-formatting-attributes-experimental-support"&gt;Updating Formatting Attributes (Experimental Support)&lt;/h1&gt;
&lt;p&gt;There is current partial (read as &amp;ldquo;very limited&amp;rdquo;) support for updating formatting attributes.&lt;/p&gt;
&lt;p&gt;For example, with the following text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_before.png"&gt;&lt;img src="/resized-image/__size/452x53/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_before.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you create the following rule (note how I changed&amp;nbsp;&lt;code class="highlighter-rouge"&gt;yellow&lt;/code&gt;&amp;nbsp;to&amp;nbsp;&lt;code class="highlighter-rouge"&gt;blue&lt;/code&gt;):&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tagpair_2D00_attribute_2D00_update_2D00_settings.png"&gt;&lt;img src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/tagpair_2D00_attribute_2D00_update_2D00_settings.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can update the color of the highlight:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_after.png"&gt;&lt;img src="/resized-image/__size/444x58/__key/communityserver-wikis-components-files/00-00-00-02-17/highlight_2D00_change_2D00_after.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;However, there are a lot of issues with this feature that need to be worked on, so I advise&amp;nbsp;&lt;em&gt;against&lt;/em&gt;&amp;nbsp;using it except for experimentation. The biggest problem stems from the fact that you need to understand the underlying file type to update the formatting in the generated target file.&lt;/p&gt;
&lt;p&gt;For anyone interested, all source code is&amp;nbsp;&lt;a href="https://github.com/sdl/Sdl-Community/tree/master/CleanUpTasks"&gt;published here.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks/revision/17</link><pubDate>Fri, 08 Feb 2019 13:02:01 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Andrea-Melinda Ghisa</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Revision 17 posted to Wiki by Andrea-Melinda Ghisa on 2/8/2019 1:02:01 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;font-family:arial, helvetica, sans-serif;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Source&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png"&gt;&lt;img src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png"&gt;&lt;img src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png"&gt;&lt;img src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png" alt=" " /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, I do not permit removing other types of tags other than the above. Let me know though if you have a use case for removing other types of tags.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Modifying text&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now to the main part of the plug-in. When you first start out, you will have an empty screen like below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png"&gt;&lt;img src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, click on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;New&lt;/code&gt;&amp;nbsp;button to create a new &amp;ldquo;Conversion File&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The following window should pop up and it will appear blank at first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png"&gt;&lt;img src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;+&amp;rdquo; mark in the top right corner as shown and a new row will be added to the grid like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png"&gt;&lt;img src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, I would like to demonstrate a few use cases to show how to use the tool.&lt;/p&gt;
&lt;h4 id="use-case-converting-wide-characters-to-their-narrow-equivalent"&gt;Use Case: Converting wide characters to their narrow equivalent&lt;/h4&gt;
&lt;p&gt;In Japanese text, wide and narrow forms of characters are used:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wide&lt;/th&gt;
&lt;th&gt;Narrow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ＡＢＣＤ&lt;/td&gt;
&lt;td&gt;ABCD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;１２３４&lt;/td&gt;
&lt;td&gt;1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;カタカナ&lt;/td&gt;
&lt;td&gt;ｶﾀｶﾅ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One issue is that, depending on the client, they may use different forms in their documents. You may even find a mix of these forms in the same document. These mixed forms can also cause problems with your matching results, and your translation memories will be cluttered with them.&lt;/p&gt;
&lt;p&gt;One solution is to unify these forms before translation:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png"&gt;&lt;img src="/resized-image/__size/823x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above screenshot I have created 3 rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wide to narrow: Alphabetic
&lt;ul&gt;
&lt;li&gt;Ensure all alphabetic characters are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wide to narrow: Numbers
&lt;ul&gt;
&lt;li&gt;Ensure all numbers are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Narrow to wide: Katakana
&lt;ul&gt;
&lt;li&gt;Ensure all Katakana characters are wide&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To create a rule, you enter your information in the input area shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png"&gt;&lt;img src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Title&lt;/em&gt;: This field can be left blank, it just gives a description of the search item, and allows you to find an item easier in the grid view.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search&lt;/em&gt;: The text you want to search for. In the example I use a regular expression to search for a single wide alphabetic character, it probably would be more efficient to use&amp;nbsp;&lt;code class="highlighter-rouge"&gt;[Ａ-Ｚ]+&lt;/code&gt;&amp;nbsp;to search for groups of characters though.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search Settings&lt;/em&gt;: The search settings explained from left to right are:
&lt;ul&gt;
&lt;li&gt;Case Sensitive: Case sensitive searching&lt;/li&gt;
&lt;li&gt;Regex: Use regular expression matching&lt;/li&gt;
&lt;li&gt;Whole Word: Match whole words&lt;/li&gt;
&lt;li&gt;Tag Pair&lt;/li&gt;
&lt;li&gt;Embedded Tags&lt;/li&gt;
&lt;li&gt;StrConv&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Embeded Tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A common issue with translations, is handling embedded tags.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png"&gt;&lt;img src="/resized-image/__size/772x61/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The cleanup tasks tool provides a way to convert these into &amp;ldquo;real&amp;rdquo; tags.&lt;/p&gt;
&lt;p&gt;You could use the following setting:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png"&gt;&lt;img src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above setting will detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag in the example.&lt;/p&gt;
&lt;p&gt;When you run the task on the example, it will be converted as shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png"&gt;&lt;img src="/resized-image/__size/769x64/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Note that in my example, I did not show a setting converting the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;span&amp;gt;&lt;/code&gt;&amp;nbsp;tag. This is important, as even though I only created a rule to detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag, the plug-in will convert&amp;nbsp;&lt;em&gt;all&lt;/em&gt;&amp;nbsp;tags it finds within the segment.&lt;/p&gt;
&lt;p&gt;Now, when you generate the target translations, any converted tags will be restored to their former form:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png"&gt;&lt;img src="/resized-image/__size/887x76/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;StrConv&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;happens to be a handy&amp;nbsp;&lt;a title="method" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.strings.strconv?redirectedfrom=MSDN&amp;amp;view=netframework-4.7.2#Microsoft_VisualBasic_Strings_StrConv_System_String_Microsoft_VisualBasic_VbStrConv_System_Int32_"&gt;method&amp;nbsp;&lt;/a&gt;from Visual Basic. You can find it in a lot of Microsoft Products, such as&amp;nbsp;&lt;a href="https://msdn.microsoft.com/en-us/library/office/gg264628.aspx"&gt;Office VBA&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The handy part is shown in the following screenshot (courtesy MSDN).&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png"&gt;&lt;img src="/resized-image/__size/875x512/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;All the options above are available under their same names in the tool: By selecting&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Narrow&lt;/code&gt;&amp;nbsp;in the tool, I can convert any wide character to its narrow equivalent.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png"&gt;&lt;img src="/resized-image/__size/225x275/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you turn on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;option, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Replace&lt;/code&gt;&amp;nbsp;window becomes greyed out.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Storing conversion files for reuse&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;One problem I have found with current solutions, is there is little ability for reuse. For example,&amp;nbsp;&lt;a href="http://appstore.sdl.com/app/sdlxliff-toolkit/296/"&gt;SDLXLIFF Toolkit&lt;/a&gt;&amp;nbsp;is a great tool, but you have to retype each item you need to search for. With this tool, click&amp;nbsp;Save As&amp;nbsp;in the bottom right corner to save your settings file for later use:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png"&gt;&lt;img src="/resized-image/__size/338x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you have saved your file, it will appear in the following list.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Order matters! Each file will be used for processing starting from top to bottom.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png"&gt;&lt;img src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would recommend creating separate conversion files based on project, or divide them into categories.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Tag Pair&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I actually don&amp;rsquo;t know how useful this feature will be, but you can detect tag pairs in the source text and modify them.&lt;/p&gt;
&lt;p&gt;For example, in the following screenshot, I look for a&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf highlight=&amp;quot;yellow&amp;quot;&amp;gt;&lt;/code&gt;&amp;nbsp;tag and replace the contents with some random text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png"&gt;&lt;img src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another example is taking a tag pair and replacing it with a placeholder instead:&lt;/p&gt;
&lt;p&gt;Say you had the following made up&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;inline&amp;gt;&lt;/code&gt;&amp;nbsp;tag pair in your XML file:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png"&gt;&lt;img src="/resized-image/__size/305x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With the following rule (make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;placeholder&lt;/code&gt;&amp;nbsp;is turned ON!):&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg"&gt;&lt;img src="/resized-image/__size/328x293/__key/communityserver-wikis-components-files/00-00-00-02-17/rule.jpg" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can turn it into a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png"&gt;&lt;img src="/resized-image/__size/342x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example2.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, placeholders have a much more useful application, which will be discussed next.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Placeholders&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The main use case for placeholders I see is marking proper nouns, such as product or company names that never change in a translation.&lt;/p&gt;
&lt;p&gt;For example, imagine a company named&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;as below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png"&gt;&lt;img src="/resized-image/__size/344x186/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can mark these as placeholders with the following rule:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png"&gt;&lt;img src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_contoso_2D00_placeholder.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: You can create placeholders that do not use attributes, for example in the above, I could of made the rule&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;&amp;nbsp;instead. However, when using elements only, you have to make sure it is a valid XML name.&lt;/p&gt;
&lt;p&gt;This will take each instance of&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;and replace it with a placeholder:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png"&gt;&lt;img src="/resized-image/__size/314x221/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_example_2D00_after.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, when you do this, a few issues come up:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;You will notice it replaced&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;in the third example, but left the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;, Ltd&lt;/code&gt;. In other words, you have to be careful what you replace. To fix this problem, you could create a rule that replace&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso, Ltd&lt;/code&gt;&amp;nbsp;&lt;em&gt;before&lt;/em&gt;&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;&amp;nbsp;or use regular expression to match both versions.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Having placeholders is great for translation purposes, but you want to return these to their original forms when generating the translation. This functionality &lt;span style="font-family:arial, helvetica, sans-serif;"&gt;is part of the next section,&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Target and Generate Files&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is the second batch task, which allows you to run modify text in the target and generate the target translations. The settings screen looks like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png"&gt;&lt;img src="/resized-image/__size/496x449/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_and_2D00_generate_2D00_files.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Save Folder&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you want to generate the target translations when this batch task is ran, click&amp;nbsp;Generate Target. You can also specify where the files will be saved. The default is the&amp;nbsp;Desktop.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png"&gt;&lt;img src="/resized-image/__size/416x80/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_target_2D00_save_2D00_folder.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="backup-folder"&gt;Backup Folder&lt;/h2&gt;
&lt;p&gt;Before generating target translations, you can save the sdlxliff files to a backup folder. Click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Make Backups&lt;/code&gt;&amp;nbsp;to make this happen. You can specify the folder to save them, and if not, by default a folder called&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Backups&lt;/code&gt;&amp;nbsp;is created in the project.&lt;/p&gt;
&lt;p&gt;Also, if you click&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Preserve Placeholder Tags&lt;/code&gt;, the backups you make will&amp;nbsp;&lt;em&gt;overwrite&lt;/em&gt;&amp;nbsp;the original sdlxliff files in the project.&lt;/p&gt;
&lt;h3 id="preserve-placeholder-tags"&gt;Preserve Placeholder Tags&lt;/h3&gt;
&lt;p&gt;If you have been following along, under&amp;nbsp;&lt;a href="http://jessegood.github.io/translation/cleanuptool.html#placeholders"&gt;Placeholder&lt;/a&gt;&amp;nbsp;we converted some proper nouns into placeholders. The problem is that when you generate the target translation, if these placeholders appear in the target segment, they will remain as a tag, or even worse be ignored completely when generating the translation. In order to solve this problem, any placeholders created during&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;will be stored in the project file so that they can be returned to text when generating the translation.&lt;/p&gt;
&lt;p&gt;It is an automatic process, but when you run&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Target and Generate Files&lt;/code&gt;, if a stored placeholder is found in the target segment, it will be converted back to plain text.&lt;/p&gt;
&lt;p&gt;This is all done by convention, so if the placeholder was&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Contoso /&amp;gt;&lt;/code&gt;, it will be replaced with simply&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;. When using attributes, the placeholder will be replaced with the contents of the attribute, so&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;Locked Name=&amp;quot;Contoso&amp;quot; /&amp;gt;&lt;/code&gt;&amp;nbsp;will be replaced with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Contoso&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Before&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png"&gt;&lt;img src="/resized-image/__size/388x258/__key/communityserver-wikis-components-files/00-00-00-02-17/placeholder_2D00_before.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png"&gt;&lt;img src="/resized-image/__size/418x218/__key/communityserver-wikis-components-files/00-00-00-02-17/contoso_2D00_after.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="automating-the-process"&gt;Automating the Process&lt;/h3&gt;
&lt;p&gt;They key to any successful translation workflow is&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Automation&lt;/code&gt;, the more we can automate, the more we can focus on the important stuff. Now for this Batch Task Plug-in, you can create a custom sequence so that this is ran automatically during project creation. However, there is an important point that you need to be aware of when doing this:&lt;/p&gt;
&lt;p&gt;Segments are not generated until the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Pre-Translate Files&lt;/code&gt;&amp;nbsp;task is ran, so you need to make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;appears after that.&lt;/p&gt;
&lt;p&gt;This is somewhat limiting though, as&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Cleanup Source&lt;/code&gt;&amp;nbsp;may affect matching. I will look into other options when I get a chance.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png"&gt;&lt;img src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/custom_2D00_task_2D00_sequence.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 id="reports"&gt;Reports&lt;/h3&gt;
&lt;p&gt;Also, note that the tool generates reports and log files of what it does!&lt;/p&gt;
&lt;p&gt;The report itself (shown below) does not give very much information, only a count of each item and a path to the log file. The log file itself though will contain a lot more detailed information about what happened, so if you need to find out why something changed, please look at the log file. (I considered adding all the info about what happened to the report here, but I found the size of the report gets too large quickly.)&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png"&gt;&lt;img src="/resized-image/__size/940x119/__key/communityserver-wikis-components-files/00-00-00-02-17/report_2D00_example.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: I wanted to create links so you can just click on it to open the log file, but I haven&amp;rsquo;t figured it out. I asked a question on&amp;nbsp;&lt;a href="/products-solutions/solutions/customer_experience_cloud/language/language-developers/f/57/t/7246"&gt;sdl community&lt;/a&gt;&amp;nbsp;about it.&lt;/p&gt;
&lt;h1 id="updating-formatting-attributes-experimental-support"&gt;Updating Formatting Attributes (Experimental Support)&lt;/h1&gt;
&lt;p&gt;There is current partial (read as &amp;ldquo;very limited&amp;rdquo;) support for updating formatting attributes.&lt;/p&gt;
&lt;p&gt;For example, with the following text:&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks/revision/16</link><pubDate>Fri, 08 Feb 2019 12:45:30 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Andrea-Melinda Ghisa</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Revision 16 posted to Wiki by Andrea-Melinda Ghisa on 2/8/2019 12:45:30 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;font-family:arial, helvetica, sans-serif;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Source&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png"&gt;&lt;img src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png"&gt;&lt;img src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png"&gt;&lt;img src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png" alt=" " /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, I do not permit removing other types of tags other than the above. Let me know though if you have a use case for removing other types of tags.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Modifying text&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now to the main part of the plug-in. When you first start out, you will have an empty screen like below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png"&gt;&lt;img src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, click on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;New&lt;/code&gt;&amp;nbsp;button to create a new &amp;ldquo;Conversion File&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The following window should pop up and it will appear blank at first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png"&gt;&lt;img src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;+&amp;rdquo; mark in the top right corner as shown and a new row will be added to the grid like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png"&gt;&lt;img src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, I would like to demonstrate a few use cases to show how to use the tool.&lt;/p&gt;
&lt;h4 id="use-case-converting-wide-characters-to-their-narrow-equivalent"&gt;Use Case: Converting wide characters to their narrow equivalent&lt;/h4&gt;
&lt;p&gt;In Japanese text, wide and narrow forms of characters are used:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wide&lt;/th&gt;
&lt;th&gt;Narrow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ＡＢＣＤ&lt;/td&gt;
&lt;td&gt;ABCD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;１２３４&lt;/td&gt;
&lt;td&gt;1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;カタカナ&lt;/td&gt;
&lt;td&gt;ｶﾀｶﾅ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One issue is that, depending on the client, they may use different forms in their documents. You may even find a mix of these forms in the same document. These mixed forms can also cause problems with your matching results, and your translation memories will be cluttered with them.&lt;/p&gt;
&lt;p&gt;One solution is to unify these forms before translation:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png"&gt;&lt;img src="/resized-image/__size/823x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above screenshot I have created 3 rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wide to narrow: Alphabetic
&lt;ul&gt;
&lt;li&gt;Ensure all alphabetic characters are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wide to narrow: Numbers
&lt;ul&gt;
&lt;li&gt;Ensure all numbers are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Narrow to wide: Katakana
&lt;ul&gt;
&lt;li&gt;Ensure all Katakana characters are wide&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To create a rule, you enter your information in the input area shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png"&gt;&lt;img src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Title&lt;/em&gt;: This field can be left blank, it just gives a description of the search item, and allows you to find an item easier in the grid view.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search&lt;/em&gt;: The text you want to search for. In the example I use a regular expression to search for a single wide alphabetic character, it probably would be more efficient to use&amp;nbsp;&lt;code class="highlighter-rouge"&gt;[Ａ-Ｚ]+&lt;/code&gt;&amp;nbsp;to search for groups of characters though.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search Settings&lt;/em&gt;: The search settings explained from left to right are:
&lt;ul&gt;
&lt;li&gt;Case Sensitive: Case sensitive searching&lt;/li&gt;
&lt;li&gt;Regex: Use regular expression matching&lt;/li&gt;
&lt;li&gt;Whole Word: Match whole words&lt;/li&gt;
&lt;li&gt;Tag Pair&lt;/li&gt;
&lt;li&gt;Embedded Tags&lt;/li&gt;
&lt;li&gt;StrConv&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Embeded Tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A common issue with translations, is handling embedded tags.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png"&gt;&lt;img src="/resized-image/__size/772x61/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The cleanup tasks tool provides a way to convert these into &amp;ldquo;real&amp;rdquo; tags.&lt;/p&gt;
&lt;p&gt;You could use the following setting:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png"&gt;&lt;img src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above setting will detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag in the example.&lt;/p&gt;
&lt;p&gt;When you run the task on the example, it will be converted as shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png"&gt;&lt;img src="/resized-image/__size/769x64/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Note that in my example, I did not show a setting converting the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;span&amp;gt;&lt;/code&gt;&amp;nbsp;tag. This is important, as even though I only created a rule to detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag, the plug-in will convert&amp;nbsp;&lt;em&gt;all&lt;/em&gt;&amp;nbsp;tags it finds within the segment.&lt;/p&gt;
&lt;p&gt;Now, when you generate the target translations, any converted tags will be restored to their former form:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png"&gt;&lt;img src="/resized-image/__size/887x76/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;StrConv&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;happens to be a handy&amp;nbsp;&lt;a title="method" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.strings.strconv?redirectedfrom=MSDN&amp;amp;view=netframework-4.7.2#Microsoft_VisualBasic_Strings_StrConv_System_String_Microsoft_VisualBasic_VbStrConv_System_Int32_"&gt;method&amp;nbsp;&lt;/a&gt;from Visual Basic. You can find it in a lot of Microsoft Products, such as&amp;nbsp;&lt;a href="https://msdn.microsoft.com/en-us/library/office/gg264628.aspx"&gt;Office VBA&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The handy part is shown in the following screenshot (courtesy MSDN).&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png"&gt;&lt;img src="/resized-image/__size/875x512/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_chart_2D00_microsoft.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;All the options above are available under their same names in the tool: By selecting&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Narrow&lt;/code&gt;&amp;nbsp;in the tool, I can convert any wide character to its narrow equivalent.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png"&gt;&lt;img src="/resized-image/__size/225x275/__key/communityserver-wikis-components-files/00-00-00-02-17/strconv_2D00_options.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you turn on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;option, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Replace&lt;/code&gt;&amp;nbsp;window becomes greyed out.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Storing conversion files for reuse&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;One problem I have found with current solutions, is there is little ability for reuse. For example,&amp;nbsp;&lt;a href="http://appstore.sdl.com/app/sdlxliff-toolkit/296/"&gt;SDLXLIFF Toolkit&lt;/a&gt;&amp;nbsp;is a great tool, but you have to retype each item you need to search for. With this tool, click&amp;nbsp;Save As&amp;nbsp;in the bottom right corner to save your settings file for later use:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png"&gt;&lt;img src="/resized-image/__size/338x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_saveas.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Once you have saved your file, it will appear in the following list.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Order matters! Each file will be used for processing starting from top to bottom.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png"&gt;&lt;img src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_list.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would recommend creating separate conversion files based on project, or divide them into categories.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Tag Pair&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I actually don&amp;rsquo;t know how useful this feature will be, but you can detect tag pairs in the source text and modify them.&lt;/p&gt;
&lt;p&gt;For example, in the following screenshot, I look for a&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf highlight=&amp;quot;yellow&amp;quot;&amp;gt;&lt;/code&gt;&amp;nbsp;tag and replace the contents with some random text:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png"&gt;&lt;img src="/resized-image/__size/324x291/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_tag_2D00_pair_2D00_example1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another example is taking a tag pair and replacing it with a placeholder instead:&lt;/p&gt;
&lt;p&gt;Say you had the following made up&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;inline&amp;gt;&lt;/code&gt;&amp;nbsp;tag pair in your XML file:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png"&gt;&lt;img src="/resized-image/__size/305x43/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_placeholder_2D00_example1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With the following rule (make sure&amp;nbsp;&lt;code class="highlighter-rouge"&gt;placeholder&lt;/code&gt;&amp;nbsp;is turned ON!):&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks/revision/15</link><pubDate>Fri, 08 Feb 2019 12:35:41 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Andrea-Melinda Ghisa</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Revision 15 posted to Wiki by Andrea-Melinda Ghisa on 2/8/2019 12:35:41 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;font-family:arial, helvetica, sans-serif;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Source&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png"&gt;&lt;img src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png"&gt;&lt;img src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png"&gt;&lt;img src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png" alt=" " /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, I do not permit removing other types of tags other than the above. Let me know though if you have a use case for removing other types of tags.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Modifying text&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now to the main part of the plug-in. When you first start out, you will have an empty screen like below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png"&gt;&lt;img src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, click on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;New&lt;/code&gt;&amp;nbsp;button to create a new &amp;ldquo;Conversion File&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The following window should pop up and it will appear blank at first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png"&gt;&lt;img src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;+&amp;rdquo; mark in the top right corner as shown and a new row will be added to the grid like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png"&gt;&lt;img src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, I would like to demonstrate a few use cases to show how to use the tool.&lt;/p&gt;
&lt;h4 id="use-case-converting-wide-characters-to-their-narrow-equivalent"&gt;Use Case: Converting wide characters to their narrow equivalent&lt;/h4&gt;
&lt;p&gt;In Japanese text, wide and narrow forms of characters are used:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wide&lt;/th&gt;
&lt;th&gt;Narrow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ＡＢＣＤ&lt;/td&gt;
&lt;td&gt;ABCD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;１２３４&lt;/td&gt;
&lt;td&gt;1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;カタカナ&lt;/td&gt;
&lt;td&gt;ｶﾀｶﾅ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One issue is that, depending on the client, they may use different forms in their documents. You may even find a mix of these forms in the same document. These mixed forms can also cause problems with your matching results, and your translation memories will be cluttered with them.&lt;/p&gt;
&lt;p&gt;One solution is to unify these forms before translation:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png"&gt;&lt;img src="/resized-image/__size/823x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above screenshot I have created 3 rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wide to narrow: Alphabetic
&lt;ul&gt;
&lt;li&gt;Ensure all alphabetic characters are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wide to narrow: Numbers
&lt;ul&gt;
&lt;li&gt;Ensure all numbers are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Narrow to wide: Katakana
&lt;ul&gt;
&lt;li&gt;Ensure all Katakana characters are wide&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To create a rule, you enter your information in the input area shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png"&gt;&lt;img src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Title&lt;/em&gt;: This field can be left blank, it just gives a description of the search item, and allows you to find an item easier in the grid view.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search&lt;/em&gt;: The text you want to search for. In the example I use a regular expression to search for a single wide alphabetic character, it probably would be more efficient to use&amp;nbsp;&lt;code class="highlighter-rouge"&gt;[Ａ-Ｚ]+&lt;/code&gt;&amp;nbsp;to search for groups of characters though.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search Settings&lt;/em&gt;: The search settings explained from left to right are:
&lt;ul&gt;
&lt;li&gt;Case Sensitive: Case sensitive searching&lt;/li&gt;
&lt;li&gt;Regex: Use regular expression matching&lt;/li&gt;
&lt;li&gt;Whole Word: Match whole words&lt;/li&gt;
&lt;li&gt;Tag Pair&lt;/li&gt;
&lt;li&gt;Embedded Tags&lt;/li&gt;
&lt;li&gt;StrConv&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Embeded Tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A common issue with translations, is handling embedded tags.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png"&gt;&lt;img src="/resized-image/__size/772x61/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The cleanup tasks tool provides a way to convert these into &amp;ldquo;real&amp;rdquo; tags.&lt;/p&gt;
&lt;p&gt;You could use the following setting:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png"&gt;&lt;img src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above setting will detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag in the example.&lt;/p&gt;
&lt;p&gt;When you run the task on the example, it will be converted as shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png"&gt;&lt;img src="/resized-image/__size/769x64/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Note that in my example, I did not show a setting converting the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;span&amp;gt;&lt;/code&gt;&amp;nbsp;tag. This is important, as even though I only created a rule to detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag, the plug-in will convert&amp;nbsp;&lt;em&gt;all&lt;/em&gt;&amp;nbsp;tags it finds within the segment.&lt;/p&gt;
&lt;p&gt;Now, when you generate the target translations, any converted tags will be restored to their former form:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png"&gt;&lt;img src="/resized-image/__size/887x76/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;StrConv&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;StrConv&lt;/code&gt;&amp;nbsp;happens to be a handy&amp;nbsp;&lt;a title="method" href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.strings.strconv?redirectedfrom=MSDN&amp;amp;view=netframework-4.7.2#Microsoft_VisualBasic_Strings_StrConv_System_String_Microsoft_VisualBasic_VbStrConv_System_Int32_"&gt;method&amp;nbsp;&lt;/a&gt;from Visual Basic. You can find it in a lot of Microsoft Products, such as&amp;nbsp;&lt;a href="https://msdn.microsoft.com/en-us/library/office/gg264628.aspx"&gt;Office VBA&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The handy part is shown in the following screenshot (courtesy MSDN).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks/revision/14</link><pubDate>Fri, 08 Feb 2019 12:34:31 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Andrea-Melinda Ghisa</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Revision 14 posted to Wiki by Andrea-Melinda Ghisa on 2/8/2019 12:34:31 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;font-family:arial, helvetica, sans-serif;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Source&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png"&gt;&lt;img src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png"&gt;&lt;img src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png"&gt;&lt;img src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png" alt=" " /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, I do not permit removing other types of tags other than the above. Let me know though if you have a use case for removing other types of tags.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Modifying text&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now to the main part of the plug-in. When you first start out, you will have an empty screen like below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png"&gt;&lt;img src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, click on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;New&lt;/code&gt;&amp;nbsp;button to create a new &amp;ldquo;Conversion File&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The following window should pop up and it will appear blank at first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png"&gt;&lt;img src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;+&amp;rdquo; mark in the top right corner as shown and a new row will be added to the grid like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png"&gt;&lt;img src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, I would like to demonstrate a few use cases to show how to use the tool.&lt;/p&gt;
&lt;h4 id="use-case-converting-wide-characters-to-their-narrow-equivalent"&gt;Use Case: Converting wide characters to their narrow equivalent&lt;/h4&gt;
&lt;p&gt;In Japanese text, wide and narrow forms of characters are used:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wide&lt;/th&gt;
&lt;th&gt;Narrow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ＡＢＣＤ&lt;/td&gt;
&lt;td&gt;ABCD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;１２３４&lt;/td&gt;
&lt;td&gt;1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;カタカナ&lt;/td&gt;
&lt;td&gt;ｶﾀｶﾅ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One issue is that, depending on the client, they may use different forms in their documents. You may even find a mix of these forms in the same document. These mixed forms can also cause problems with your matching results, and your translation memories will be cluttered with them.&lt;/p&gt;
&lt;p&gt;One solution is to unify these forms before translation:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png"&gt;&lt;img src="/resized-image/__size/823x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above screenshot I have created 3 rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wide to narrow: Alphabetic
&lt;ul&gt;
&lt;li&gt;Ensure all alphabetic characters are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wide to narrow: Numbers
&lt;ul&gt;
&lt;li&gt;Ensure all numbers are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Narrow to wide: Katakana
&lt;ul&gt;
&lt;li&gt;Ensure all Katakana characters are wide&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To create a rule, you enter your information in the input area shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png"&gt;&lt;img src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Title&lt;/em&gt;: This field can be left blank, it just gives a description of the search item, and allows you to find an item easier in the grid view.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search&lt;/em&gt;: The text you want to search for. In the example I use a regular expression to search for a single wide alphabetic character, it probably would be more efficient to use&amp;nbsp;&lt;code class="highlighter-rouge"&gt;[Ａ-Ｚ]+&lt;/code&gt;&amp;nbsp;to search for groups of characters though.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search Settings&lt;/em&gt;: The search settings explained from left to right are:
&lt;ul&gt;
&lt;li&gt;Case Sensitive: Case sensitive searching&lt;/li&gt;
&lt;li&gt;Regex: Use regular expression matching&lt;/li&gt;
&lt;li&gt;Whole Word: Match whole words&lt;/li&gt;
&lt;li&gt;Tag Pair&lt;/li&gt;
&lt;li&gt;Embedded Tags&lt;/li&gt;
&lt;li&gt;StrConv&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Embeded Tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;A common issue with translations, is handling embedded tags.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png"&gt;&lt;img src="/resized-image/__size/772x61/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The cleanup tasks tool provides a way to convert these into &amp;ldquo;real&amp;rdquo; tags.&lt;/p&gt;
&lt;p&gt;You could use the following setting:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png"&gt;&lt;img src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_setting.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The above setting will detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag in the example.&lt;/p&gt;
&lt;p&gt;When you run the task on the example, it will be converted as shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png"&gt;&lt;img src="/resized-image/__size/769x64/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_after.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Important Note&lt;/em&gt;: Note that in my example, I did not show a setting converting the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;span&amp;gt;&lt;/code&gt;&amp;nbsp;tag. This is important, as even though I only created a rule to detect the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;b&amp;gt;&lt;/code&gt;&amp;nbsp;tag, the plug-in will convert&amp;nbsp;&lt;em&gt;all&lt;/em&gt;&amp;nbsp;tags it finds within the segment.&lt;/p&gt;
&lt;p&gt;Now, when you generate the target translations, any converted tags will be restored to their former form:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png"&gt;&lt;img src="/resized-image/__size/887x76/__key/communityserver-wikis-components-files/00-00-00-02-17/embedded_2D00_tags_2D00_generate_2D00_target.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;StrConv&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks/revision/13</link><pubDate>Fri, 08 Feb 2019 12:30:09 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Andrea-Melinda Ghisa</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Revision 13 posted to Wiki by Andrea-Melinda Ghisa on 2/8/2019 12:30:09 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;font-family:arial, helvetica, sans-serif;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Source&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png"&gt;&lt;img src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png"&gt;&lt;img src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png"&gt;&lt;img src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png" alt=" " /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, I do not permit removing other types of tags other than the above. Let me know though if you have a use case for removing other types of tags.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Modifying text&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now to the main part of the plug-in. When you first start out, you will have an empty screen like below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png"&gt;&lt;img src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, click on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;New&lt;/code&gt;&amp;nbsp;button to create a new &amp;ldquo;Conversion File&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The following window should pop up and it will appear blank at first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png"&gt;&lt;img src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;+&amp;rdquo; mark in the top right corner as shown and a new row will be added to the grid like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png"&gt;&lt;img src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, I would like to demonstrate a few use cases to show how to use the tool.&lt;/p&gt;
&lt;h4 id="use-case-converting-wide-characters-to-their-narrow-equivalent"&gt;Use Case: Converting wide characters to their narrow equivalent&lt;/h4&gt;
&lt;p&gt;In Japanese text, wide and narrow forms of characters are used:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wide&lt;/th&gt;
&lt;th&gt;Narrow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ＡＢＣＤ&lt;/td&gt;
&lt;td&gt;ABCD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;１２３４&lt;/td&gt;
&lt;td&gt;1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;カタカナ&lt;/td&gt;
&lt;td&gt;ｶﾀｶﾅ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One issue is that, depending on the client, they may use different forms in their documents. You may even find a mix of these forms in the same document. These mixed forms can also cause problems with your matching results, and your translation memories will be cluttered with them.&lt;/p&gt;
&lt;p&gt;One solution is to unify these forms before translation:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png"&gt;&lt;img src="/resized-image/__size/823x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_wide_2D00_to_2D00_narrow_2D00_example.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the above screenshot I have created 3 rules:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Wide to narrow: Alphabetic
&lt;ul&gt;
&lt;li&gt;Ensure all alphabetic characters are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wide to narrow: Numbers
&lt;ul&gt;
&lt;li&gt;Ensure all numbers are narrow&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Narrow to wide: Katakana
&lt;ul&gt;
&lt;li&gt;Ensure all Katakana characters are wide&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To create a rule, you enter your information in the input area shown below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png"&gt;&lt;img src="/resized-image/__size/324x316/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_input_2D00_window.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;em&gt;Title&lt;/em&gt;: This field can be left blank, it just gives a description of the search item, and allows you to find an item easier in the grid view.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search&lt;/em&gt;: The text you want to search for. In the example I use a regular expression to search for a single wide alphabetic character, it probably would be more efficient to use&amp;nbsp;&lt;code class="highlighter-rouge"&gt;[Ａ-Ｚ]+&lt;/code&gt;&amp;nbsp;to search for groups of characters though.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Search Settings&lt;/em&gt;: The search settings explained from left to right are:
&lt;ul&gt;
&lt;li&gt;Case Sensitive: Case sensitive searching&lt;/li&gt;
&lt;li&gt;Regex: Use regular expression matching&lt;/li&gt;
&lt;li&gt;Whole Word: Match whole words&lt;/li&gt;
&lt;li&gt;Tag Pair: This is explained&amp;nbsp;&lt;a href="http://jessegood.github.io/translation/cleanuptool.html#tag-pair"&gt;below&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Embedded Tags: Turn this on when you want to&amp;nbsp;&lt;a href="http://jessegood.github.io/translation/cleanuptool.html#embedded-tags"&gt;convert embedded tags&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;StrConv: This is explained&amp;nbsp;&lt;a href="http://jessegood.github.io/translation/cleanuptool.html#strconv"&gt;next&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks/revision/12</link><pubDate>Fri, 08 Feb 2019 12:27:07 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Andrea-Melinda Ghisa</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Revision 12 posted to Wiki by Andrea-Melinda Ghisa on 2/8/2019 12:27:07 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;font-family:arial, helvetica, sans-serif;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Source&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png"&gt;&lt;img src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png"&gt;&lt;img src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png"&gt;&lt;img src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png" alt=" " /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_placeholder.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Currently, I do not permit removing other types of tags other than the above. Let me know though if you have a use case for removing other types of tags.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Modifying text&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Now to the main part of the plug-in. When you first start out, you will have an empty screen like below:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png"&gt;&lt;img src="/resized-image/__size/496x165/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_blank.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First, click on the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;New&lt;/code&gt;&amp;nbsp;button to create a new &amp;ldquo;Conversion File&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;The following window should pop up and it will appear blank at first:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png"&gt;&lt;img src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_window.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Click the &amp;ldquo;+&amp;rdquo; mark in the top right corner as shown and a new row will be added to the grid like so:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png"&gt;&lt;img src="/resized-image/__size/791x323/__key/communityserver-wikis-components-files/00-00-00-02-17/conversion_2D00_file_2D00_view_2D00_row_2D00_added.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now, I would like to demonstrate a few use cases to show how to use the tool.&lt;/p&gt;
&lt;h4 id="use-case-converting-wide-characters-to-their-narrow-equivalent"&gt;Use Case: Converting wide characters to their narrow equivalent&lt;/h4&gt;
&lt;p&gt;In Japanese text, wide and narrow forms of characters are used:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Wide&lt;/th&gt;
&lt;th&gt;Narrow&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ＡＢＣＤ&lt;/td&gt;
&lt;td&gt;ABCD&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;１２３４&lt;/td&gt;
&lt;td&gt;1234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;カタカナ&lt;/td&gt;
&lt;td&gt;ｶﾀｶﾅ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;One issue is that, depending on the client, they may use different forms in their documents. You may even find a mix of these forms in the same document. These mixed forms can also cause problems with your matching results, and your translation memories will be cluttered with them.&lt;/p&gt;
&lt;p&gt;One solution is to unify these forms before translation:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>CleanUp Tasks</title><link>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks/revision/11</link><pubDate>Fri, 08 Feb 2019 12:20:27 GMT</pubDate><guid isPermaLink="false">10acfa76-f078-475b-a7ef-fc5b3e8d2934:5edbd49d-0501-406b-9f1f-9ccb9980e8e4</guid><dc:creator>Andrea-Melinda Ghisa</dc:creator><comments>https://uat.community.rws.com/product-groups/trados-portfolio/rws-appstore/w/wiki/4040/cleanup-tasks#comments</comments><description>Revision 11 posted to Wiki by Andrea-Melinda Ghisa on 2/8/2019 12:20:27 PM&lt;br /&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;So what does this tool do?&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can lock segments based on structure or content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can remove unwanted tags in the source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can modify the source or target text as you like and create &amp;ldquo;settings&amp;rdquo; files for easy reuse&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create tags for embedded xml or html content&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size:inherit;"&gt;You can create placeholders for fixed words or phrases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Some of the above is possible already with other tools, but the best part is this is a Batch Task, so you can run it directly in Trados. If you think any of the above may be of interest, please read on.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;font-family:arial, helvetica, sans-serif;"&gt;New Batch Task Menu Items:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The tool adds 2 new items to your batch task menu:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png"&gt;&lt;img src="/resized-image/__size/567x498/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_batchtask_2D00_menu.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Cleanup Source&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When you click on&amp;nbsp;Cleanup Source&amp;nbsp;and then hit &amp;ldquo;Next&amp;rdquo;, you will be greeted with the following screen:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png"&gt;&lt;img src="/resized-image/__size/786x593/__key/communityserver-wikis-components-files/00-00-00-02-17/cleanup_2D00_settings_2D00_menu.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Locking segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/500x220/__key/communityserver-wikis-components-files/00-00-00-02-17/segment_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can lock segments based on search expressions using the left-hand box (the&amp;nbsp;Content Locker). In order to lock based on the document structure, use the right-hand box (the&amp;nbsp;Structure Locker).&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Content Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I mainly translate from Japanese to English and often times you get segments that contain no Japanese characters. It can be useful to lock these sometimes, the following regular expression would check for that:&amp;nbsp;^[^亜-熙ぁ-んァ-ヶ]+$&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/326x125/__key/communityserver-wikis-components-files/00-00-00-02-17/content_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;em&gt;Make sure you turn on&amp;nbsp;&lt;code class="highlighter-rouge"&gt;Regex&lt;/code&gt;&amp;nbsp;for the above to work&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The headers in the above screenshot are abbreviated for space reasons, so they might be a little difficult to understand:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Regex: Regular expression matching&lt;/li&gt;
&lt;li&gt;Case: Case-sensitive searching&lt;/li&gt;
&lt;li&gt;Whole: Whole word matching&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Structure Locker Example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This should be straightforward, the structure info is read from the sdlxliff files of the project. The example file I used happens to be an Excel file, which is why you see items like&amp;nbsp;sdl:worksheet&amp;nbsp;and&amp;nbsp;sdl:textbox. In the following screenshot I selected&amp;nbsp;sdl:textbox&amp;nbsp;to lock any text that appears in text boxes.&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png"&gt;&lt;img src="/resized-image/__size/152x125/__key/communityserver-wikis-components-files/00-00-00-02-17/structure_2D00_locker.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:150%;"&gt;Removing tags&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The plug-in divides tags into two categories,&amp;nbsp;Formatting Tags&amp;nbsp;and&amp;nbsp;Placeholder Tags:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png"&gt;&lt;img src="/resized-image/__size/500x176/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Formatting Tags: These always start with&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code class="highlighter-rouge"&gt;&amp;lt;cf&amp;gt;&lt;/code&gt;&amp;nbsp;tags can contain a range of information such as font name, font size, italic, bold, etc. In Example 1 below, each tag contains the font name and size only, while Example 2 contains an&amp;nbsp;&lt;code class="highlighter-rouge"&gt;italic=&amp;quot;True&amp;quot;&lt;/code&gt;attribute.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 1 (Font Name and Size):&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png"&gt;&lt;img src="/resized-image/__size/282x57/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Example 2 ( italic =&amp;quot;True&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png"&gt;&lt;img src="/resized-image/__size/282x42/__key/communityserver-wikis-components-files/00-00-00-02-17/cf_2D00_tag_2D00_example2.png" alt=" " /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;In order to remove the tags in Example 1, you need to select&amp;nbsp;Font Name&amp;nbsp;and&amp;nbsp;Font Size&amp;nbsp;(see screenshot below), since the tag specifies both of these:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_fontname_2D00_and_2D00_size.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the tag in Example 2&amp;nbsp;will not&amp;nbsp;be removed as it contains&amp;nbsp;italic=&amp;quot;True&amp;quot;. To remove this tag, you also need to select&amp;nbsp;Italic:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png"&gt;&lt;img src="/resized-image/__size/239x102/__key/communityserver-wikis-components-files/00-00-00-02-17/tag_2D00_remover_2D00_select_2D00_italic.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placeholder Tags:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In short, these are the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;ph&amp;gt;&lt;/code&gt;&amp;nbsp;(Placeholder) tags in the sdlxliff file. Sometimes they contain inline formatting which may not be needed.&lt;/p&gt;
&lt;p&gt;I would exercise caution when removing these tags though as often times they are necessary!&lt;/p&gt;
&lt;p&gt;In the following screenshot, the&amp;nbsp;&lt;code class="highlighter-rouge"&gt;&amp;lt;br&amp;gt;&lt;/code&gt;&amp;nbsp;tags are used for aligning text in text boxes in the original Excel file, they are probably required, but there might be times when you want to remove this type of formatting.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>