Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

TorgoX (1933)

TorgoX
  sburkeNO@SPAMcpan.org
http://search.cpan.org/~sburke/

"Il est beau comme la retractilité des serres des oiseaux rapaces [...] et surtout, comme la rencontre fortuite sur une table de dissection d'une machine à coudre et d'un parapluie !" -- Lautréamont

Journal of TorgoX (1933)

Thursday October 30, 2003
06:57 AM

RTF fun

[ #15474 ]
Dear Log,

I've been fiddling with RTF-generating code lately, for the ever-popular task of reading in a lexicon database and spitting out a tidily formatted happily sorted RTF file ready for hardcopying. It's never the same thing twice, so I can rarely reuse much code from one lexicon rendering task to the next. But that's not exactly tragic. What is tragic is this line of code I just wrote:
'verb' eq ( (values %{ $h2e->{$h2e_key} })[0]->[0]{'wc'} || '' )

If I were OOey/structy, that'd have been something like $haida_lex -> headword_group_by_key($h2e_key) -> gloss_group_by_index(0) -> entry_by_index(0) -> wordclass() || '' eq 'verb'.

Fleh.

For the actual RTF bits, I find myself constantly referring to this one BRILLIANT book called RTF Pocket Guide . BRILLIANT!

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.