freenode/#clim - IRC Chatlog
Search
6:57:00
loke
I was wondering if this one is one of those pull requests that would be OK to merge myself?
6:57:07
beach
OK, so I am lost. I tried making a device font as jackdaniel suggested. This time I tried an ordinary text font (/usr/share/fonts/truetype/ubuntu/UbuntuMono-B.ttf). It makes the text style OK it seems, but when I do (draw-text* *standard-output* "hello" 100 100 :text-style <that-style>) things crash in a pretty spectacular way.
6:57:47
loke
jackdaniel: By the way, the impage transformation is very slow still. Is it still using the software-only code path, or is something wrong on my end?
6:58:28
beach
In the slime-repl buffer, I get Help! 11 nested errors. SB-KERNEL:*MAXIMUM-ERROR-DEPTH* exceeded. And then a backtrace with more than 400 entries.
7:00:14
loke
jackdaniel: should we perhaps add a CLIMB:ADD-FONT-FILE or some tsuch things, so that we'll get a renderer-independent interface to add fonts?
7:00:42
jackdaniel
loke: it is still software rendered. I wanted to incorporate it back right away, but McCLIM is not my sole project
7:02:01
jackdaniel
as of adding new interfaces: I said it yesterday - we should first investigate if we can't do it with primitives provided by the spec (like device-text-style) instead of slapping redundant interfaces to the api
7:51:12
jackdaniel
so either ttf you use is not right, you use freetype renderer or there is a problem with code. could you paste a snippet and a backtrace somewhere?
7:52:07
jackdaniel
scymtym: I know that it looks like I'm not looking at it, but my main focus last few days is groking stream-input module and how gestures are processed
8:07:07
loke
Is there a tree-widget for CLIM? (I want to display maxima documentation headers in a tree)
8:08:24
jackdaniel
if you are interested in taking your jab at writing one I've made a tutorial on who to create custom gadgets
8:09:01
jackdaniel
but it got suspended until I figure out how to marry gadgets and presentations (coincidentally it is related to stream-input btw)
8:09:35
loke
jackdaniel: I have such a long list of thoer things I want to look at first. I want to improve right-to-left rendering as discussed earlier, for one
8:10:12
loke
I should be able to get it to work for both ttf and ft renderers without much difficulty
8:11:07
loke
I've been tempted to look at arabic font shaping too... so that at least arabic will render correctly in the ttf renderer. However, I'm scared of jumping into that rabbithole
8:12:13
jackdaniel
first focus on rtl rendering (and write test/demo which explores various cases - from simple text to mixed direction)
8:12:54
jackdaniel
or even you may start with demo and then try to have a code which works with all test cases you've come up with
8:14:57
loke
There are really only two "main" rtl languages: Hebrew and Arabic, where arabic is singifincatly larger.
8:16:03
jackdaniel
I imagine it depends on the setting (i.e :direction :rtl) and what unicode characters are along the way (and not whenever it is Hebrew or Arabic)
8:17:25
loke
Both. I'm saying that there is only one major RTL language that can be rendered without shaping, and that's Hebrew
8:20:31
ecraven
quick question about the listener... (list 1 2 3 4 5) shows up as one presentation. is there any way to select the *numbers* themselves as presentations?
8:22:41
jackdaniel
ecraven: I doubt if there is, I would expect that the shown presentation type would be something like "result"
8:24:05
jackdaniel
nested presentations are a thing, but Listener's REPL output doesn't create them as far as I'm aware
8:25:57
loke
But there is interactions with the font engine too, and I haven't researched that. THat's the part that seems to be somewhat complicated. After all, Harfbuzz is not a simple library.
8:27:08
loke
So going for something simpler is probably better. That meand Hewbrew. :-) Its shaping seems to be limited to placement of dots above and below the characters. How hard could it be (famous last words)
8:27:44
loke
Yeah. That's my intention. At least basic Hebrew should woprk without any shaping at all.
8:28:14
ecraven
ok, just tried the open genera listener, that does create nested presentations ;) so that's where I got this idea
8:28:55
ecraven
if you show me some images, I should at least be able to tell whether it's kind of correct
8:29:48
loke
My companies biggest office is in Lebanon, and I go there with some regularity, which is why I've been mostly thinking about Arabic.
8:29:55
jackdaniel
if you want to convert output to an inspectable object (with nested presentation) I think you could feed the expression to the inspector (clouseau)
8:31:41
loke
Climaxima uses very deeply nested presentations. Every part of an equation is a presentation. So in 1/(x^2+y), you have... hmm... 6 presentations, no wait. 7