Search found 133 matches

by jjw
Mon Sep 23, 2019 6:34 pm
Forum: Flare's General Discussion
Topic: Removing undefined conditions
Replies: 3
Views: 1940

Re: Removing undefined conditions

You can edit the target in a text editor and remove the unwanted conditions from the ConditionTagExpression attribute value. That worked for me.

J
by jjw
Tue Aug 27, 2019 3:36 pm
Forum: Web-based Outputs
Topic: Automatic permalinks for headings
Replies: 2
Views: 1449

Re: Automatic permalinks for headings

I haven't used this directly on Flare output but there's a plugin for rehype to autolink headings - this is the git repo: rehype-autolink-headings. The heading must have an id but you can create one automatically from the heading text by also running rehype-slug.
by jjw
Mon Jul 22, 2019 5:24 pm
Forum: Web-based Outputs
Topic: IDs for H1 - ADA Compliance
Replies: 1
Views: 1039

Re: IDs for H1 - ADA Compliance

Could you use something like rehype-slug to process the output? It's a plugin for rehype that adds ids to html headings using the heading slug as the id. I don't think you can restrict it to specific heading levels though.
by jjw
Mon Jul 15, 2019 3:01 pm
Forum: Printed Documentation Targets
Topic: Cross-references pulling out more than h1 data
Replies: 5
Views: 1990

Re: Cross-references pulling out more than h1 data

I think an xref looks for the first block-level element in the body of a topic so do you maybe have the whole topic wrapped in some element? Like a rogue <p> element say?
by jjw
Mon Jul 15, 2019 1:32 am
Forum: Flare's General Discussion
Topic: Create TOC from Links viewer list?
Replies: 5
Views: 1918

Re: Create TOC from Links viewer list?

If you don't mind writing a SQL query then for grabbing the urls you could use the Outgoing Link table in the Analyser database. The "Link" column has the link url in the correct format for a toc entry (that is, relative to the base folder for the project) and you can filter by FileID (to ...
by jjw
Mon Jun 24, 2019 5:23 pm
Forum: Single-Sourcing
Topic: Set condition dynamically?
Replies: 15
Views: 16870

Re: Set condition dynamically?

Code: Select all

When you generate output, content that has conditions applied to it has an attribute applied to the tag 
I notice that this doesn't happen if you publish to "Clean XHTML" - don't know why though, there's nothing especially unclean about data attributes is there?

J
by jjw
Thu Jun 20, 2019 3:42 pm
Forum: MadCap Lingo General Discussion
Topic: How do you handle images?
Replies: 3
Views: 2811

Re: How do you handle images?

I've used all three - disclaimer though, our localisation strategy could best be described as "chaotic evil" so I do my best to encourage people to use fewer screenshots. I use Capture with simple GUIs (like a four line LCD screen) but it gets hard to manipulate once you've added several c...
by jjw
Wed Jun 19, 2019 3:20 pm
Forum: Flare's General Discussion
Topic: workflow with Markdown?
Replies: 8
Views: 6530

Re: workflow with Markdown?

Have you tried running the html output through Pandoc? If the result is acceptable at least you could automate that with a build script. I played with Pandoc a bit and I can't say that the results were wonderful - but there are lots of Pandoc settings you can tweak. It might work ok if your markup i...
by jjw
Tue Jun 11, 2019 5:27 pm
Forum: Importing
Topic: Text file import automation
Replies: 2
Views: 1621

Re: Text file import automation

I'll add a vote for PowerGrep.
by jjw
Fri Apr 19, 2019 3:19 pm
Forum: Styles, Stylesheets and XML
Topic: Span tags in menu proxies
Replies: 17
Views: 7798

Re: Span tags in menu proxies

