- changed status to open
Turning off option to use <g></g> and </x> notation seems to cause subfilter to not execute
Original issue 232 created by esogasimm... on 2012-05-18T02:50:16.000Z:
What steps will reproduce the problem?
1. Use the same files and setup as from issue comment 23.1 (also attached) to add a file, set it to use a customer XML filter with an HTML subfilter. The HTML subfilter has a custom regex.
2. When you goto utilities/Translation Kit Creation and you change selection for <g></g> and </x> to be turned off, it appears the HTML subfilter doesn't run.
What is the expected output? What do you see instead?
Instead, we see this, where the HTML filter doesn't appear to run. Note that when we run this same command with the option enabled, we get the issue in ticket comment 23.1, but it does run the subfilter.
<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:okp="okapi-framework:xliff-extensions">
<file original="/xml-freemarker.xml" source-language="en-us" target-language="fr-fr" datatype="xml">
<body>
<group id="P1BC00-1" resname="sub-filter:">
<trans-unit id="tu1" xml:space="preserve">
<source xml:lang="en-us"><ph id="1">
&lt;strong> this is a bolded text between html strong tags &lt;/strong>
Here we want to pull out the freemarker into tags, but pass through
the text and the brace value: &lt;\#if contactInfo??></ph> or
${contactInfo}<ph id="2">&lt;/\#if></ph>.
Here we ensure that we get the single else and handle the double quotes:
<ph id="3"><#if smb.maxAlarmLevel == "notice"></ph>Important<ph id="4"><#else></ph>Urgent<ph id="5"></#if></ph>
information regarding ${sbsName}
Another test with lots of regexee text:
<ph id="6"><#if commentAuthorURL?has_content></ph>
<bpt id="7">[#$dp1]</bpt>${commentAuthorName}<ept id="7"></a></ept>
<ph id="8"><#else></ph>${commentAuthorName}<ph id="9"></#if></ph>
<bpt id="10">[#$dp2]</bpt>View all comments on this event<ept id="10"></a></ept>
Ensure we pull don't break early on parentheses:
${totalTaskCount} upcoming <ph id="11"><#if (overdueTasks.size() > 0)></ph>
(${overdueTasks.size()} overdue)<ph id="12"></#if></ph>
</source>
</trans-unit>
</group>
</body>
</file>
</xliff>
What version of the product are you using? On what operating system?
Rainbow - Okapi Localization Toolbox
Version 6.0.17-Snapshot
Windows
Rainbow - Okapi Localization Toolbox
Version 0.17 gtk2 Linux x86 64
Please provide any additional information below.
Comments (3)
-
Account Deleted -
- removed responsible
- edited description
- changed milestone to 1.42.0
- changed version to M38
- changed title to Turning off option to use <g></g> and </x> notation seems to cause subfilter to not execute
-
-
assigned issue to
- marked as major
-
assigned issue to
- Log in to comment
Comment [1.](https://code.google.com/p/okapi/issues/detail?id=232#c1) originally posted by @ysavourel on 2012-05-20T02:28:53.000Z: