groff
[Top][All Lists]
Advanced

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

Re: [Groff] passing groff special chars to pdfmark as bookmarks


From: smoore
Subject: Re: [Groff] passing groff special chars to pdfmark as bookmarks
Date: Wed, 05 Sep 2012 17:21:09 -0600
User-agent: Webmail 6.0


Deri,

That works right to PDF.  Nice.

For those that have used gs to assemble pdfs, setting various
pdf properties like permissions and pdf display variables, I wonder
how that is to be batched now that groff is going directly to pdf.

Are there extensions for these various attributes available at
groff run-time?

On Wed, 05 Sep 2012 12:32:18 +0100, Deri James
<address@hidden> wrote:
On Wednesday 05 Sep 2012 06:31:41 Werner LEMBERG wrote:
> [Please configure your e-mail program so that it replies to CCed
>  addresses also.]
> > >> Minimum example, please, together with your calling sequence.
> >> Werner
> > > > Sure.
> > > > Given original text file date string macros as :
> > > > .DA "20 avril 2012      " "S\['e]ance de l\*[psq]avant-midi"
> > > > .de DA
> > \\$1 \\$2
> > > > .pdfbookmark -T \\*(tg 1 "\\$1" "\\$2"
> > .
> > > > While the text is correct in the body of the transcript, the text
> > passed to bookmark drops the french char glyph completely,
> > producing as a bookmark:
> > > > Avril 12 2012      Sance de l'avant-midi (missing tranformed \['e])
> > Keith, can you help?
> > >     Werner

Using this as a test:-

.sp |1i
Bookmark Test
.sp 1
.ds tg tg
.trin '\C'aq'
.de DA
\\$1 \\$2
.pdfbookmark -T \\*(tg 1 "\\$1" "\\$2"
..
.DA "20 avril 2012      " "S\['e]ance de l'avant-midi"
.pdfsync

and command:-

groff -Tpdf t.trf

seems to produce the desired bookmark, although 2 warnings are
output. (You will need a recent CVS version of groff to include the
pdf device).

Deri







reply via email to

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