Missing styles during mapping

This forum is for all Flare issues related to importing files or projects.
Post Reply
leslie20
Jr. Propeller Head
Posts: 2
Joined: Fri Oct 06, 2017 11:13 am

Missing styles during mapping

Post by leslie20 »

Using Flare V11, I'm creating a new project by importing MS Word documents. (File > New Project > MS Word Documents). In the Stylesheet... window, I select the stylesheet that I've created with the Flare styles to use. When I get to the Paragraph Style Mapping... window, I am unable to see all of the css styles. Specifically, the missing styles are paragraph styles other than the "p" style. I have p.p1, p.p2, etc., to map to indented paragraph styles.

I've manually updated the import file with the mappings, as others have said that "refreshes" Flare's import, but I am still unable to view them in the Paragraph Style Mapping... window.

Interestingly, during my last documentation release, I was able to map these same styles, using the same stylesheet, and the same version of Flare, with no problems!

Any ideas why this isn't working now when it has before? Thanks!
ChoccieMuffin
Senior Propellus Maximus
Posts: 2630
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Missing styles during mapping

Post by ChoccieMuffin »

Isn't there an option something like "Keep MS Word styles"? Depending on whether that's clicked or not, the styles may or may not be selectable. (Bit of a moot point for me though, as I prefer to edit the Import file as a text file, as long as I'm careful of course.)
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
leslie20
Jr. Propeller Head
Posts: 2
Joined: Fri Oct 06, 2017 11:13 am

Re: Missing styles during mapping

Post by leslie20 »

ChoccieMuffin wrote:Isn't there an option something like "Keep MS Word styles"? Depending on whether that's clicked or not, the styles may or may not be selectable. (Bit of a moot point for me though, as I prefer to edit the Import file as a text file, as long as I'm careful of course.)
Yes, there is such an option. I usually select the Don't Preserve MS Word Styles option. When I select the Preserve MS Word Styles option, I get even less styles to choose from!

It seems to be an issue with the actual CSS, so I'll be copying formats over one at a time to see if I can find the specific issue.
mimisc
Jr. Propeller Head
Posts: 8
Joined: Fri Feb 02, 2018 9:33 am

Re: Missing styles during mapping

Post by mimisc »

Hi everyone!

This is a burning question for us too.

I've got two very long documents (500+ p) with lots of styling vital to the document's meaning (code examples, snippets, command interface labels, etc.).
I've created the styles as p.xxx styles in my style sheet, but I can't map to them in the "Map Styles" window when I import the Word doc.

Do I need to create div.xxx styles instead?

Thanks for your help!
ChoccieMuffin
Senior Propellus Maximus
Posts: 2630
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Missing styles during mapping

Post by ChoccieMuffin »

mimisc wrote:Hi everyone!

This is a burning question for us too.

I've got two very long documents (500+ p) with lots of styling vital to the document's meaning (code examples, snippets, command interface labels, etc.).
I've created the styles as p.xxx styles in my style sheet, but I can't map to them in the "Map Styles" window when I import the Word doc.

Do I need to create div.xxx styles instead?

Thanks for your help!
Try opening the .flimp file as a text file and add what you need to add in there. Here's an extract of the one I use:

Code: Select all

  <ParagraphStyles>
    <Map
      From="H1"
      To="h1" />
    <Map
      From="H1_NoChapNum"
      To="h1.NoChapNum" />
    <Map
      From="H1_Section_Heading"
      To="h1.Section_Heading" />
    <Map
      From="H2"
      To="h2" />
    <Map
      From="H2_KeepWithPrevious"
      To="h2.KeepWithPrevious" />
    <Map
      From="H3"
      To="h3" />
    <Map
      From="H3_PageBreakBefore"
      To="h3.PageBreakBefore" />
    <Map
      From="H4"
      To="h4" />
    <Map
      From="H4_PageBreakBefore"
      To="h4.PageBreakBefore" />
    <Map
      From="H5"
      To="h5" />
    <Map
      From="H6"
      To="h6" />
    <Map
      From="BodyCodeExplained"
      To="p.CodeExplained" />
    <Map
      From="BodyCodeLastLine"
      To="p.CodeLastLine" />
    <Map
      From="BodyImage"
      To="p.graphic" />
    <Map
      From="BodyImportant"
      To="p.important" />
    <Map
      From="BodyIntro"
      To="p.intro" />
    <Map
      From="BodyKeepWithNext"
      To="p.KeepWithNext" />
    <Map
      From="BodyNote"
      To="p.note" />
    <Map
      From="BodyTip"
      To="p.tip" />
    <Map
      From="BodyText"
      To="p" />
    <Map
      From="BodyWarning"
      To="p.warning" />
    <Map
      From="ListBullet"
      To="li.ListBullet" />
    <Map
      From="ListBullet2"
      To="li.ListBullet2" />
    <Map
      From="ListBullet3"
      To="li.ListBullet3" />
    <Map
      From="ListCodeExplained"
      To="p.ListCodeExplained" />
    <Map
      From="ListCodeLastLine"
      To="p.ListCodeLastLine" />
    <Map
      From="ListContinue"
      To="p.ListContinue" />
    <Map
      From="ListContinue2"
      To="p.ListContinue2" />
    <Map
      From="ListContinue3"
      To="p.ListContinue3" />
    <Map
      From="ListImage"
      To="p.ListGraphic" />
    <Map
      From="ListIntro"
      To="p.ListIntro" />
    <Map
      From="ListKeepWithNext"
      To="p.ListKeepWithNext" />
    <Map
      From="ListNote"
      To="p.ListNote" />
    <Map
      From="ListNumber"
      To="li.ListNumber" />
    <Map
      From="ListNumber2"
      To="li.ListNumber2" />
    <Map
      From="ListNumber3"
      To="li.ListNumber3" />
    <Map
      From="ListTip"
      To="p.ListTip" />
    <Map
      From="TableBody"
      To="p" />
    <Map
      From="TableHeader"
      To="p.TableHeader" />
    <Map
      From="TopicList"
      To="p.TopicList" />
  </ParagraphStyles>
  <CharacterStyles>
    <Map
      From="Emphasis"
      To="i" />
    <Map
      From="Hyperlink"
      To="a.(MS Word Style)" />
    <Map
      From="span_input"
      To="span.input" />
    <Map
      From="span_UI"
      To="span.UI" />
    <Map
      From="span_x-ref"
      To="span.x-ref" />
    <Map
      From="Strong"
      To="b.(MS Word Style)" />
  </CharacterStyles>
  <NewTopicStyles>
    <StyleName
      Name="H2KeepWithPrevious" />
    <StyleName
      Name="Heading 2" />
  </NewTopicStyles>
  <UsedParagraphStyles>
    <StyleName
      Name="H1_NoChapNum" />
    <StyleName
      Name="TopicList" />
    <StyleName
      Name="BodyText" />
    <StyleName
      Name="H2" />
    <StyleName
      Name="ListBullet" />
    <StyleName
      Name="ListNumber" />
    <StyleName
      Name="ListBullet2" />
    <StyleName
      Name="BodyNote" />
  </UsedParagraphStyles>
  <UsedCharacterStyles />
You should be able to do the same with your own styles. Good luck!
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
mimisc
Jr. Propeller Head
Posts: 8
Joined: Fri Feb 02, 2018 9:33 am

Re: Missing styles during mapping

Post by mimisc »

Thanks, ChoccieMuffin! I'm so relieved....That worked. (The example was especially helpful).
I REALLY appreciate your help.

In case anyone else needs this thread,
  • You can open the .flimp file in Notepad
    It is available on your hard drive (or wherever you store your Flare files). For me the file path was: Flare>[project name]>Project>Imports
ChoccieMuffin
Senior Propellus Maximus
Posts: 2630
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Missing styles during mapping

Post by ChoccieMuffin »

mimisc wrote:Thanks, ChoccieMuffin! I'm so relieved....That worked. (The example was especially helpful).
I REALLY appreciate your help.

In case anyone else needs this thread,
  • You can open the .flimp file in Notepad
    It is available on your hard drive (or wherever you store your Flare files). For me the file path was: Flare>[project name]>Project>Imports
Happy to help. I often look at the files Flare generates in Notepad++ as that gives me a better understanding of what's happening under the bonnet (or hood if you're that way inclined).
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Curlyshell
Propeller Head
Posts: 65
Joined: Fri Mar 01, 2019 9:14 am

Re: Missing styles during mapping

Post by Curlyshell »

Thanks so much for the great advice on mapping styles using the .flimp file!

Sadly, some of my styles still get left behind when I import my Word doc if I don't want to "Preserve MS Word Styles." I get most of the character styles, but not the strong and em styles. The code is clean of them. What am I doing wrong?
"I'm a technical writer, not a developer," she said...
Post Reply