8 Replies Latest reply on Dec 1, 2018 6:04 AM by Peter Grainge

    Robohelp 2019 not importing Conditional tags correctly

    HelpDragoncity Level 1

      Annnnd yet another problem with 2019 (the new version, not the classic).

       

      I've just tried importing a project to see if variables are correctly imported (they are on the two projects I tried), and discovered that RH is now not importing conditional tagged text correctly.

       

      So, in Classic, the code is:

       

      <li class="list-ordered">Select<?rh-cbt_start condition="Intranet_Only" ?>

        <?rh-cbt_end ?><?rh-cbt_start condition="Intranet_Only" ?><span style="font-weight: bold;">Tools</span><?rh-cbt_end ?><?rh-cbt_start condition="Intranet_Only" ?>:   <?rh-cbt_end ?><?rh-cbt_start condition="Intranet_Only" ?><span style="font-weight: bold;">Clause

        Organiser...</span><?rh-cbt_end ?><?rh-cbt_start condition="Hidden, Hide" ?>not

        <?rh-cbt_end ?><?rh-cbt_start condition="Desktop_Only" ?><span style="font-weight: bold;">Admin</span><?rh-cbt_end ?><?rh-cbt_start condition="Desktop_Only" ?>:   <?rh-cbt_end ?><?rh-cbt_start condition="Desktop_Only" ?><span style="font-weight: bold;">Organiser</span><?rh-cbt_end ?><?rh-cbt_start condition="Desktop_Only" ?>   from the menu, and click the <?rh-cbt_end ?><?rh-cbt_start condition="Desktop_Only" ?><span

        style="font-weight: bold;">Clause</span><?rh-cbt_end ?><?rh-cbt_start condition="Desktop_Only" ?>

        tab<?rh-cbt_end ?>.</li>

       

      Horrible, right-- for those that can't work it out, it's supposed to be <intranet_only><hide><desktop_only> but the tags multiply as you write. Basically I have two sentences butting up to each other, one for each version of the software, and a <hide> in the middle because RH got a bit dodgy about having two Conditional tags next to each other.

       

      So the text for Intranet should be:

               Select Tools: Clause Organiser...

       

      And the text for Desktop...

       

           Select Admin: Organiser from the menu, and click the Clause tab.

       

      However, the new 2019 version comes up with:

       

      <li class="list-ordered">Select <span data-condition="Others:Intranet_Only" style="font-weight: bold;">Tools</span><span data-condition="Others:Intranet_Only">: </span><span style="font-weight: bold;">Clause Organiser...</span>not <span style="font-weight: bold;">Admin</span>: <span style="font-weight: bold;">Organiser</span> from the menu, and click the <span style="font-weight: bold;">Clause</span> tab.</li>

       

      Simpler, right? Except it's missed out <hide><desktop_only> meaning that the text for Intranet is:

       

           Select Tools: Clause Organiser...not Admin: Organiser from the menu, and click the Clause tab.

       

      And the text for Desktop is:

       

           Select Clause Organiser...not Admin: Organiser from the menu, and click the Clause tab.

       

      Which is just so wrong on both counts. It doesn't even get one version right.

       

      And this has been used throughout the project as two applications use the same help.

       

      We also have another product in the range which is even worse for using Conditional Tags so it's not as though this is a one off for us.

        • 1. Re: Robohelp 2019 not importing Conditional tags correctly
          Peter Grainge Adobe Community Professional

          Where you post the code for Classic, I'm not clear whether you mean an earlier version or you have upgraded to both 2019 and 2019 Classic.

           

          If it was wrong in an earlier version but worked and you lived with it, then I'm not sure what to suggest apart from the obvious answer of correcting it, which sounds like a major piece of work.

           

          Tags multiplying was an issue but it was several versions back and there was a fix to stop it happening. I can't recall if it fixed the duplication.

           


          See www.grainge.org for free RoboHelp and Authoring information.

           

           

          @petergrainge

          • 2. Re: Robohelp 2019 not importing Conditional tags correctly
            HelpDragoncity Level 1

            Hi Peter,

             

            By Classic, I mean 2019 Classic. By New, I mean the fancy new 2019 RH design. All my projects are upgraded to 2019 Classic as I had a new computer given to me, and that was the version I installed, and the only version on this machine.

             

            The problem isn't that there are too many tags, the issue is that in the new 2019 it is deleting half the conditional tags in my code. Therefore the text that is in the output is gibberish because it's showing (not quite) two versions simultaneously in the output.

             

            I'm not bothered about there being too many tags-- as long as the end content is right. I've never heard of a version of RH that cleaned them up, and I've updated my projects to every version of RH since 2011 (at this company).

             

            What bothers me is that the new design 2019 RH is useless to me while it can't reproduce my tags correctly, as I don't have time to go back and redo work that shouldn't need redoing.

             

            It's a bug, and it needs sorting.

            • 3. Re: Robohelp 2019 not importing Conditional tags correctly
              Peter Grainge Adobe Community Professional

              You may not be bothered by too many tags but I'm wondering if that is the root cause. Can you look at an old backup to see if they had too many instances of a tag around certain text. I'm getting at duplicated tags for a string.

               

              What I am wondering is whether the original bug causing that did not affect things until now?

               

              Let me know that and I will see what I can find out. Also import a single topic that has that problem in a new 2019 Classic project and then upgrade it. I am hoping that will have the same problem so that there is something that Adobe can look at.

               


              See www.grainge.org for free RoboHelp and Authoring information.

               

               

              @petergrainge

              • 4. Re: Robohelp 2019 not importing Conditional tags correctly
                Peter Grainge Adobe Community Professional

                It was an issue back in RoboHelp 9. See Item 10 in Using RoboHelp 9

                 

                I doubt it is a hangover from that so I am wondering what you are seeing this duplication. Can you share something like the above project with me? I expect I am still caught by the company's confidentiality clauses.

                 


                See www.grainge.org for free RoboHelp and Authoring information.

                 

                 

                @petergrainge

                • 5. Re: Robohelp 2019 not importing Conditional tags correctly
                  HelpDragoncity Level 1

                  Due to the loss of a server, I no longer have backups that go back far enough not to have the multiple tag issue.

                   

                  The problem isn't with Classic 2019, it's with the New 2019. I only get the issue when I upgrade a Classic 2019 project up to a New 2019 project.

                   

                  Let me repeat, the variables are working correctly in Classic 2019. They cover the right parts of the text, and display the text correctly in the output.

                   

                  It's only when I go to New 2019 that about half of the variables are deleted.

                  • 6. Re: Robohelp 2019 not importing Conditional tags correctly
                    Peter Grainge Adobe Community Professional

                    At the beginning you said "So, in Classic, the code is:" Also you are now talking about variables rather than conditions.

                     

                    I'll await the project in 2019 Classic format with your notes and take it from there.

                     


                    See www.grainge.org for free RoboHelp and Authoring information.

                     

                     

                    @petergrainge

                    • 7. Re: Robohelp 2019 not importing Conditional tags correctly
                      HelpDragoncity Level 1

                      Sorry, slip of the keyboard (or brain). I'm only talking about conditional text.

                       

                      Variables was the last issue I had with RH

                      • 8. Re: Robohelp 2019 not importing Conditional tags correctly
                        Peter Grainge Adobe Community Professional

                        For anyone following this thread, the problem was caused by conditional tags having been duplicated at some point during the project's life. There was an issue such as this back in RoboHelp 9 but I don't know if that is the cause here. What you see is a string with the tag applied many times over instead of once.

                         

                        I removed all tagging from a string so that nothing was applied. Then I applied the tags again. With that done, the project worked correctly in 2019 Classic and upgraded correctly to the new 2019.

                         

                        I don't envy anyone the task of cleaning up the duplication.

                         


                        See www.grainge.org for free RoboHelp and Authoring information.

                         

                         

                        @petergrainge