libera/#commonlisp - IRC Chatlog
Search
16:24:08
e40
Also, there is a pre-release available now. Send email to the same address asking for it and I'll shoot you the URL.
17:48:27
cpli
i.e. i have code that can leverage multiple backends which all create some object but have shared generic functions - all seems trivial and good - until i'm actually supposed to create one of these objects
17:51:43
jackdaniel
the function find-port accepts the "server path" argument that may be used to select a backend
17:52:21
jackdaniel
you may bind (or setf) *default-server-path* to i.e :clx-ttf and then all indirect port resolving will use the x11 backend
17:52:39
jackdaniel
you may use also (clime:with-output-to-drawing-stream (stream :svg "/tmp/foo.svg") ...) to use svg backend
17:52:54
jackdaniel
or (clime:with-output-to-drawing-stream (stream :clx-ttf nil) ...) to open a window
17:53:21
jackdaniel
if you are interested in the mechanism just navigate to the source of the function find-port
17:54:50
cpli
jackdaniel: you're a savior https://codeberg.org/McCLIM/McCLIM/src/commit/555728b4cd0744ce7c3c681c7e46425d34a31ed3/Core/windowing/ports.lisp#L41-L64
18:09:42
scymtym
splittist: i see. i extended zpb-ttf to support opentype fonts but i'm apparently too slow to release
18:11:08
splittist
The Type2 charstring parsing just takes a bytestream and some defaults from the font, so should be usable in a OFF / OpenType context.
18:17:11
splittist
I guess I should put what I've got (which is not in any way release-worthy) somewhere you can pick the eyes out of it and get back to extracting text from PDFs (:
18:18:51
scymtym
i didn't mean to discourage you from working on fonts. but looking at your solution would definitely be interesting
18:20:55
scymtym
ACTION also started to add support for the color bitmap tables at some point: https://techfak.de/~jmoringe/format.opentype-color-bitmaps-1.png :)
18:30:17
splittist
scymtym: I've dumped what I have here: https://github.com/splittist/jqs-type1 . To treat everything as octets I have reader macros on #" and #! as analogues of " and #\ (so you can use the character(s) for their byte values).
18:50:51
beach
Filystyn: #commonlisp is not really meant for newbie questions, although they are tolerated to some extent.
18:51:52
beach
Filystyn: But seriously, you need to learn to read some relevant sections of the standard.
18:52:55
beach
Filystyn: I understand, but you are potentially wasting people's time by asking questions that could be asked with a simple lookup in the standard.
20:02:36
contrapunctus
ober: strange thing to say to someone who tirelessly and patiently answers the darnedest newbie questions in #clschool O_o
20:05:57
jackdaniel
I agree that Filystyn asks questions that they should have found answers on their own, but mind that at least in theory being helpful does not contradict scarying people off
20:06:15
jackdaniel
another thing worth mentioning that scarying some people off may be a good filter
22:33:07
jmercouris
I'm having a problem with format, if I do something like "(format t "~:[~;lol~]" "fish")" it will slurp fish, ,and I can't print it
22:33:52
jmercouris
of course I *could* write a function that does this, but that seems excessive, anyone know how to print nthe value of a variable, or otherwise nil?
22:34:13
jmercouris
(format "~magical_control_string" "tomato") -> tomato, (format "~magical_control_string" nil) -> nil
22:35:34
jmercouris
you know what, forget it, I'll just set it to a default value of "" and call it a day
22:39:25
semz
jmercouris: For the first issue, ~* goes to the next argument and ~:* goes to the previous one, without printing anything.
22:44:29
pjb
jmercouris: (list (format nil "~A" "tomato") (format nil "~A" nil)) #| --> ("tomato" "nil") |#
1:55:52
jeosol
is (room-values) http://www.lispworks.com/documentation/lw71/LW/html/lw-1426.htm#46961 availabe in sbcl, if so under what package. I asked in #sbcl, cross-posting here. thanks