help-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PDF bookmarks and special insertions & characters


From: Sebastian Urban
Subject: Re: PDF bookmarks and special insertions & characters
Date: Thu, 14 May 2020 16:47:06 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

1.  In my "test" texi file there is a line:
   @chapter ``Some text'' and the rest of the @TeX{} text

The point is, when I export file to PDF (texi2pdf --tidy test.texi,
with @documentencoding UTF-8), the bookmark that is created (PDF
bookmarks) has ``Some text'', while I was hoping for “Some text”
(curved quotes).

I can "fix" it like this:
   @chapter “Some text” ....

("fix" in this case means getting "Some text" in the bookmarks, which
is at least ASCII style quoting convention, i.e. it's better)

but is there any way to stick to the ``..'' convention?

It would have to be implemented.  The problem is that the PDF format
uses UTF-16 internally for the bookmarks, so using curly quotes
here is
quite difficult.  Hence we are stuck with ASCII in the bookmarks.  I
guess that " is better than `` but this may also be difficult to
implement.  `` is a ligature in the fonts used that is a curvy double
quote but the PDF bookmarks are completely separate - you'd need to
change the two tokens `` to something else somehow.

In this case, I'm not sure if any of the two options is really worth
it.  While effort for curly quotes can be considered, changing one
ASCII for another is not worth it in my opinion.  Changing `` to “ for
sections in source file seems to be much simpler, so I think it's the
best out of three of them.

Perhaps a "line" about this special case of “...” instead of ``...''
could be placed somewhere in Texinfo manual?  (Just a suggestion.)

What is the status here?  Do you still consider working on it, or -
as I noted - is it to much effort, for too little gain, i.e. not
really worth it?


S. U.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]