--- In [EMAIL PROTECTED], Robin Berjon 
<[EMAIL PROTECTED]> wrote:
> skatethere wrote:
> > But if you do so, you'll have to manually create a list of unicode
> > values and corresponding glyph-name from the SVG font. A list of 
the
> > glyph-names can be obtained from the SVG font (in a non-XML-aware
> > fashion) by:
> > 
> > perl -ne 'chomp;($name=$_)=~s/^.*glyph-name=\"([^"]+)\".*$/
$1/g;print
> > $name, "\n" if /glyph-name/;' < font.svg
> 
> [getting OT]
> 
> As much as us Web geeks here know that Perl is the one and only way 
of 
> getting any and everything done, that's just wrong :) Ask CPAN to 
> install XML::XPath for you, and start from:
> 
>    xpath font.svg //@glyph-name
> 

Amen, I hear you, and personally prefer XML-aware tools in my general 
work. However, I find that for perl novices, installing Bundle::CPAN, 
running cpan-shell, setting up CPAN mirrors, finding and installing 
bundles, etc. is frequently too much to ask. As a result, when 
posting simple scripts online, I tend to use scripts with few or no 
dependencies.

Also, while using XML::XPath is an easy way to do searches, document 
changes involve a bit more understanding of DTDs, callback parsing, 
etc.

  --kirby





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

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



Reply via email to