{"id":15,"date":"2007-07-30T12:28:05","date_gmt":"2007-07-30T09:28:05","guid":{"rendered":"http:\/\/vpv.kapsi.fi\/blog\/2007\/07\/30\/weekly-report-week-30\/"},"modified":"2007-07-30T12:28:05","modified_gmt":"2007-07-30T09:28:05","slug":"weekly-report-week-30","status":"publish","type":"post","link":"https:\/\/vpv.kapsi.fi\/blog\/2007\/07\/weekly-report-week-30\/","title":{"rendered":"Weekly report: week 30"},"content":{"rendered":"<p>Last week was pretty much completely about fixing bugs in the info page handling code. I worked for about 45 hours on my project. The most significant change was that I decided to use primary.xml too, so that I could reliably find the source RPM for corresponding to each binary RPM with info pages. Before I just tried to &#8220;guess&#8221; the SRPM file name from the RPM file name but that wasn&#8217;t working too well.<\/p>\n<p>I also noticed that makeinfo &#8211;docbook wasn&#8217;t working too well for a lot of Texinfo pages, so I had to make sure that my import code doesn&#8217;t crash or do anything weird, no matter what the output of makeinfo is. Now my code checks the XML data for well-formedness before putting it into the wiki, because badly formed XML data was causing a lot of problems.<\/p>\n<p>But after all this, I can finally say that the man\/info importing works. That took a lot more time than I expected, mainly because of the problems I had with repository handling and info page handling. The code still needs some testing, especially the updates handling part, I&#8217;ll do that today. Also it still doesn&#8217;t have support for localized man pages, but that shouldn&#8217;t be too hard to add.<\/p>\n<p>I have 5 weeks left now before Summercode Finland ends and technically I&#8217;m 2 weeks behind schedule which does sound bad, but it&#8217;s hopefully not that bad really. This is where last summer&#8217;s DocBook branch comes into the picture.<\/p>\n<p>I&#8217;ve briefly talked about it with Thomas Waldmann and Alexander Schremmer and the DocBook branch can import DocBook XML so that it looks exactly like a normal wiki page to the user, even while editing, but you can still export a complete DocBook XML document of the page. I&#8217;ll base my editing implementation on these features, so that the users can edit the man\/info pages normally, then I&#8217;ll use the DocBook export to get the pages as DocBook and then run them through <a href=\"http:\/\/docbook2x.sourceforge.net\/\">docbook2x<\/a> to produce either man or Texinfo files.<\/p>\n<p>Producing diffs for upstream is still an open question, but it shouldn&#8217;t be impossible to store the original man\/info files while doing the import and then do diffs with those and the corresponding docbook2x output.<\/p>\n<p>So this week I&#8217;ll do some (hopefully) final touches on the import code and then I&#8217;ll start testing the DocBook branch and porting it to my branch.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last week was pretty much completely about fixing bugs in the info page handling code. I worked for about 45 hours on my project. The most significant change was that I decided to use primary.xml too, so that I could reliably find the source RPM for corresponding to each binary RPM with info pages. Before [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5,3],"tags":[],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-fedora","category-moinmoin","category-summercode"],"_links":{"self":[{"href":"https:\/\/vpv.kapsi.fi\/blog\/wp-json\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpv.kapsi.fi\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vpv.kapsi.fi\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vpv.kapsi.fi\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vpv.kapsi.fi\/blog\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":0,"href":"https:\/\/vpv.kapsi.fi\/blog\/wp-json\/wp\/v2\/posts\/15\/revisions"}],"wp:attachment":[{"href":"https:\/\/vpv.kapsi.fi\/blog\/wp-json\/wp\/v2\/media?parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vpv.kapsi.fi\/blog\/wp-json\/wp\/v2\/categories?post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vpv.kapsi.fi\/blog\/wp-json\/wp\/v2\/tags?post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}