Place, Publisher: Date -- Formatting problem
Posted: Thu Mar 16, 2006 12:00 pm
Same old story -- I know what I want but I'm damned if I can get it...
Here's what I want.
If I enter everything, I want
Author, title (Place: Publisher, 2006)
If I don't know the Place, I want
Author, title (Publisher, 2006)
If I don't know the Publisher, I want
Author, title (Place, 2006)
If I don't know either Place or Publisher, I want
Author, title (2006)
...and if I don't know nothing nohow, I want
Author, title
I can get close, but I am, as I said, damned if I can get all of this. The insoluble problem seems to be in parsing <Place> to produce:
"If <Publisher> is defined, then print "Place: " else print "Place, "
Everything else is do-able but I end up, if Place is not defined, with:
Author, title (: Publisher, 2006)
(and if nothing is defined, I end up with
Author, title (
... but that's a different story.
What I am currently using is the string
a, t|~ (~u11~)~|~, ed++. ~e|~, trans. ~u3` (`l|~: ~u|~, ~d)
Any ideas, anyone?
Here's what I want.
If I enter everything, I want
Author, title (Place: Publisher, 2006)
If I don't know the Place, I want
Author, title (Publisher, 2006)
If I don't know the Publisher, I want
Author, title (Place, 2006)
If I don't know either Place or Publisher, I want
Author, title (2006)
...and if I don't know nothing nohow, I want
Author, title
I can get close, but I am, as I said, damned if I can get all of this. The insoluble problem seems to be in parsing <Place> to produce:
"If <Publisher> is defined, then print "Place: " else print "Place, "
Everything else is do-able but I end up, if Place is not defined, with:
Author, title (: Publisher, 2006)
(and if nothing is defined, I end up with
Author, title (
... but that's a different story.
What I am currently using is the string
a, t|~ (~u11~)~|~, ed++. ~e|~, trans. ~u3` (`l|~: ~u|~, ~d)
Any ideas, anyone?