Gentoo Archives: gentoo-dev

From: Joshua Saddler <nightmorph@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [Gentoo Phoenix] an official Gentoo wiki
Date: Mon, 05 Apr 2010 01:13:58
Message-Id: 20100404181333.6dab27c2@angelstorm
In Reply to: Re: [gentoo-dev] [Gentoo Phoenix] an official Gentoo wiki by Ben de Groot
1 On Mon, 5 Apr 2010 02:08:06 +0200
2 Ben de Groot <yngwin@g.o> wrote:
3
4 > On 4 April 2010 21:33, Joshua Saddler <nightmorph@g.o> wrote:
5 > > Having to write a custom stylesheet just to get one wiki page to do what
6 > > you want is pretty dumb.
7 >
8 > Yes it would be. The idea is that you design consistent styling from
9 > the get-go, so your stylesheets will be ready for those needs. Pretty
10 > much the same as the current documentation solution.
11 >
12 > > How is it unfair? Because tables really are so much simpler to write in
13 > > GuideXML?
14 >
15 > No, because they were displaying different things, using different features.
16 >
17 > > Here's a more complicated table:
18 > >
19 > > http://www.gentoo.org/doc/en/xml-guide.xml#doc_chap2_sect10
20 > > source: http://www.gentoo.org/doc/en/xml-guide.xml?passthru=1
21 >
22 > And you think that's intuitive? Tables are a bitch, and I think both
23 > the GuideXML approach (copied from HTML) and the wiki syntax one are
24 > equally unintuitive. In my opinion reStructuredText is offering a
25 > better alternative:
26 > http://docutils.sourceforge.net/docs/user/rst/quickref.html#tables
27
28 At least the GuideXML approach to tables is familiar to anyone who's worked with HTML. Oh wait, you shouldn't be comparing GuideXML with HTML. More on that later in this message.
29
30 Also, don't get me started on rST's many failings. It's just like wiki syntax, in that anything you want to do besides line spaces and lists involves stupid nonsemantic code. Having to define URIs twice is retarded:
31
32 "External hyperlinks sample sentence, like Python_."
33
34 .. _Python: http://www.python.org/
35
36
37 Tables:
38 A big problem with rST and wiki markup is that they try to preserve the rendered format within the source code view.
39
40 +------------+------------+-----------+
41 | Header 1 | Header 2 | Header 3 |
42 +============+============+===========+
43 | body row 1 | column 2 | column 3 |
44 +------------+------------+-----------+
45
46 That's rST source. This gets unwieldy very quickly for larger tables, as they'll overflow your editor window. Hey, that might not be a problem, but it's also a losing proposition to try to have that stuff rendered within the source view.
47
48 Let the renderer take care of the final rendering, as really, tags and markup are all arbitrary. What should matter is how it appears in your webbrowser, since that'll vary from the source view anyways.
49
50 . . . I hope you aren't seriously suggested rST as the wiki format.
51
52 > > Mediawiki mostly involves memorizing how many quote or tick marks you use.
53 >
54 > The beauty is: you don't have to memorize it, as it is just a click of
55 > a button on the editor interface away.
56
57 And not everyone will want to do that. I certainly don't like clicking around when it's easier and faster for me to just type the code myself.
58
59 Really, you're mostly making a case for a graphical XML editor like Beacon, rather than making a case for a wiki. :)
60
61 > > This markup is *completely nonsemantic*. In GuideXML, you know EXACTLY what
62 > > each tag means.
63
64 > No, I don't. The body and title tags are used quite differently from
65 > HTML, which is confusing. When do I use section and when do I use
66 > body? And what the frak is stmt? And why uri and figure instead of
67 > HTML's a and img tags? Except to a few dedicated people, GuideXML is
68 > confusing.
69
70 That's your problem, then. Do you know what semantic means? Semantic doesn't mean "just like HTML." So stop treating it that way. Let's look at semantic tags.
71
72 It's not hard to see that <var> is a variable and that <stmt> is a statement, and <comment> is a comment. Semantic markup is markup that means what it says. Using punctuation marks like ' '' ; : is neither semantically useful nor easily readable, as I showed in the code samples you oh-so-casually skipped over. Nice try. ' and ' ' mean nothing in and of themselves.
73
74 But you're not a web author, so I'll stop trying to beat you over the head with how things work. Next point:
75
76 > Having to mix HTML with a different dialect of XML is equally stupid,
77 > and moreover it is confusing. At least with MediaWiki, you don't have
78 > to use it, as there are other options.
79
80 Why the hell do you keep bringing up HTML? Stop comparing GuideXML with HTML. Treat them as two separate languages, please.
81
82 I only mentioned GuideXML in the context of "it's easier to learn because it has fewer tags than HTML" -- you operate under the mistaken assumption that GuideXML should be *like* HTML, and that HTML has too many tags. You assume that everyone comes from an HTML background and thus will be confused by GuideXML.
83
84 > What do you mean? You can predefine styles in your CSS to express your
85 > "textual color palette" (if I understand correctly what you meant by
86 > that). There is advanced code syntax highlighting available, for
87 > example using GeSHi.
88
89 Okay, then you also need a way to get those styles into your document by coming up with new tags or wiki markup.
90
91 <var> is a variable in GuideXML, and it'll be colored yellow. You mark this variable in a <pre> block with the <var> tag, which is created just for this purpose. How do you accomplish this in, say, Mediawiki syntax? Without trying to recycle some crap bit of HTML or tacking on inline styles.
92
93 Using <span> is ugly, because it's HTML. You should NEVER have to use more than one markup language at a time.
94
95 Do all the wikis out there have solutions for adding custom markup/tags?
96
97 > That's not fully correct. XML has in principle a practically infinite
98 > number of tags. It all depends on which "dialect" you use. If it is a
99 > dialect you do not use a lot, you will forget the usage of particular
100 > tags.
101
102 By "XML" I mean GuideXML.
103
104 And yes, clearly GuideXML and metadata.xml are some of your weak areas if you have to keep looking up the basics. However, with practice you *will* get better. :)
105
106 > > Most of us have used GuideXML at some point or another in our /proj/
107 > > webpages and devspaces, if not in /doc/en/. Guess what? That's the same
108 > > XML, and there's much, much more content constantly written for /proj/ and
109 > > dev.g.o than for /doc/. So don't try to tell me that people don't have at
110 > > least passing familiarity with it.
111 >
112 > That's not the point. The problem is that most of us don't use it
113 > often enough to be sufficiently fluent in it, and you will never use
114 > it for anything else but gentoo.org pages. Moreover, there is no web
115 > UI for quick edits, with helpful buttons and hints...
116
117 And you'll never use wiki syntax for anything but wiki pages. Specifically, the syntax of whatever wiki is chosen, and not all wikis are equal, so there's no guarantee that your syntax will be useful elsewhere. What's your point?
118
119 Quick edits are edits that go right to the code, where you don't have to slow down by using anything but the keyboard. Work with web languages long enough, and you'll appreciate not being hampered by a GUI.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] [Gentoo Phoenix] an official Gentoo wiki Ben de Groot <yngwin@g.o>