How to have Glossary in Word output

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
Cecily
Sr. Propeller Head
Posts: 217
Joined: Wed Sep 10, 2008 6:01 am
Location: England

How to have Glossary in Word output

Post by Cecily »

My project is normally output as html help.

It includes a glossary that a colleague would like to use in a Word document, but it isn't included in the Word output and I can't just copy and paste as it from Flare as it comes through with all the xml tags.

My workaround was to open the html output, open the glossary, expand each entry, copy and paste from there into Word and then format it in Word.

That worked, but surely there's a quicker and easier solution?
"Books are a narcotic." (Franz Kafka)
I wonder what he'd say about help files?
KevinDAmery
Propellus Maximus
Posts: 1985
Joined: Tue Jan 23, 2007 8:18 am
Location: Darn, I knew I was around here somewhere...

Re: How to have Glossary in Word output

Post by KevinDAmery »

You can add a glossary topic. What you'll need to do is create a new page layout for glossaries and add a glossary proxy to it. Then add the topic to your word output TOC and build the output.

(What I usually do is set the glossary topic up as print-only using conditions because I don't want it in my CHM files.)
Until next time....
Image
Kevin Amery
Certified MAD for Flare
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: How to have Glossary in Word output

Post by LTinker68 »

Actually, the glossary proxy won't work in online outputs, at least not yet. So if you don't apply the print-only condition, then you'll get the glossary topic in the online help but the contents will be blank except for the title. Likewise with the index proxy.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
KevinDAmery
Propellus Maximus
Posts: 1985
Joined: Tue Jan 23, 2007 8:18 am
Location: Darn, I knew I was around here somewhere...

Re: How to have Glossary in Word output

Post by KevinDAmery »

True, but I don't want a blank topic either :D
Until next time....
Image
Kevin Amery
Certified MAD for Flare
Cecily
Sr. Propeller Head
Posts: 217
Joined: Wed Sep 10, 2008 6:01 am
Location: England

Re: How to have Glossary in Word output

Post by Cecily »

Thanks for the suggestions. However, they don't sound much quicker than the way I did it (especially as it's unlikely to be a frequent request).
"Books are a narcotic." (Franz Kafka)
I wonder what he'd say about help files?
scott
Propeller Head
Posts: 80
Joined: Tue Jan 03, 2006 6:35 pm
Location: miami
Contact:

Re: How to have Glossary in Word output

Post by scott »

Hi Cecily,
The glossary proxy should appear in your HTML Help, and you can force the definitions to be displayed using CSS. The only downside is that the user won't be able to close them. I think that's OK for your goals, though.

The glossary definitions use the div.GlossaryPageDefinition style. The display property is set using inline formatting to 'none.' We need to set it to 'block.' Here's how:

* Open your stylesheet in the internal text editor (right-click the stylesheet in the Content Explorer and select Open with > Internal Text Editor).
* Find div.GlossaryPageDefinition. If it's not there, you can add it.
* Set up the style as follows:

div.GlossaryPageDefinition
{
display: block !important;
}

The trick is the !important value. That overrides the inline formatting that makes your definitions hidden. !important is also what prevents it from being closed when the user clicks the glossary link.

hope this helps,
.scott
Scott DeLoach
Certified Flare trainer/consultant - http://www.clickstart.net
* MadCap Flare: The Definitive Guide
* CSS to the Point
* HTML5 to the Point
https://bit.ly/2LQN11O

scott@clickstart.net
Certified MAD for Flare
Post Reply