[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: [sqr-users] Underlining a portion of paragraph



Steve,

I wrote a library that allows you to do (among many other things) the following:

move 'This is some long text that will definitely wrap onto multiple lines.  I 
want <u>some of it to 
be underlined</u>, but most of it will not be.' to $text
do  print_html($text,#length,#y,#x)

or even

move '<p align=justify>This paragraph will be right and left justified like a 
newspaper column. 
This is some long text that will definitely wrap onto multiple lines.  I want 
<u>some of it to be 
underlined</u>, but most of it will not be.</p><p style="margin-top:15" >This 
paragraph will have 
extra white space above it.</p>' to $text
do  print_html($text,#length,#y,#x)

I haven't decided what to do with it yet (just give it away or try to license a 
toolkit).  Is this 
what you are looking for?

Steve, why don't you send me a note off line and we can work something out.

Poll:  Would any of your organizations want to do sophisticated things with 
proportional fonts and 
html rendering in SQR?  Send me responses and I'll publish results back to this 
list.

Cheers,
Eric



Bryson, Steven wrote:

> This was originally what I was going to do, however, the entire paragraph is
> dynamic and the underline portion could potentially span two rows. I am also
> using a proportional font.  I have looked through some of the archives and
> checked some other resources.  This was just kind of a last effort.
> 
> Thank you for your response.
> 
> -----Original Message-----
> From: don.barclay@srs.gov [mailto:don.barclay@srs.gov]
> Sent: Tuesday, March 01, 2005 4:20 PM
> To: This list is for discussion about the SQR database reporting
> language from Hyperion Solutions.
> Subject: Re: [sqr-users] Underlining a portion of paragraph
> 
> 
> Hi Steve,
> 
> This is easy if you are using a monospace font.  You can use separate 
> print statements, and use a print location of (,+1) (same line, one column 
> to the right) to add the underlined text at the proper location.
> 
> For your example:
> 
> Print 'Therefore,'            (+1,10)
> Print 'you must take one'       (,+1) underline
> Print 'of the following actions to avoid further consequences.' (,+1)
> 
> If you are using a non-monospace font, it becomes much more difficult to 
> properly place the text for the separate print statements.  You can scan 
> the archives for discussions on how to do this.
> 
> Hope this helps,
> Don
> 
> 
>>I have created a letter (.pdf) where a series of words in the paragraph 
> 
> need
> 
>>to be underlined.  I am not sure if this can be accomplished and was
>>wondering if someone had any ideas.
>>
>>I have tried to create and print a variable containing all of the text
>>leading up to the underline and then force printing the location of the
>>underline text, however, the paragraph is dynamic and the location will
>>never be the same place each time.
>>
>>Example text :Therefore, (underline)you must take one(/underline) of the
>>following actions to avoid further consequences. 
>>
>>Any help is appreciated.
>>
>>Steve Bryson - Technical Business Analyst
>>Center for Analysis and Reporting -PHH ARVAL
>>Steve.Bryson@phh.com 
>>(410) 771-2732 
> 
> 
> _______________________________________________
> sqr-users mailing list
> sqr-users@sqrug.org
> http://www.sqrug.org/mailman/listinfo/sqr-users
> 
> 
> "The sender believes that this E-mail and any attachments were free of any
> harmful and malicious code or defects when sent.  This message and its
> attachments could have been infected during transmission.  By reading the
> message and opening any attachments, the recipient accepts full
> responsibility for taking protective and remedial action regarding the code
> or such defects.  The sender is not liable for any loss or damage arising in
> any way from this message or its attachments."
> 
> _______________________________________________
> sqr-users mailing list
> sqr-users@sqrug.org
> http://www.sqrug.org/mailman/listinfo/sqr-users
> 
> 

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users