In this case I just put the style in the stylesheet which is specified as the master in my project properties so it defaults into my targets. Tbh, I rarely use the style editing features in Flare because I find it faster and more flexible to just do everything in Notepad++ or VSCode or whatever (and...
by jjw
Thu Apr 18, 2019 3:40 pm
Forum: Styles, Stylesheets and XML
Topic: Span tags in menu proxies
Replies: 17
Views: 7798

Re: Span tags in menu proxies

If you add a class to the TocEntry (either manually as I did, or by adding it to the skin and selecting it in the properties as people here have described) it just gets added to the classes that are applied to the menu item when you generate the output. Specifically it's added to the list item in th...
by jjw
Wed Apr 17, 2019 4:05 pm
Forum: Styles, Stylesheets and XML
Topic: Span tags in menu proxies
Replies: 17
Views: 7798

Re: Span tags in menu proxies

You can always add a class manually to a TocEntry by editing the toc file with a text editor. Then target the enclosed link in a stylesheet. <TocEntry Title="Logging on to SPM" Link="/Content/Topics/Interface/SPM/pcd_Logon_SPM.htm" Class="pdf" /> and then in the stylesh...
by jjw
Thu Apr 11, 2019 2:22 pm
Forum: Printed Documentation Targets
Topic: Link text replaced when h1 conditionalized out of XHTML outp
Replies: 5
Views: 2249

Re: Link text replaced when h1 conditionalized out of XHTML

You could get rid of the headings with some kind of post-build processing. It wouldn't be too arduous if you automated it. That way the links would be generated before you removed the heading. Or you could look for another tool :) I must admit that I sometimes wonder if the pros of Flare outweigh th...
by jjw
Wed Apr 10, 2019 3:43 am
Forum: Flare's General Discussion
Topic: Adding custom tags
Replies: 10
Views: 2868

Re: Adding custom tags

What about putting the text in a data attribute (like data-tooltip)?
by jjw
Wed Apr 10, 2019 3:40 am
Forum: Printed Documentation Targets
Topic: XHMTL TOCs: no structure
Replies: 3
Views: 1534

Re: XHMTL TOCs: no structure

Why not just use the original fltoc file - you might need to do some processing (to resolve conditions for example) but it has a fairly straightforward nested toc structure.
by jjw
Tue Apr 09, 2019 4:47 pm
Forum: Printed Documentation Targets
Topic: Link text replaced when h1 conditionalized out of XHTML outp
Replies: 5
Views: 2249

Re: Link text replaced when h1 conditionalized out of XHTML

That's not a bug - the default xref is configured to return {paratext} which is the text of the first block level element that it finds at the link destination. If you link to a file, that will typically be the h1 element except that you have removed the h1 element. You can configure the xref style ...
by jjw
Wed Apr 03, 2019 6:20 pm
Forum: Flare's General Discussion
Topic: Plugins
Replies: 3
Views: 1755

Re: Plugins

Oh thanks - well that's annoying ... actually when you go to their PluginAPI guide here http://docs.madcapsoftware.com/flare201 ... IGuide.pdf it just says "Coming soon". I suppose that's good - they haven't updated that for quite a while.

J
by jjw
Wed Apr 03, 2019 4:07 pm
Forum: Flare's General Discussion
Topic: Plugins
Replies: 3
Views: 1755

Plugins

I have a few plugins I've written for Flare and I'm noticing problems with Flare 2019. Toolbar items are not loading, but plugins that use context menu options are still working fine. Anyone know what's going on here?

Maybe I'll have to convert all my plugins to run from the context menu ...


J
by jjw
Wed Mar 27, 2019 6:11 pm
Forum: Web-based Outputs
Topic: DataTables .js plugin works in topic but not from masterpage
Replies: 9
Views: 3279

Re: DataTables .js plugin works in topic but not from master

I've used datatables in the past by loading from the master page using requirejs pretty much as described in the issues you linked to. One gotcha is that the path you specify in the requirejs configuration must be from the topic to the script, not from the master page to the script - so if your topi...
by jjw
Wed Mar 20, 2019 1:16 pm
Forum: Flare's General Discussion
Topic: Create an image map without right-clicking
Replies: 5
Views: 1728

Re: Create an image map without right-clicking

Are you saying that your image is wrapped in a div and that - after you set the class on the div - if you then right-click on the image you don't see the option to create an image map? If so, it's possible that you still have the div selected and you're seeing the context menu for the div. You could...
by jjw
Sat Feb 23, 2019 4:07 pm
Forum: Printed Documentation Targets
Topic: Unresolved link to file warning in Word output
Replies: 6
Views: 3055

Re: Unresolved link to file warning in Word output

I don't know if this is relevant to your case, but I commonly include links to Word documents in my Word output (I then use a macro to merge the linked documents). No matter where I put the linked document Flare consistently generates an inaccurate link in the output - specifically it always has one...
by jjw
Mon Feb 18, 2019 3:05 pm
Forum: Printed Documentation Targets
Topic: Can you insert files of other formats?
Replies: 2
Views: 1658

Re: Can you insert files of other formats?

Not sure if you mean you want to link to an external Word document from within the output or if you want to actually import the document prior to generating the pdf. I import additional Word documents into my Word output by putting a link to the document in a Flare topic and then running a Word macr...
by jjw
Thu Feb 14, 2019 10:22 pm
Forum: Flare's General Discussion
Topic: Querying a database for content
Replies: 7
Views: 3291

Re: Querying a database for content

On the Advanced tab of the target there's an option "Use custom file extension for topics".
by jjw
Sun Jan 06, 2019 1:04 pm
Forum: Single-Sourcing
Topic: Project: Build - Use lowercase file names
Replies: 1
Views: 1902

Re: Project: Build - Use lowercase file names

It converts your file and folder names to lower case when you build the output. It doesn't seem to affect files or folders that Flare creates itself though - like 'Default.htm' - so there's still a bit of cleaning required in the output. I haven't tested to see what Flare does if the case change res...
by jjw
Thu Dec 06, 2018 6:00 pm
Forum: Source Control
Topic: Flare and Bitbucket: Failed to authenticate SSH session
Replies: 3
Views: 3380

Re: Flare and Bitbucket: Failed to authenticate SSH session

I'm also having some problems with Bitbucket at the moment and they've reported some problems on their status page over the last few days. Maybe it's not you?