Difference between revisions of "GSoC/2013/MallardHelp"

From Sugar Labs
< GSoC‎ | 2013
Jump to navigation Jump to search
(→‎Introduction: process image and description added)
(→‎Work so far: ViewHelp window implemented)
Line 15: Line 15:
  
 
* A python script<ref>HTML to mallard conversion script [https://git.sugarlabs.org/mallardhelp/mallardhelp]</ref> to convert from html to mallard is being developed.
 
* A python script<ref>HTML to mallard conversion script [https://git.sugarlabs.org/mallardhelp/mallardhelp]</ref> to convert from html to mallard is being developed.
 +
 +
* A Gtk Window is implemented with WebKit to display the help for each activity. The shortcut key is [Alt][Shift]h
  
 
==To-do==
 
==To-do==

Revision as of 08:25, 8 July 2013

Introduction

This page presents the status of the project "Implement help mechanism for activities using Mallard" [1]. This project is being implemented as a GSoC 2013 project.


Following is a representation of the desired process.

MallardHelpStructure.png

In the current help system, the source docs are only of rst. This projects expands it to be either rst, markdown or html. Ultimately the doc will be converted to html using pandoc before converting to Mallard. Mallard is a topic oriented help documentation system. The help for each activity will be displayed in a pop up window (just as view source) once the shortcut key is pressed.

Work so far

  • Help content[2] of the Help activity which is in rst has been converted to Markdown. The conversion was done using pandoc[3]. The Markdown files are push at a fork[4] of the help-activity-content.
  • A python script[5] to convert from html to mallard is being developed.
  • A Gtk Window is implemented with WebKit to display the help for each activity. The shortcut key is [Alt][Shift]h

To-do

  • Develop a script to convert Markdown source files to Mallard
    • Up to now the current plan is to use html as an intermediate format. It will be easy to convert markdown or rst to html, it is straight forward with pandoc. Next a xml parser will be used and the mallard file will be written. At the moment I am reading about xml parsing in python.
  • Implement a mechanism to show help in each activity
  • Extract strings from the help docs and feed them to pootle for l10n
  • Write help for activities for which help is not there yet

Reference

  1. Implement help mechanism for activities using Mallard [1]
  2. Help content of the Help activity [2]
  3. pandoc [3]
  4. Markdown files of the current help content [4]
  5. HTML to mallard conversion script [5]