Re: Few thoughts about (theoretical) new manual format

From: Date: Tue, 01 Apr 2014 16:42:32 +0000
Subject: Re: Few thoughts about (theoretical) new manual format
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969384917@lists.php.net to get a copy of this message
On 1 April 2014 14:35, Maciej Sobaczewski <msobaczewski@gmail.com> wrote: > Hello guys, > > I know that this subject wasn't discussed for a long time and I fullly > understand that most of you probably doesn't care my opinion on it, but I > would like to write few of my thoughts on proposed several years ago by > Hannes. Just as a suggestions for people who will (or not) develop it in the > future. > > 1) Markdown or other formats: I love markdown and I also think that XML > syntax which we use today is overcomplicated, but... I think that markdown > isn't good solution for our purposes. I consider PHP manual too complicated > and advanced for such simple and (what's important) not extensible syntax > how markdown is. Sure, we can say that whole structure of thing that we have > today it's overcomplicated, but I think that's not a problem. Structure of > output it's fine. It provides good navigation, readable and consistent > manual. Our problem is that input XML files are probably too hard to write > in short time. +1. I was leaning towards the MD idea for a while but now I view it as a really bad plan. If a new format is to be used (and I'm not completely against this, although I'll need convincing) then markdown is not it, mostly because it is not complex or extensible enough, as you say. > My view is that we cannot provide good output manual with markdown. At least > not without more work than we and other people do today. Markdown doesn't > support advanced things in any way. It is markup for easy text formatting - > and nothing else. We cannot use language variables (i.e. &ref.seealso;), > cannot define tags to create common parts of manual pages (i.e. function > prototype/synopsis). It means that our manual would be very unconsistent or > we will have to check it constantly to keep same structure on every page. In > my opinion it's crucial to make documentation easy to use. > > Basically, I found XML or something similiar a good solution in our case. > It's extensible, what allows us to easily improve output without changinng > internal files. Maybe we could just simplify it? Make it easier to write and > mantain. As far as I can see docbook isn't developed for a few yars. Maybe > we just could improve it's syntax? Probably people more inventent in > writing/translating docs have some more detailed ideas. They are doing it > almost today, so they should know what can be improved/fixed. Not sure where you were looking to determine this. Docbook 5.1RC2 was released in Dec 2013. http://www.docbook.org/ > 2) Translations: I think that all of you can agree that big change in our > docs format will be huge problem for doc writers and especially translators. > This days most of translations are almost dead. Just look at this image - > > http://doc.php.net/images/revcheck/info_revcheck_php_all_lang.png - > only > three-four of translations are really up to date. People don't want to > translate such documents, becouse they know that most of programmers know or > should know English. I can see it in my (Polish) team. There are many other > ways of better time spending than translating something what has to bee > up-to-date or it's useless. I mean that translators' motivation is already > at very low level and significant change of format will probably just kill > next few translations. The other aspect is if we care about this. > > 3) The other disadvantage of changing our format to something totally else > is obvious. Probably it won't be finished at all, like previous ideas. > Except of writing new parser for doc we would always have to rewritte or > convert whole docs with translations. Currently we have enormous ammount of > files and I don't believe that it's possible to convert it automatically to > new format. I disagree here, should we choose a new format, 99% of the new data should be auto-generate-able from docbook. > To summarize, I think that we have to found methods to improve already > existing syntax instead of creating new one. As I told in the beginnig, > these are only few thoughts on that idea. I don't think the issue here is necessarily that we need to "improve" docbook, merely to abstract it away a little. The big problem for new contributors (as I see it) is that docbook is a scary looking beast to an outsider, and the documentation for it is equally terrifying. I'm not suggesting a WYSIWYG but maybe some kind of middle ground between that and editing raw XML in the OE - obviously one would be able to edit the raw XML if circumstances required it, but it could go some way towards making newbies who just wanted to fix a typo feel a little more comfortable that they're not going to break something. That said, I personally think that a move to git needs to be actioned before we start doing anything like that, be it OE improvements or altering the format. > Hopefully I'm not too drunk to > write text that is easy to understand and some of you will reply it. I've > tried to keep it quite short. If you're not too drunk to type, you're probably on the wrong list. > Best regards, > Maciej Sobaczewski.

« previous php.doc (#969384917) next »