Another <p> question with stylesheets
-
ccardimon
- Propellus Maximus
- Posts: 1571
- Joined: Fri Jan 11, 2008 1:30 pm
- Location: Horsham, Pennsylvania
Another <p> question with stylesheets
I imported a project. That went well enough. I split it into topic, built the TOC, and a browse sequence. All went well enough. I started going through it and realized all my P blocks are p.Footer. Shouldn't they be p.BodyText?
I can change them one by one from p.Footer to p.BodyText, but I need to change them in larger numbers, or all at once if possible.
If this is possible, how do I do it?
I can change them one by one from p.Footer to p.BodyText, but I need to change them in larger numbers, or all at once if possible.
If this is possible, how do I do it?
Craig
Lost in Disturbia
Lost in Disturbia
Re: Another <p> question with stylesheets
They should just be <p> tags, although you could change them to the bodyText class, so long as you have that defined in the stylesheet. I'm guessing, though, that you imported the file and didn't map the style to the <p> tag or else you told it to import the Word styles.
The easiest thing to do would be to do a global find-and-replace on <p class="footer"> and replace it with <p class="bodyText"> or just <p>. Unless you actually have a footer class paragraph at the bottom of each topic, in which case, that gets more problematic.
The easiest thing to do would be to do a global find-and-replace on <p class="footer"> and replace it with <p class="bodyText"> or just <p>. Unless you actually have a footer class paragraph at the bottom of each topic, in which case, that gets more problematic.
Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
-
ccardimon
- Propellus Maximus
- Posts: 1571
- Joined: Fri Jan 11, 2008 1:30 pm
- Location: Horsham, Pennsylvania
Re: Another <p> question with stylesheets
My middle name is Problematic. GRIN.LTinker68 wrote:...that gets more problematic.
Craig
Lost in Disturbia
Lost in Disturbia
-
ccardimon
- Propellus Maximus
- Posts: 1571
- Joined: Fri Jan 11, 2008 1:30 pm
- Location: Horsham, Pennsylvania
Re: Another <p> question with stylesheets
Where would I perform this global S&R?LTinker68 wrote:The easiest thing to do would be to do a global find-and-replace on <p class="footer"> and replace it with <p class="bodyText"> or just <p>.
How does one do one of them thar things?
Craig
Lost in Disturbia
Lost in Disturbia
-
KevinDAmery
- Propellus Maximus
- Posts: 1985
- Joined: Tue Jan 23, 2007 8:18 am
- Location: Darn, I knew I was around here somewhere...
Re: Another <p> question with stylesheets
Open the Find and Replace window and enter the appropriate text in each field. To make the search global, change the pulldown that says "Current Topic" to "Whole Project." Also, since this is a code change, you'll need to enable the "Find in source code" check box.
And, I would recommend backing the project up before proceeding - if the find / replace parameters result in any code that isn't valid XHTML, you won't be able to open the topic, so having a backup gives you an escape route if things get hairy.
And, I would recommend backing the project up before proceeding - if the find / replace parameters result in any code that isn't valid XHTML, you won't be able to open the topic, so having a backup gives you an escape route if things get hairy.
Until next time....

