logo       

Re: Symbols in text...: msg#00039

Subject: Re: Symbols in text...
Hi,

I had some luck using UTF-8 encodings. If you are running Perl 5.8+ and have PDF::API2 release 0.40_+ you can use it by:

$trademark = "\x{2122}";
$registered_trademark = "\x{ae}";
$copyright = "\x{a9}";
$bullet = "\x{2022}";

The stable version of PDF::API2 does not handle utf8 strings correctly.

On Wednesday, November 24, 2004, at 05:06 PM, Mark Fowle wrote:

My code used zapfdingbats for special characters(in a specific report that I run), the characters you need are probably in the standard fonts, but I did not check.
I would write out a table of the characters, if they are not there try different encodings, iso-8859-1 and what not.
For encoding see older emails in this list, I cant find any at the moment, or hope some one else answers with a more complete example than me.
 

-----Original Message-----
From: Tim Turner [mailto:tturner-DdRK1sPn6Jfc+919tysfdA@xxxxxxxxxxxxxxxx]
Sent: Wednesday, November 24, 2004 4:51 PM
To: perl-text-pdf-modules-hHKSG33TihhbjbujkaE4pw@xxxxxxxxxxxxxxxx
Subject: RE: [perl-text-pdf-modules] Symbols in text...

So you have to set the font to zapfdingbats to get that to work?


I was hoping it was something I could embed in a $txt->paragraph type call but I guess not.  Looks like we'd have to leave a space in the paragraph and then somehow determine the translation location to add just that one symbol as an overlay in the right location???? 

If I'm off base, please let me know.

<image.tiff>
From: Mark Fowle [mailto:mfowle-uVnJ9s0aRV+BUy7/sJONFg@xxxxxxxxxxxxxxxx]
Sent: Wednesday, November 24, 2004 4:50 PM
To: 'perl-text-pdf-modules-hHKSG33TihhbjbujkaE4pw@xxxxxxxxxxxxxxxx'
Subject: RE: [perl-text-pdf-modules] Symbols in text...


I quite often use code such as the below (note the default font for the below in my script is zapfdingbats for the numbers in circles)

this should work:
    my %char;
    $char{1} =  chr(172);
    $char{2} =  chr(173);
    $char{3} =  chr(174);
    $char{4} =  chr(175);
    $char{nbsp} =  chr(160);
    $char{bullet} = chr(129);
# noting that these are not the codes you asked about but you get the idea
    $txt->translate($x_base,$y);
    $txt->text("$char{1}");


you might want to write a loop to print out the number and the printed character for both normal fonts and zapfdingbats or do we searches.


-----Original Message-----
From: turnertim [mailto:tturner@xxxxxxxxxxxxxxx]
Sent: Wednesday, November 24, 2004 4:25 PM
To: perl-text-pdf-modules-hHKSG33TihhbjbujkaE4pw@xxxxxxxxxxxxxxxx
Subject: [perl-text-pdf-modules] Symbols in text...





Is it possible to place special character symbols in text like in HTML.

- trademark symbol
- copyright symbol
- bulleted list bullet symbols (like with <UL> and <LI> in html)


If so, how.

-Tim





------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/dpFolB/TM
--------------------------------------------------------------------~->


To unsubscribe from this group, send an email to:
perl-text-pdf-modules-unsubscribe-Km8ibD4bFueDmjp1MlKEbA@xxxxxxxxxxxxxxxx



Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/perl-text-pdf-modules/


<*> To unsubscribe from this group, send an email to:
    perl-text-pdf-modules-unsubscribe-hHKSG33TihhbjbujkaE4pw@xxxxxxxxxxxxxxxx


<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





To unsubscribe from this group, send an email to:
perl-text-pdf-modules-unsubscribe-Km8ibD4bFueDmjp1MlKEbA@xxxxxxxxxxxxxxxx






To unsubscribe from this group, send an email to:
perl-text-pdf-modules-unsubscribe-Km8ibD4bFueDmjp1MlKEbA@xxxxxxxxxxxxxxxx






To unsubscribe from this group, send an email to:
perl-text-pdf-modules-unsubscribe-Km8ibD4bFueDmjp1MlKEbA@xxxxxxxxxxxxxxxx




<image.tiff>
<image.tiff>

Yahoo! Groups Links

• To visit your group on the web, go to:
http://groups.yahoo.com/group/perl-text-pdf-modules/
 
• To unsubscribe from this group, send an email to:
perl-text-pdf-modules-unsubscribe-hHKSG33TihhbjbujkaE4pw@xxxxxxxxxxxxxxxx
 
• Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


--- Shawn
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe