Re: formatting and importing text to Quark
Re: formatting and importing text to Quark
- Subject: Re: formatting and importing text to Quark
- From: kim <email@hidden>
- Date: Wed, 6 Jun 2001 11:29:31 -0800
G'day Scott
>
I'm writing a script that should import data from a bunch of FileMaker
>
fields, string them into sentences and then put those into one large Quark
>
text box. Everything is going great, except that I need some fields to be
>
formatted differently than others (bold some, cap some, etc.). The fields
>
will be very different lengths from record to record, and some will be
>
different numbers of paragraphs (ruling out "set paragraph 5" methods).
this is pretty easy but you need to do it in FMP with calc fields and a
couple of global fields. You use the global fields to hold your style
tags and concatenate them into the final text block. eg. "field 1 text"
& "<b>" * "Field 2 text" & "<B>" and so on . The tags would/could be
stored in globals and called into the calc as fields. (hope that's clear
enough).
Alternatively you could use the FMP to Quark Tags OSAX and set all the
formatting into a single field if you like
>
Is there a way to place text into a box, format it, then add text after
>
it? Or pre-format it? Or something? I'm stuck.
no need if you plan it properly in advance and it will be much quicker
this way cause the text already has the tags.
A small issue here is that you need to write the file to disk and then
call it in rather than doing it straight from a variable - it sounds time
consuming but in reality takes a fraction of a second.
cheers
kim