<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://okapiframework.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Fliden</id>
	<title>Okapi Framework - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://okapiframework.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Fliden"/>
	<link rel="alternate" type="text/html" href="http://okapiframework.org/wiki/index.php/Special:Contributions/Fliden"/>
	<updated>2026-04-19T08:46:58Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>http://okapiframework.org/wiki/index.php?title=Inline_Codes_Removal_Step&amp;diff=348</id>
		<title>Inline Codes Removal Step</title>
		<link rel="alternate" type="text/html" href="http://okapiframework.org/wiki/index.php?title=Inline_Codes_Removal_Step&amp;diff=348"/>
		<updated>2013-01-29T19:54:22Z</updated>

		<summary type="html">&lt;p&gt;Fliden: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Steps Header}}&lt;br /&gt;
__TOC__&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
This step removes inline codes or content of inline codes in text units.&lt;br /&gt;
&lt;br /&gt;
Takes: Filter Events. Sends: Filter Events.&lt;br /&gt;
&lt;br /&gt;
Many text units contains inline codes, span of data that should be left untouched inside a translatable text, for example the tag &amp;lt;code&amp;gt;&amp;amp;lt;b&amp;gt;&amp;lt;/code&amp;gt; in a HTML paragraph. This steps allows you to make different types of removal of those codes.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;cite&amp;gt;What to remove&amp;lt;/cite&amp;gt; &amp;amp;mdash; Select the type of data to remove. A code is made of two parts: its markers (always there) and its content (optional). For example, an inline code in XLIFF can be like this: &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span  class=&amp;quot;blue&amp;quot;&amp;gt;&amp;amp;lt;bpt id=&amp;quot;1&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span  class=&amp;quot;hi&amp;quot;&amp;gt;&amp;amp;amp;lt;b&amp;amp;amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span  class=&amp;quot;blue&amp;quot;&amp;gt;&amp;amp;lt;/bpt&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The parts in blue are the marker part, the part in yellow is the content part.&lt;br /&gt;
&lt;br /&gt;
The following options are available:&lt;br /&gt;
&lt;br /&gt;
* Remove code marker, but keep code content:&amp;lt;br&amp;gt;This removes the code marker but preserve its content. In other words, the content of the code becomes part of the text.&lt;br /&gt;
* Remove code content, but keep code marker:&amp;lt;br&amp;gt;This remove the code content but preserve its marker. In other words, the inline code still exists but it has been generalized and the data of the original format cannot be retrieved from it anymore.&lt;br /&gt;
* Remove code marker and code content:&amp;lt;br&amp;gt;This removes the whole inline code, there is no trace of it left.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;cite&amp;gt;Replace line break codes with spaces (When removing content AND marker)&amp;lt;/cite&amp;gt; &amp;amp;mdash; Set this option to replace codes with spaces where the code type = Code.TYPE_LB or the code's content contains any of the following expressions (case insensitive) or characters (&amp;amp;lt;br&amp;gt;, &amp;amp;lt;br /&amp;gt;, &amp;amp;lt;br/&amp;gt;, \n, \r, \u0085, \u2028, \u2029). For example, inline code in XLIFF: &amp;lt;span  class=&amp;quot;blue&amp;quot;&amp;gt;&amp;amp;lt;bpt id=&amp;quot;1&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span  class=&amp;quot;hi&amp;quot;&amp;gt;&amp;amp;amp;lt;br&amp;amp;amp;gt;&amp;lt;/span&amp;gt;&amp;lt;span  class=&amp;quot;blue&amp;quot;&amp;gt;&amp;amp;lt;/bpt&amp;gt;&amp;lt;/span&amp;gt; NOTE: This option only applies when the &amp;quot;Remove code marker and code content&amp;quot; option is selected above.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;cite&amp;gt;Strip codes in the source text&amp;lt;/cite&amp;gt; &amp;amp;mdash; Set this option to apply the removal action selected to the source text.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;cite&amp;gt;Strip codes in the target text&amp;lt;/cite&amp;gt; &amp;amp;mdash; Set this option to apply the removal action selected to the target text.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;cite&amp;gt;Apply to non-transltable text unit&amp;lt;/cite&amp;gt; &amp;amp;mdash; Set this option to apply the removal action even to text unit marked as non-translatable. If this option is not set, all non-translatable text units are left untouched.&lt;br /&gt;
&lt;br /&gt;
==Limitations==&lt;br /&gt;
&lt;br /&gt;
None known.&lt;br /&gt;
&lt;br /&gt;
[[Category:Steps]]&lt;/div&gt;</summary>
		<author><name>Fliden</name></author>
	</entry>
	<entry>
		<id>http://okapiframework.org/wiki/index.php?title=TS_Filter&amp;diff=32</id>
		<title>TS Filter</title>
		<link rel="alternate" type="text/html" href="http://okapiframework.org/wiki/index.php?title=TS_Filter&amp;diff=32"/>
		<updated>2012-01-25T19:13:35Z</updated>

		<summary type="html">&lt;p&gt;Fliden: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Filters Header}}&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
