Hi Alex,
there was a bug in the previous code:
> ((<= 130 C) # utf
>(let? L (cdr (assoc C *PsGlyph))
> (prinl ")")
> (prin "[")
should be:
((<= 130 C) # utf
(let? L (cdr (assoc C *PsGlyph))
Hi Tomas,
I would presume that you are beginning to get close to the reason that
one often encapsulates strings into an object. You need to know the
display length of something to center it, and that means that you want
to know the length of the string. Without an encapsulating object, you
need to
Hi Tomas,
wow!! That's what I've been looking for since a long time!
I never found a way to use other characters than ISO-8859-1 in
"lib/ps.l". I even asked once in "comp.lang.postscript" witout avail.
I'll try it now, and build it into "lib/ps.l" when it works.
> I am not sure about Japanese
Hi Randall,
> display length of something to center it, and that means that you want
> to know the length of the string. Without an encapsulating object, you
> need to recalculate the length often. For most applications, this is
While this is often useful, I think it will not help here in this
Hi Tomas,
now I experimented a little with the glyphs. I would suggest that we use
an 'idx' instead of an 'assoc' list, as there might be quite a lot of
entries.
So I put "glyphlist.txt" in "lib/", and this code in the beginning of
"lib/ps.l":
# *PsGlyph
(in "lib/glyphlist.txt"
(use
Hi Tomas,
> However, centering unicode/non-ascii characters does not work. Any
> ideas how to achieve that?
This is a serious problem. I cannot see a way to send the string to the
PostScript interpreter for the 'stringwidth' calculation. Does anybody
have an idea?
Cheers,
- Alex
--
UNSUBSCRIBE
On Sun, Apr 26, 2009 at 06:49:49PM +0200, Alexander Burger wrote:
> I attach an experimental version of "lib/ps.l". For now, it simply
Oops, forgot the attachment :-(
# 26apr09abu
# (c) Software Lab. Alexander Burger
# *PsGlyph
(in "lib/glyphlist.txt"
(use (L C)
(while (setq L (line))
On Sun, Apr 26, 2009 at 06:49:49PM +0200, Alexander Burger wrote:
> I attach an experimental version of "lib/ps.l". For now, it simply
> outputs the glyph name and 'glypshow' for any characters (i.e. also for
> ASCII characters). I'll optimize that later.
Now, here is a version which generates the
On Sun, Apr 26, 2009 at 07:32:05PM +0200, Alexander Burger wrote:
> Now, here is a version which generates the PostScript output more
> intelligently.
Seems I never manage to attach the code to my mails :-(
# 26apr09abu
# (c) Software Lab. Alexander Burger
# *PsGlyph
(in "lib/glyphlist.txt"
(