12 Replies Latest reply: Feb 5, 2010 12:08 AM by Willam van Weelden Branched from an earlier discussion. RSS

    Mapping problems with bulleted lists

    Michael_GABO Community Member

      At the moment I'm testing the TS 2 Suite.

      When I import FrameMaker Files, than the mapping does not really apply my styles.

      I won't map the number list, that is not working well, RoboHelp cannot manage this really.

      I map only bulleted list and the conversion does not work very well, e.g. In one Bullet list it is converted into <ol> </ol>, wheras another ist converted into <ul> </ul>.

       

      Addtionally, when I apply my own css, then the list items are not correct, e.g. all list-style: square are diplayed in list-style: disc.

        • 1. Re: Mapping problems with bulleted lists
          Peter Grainge CommunityMVP

          Michael

           

          I think your post would be better as a new thread and in the FrameMaker Integration category within RoboHelp.

           

          I amended the title and hope that is OK. Let me know if you would prefer something else.

           

          Hopefully someone with FM to RH knowledge can help you here.

           


          See www.grainge.org for RoboHelp and Authoring tips

          Follow me @petergrainge

          • 2. Re: Mapping problems with bulleted lists
            Jeff_Coatsworth CommunityMVP

            How are you doing the mapping? Maybe you can provide a screen shot (use the little camera icon in your reply) of where you're setting this. When it comes to CSS magic - Willam's your man. Search for bullet lists on the forum and you'll probably find his posts.

            • 3. Re: Mapping problems with bulleted lists
              Michael_GABO Community Member

              Dear all,

              today, the mapping into unordered list is working, but the problem with the wrong list-style still persists.

              Attached you will find three screenshots, showing the mapping settings and the list settings.

              For your information, I wrote a css not with RoboHelp.

              When I choose in RoboHelp the square list item, it is shown correct.

               

              Here is the excerpt of my css:

               

              P.Bullet

              {
                  list-style: square;
              }
              LI.P-Bullet {
                  list-style: square;
                  line-height: 12pt;
              }

               

              Additionally, here is the excerpt of the html created by RoboHelp after the import:

               

              <p class="Body">Body</p>
              <ul style="">
                <li style="">
                <p class="Bullet">Bullet</p>
              </li>
                <li style="">
                <p class="Bullet">Bullet</p>
              </li>
                <li style="">
                <p class="Bullet1">Bullet 1</p>
              </li>
                <li style="">
                <p class="Bullet1">Bullet 1</p>
              </li>
              </ul>
              <p class="Body">Body</p>
              <ul style="">
                <li style="">
                <p class="Bullet">Bullet</p>
              </li>
              </ul>

               

              What is wrong in my way?

               

              Thanks for your help.

              • 4. Re: Mapping problems with bulleted lists
                Willam van Weelden CommunityMVP

                 

                Hi,

                 

                You cannot set the bullet style in the paragraph. You have to set it in the list, as you did in LI.P-Bullet.

                Your lists items (li) nor your list (ul) have any styling applied, so the browser will use the standard, which are bullets.

                 

                I don't use FM, so I can't help with the import, but you have to let Robo apply a list item style  to your lists, they should have the following HTML code:

                 

                <p class="Body">Body</p>
                <ul style="">
                  <li class="P-Bullet">
                  <p class="Bullet">Bullet</p>
                </li>
                  <li class="P-Bullet">
                  <p class="Bullet">Bullet</p>
                </li>
                  <li class="P-Bullet">
                  <p class="Bullet1">Bullet 1</p>
                </li>
                  <li class="P-Bullet">
                  <p class="Bullet1">Bullet 1</p>
                </li>
                </ul>

                 


                Greet,

                 

                Willam

                • 5. Re: Mapping problems with bulleted lists
                  Michael_GABO Community Member

                  Thank you Willam, you are right.

                  I'm not willing to do this manually, I expect it during the import from FrameMaker to RoboHelp as it was in RoboHelp 7.

                  But there you can't use it very well, because yu have then other problems as you can see in the new example.

                  But, this is a differnt story.

                  • 6. Re: Mapping problems with bulleted lists
                    Jeff_Coatsworth CommunityMVP

                    I think your fix may be a modified fmstyles.css that you use when you

                    bring in the FM file

                    • 8. Re: Mapping problems with bulleted lists
                      Michael_GABO Community Member

                      Solved, but I cannot mark it as answered.

                      • 9. Re: Mapping problems with bulleted lists
                        Gloria Mc Community Member

                        I am going to ask a question here because I am having bullet problems as well, somewhat related to this discussion. I've imported FrameMaker 8.0p277 files into RoboHelp 7.03.001 (File > Import > FrameMaker Document, not Add FrameMaker File/too many crashes) to create HTML (.chm) Help. Things work pretty smoothly except that some topics including bullet lists are being converted correctly and some are not. I've defined top-level bullet as a square bullet; some are regular disc bullets, however.

                         

                        In RoboHelp

                        I cannot see any difference in the RoboHelp HTML. For topic 1:

                        <ul><li class=p-Bullet><p class=Bullet>Item 1</p></li>
                            <li class=p-Bullet><p class=Bullet>Item2</p></li>
                        ...
                            <li class=p-Bullet><p class=Bullet>Last item</p></li>
                        </ul>

                         

                        For topic 2:

                        <ul><li class=p-Bullet><p class=Bullet>Item1</p></li>
                            <li class=p-Bullet><p class=Bullet>Item 2</p></li>
                           ...
                            <li class=p-Bullet><p class=Bullet>Last item</p></li>
                        </ul>

                         

                        In Compiled Help

                        However, in the compiled Help, the code for topic 1 is:

                        <ul>
                          <li>

                          <p class="Bullet">Item1</p>
                        </li>
                        ...

                         

                        For topic 2:

                        <ul><li class=p-Bullet><p class=Bullet>Item1</p></li>

                        ...

                         

                        Can you think of anything I might do to force RoboHelp to properly convert all bulleted lists? I have selected the entire bullet list for topic 1 and applied Normal style, then re-applied my Bullet style (which includes the square bullet). Any suggestions are welcome.

                         

                        Thx.

                        • 10. Re: Mapping problems with bulleted lists
                          Willam van Weelden CommunityMVP

                          Hi,

                           

                          I can't think of a reason that some lists are mutilated on export... While you're searching for a solution, the following might ease your pain for now. This javascript will dynamically change your lists:

                           

                          This works for regular browsers:

                          window.onload = function Lists    ()
                          {
                              var Lists = document.getElementsByTagName("li");
                              for(var i in Lists)
                              {
                                  if(
                          Lists[i].firstChild.getAttribute("class") == "Bullet")
                                     
                          Lists[i].setAttribute("class", "p-Bullet");
                              }
                          }

                           

                          For IE:

                          window.onload = function Lists    ()
                          {
                              var Para = document.getElementsByTagName("p");
                              for(var i in Para)
                              {
                                  if(Para[i].className == "Bullet")
                                      Para[i].parentNode.className = "p-Bullet";
                              }
                          }

                           

                          This script will go trough all your lists and check the paragraph class. If the class is "Bullet", it will apply the correct style ("p-Bullet") to the lists. Just put the script in a javascript file and add the script in the <head> section of your topics.

                           

                          Greet,

                           

                          Willam

                          • 11. Re: Mapping problems with bulleted lists
                            Gloria Mc Community Member

                            Thanks very much for the scripts, William. I'll definitely keep them for future use.

                             

                            For now, I have discovered that the topics that do not compile correctly are bullet lists following immediately by the Help project footer (go figure). If one or more body-style paragraphs lie between the bullet list and the footer, the bullets compile correctly. (Amazing! How dumb is that?!) So, my simple fix is to add a blank line at the bottom of the problem lists.

                             

                            Thx again,

                              --Gloria Mc

                            • 12. Re: Mapping problems with bulleted lists
                              Willam van Weelden CommunityMVP

                              That's quite amazing. Thanks for sharing your knowlegdge.

                               

                              Greet,

                               

                              Willam

                               

                              This e-mail is personal. For our full disclaimer, please visit www.centric.eu/disclaimer.