<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://techbase.kde.org/skins/common/feed.css?0.2"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://techbase.kde.org/index.php?title=How_To_Convert_a_UserBase_Manual_to_Docbook/en&amp;feed=atom&amp;action=history</id>
		<title>How To Convert a UserBase Manual to Docbook/en - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://techbase.kde.org/index.php?title=How_To_Convert_a_UserBase_Manual_to_Docbook/en&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/index.php?title=How_To_Convert_a_UserBase_Manual_to_Docbook/en&amp;action=history"/>
		<updated>2013-06-19T18:24:42Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://techbase.kde.org/index.php?title=How_To_Convert_a_UserBase_Manual_to_Docbook/en&amp;diff=61939&amp;oldid=prev</id>
		<title>Tampakrap: Updating to match new version of source page</title>
		<link rel="alternate" type="text/html" href="http://techbase.kde.org/index.php?title=How_To_Convert_a_UserBase_Manual_to_Docbook/en&amp;diff=61939&amp;oldid=prev"/>
				<updated>2011-07-05T13:17:45Z</updated>
		
		<summary type="html">&lt;p&gt;Updating to match new version of source page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
== Preface == &lt;br /&gt;
&lt;br /&gt;
The current process is not polished, the script code is ugly, not intelligent enough, etc.. The only excuse is that it works somehow {{Smiley}}.&lt;br /&gt;
&lt;br /&gt;
If you want to improve the process, have good Python skills, and know the docbook authoring principles, you can improve the procedure.  Please contact [[User_talk:Yurchor|Yurchor]] if you are able to help.&lt;br /&gt;
&lt;br /&gt;
== Preparing Pages for Conversion == &lt;br /&gt;
&lt;br /&gt;
* Check that the pages of your manual follow the [[Special:myLanguage/Tasks_and_Tools|author guidelines of UserBase]] and [[Special:myLanguage/Typographical_Guidelines|typographical guidelines]].&lt;br /&gt;
&lt;br /&gt;
* Check if every page has its header according to the level of this page in table of contents.&lt;br /&gt;
&lt;br /&gt;
:{|&lt;br /&gt;
|+Reference table&lt;br /&gt;
|-&lt;br /&gt;
! UserBase&lt;br /&gt;
! Docbook&lt;br /&gt;
! Comment&lt;br /&gt;
|-&lt;br /&gt;
| ==Section==&lt;br /&gt;
| &amp;lt;chapter&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| ===Section===&lt;br /&gt;
| &amp;lt;sect1&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| ====Section====&lt;br /&gt;
| &amp;lt;sect2&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| =====Section=====&lt;br /&gt;
| &amp;lt;sect3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| ======Section======&lt;br /&gt;
| &amp;lt;sect4&amp;gt;&lt;br /&gt;
| ''Avoid using this last level if possible''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* Check if all table cells have space after the pipe character. This rule conforms with [http://en.wikipedia.org/wiki/Help:Table traditional wiki formatting].&lt;br /&gt;
&lt;br /&gt;
* Make application name formatting consistent (avoid using '''Amarok'''s, do use '''Amarok's''').&lt;br /&gt;
&lt;br /&gt;
* Ensure that ''all'' images are in PNG format.&lt;br /&gt;
&lt;br /&gt;
* Remove all non-printable characters from image names.&lt;br /&gt;
&lt;br /&gt;
===Export=== &lt;br /&gt;
&lt;br /&gt;
* Prepare the page list (strip from UserBase addresses &amp;lt;nowiki&amp;gt;http://userbase.kde.org&amp;lt;/nowiki&amp;gt;). Example for '''Amarok''':&lt;br /&gt;
&lt;br /&gt;
{{Input|1=Amarok&lt;br /&gt;
Amarok/QuickStartGuide&lt;br /&gt;
Amarok/QuickStartGuide/GettingStarted&lt;br /&gt;
Amarok/QuickStartGuide/TheAmarokWindow&lt;br /&gt;
Amarok/QuickStartGuide/TheMusicCollection&lt;br /&gt;
Amarok/QuickStartGuide/Playlists&lt;br /&gt;
Amarok/QuickStartGuide/TheContextView&lt;br /&gt;
Amarok/QuickStartGuide/HowToDealWithProblems&lt;br /&gt;
Amarok/QuickStartGuide/Glossary&lt;br /&gt;
Amarok/Manual/AmarokWindow&lt;br /&gt;
Amarok/Manual/AmarokWindow/Toolbar&lt;br /&gt;
Amarok/Manual/AmarokWindow/MediaSources&lt;br /&gt;
Amarok/Manual/AmarokWindow/ContextPane&lt;br /&gt;
Amarok/Manual/AmarokWindow/PlaylistPane&lt;br /&gt;
Amarok/Manual/ConfiguringAmarok&lt;br /&gt;
Amarok/Manual/AdvancedFeatures&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/CollectionScanning&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/CoverManager&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/DynamicPlaylists&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/AutomaticPlaylistGenerator&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/ExternalDatabase&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/AFT&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/Moodbar&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/WorkingWithMediaDevices&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/SavedPlaylists&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/PlaylistFiltering&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/QueueManager&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/SearchInCollection&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/TagEditor&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/OrganizeCollection&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/Transcoding&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/ScriptManager&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/RemoteCollections&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/RemoteCollections/Ampache&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/RemoteCollections/DAAP&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/RemoteCollections/Samba&lt;br /&gt;
Amarok/Manual/AdvancedFeatures/RemoteCollections/UPnP&lt;br /&gt;
Amarok/Manual/MenuAndCommandReference/AmarokMenu&lt;br /&gt;
Amarok/Manual/MenuAndCommandReference/ViewMenu&lt;br /&gt;
Amarok/Manual/MenuAndCommandReference/Playlist&lt;br /&gt;
Amarok/Manual/MenuAndCommandReference/Tools&lt;br /&gt;
Amarok/Manual/MenuAndCommandReference/Settings&lt;br /&gt;
Amarok/Manual/MenuAndCommandReference/Help&lt;br /&gt;
Amarok/Manual/KeybindingReference&lt;br /&gt;
Amarok/Manual/KeybindingReference/GlobalShortcuts&lt;br /&gt;
Amarok/Manual/KeybindingReference/AmarokShortcuts&lt;br /&gt;
Amarok/Manual/TroubleshootingAndCommonProblems&lt;br /&gt;
Amarok/Manual/AmarokOnOtherPlatforms/Non-KDE Desktops&lt;br /&gt;
Amarok/Manual/AmarokOnOtherPlatforms/Windows&lt;br /&gt;
Amarok/Manual/AmarokOnOtherPlatforms/OSX&lt;br /&gt;
Amarok/Manual/FAQ&lt;br /&gt;
Amarok/Manual/Credits_and_License}}&lt;br /&gt;
&lt;br /&gt;
{{Tip|1=You can obtain the full list of pages for your application with the following script:&amp;lt;!--}}--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Input|1=&amp;lt;nowiki&amp;gt;&amp;lt;DPL&amp;gt;&lt;br /&gt;
  nottitlematch = %/__|%/zh-%|%(%)&lt;br /&gt;
  titlematch = Amarok%&lt;br /&gt;
  namespace = Main&lt;br /&gt;
  columns = 1&lt;br /&gt;
  format = ,\n* [[%PAGE%|%TITLE%]],,&lt;br /&gt;
&amp;lt;/DPL&amp;gt;&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--{{--&amp;gt;Replace '''''Amarok''''' with the name of your application, put it on your user page, and click on &amp;lt;menuchoice&amp;gt;Preview&amp;lt;/menuchoice&amp;gt;. Rearrange the list according to the ToC of your manual.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
* Go to the [[Special:Export|export page]].&lt;br /&gt;
&lt;br /&gt;
* Paste the page list into the &amp;lt;menuchoice&amp;gt;bigger&amp;lt;/menuchoice&amp;gt; text field.&lt;br /&gt;
&lt;br /&gt;
* Click on &amp;lt;menuchoice&amp;gt;Export&amp;lt;/menuchoice&amp;gt;.&lt;br /&gt;
[[File:XML_export.png|350px|center|thumb|Export of Amarok manual pages]]&lt;br /&gt;
&lt;br /&gt;
* Save the file. The saved file will be called &amp;lt;tt&amp;gt;Manual.xml&amp;lt;/tt&amp;gt; in what follows.&lt;br /&gt;
&lt;br /&gt;
===Conversion=== &lt;br /&gt;
&lt;br /&gt;
* Install Subversion package for your system.&lt;br /&gt;
&lt;br /&gt;
* Checkout the latest version of conversion script: {{Input|1=svn checkout --depth=files &amp;lt;nowiki&amp;gt;svn://anonsvn.kde.org/home/kde/branches/work/doc/&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
* Copy &amp;lt;tt&amp;gt;Manual.xml&amp;lt;/tt&amp;gt; to the script folder.&lt;br /&gt;
&lt;br /&gt;
* Run {{Input|1=python wiki2docbook.py Manual.xml}} if you want to download all screenshots (it takes some time to download all images from UserBase, grep and wget should be installed), or {{Input|1=python wiki2docbook.py -s Manual.xml}} if you need not to download images.&lt;br /&gt;
&lt;br /&gt;
===Post-processing=== &lt;br /&gt;
&lt;br /&gt;
* Rename &amp;lt;tt&amp;gt;Manual.xml.docbook&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;index.docbook&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* Check if conversion was done correctly: {{Input|1=checkXML index.docbook}}&lt;br /&gt;
&lt;br /&gt;
* Fix the errors (better on UserBase pages).&lt;br /&gt;
&lt;br /&gt;
* Convert docbook to HTML: {{Input|1=meinproc4 index.docbook}}&lt;br /&gt;
&lt;br /&gt;
* Check HTML pages (all images should be visible, links should not lead to 404-pages).&lt;br /&gt;
&lt;br /&gt;
* Replace big images by thumbnails using '''convert''' from '''ImageMagick'''&lt;br /&gt;
&lt;br /&gt;
* Fix links in docbook, so they lead to docbook section, not UserBase pages.&lt;br /&gt;
&lt;br /&gt;
* Fix application name according to KDE entity list.&lt;br /&gt;
&lt;br /&gt;
* Copy &amp;lt;tt&amp;gt;index.docbook&amp;lt;/tt&amp;gt; and images to your &amp;lt;tt&amp;gt;/doc&amp;lt;/tt&amp;gt; folder and commit them to repository.&lt;br /&gt;
[[File:K3b_docs.png|350px|center|thumb|K3b docs on UserBase in Opera and converted page in Konqueror.]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Translator_Help]]&lt;/div&gt;</summary>
		<author><name>Tampakrap</name></author>	</entry>

	</feed>