On Tue, Mar 31, 2026 at 21:16 (+0200), Arash Esbati wrote:
> Jim <[email protected]> writes:
>> That is a good principle... but one should not descend into misery trying
>> to do that. The regexp
>> "\\(?:[ \t]*\\(?:\\[[^][]*?\\(?:{[^}{]*}[^][]*\\)*\\]\\)?\\|.*$\\)"
>> looks like the sort of thing that could bring on a migraine headache. :-)
> You get used to that kind of regexp stuff, be patient ;-)
I'd like to be patient, but at some point in one's life they realize (or,
in my case, have it pointed out to me) that I have fewer days in front of
me than behind me. (I hope that wasn't a depressing thing to say here!)
I write a lot more regexps for grep (or grep -E), and the number of \'s
there is considerably smaller than for getting these regexps into emacs.
And, of course for grep I wouldn't normally care about anything analogous
to (?:, so that would reduce things a bit too.
>> I do get good results with the tests I ran.
>> As it turns out, I was mixing up commands a bit: \startcomponent can't
>> take a \title, but I did check with
>> \startdocument [metadata:author={fun and ] games}]
>> (this metadata gets put in the PDF), and I checked that the author
>> field in the metadata is exactly what I might hope.
> Thanks for testing.
Thanks for coming up with the fix.
>> So I think your suggestions for ConTeXt-header-end and
>> ConTeXt-trailer-start are good, and if your offer to push them into
>> git is still on offer, please go ahead and do so.
> Done.
Perfect!
Jim