Power Headers to create dictionary style headers? Power Headers Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 4 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Power Headers to create dictionary style headers?
06/26/2012
8:13 am
Avatar
Ulrich Bogun
Member
Members
Forum Posts: 9
Member Since:
09/12/2011
sp_UserOfflineSmall Offline

I wonder if there is a way to make Power Headers build a header for the following purpose:

I have a list of about 6000 entries – food listed by its brands’ names. For the variable I use the charactyer style "Brand") inside the standard paragraph format (I changed from table to normal text design), where (via nested styles) the first word gets labelled with this charatcer style. The idea is to extend the character style manualle when a brand name is more than the first word.

So far this works fine and I got a header looking like "brandx – brandy".

 

When a brand contains several sub-items, its name is replaced by a –. So when a – appears I want this entry to be ignored. I guess I can I use a grep formula to replace "–" by ""? 

In the case of a brand name on the first line I and only "–"es following I want only this one name in the header: "brandx".

And if the page begins with a –, the previous name should appear together with the last valid entry of a brand name: "brandw – brandx".

Is it possible to train Power Headers this way?

Thanks, 

Uli

06/26/2012
9:33 am
Avatar
Harbs
Admin
Forum Posts: 201
Member Since:
12/19/2010
sp_UserOfflineSmall Offline

Hi Ulrich,

Off hand, I can not think of a way to do this automatically.

The way I'd probably handle this issue would be to do a grep search and replace to replace all the sub-entries with a different style.

You'll probably need to apply the nested styles as manual ones first. The Apply Nested Styles script could help with that:

http://in-tools.com/products/scripts/

06/26/2012
9:46 am
Avatar
Ulrich Bogun
Member
Members
Forum Posts: 9
Member Since:
09/12/2011
sp_UserOfflineSmall Offline

Solved it myself by changing the repeating paragraph’s style to a similar one that is not included in the header definition. Thought too complicated first …

 

Uli

06/26/2012
9:48 am
Avatar
Ulrich Bogun
Member
Members
Forum Posts: 9
Member Since:
09/12/2011
sp_UserOfflineSmall Offline

Oh, and thanks, Harbs! Didn’t see your reply before I posted mine. The script looks interesting, maybe I can use it for automatic exclusion of the unwanted paragraphs.

Forum Timezone: America/New_York

Most Users Ever Online: 197

Currently Online:
7 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

jacksonlame: 18

niftyix: 10

Ulrich Bogun: 9

jackferthomas: 8

Adrian: 8

Soyablack123: 7

Member Stats:

Guest Posters: 1

Members: 6013

Moderators: 0

Admins: 2

Forum Stats:

Groups: 3

Forums: 23

Topics: 279

Posts: 705

Newest Members: WiBjlnqboALz, NqmAUlOzLTYdRE, pyseed, QhuwMYagqvi, MWillustration, Our Daily Bread Ministries

Administrators: In-Tools: 11, Harbs: 201