Few thoughts about (theoretical) new manual format
| From: | Maciej Sobaczewski | Date: | Tue, 01 Apr 2014 13:35:58 +0000 |
| Subject: | Few thoughts about (theoretical) new manual format | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969384916@lists.php.net to get a copy of this message | ||
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.
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.
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.
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. 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.
Best regards,
Maciej Sobaczewski.