Follow-up Comment #6, bug #67509 (group groff):

At 2025-09-18T17:40:00-0400, Deri James wrote:
> Follow-up Comment #5, bug #67509 (group groff):
>
> On Thursday, 18 September 2025 21:21:54 BST you wrote:
>> Follow-up Comment #4, bug #67509 (group groff):
>>
>>> 'pdfclean' was dropped by you from pdf.tmac over a year ago
>>> (because it was no longer used since the branch deri-gropdf-ng was
>>> incorporated).
>>
>> Thanks for the reminder; this information had expired out of my
>> brain cache.
>>
>> Is the big deri-gropdf-ng checklist done?  Can the branch be
>> deleted?
>>
>
> I thing the only bit left is '.strhex'. So the only thing preventing
> branch deletion is waiting for "I must do something about that" when I
> told you about the significant slow down in specific workloads since
> the introduction of the looping lookup.

Right.  Is that reproducible with the master branch today?  If so, with
what input document?

A reproducer that is easy for me to throw at the code would help
immensely.

> I was hoping, and you have mentioned it in passing, using c++ maps in
> groff, would result in a new .map/.lookup feature for groff which
> would have many user applications such as possibly indexing, as well
> as in pdf.tmac.

I'd prefer to avoid adding major new features at this point in this
release cycle, but if there's a slowdown that is unbearable, we'll have
to resolve it somehow.

> However with your herculean effort with .asciify I think I can see a
> way of replacing the loop and asciify the lookup name (instead of the
> device control string which is no longer done) to avoid the parser
> barfing. Not sure, an asciified string must still contain \[uXXXX]
> entities, may not be accepted as part of a .ds name (but should be if
> we welcome non-english users).

Hmm, well, any printable character is legal in a string identifier
except the escape character, which is configurable.

So you might do something underhanded like this.


.\" Define a new key string.
.eo
.ds pdf*key*\[u1234]\[u2345]*whatever value-\[u1234]\[u2345]
.ec
.
.\" ...much later...
.
.\" Look it up.
.eo
.als pdf*bookmark-content pdf*key*\[u1234]\[u2345]*whatever
.ec
.
.\" Use it.
\X'pdf:bookmark \*[pdf*bookmark-content]


Just spitballing.  I won't be surprised if this technique doesn't
survive a real-world attempt at application.

Regards,
Branden



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?67509>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to