Kevin Amery
Certified MAD for Flare
Kevin Amery
Certified MAD for Flare
-
ccardimon
- Propellus Maximus
- Posts: 1571
- Joined: Fri Jan 11, 2008 1:30 pm
- Location: Horsham, Pennsylvania
Re: Another <p> question with stylesheets
Thanks for the advice and the warning. I shall take heed of both.
Craig
Lost in Disturbia
Lost in Disturbia
-
doc_guy
- Propellus Maximus
- Posts: 1979
- Joined: Tue Nov 28, 2006 11:18 am
- Location: Crossroads of the West
- Contact:
Re: Another <p> question with stylesheets
You can also do it outside Flare. I often do my global find/replace in TextPad, because I like the interface better. Since your source files are all XML-based, you can use any product that can read text files.
-
doc_guy
- Propellus Maximus
- Posts: 1979
- Joined: Tue Nov 28, 2006 11:18 am
- Location: Crossroads of the West
- Contact:
Re: Another <p> question with stylesheets
Oh, and I'll second that you should have a generic <p> tag without a class. You REALLY Don't want to go down the road of having to apply your body class to every paragraph of body text in your project. You'll get sick of that VERY quickly.
-
ccardimon
- Propellus Maximus
- Posts: 1571
- Joined: Fri Jan 11, 2008 1:30 pm
- Location: Horsham, Pennsylvania
Re: Another <p> question with stylesheets
Fine by me. I do almost anything you guys recommend. You have been there and done that. I am struggling to do what you have already done.doc_guy wrote:Oh, and I'll second that you should have a generic <p> tag without a class. You REALLY Don't want to go down the road of having to apply your body class to every paragraph of body text in your project. You'll get sick of that VERY quickly.
Craig
Lost in Disturbia
Lost in Disturbia
-
ccardimon
- Propellus Maximus
- Posts: 1571
- Joined: Fri Jan 11, 2008 1:30 pm
- Location: Horsham, Pennsylvania
Re: Another <p> question with stylesheets
When I click on a structure block, and I click on Style Class, I get the popup menu of styles.
A message at the bottom of the menu says, "Only 20 of 69 syles shown."
How can I see the other styles that are hidden? Nothing I click is working.
A message at the bottom of the menu says, "Only 20 of 69 syles shown."
How can I see the other styles that are hidden? Nothing I click is working.
Craig
Lost in Disturbia
Lost in Disturbia
Re: Another <p> question with stylesheets
The popup list is the same content as what you'll see in the Styles pane or the styles drop-down menu. So if you're in a <p> tag, you'll see only paragraph-related styles. If you're in a list, you'll see only list-related styles.
Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
-
ccardimon
- Propellus Maximus
- Posts: 1571
- Joined: Fri Jan 11, 2008 1:30 pm
- Location: Horsham, Pennsylvania
Re: Another <p> question with stylesheets
Right, so why do I not see the classless P style I recently created? All other P styles except the new one seem to be there.LTinker68 wrote:The popup list is the same content as what you'll see in the Styles pane or the styles drop-down menu. So if you're in a <p> tag, you'll see only paragraph-related styles. If you're in a list, you'll see only list-related styles.
Craig
Lost in Disturbia
Lost in Disturbia
-
lacastle
- Propellus Maximus
- Posts: 1028
- Joined: Thu Apr 12, 2007 7:28 am
- Location: Wilmington, DE
- Contact:
Re: Another <p> question with stylesheets
This might be too drastic, but I think if you delete the p.whatever styles from your stylesheet, the text that was tagged as p.whatever will just default back to p.
Laura A. Castle
http://www.lauracastle.com
http://www.lauracastle.com
-
ccardimon
- Propellus Maximus
- Posts: 1571
- Joined: Fri Jan 11, 2008 1:30 pm
- Location: Horsham, Pennsylvania
Re: Another <p> question with stylesheets
It does seem a bit drastic. I think I may wait before doing this, and try a few other things. I don't know what, yet. Sigh.
Craig
Lost in Disturbia
Lost in Disturbia
Re: Another <p> question with stylesheets
Not exactly. They'll default back to <p> stylistically when you look at them through a browser, but the class name will still appear in the topic code. Deleting it from the stylesheet doesn't delete all instances of it in the project. Although I think others have submitted feature requests asking for that capability.lacastle wrote:This might be too drastic, but I think if you delete the p.whatever styles from your stylesheet, the text that was tagged as p.whatever will just default back to p.
I don't know what will happen in the print output if you remove a class from a stylesheet but leave the class specified in the topic.
Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
-
ccardimon
- Propellus Maximus
- Posts: 1571
- Joined: Fri Jan 11, 2008 1:30 pm
- Location: Horsham, Pennsylvania
Re: Another <p> question with stylesheets
Well, heck. I think I will leave this option in my back pocket for now. Sounds just a bit dicey to put into action. Call me a coward.LTinker68 wrote:Not exactly. They'll default back to <p> stylistically when you look at them through a browser, but the class name will still appear in the topic code. Deleting it from the stylesheet doesn't delete all instances of it in the project. Although I think others have submitted feature requests asking for that capability.lacastle wrote:This might be too drastic, but I think if you delete the p.whatever styles from your stylesheet, the text that was tagged as p.whatever will just default back to p.
I don't know what will happen in the print output if you remove a class from a stylesheet but leave the class specified in the topic.
Craig
Lost in Disturbia
Lost in Disturbia
-
lacastle
- Propellus Maximus
- Posts: 1028
- Joined: Thu Apr 12, 2007 7:28 am
- Location: Wilmington, DE
- Contact:
Re: Another <p> question with stylesheets
Coward 
Make a copy of the project and try it to see what happens.
Make a copy of the project and try it to see what happens.
Laura A. Castle
http://www.lauracastle.com
http://www.lauracastle.com
-
ccardimon
- Propellus Maximus
- Posts: 1571
- Joined: Fri Jan 11, 2008 1:30 pm
- Location: Horsham, Pennsylvania
Re: Another <p> question with stylesheets
Of course now that I gritted my teeth and was prepared to go Medieval on my project, the P style is showing up in the Style box. It wasn't there before. I raised the battleaxe and things suddenly decided to cooperated. Amazing.
Craig
Lost in Disturbia
Lost in Disturbia
