Pixel // pinterface | 1 May 2010 04:07
Picon

patch for unicode PDFs on clisp

There are three patches attached.

clisp-unicode.patch begins support for producing unicode PDFs on clisp.  It
is pretty uninteresting, other than making me wonder if cl-pdf should just
define an ascii-char-p function (or whatever an appropriate name for it
would be), instead of duplicating reader conditionals so many times.

clisp-encoding.patch limits the effects of setting *default-file-encoding*
to within cl-pdf itself, to avoid causing surprises for users with
alternately-encoded source files.  Or, copying from the patchfile itself:
;; Justification: *default-file-encoding* affects not only cl-pdf, but every
;; lisp file loaded or compiled after this, which causes encoding issues for
;; any bit of user code assuming the environment is set up for, e.g., utf-8.
;; cl-pdf should avoid changing defaults out from under its users if
possible.

clisp-encoding-2.patch does the same as clisp-encoding.patch, but for
cl-typesetting, with the justification that setting it in both cl-pdf and
cl-typesetting is redundant.

Enjoy!  Or...don't?

-pix
Who is much happier having figured out his encoding issues.

begin 666 clisp-encoding.patch
M.SL[.R!0871C:&5S('1O(&-L+7!D9 <at> T*.SL <at> 2G5S=&EF:6-A=&EO;CH <at> *F1E
M9F%U;'0M9FEL92UE;F-O9&EN9RH <at> 869F96-T<R!N;W0 <at> ;VYL>2!C;"UP9&8L
M(&)U="!E=F5R>0T*.SL <at> ;&ES<"!F:6QE(&QO861E9"!O<B!C;VUP:6QE9"!A
M9G1E<B!T:&ES+"!W:&EC:"!C875S97, <at> 96YC;V1I;F< <at> :7-S=65S(&9O< <at> T*
(Continue reading)

Marc Battyani | 1 May 2010 04:33

Re: patch for unicode PDFs on clisp

On 30-04-10 10:07 PM, Pixel // pinterface wrote:
> There are three patches attached.
>
> clisp-unicode.patch begins support for producing unicode PDFs on clisp.  It
> is pretty uninteresting, other than making me wonder if cl-pdf should just
> define an ascii-char-p function (or whatever an appropriate name for it
> would be), instead of duplicating reader conditionals so many times.
>
> clisp-encoding.patch limits the effects of setting *default-file-encoding*
> to within cl-pdf itself, to avoid causing surprises for users with
> alternately-encoded source files.  Or, copying from the patchfile itself:
> ;; Justification: *default-file-encoding* affects not only cl-pdf, but every
> ;; lisp file loaded or compiled after this, which causes encoding issues for
> ;; any bit of user code assuming the environment is set up for, e.g., utf-8.
> ;; cl-pdf should avoid changing defaults out from under its users if
> possible.
>
> clisp-encoding-2.patch does the same as clisp-encoding.patch, but for
> cl-typesetting, with the justification that setting it in both cl-pdf and
> cl-typesetting is redundant.
>
> Enjoy!  Or...don't?
>   

Thanks :) I will have a look but please resend the patches directly to
me as I can't read them in your original email.

> -pix
> Who is much happier having figured out his encoding issues.
>
(Continue reading)


Gmane