Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chrisecker
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
chrisecker
5mo ago
Fixed it. Thanks for reporting.
2.
▲
by
chrisecker
5mo ago
I have been able to install MiniWord under Windows. It is a bit more challenging. You should use cairocffi instead of pycairo: pip install cairocffi You also need to install the Cairo DLL. The easiest way is to install the full GTK3
3.
▲
by
chrisecker
5mo ago
I came from the TeX-Approach where all layout elements are boxes which contain other boxes. This box-tree is a kind of DOM if you want. But the box-tree only represents the layout, not the data itself. For the data you usually have a separa
4.
▲
by
chrisecker
5mo ago
When you want to develop cross platform apps which use the native widgets, there are not so many options. The two big players are qt and wx.
5.
▲
by
chrisecker
5mo ago
Yes, I can see what you mean: There are hand coded colors together with system colors. With the dark mode this gives white text on white background for the side panel. Thanks for mentioning.
6.
▲
by
chrisecker
5mo ago
Cursor positioning is simple. The layout is a tree of nested box. Each box knows the x,y-position of its children. There is also an index dimension which numbers possible cursor positions. A box lies from i1 to i2 in index space. You just i
7.
▲
by
chrisecker
5mo ago
Ropes are for strings. In a word processor you need text with formatting, and structures as tables, images and math.
8.
▲
by
chrisecker
5mo ago
My mistake. Now it works (on linux).
9.
▲
by
chrisecker
5mo ago
My apologies. I added the missing file.
10.
▲
Show HN: A WYSIWYG word processor in Python
(codeberg.org)
91 points
by
chrisecker
5mo ago
|
38 comments
11.
▲
by
chrisecker
6mo ago
Finding a good data structure for a word processor is a difficult problem. My notebook diaries on the problem go back to 2001 when I was frustrated with using Word, which was at that time slow and unstable. While ropes and piece tables are
12.
▲
TexelTree – A data model for word processors
(codeberg.org)
3 points
by
chrisecker
6mo ago
|
2 comments
13.
▲
by
chrisecker
6mo ago
You're right that hidden structure is often the cause of strange effects — but Group is not a document element in that sense. It's invisible at the index level too: when you iterate over the document by index, you pass through Gro
14.
▲
Ask HN: Is there prior art for this rich text data model?
6 points
by
chrisecker
6mo ago
|
2 comments