I’m interested in converting TeX to picts. It looks like racket-poppler might 
be the way to do that. 

Unfortunately, I’m having trouble running racket-poppler. I ran into several 
problems, but fortunately, all of the problems that I saw were also observed by 
the test suite. Running 

raco test -p racket-poppler

on my machine (macOS 10.15.2, racket built from git source this morning) 
produces both a contract failure and a core dump. (Transcript below.)

One obvious problem is that it looks like the latex->pict function now requires 
a #:preamble keyword, which apparently the tests don’t expect? Also, I’m 
dumping core in the ffi calls. What’s the right way to fix this?

Thanks!

John Clements



ardy:/tmp clements> raco test -p racket-poppler
raco test: "/Users/clements/racket/racket/share/pkgs/racket-poppler/info.rkt"
raco test: 
"/Users/clements/racket/racket/share/pkgs/racket-poppler/racket-poppler/examples/test-pdf-functions.rkt"
#t
#<pdf>
""
'((title "") (author "") (aubject "") (keywords "") (creator "LaTeX with 
hyperref package") (producer "pdfTeX-1.40.3") (page-count 364))
#<page>
'(612.0 792.0)
'(0.0 0.0 612.0 792.0)
"The Racket Guide\nVersion 5.3.4.11\nMatthew Flatt,\nRobert Bruce Findler,\nand 
PLT\nJune 9, 2013\nThis guide is intended for programmers who are new to Racket 
or new to some part of\nRacket. It assumes programming experience, so if you 
are new to programming, consider\ninstead reading How to Design Programs. If 
you want an especially quick introduction to\nRacket, start with Quick: An 
Introduction to Racket with Pictures.\nChapter 2 provides a brief introduction 
to Racket. From Chapter 3 on, this guide dives into\ndetails—covering much of 
the Racket toolbox, but leaving precise details to The Racket\nReference and 
other reference manuals."
"The Racket Guide\nVersion 5.3.4.11\nMatthew Flatt,\nRobert Bruce Findler,\nand 
PLT\nJune 9, 2013\nThis guide is intended for programmers who are new to Racket 
or new to some part of\nRacket. It assumes programming experience, so if you 
are new to programming, consider\ninstead reading How to Design Programs. If 
you want an especially quick introduction to\nRacket, start with Quick: An 
Introduction to Racket with Pictures.\nChapter 2 provides a brief introduction 
to Racket. From Chapter 3 on, this guide dives into\ndetails—covering much of 
the Racket toolbox, but leaving precise details to The Racket\nReference and 
other reference manuals.\n1"
'()
'((238.76 164.72937400000006 250.24267179999998 180.20601860000005) 
(250.24267179999998 164.72937400000006 259.8144342 180.20601860000005) 
(259.8144342 164.72937400000006 267.45807179999997 180.20601860000005) 
(267.45807179999997 164.72937400000006 271.7619218 180.20601860000005) 
(271.7619218 164.72937400000006 284.19144059999996 180.20601860000005))
Assertion failed: (! scaled_font->cache_frozen), function 
cairo_scaled_font_create, file cairo-scaled-font.c, line 1175.
test-pdf-functions.rkt: raco test: non-zero exit: 134
raco test: 
"/Users/clements/racket/racket/share/pkgs/racket-poppler/racket-poppler/examples/test-render-tex.rkt"
application: required keyword argument not supplied
  procedure: latex->pict
  required keyword: #:preamble
  arguments...:
   "$\\sqrt{x^2+y^2}$"
  context...:
   /Users/clements/racket/racket/collects/racket/private/kw.rkt:1544:14
   
"/Users/clements/racket/racket/share/pkgs/racket-poppler/racket-poppler/examples/test-render-tex.rkt":
 [running body]
   temp35_0
   for-loop
   run-module-instance!
   (submod 
"/Users/clements/racket/pkgs/compiler-lib/compiler/commands/test.rkt" process): 
[running body]
   temp35_0
   for-loop
   run-module-instance!
   eval-one-top
test-render-tex.rkt: raco test: non-zero exit: 1
raco test: 
"/Users/clements/racket/racket/share/pkgs/racket-poppler/racket-poppler/ffi.rkt"
raco test: 
"/Users/clements/racket/racket/share/pkgs/racket-poppler/racket-poppler/info.rkt"
raco test: 
"/Users/clements/racket/racket/share/pkgs/racket-poppler/racket-poppler/libs.rkt"
raco test: 
"/Users/clements/racket/racket/share/pkgs/racket-poppler/racket-poppler/main.rkt"
raco test: 
"/Users/clements/racket/racket/share/pkgs/racket-poppler/racket-poppler/render-tex.rkt"
raco test: 
"/Users/clements/racket/racket/share/pkgs/racket-poppler/test-render-tex.rkt"
application: required keyword argument not supplied
  procedure: latex->pict
  required keyword: #:preamble
  arguments...:
   "$\\sqrt{x^2+y^2+z}$"
  context...:
   /Users/clements/racket/racket/collects/racket/private/kw.rkt:1544:14
   
"/Users/clements/racket/racket/share/pkgs/racket-poppler/test-render-tex.rkt": 
[running body]
   temp35_0
   for-loop
   run-module-instance!
   (submod 
"/Users/clements/racket/pkgs/compiler-lib/compiler/commands/test.rkt" process): 
[running body]
   temp35_0
   for-loop
   run-module-instance!
   eval-one-top
test-render-tex.rkt: raco test: non-zero exit: 1
3/3 test failures
hardy:/tmp clements> 



-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/c851c393-ed3d-4f16-9104-fbcc63fd363e%40mtasv.net.

Reply via email to