The TS Filter is an Okapi component that implements the IFilter interface for Qt TS (Translation Source) resource files. The filter is implemented in the class &amp;lt;code&amp;gt;net.sf.okapi.filters.ts.TsFilter&amp;lt;/code&amp;gt; of the library.&lt;br /&gt;
&lt;br /&gt;
The implementation is based on the TS specification found at http://doc.trolltech.com/4.3/linguist-ts-file-format.html.&lt;br /&gt;
&lt;br /&gt;
==Processing Details==&lt;br /&gt;
&lt;br /&gt;
===Line-Breaks===&lt;br /&gt;
&lt;br /&gt;
The type of line-breaks of the output is the same as the one of the original input.&lt;br /&gt;
&lt;br /&gt;
===Type===&lt;br /&gt;
&lt;br /&gt;
In TS files the &amp;lt;code&amp;gt;&amp;amp;lt;translation&amp;gt;&amp;lt;/code&amp;gt; element of a message can have a &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt; element indicating the state of the translation or of the message. This attribute is mapped the following way:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| No &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt; attribute || The entry is extracted with its target property ''approved'' set to &amp;quot;&amp;lt;code&amp;gt;yes&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt; is &amp;quot;&amp;lt;code&amp;gt;unfinished&amp;lt;/code&amp;gt;&amp;quot; || The entry is extracted with its target property ''approved'' set to &amp;quot;&amp;lt;code&amp;gt;no&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt; is &amp;quot;&amp;lt;code&amp;gt;obsolete&amp;lt;/code&amp;gt;&amp;quot; || The entry is '''not extracted'''. According the Qt manual, the entries with the translation marked as obsolete are unused entries, not just obsolete translation (with new text).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Translator Comment===&lt;br /&gt;
&lt;br /&gt;
The TS filter stores &amp;lt;cite&amp;gt;&amp;amp;lt;translatorcomment&amp;amp;gt;&amp;lt;/cite&amp;gt; elements as text unit Property.TRANSNOTE. This property can be used by subsequent steps or editors.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&lt;br /&gt;
===Options Tab===&lt;br /&gt;
&lt;br /&gt;
====Processing mode====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;cite&amp;gt;Convert &amp;lt;byte value=&amp;quot;[value]&amp;quot;/&amp;gt; to raw characters&amp;lt;/cite&amp;gt; &amp;amp;mdash; Select this option to convert all &amp;lt;code&amp;gt;&amp;amp;lt;byte/&amp;gt;&amp;lt;/code&amp;gt; elements in the TS document to raw characters. If this option is not set, the elements will not be converted and will be treated as inline codes. Note that those characters are stored special elements in TS because they are invalid in XML, so it may be better to keep them as inline code if you are working with other XML-based formats like XLIFF or TMX.&lt;br /&gt;
&lt;br /&gt;
===Inline Codes Tab===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;cite&amp;gt;Has inline codes as defined below:&amp;lt;/cite&amp;gt; &amp;amp;mdash; Set this option to use the specified regular expressions on the text of the extracted items. Any match will be converted to an inline code. By default the expression is:&lt;br /&gt;
&lt;br /&gt;
 ((%(([-0+#]?)[-0+#]?)((\d\$)?)(([\d\*]*)(\.[\d\*]*)?)[dioxXucsfeEgGpn])&lt;br /&gt;
 |((\\r\\n)|\\a|\\b|\\f|\\n|\\r|\\t|\\v)&lt;br /&gt;
 |(\{\d.*?\}))&lt;br /&gt;
&lt;br /&gt;
{{CodeFinder Help}}&lt;br /&gt;
&lt;br /&gt;
==Limitations==&lt;br /&gt;
&lt;br /&gt;
None known.&lt;br /&gt;
&lt;br /&gt;
[[Category:Filters]] [[Category:Translation Formats]]&lt;/div&gt;</summary>
		<author><name>Fliden</name></author>
	</entry>
</feed>