Page 2 of 2

Re: Make a cheatsheet on the rules syntax

Posted: Tue Aug 23, 2011 10:14 pm
by Wladimir Palant
They should be in the same table but having some section headers there would make sense.

Working on that list once again makes me wonder whether we should have $dtd, $xbl and $ping - chances of seeing any of these types on the web are more than slim. Maybe we should just list them as $other.

Re: Make a cheatsheet on the rules syntax

Posted: Wed Aug 24, 2011 9:31 am
by Michael
If the cheat sheet is only intended to refer to popular syntax, I would omit all of the options you have listed and add a note to the bottom of the table stating that there are more options available, with the text linking to the existing documentation on filter options.

Re: Make a cheatsheet on the rules syntax

Posted: Wed Aug 24, 2011 9:36 am
by Wladimir Palant
Or that, sounds like a good idea (I guess that at least $match-case would fall into the same category).

Re: Make a cheatsheet on the rules syntax

Posted: Wed Aug 24, 2011 10:05 am
by Wladimir Palant
I created a proposal to reduce the number of type options: forum/viewtopic.php?f=4&t=8244

Re: Make a cheatsheet on the rules syntax

Posted: Wed Aug 24, 2011 1:28 pm
by Michael
I have only included the options that I think likely to be added to filters by the average user, adding only brief references to dtd, ping, xbl, xmlhttprequest, other, collapse, donottrack and match-case at the bottom of the table.

I have also made a start with element hiding section, adding one example to each of the tables. Does this demonstrate your envisaged arrangement for the section?

Re: Make a cheatsheet on the rules syntax

Posted: Wed Aug 24, 2011 1:46 pm
by Wladimir Palant
I changed the table layout slightly - I think that repeating the table header several times is confusing, also made the section headers regular table cells (but spanning two columns). I'll probably add some additional stying to the section headers later. One more nit: are you sure that xmlhttprequest is uncommon? Anyway, I think that it is starting to look good.

I guess that the separation in the element hiding section makes sense though I would probably say "Domain selection" instead of "Domain matching" (and probably a few more minor wording changes).

Re: Make a cheatsheet on the rules syntax

Posted: Wed Aug 24, 2011 2:05 pm
by Michael
Wladimir Palant wrote:...also made the section headers regular table cells (but spanning two columns).
Thanks, I'd been intending to modify the header layout at the end anyway.
Wladimir Palant wrote:One more nit: are you sure that xmlhttprequest is uncommon?
I would certainly class the option as uncommon. I cannot imagine that ordinary users, whom I have assumed are the intended audience, would need to know about the option, and even in major subscriptions such as Fanboy's List and Adversity it is only used once in each. The option is used a dozen times or so in EasyList, but relative to the total number of filters it is certainly unusual for it to be required.
Wladimir Palant wrote:I would probably say "Domain selection" instead of "Domain matching"
Agreed, I will implement this.

Re: Make a cheatsheet on the rules syntax

Posted: Wed Aug 24, 2011 10:10 pm
by Michael
I've practically finished the element hiding section of the cheat sheet, but it appears that the column width may need to be adjusted for, for example, example.com,~mail.example.com#selector.

Re: Make a cheatsheet on the rules syntax

Posted: Thu Aug 25, 2011 7:44 am
by Wladimir Palant
Done.

Re: Make a cheatsheet on the rules syntax

Posted: Tue Aug 30, 2011 5:47 pm
by Michael
Thanks. I've made a few more modifications and, as far as I'm concerned, the cheat sheet is finished. Any comments?

Re: Make a cheatsheet on the rules syntax

Posted: Wed Nov 16, 2011 12:20 pm
by Wladimir Palant
Let's make another attempt at this. The cheatsheet has the tendency to grow into large and complicated tables, so I thought about a different approach. Here is what I have so far: en/filter-cheatsheet (some of the old tables still remain at the end). The way it looks right now we could replace the current documentation with it rather than creating an additional page. One would only need to add a "more info" link to some explanation boxes - e.g. going to the full list of filter options or a detailed explanation of separator characters.

Comments?