Log in

No account? Create an account
structured text update - LogJam [entries|archive|friends|userinfo]

[ website | LogJam ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

structured text update [Jan. 19th, 2003|01:34 pm]
That poll was really useful. I will try to finish the projects I've already started, then redirect my efforts based on your feedback. For example, Gaal and I have been discussing tabs versus multiple windows (he's for tabs, I'm more for windows) but it looks like you're over 2:1 in favor of tabs. (Of course, if we're careful we can support both without much effort... :P)

So in the interest of finishing things, I think I've got the basics of the structuredtext list parser working. It's a bit finicky but it does properly parser well-formed input:

And here's the HTML it generated:
<p>parser</p><ul><li><p>list</p><blockquote><p>blockquote</p></blockquote><p>more list</p><ul><li><p>sublist</p></li></ul></li><li><p>list 2</p></li></ul><p>meow</p>

I was pretty happy the first time that worked... :D

[User Picture]From: uberjames
2003-01-19 03:06 pm (UTC)
On the list of things I would do if I ever had time, would be modifying the spellchecker to be more html sensitive, so it doesn't mark href as an error..
(Reply) (Thread)
From: evan
2003-01-19 03:18 pm (UTC)
Hm, yeah, that is a good idea.

The tricky part is that it currently works without much knowledge of your text at all.

When you type "[a hre" and then hit "f", it takes the current cursor position, goes forward and backwards within the buffer to the extents of the words modified by that "f" (so basically, to the beginning and end of "href"), and then runs all words between those limits through the dictionary.

This means that it can't know (in the current design) that the href was actually within an HTML tag and perfectly fine.

A workaround would just be to add "href" to your dictionary, but that's kinda ugly.
(Reply) (Parent) (Thread)
[User Picture]From: way2tired
2003-01-19 09:09 pm (UTC)
I don't know how your algo works, but why not ignore everything from the point of < until you hit an >. I'm sure there's some reason not to do that, but I'm curious what it is.
(Reply) (Parent) (Thread)
[User Picture]From: myoldself
2003-01-19 09:03 pm (UTC)


How unstable is the friends group support, anyway? Thus far I haven't had a single problem with it, but am reminded that it's experimental every single time I post with custom security or modify a friends group. Can I disable the warning?
(Reply) (Thread)
From: evan
2003-01-20 12:58 am (UTC)

Re: Semi-off-topic

I guess I haven't looked it over carefully recently and I've been making a lot of changes elsewhere (like how subjects and moods were colliding), so I'm afraid to indicate it works right because I don't want to be responsible for someone's posts leaking to the wrong people.

The Windows client used to have a bug related to editing old posts with custom security that caused quite a few problems amongst people I know...

You say it works? Cool. Before I release 4.1 I will go over the code once to make sure it makes sense to me and then remove the warning.
(Reply) (Parent) (Thread)
[User Picture]From: gaal
2003-01-24 12:51 am (UTC)

Re: Semi-off-topic

We could make this a forgettable dialog...
(Reply) (Parent) (Thread)