Re: Extracting info from Quark 4 stylesheets
Re: Extracting info from Quark 4 stylesheets
- Subject: Re: Extracting info from Quark 4 stylesheets
- From: Hans Haesler <email@hidden>
- Date: Fri, 20 Jul 2001 08:39:24 +0200
On Thu, 19 Jul 2001, David Minehart wrote:
>
My project of extracting data from Quark stylesheets has hit another little
>
snag. (...)
>
(...) but the paragraph attributes are all weird and wordy, (...)
>
Anyone know why the second and subsequent passes through this loop yield
>
garbage from the paragraph attributes of the style specs?
David,
scripting style specs in QXP 4.x is broken, i.e. you can't create
them or extract the definitions directly (as we could using v3.32).
We have to live with these bugs since October 1998, when v4.04, the
first usable 4.x version came out. Reports have been submitted,
confirmed and logged -- but nothing has been done in 4.1 and 4.11.
My workaround for getting the definitions:
- create a text box
- get the list of the style specs, sort it, copy it in the box
- loop through the paragraphs and apply the style specs
- loop through the paragraphs and extract all attributes
While doing the last step, it is important that you _select_ the
current paragraph. Else, all info about rule above/below will refer
to the first paragraph.
My script is way too long for posting it here. Feel free to come
back in case you'll need any help.
Regards,
Hans
---
Hans Haesler | email@hidden