From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: How to extend the HTML exporter for e-learning stuff Date: Sun, 28 Sep 2014 01:07:05 +0200 Message-ID: <87ppegirxi.fsf@wmi.amu.edu.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XY15F-0003C9-Ub for emacs-orgmode@gnu.org; Sat, 27 Sep 2014 19:07:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XY15A-0002bP-8p for emacs-orgmode@gnu.org; Sat, 27 Sep 2014 19:07:21 -0400 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:59367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XY15A-0002aK-1I for emacs-orgmode@gnu.org; Sat, 27 Sep 2014 19:07:16 -0400 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id D5AE850DD9 for ; Sun, 28 Sep 2014 01:07:08 +0200 (CEST) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xK1JnucXu8zK for ; Sun, 28 Sep 2014 01:07:08 +0200 (CEST) Received: from localhost (111-128.echostar.pl [213.156.111.128]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 5268A50DB1 for ; Sun, 28 Sep 2014 01:07:08 +0200 (CEST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" Hi list, some time ago i asked about extending the exporter, but I did not experiment with it yet. Now the time has come - I'll need to generate some HTML + CSS + JS e-learning materials, and I want to do it with Org-mode. I think I'll manage the CSS and JS parts, but what gets tricky is the HTML part: I'd like to minimize hassle. Assume that I want to have a multiple choice test. What I want to obtain is e.g. this:
Which text editors are reasonable?
Emacs
Vim
Notepad
Microsoft Word
Now I know that I can obtain all of this using properties like :HTML_CONTAINER_CLASS: and :CUSTOM_ID:, but this seems very cumbersome. So, my question is twofold. First, what would you suggest as the input (on the Org side)? In other words, are there any ideas of how to mark-up the semantics of a mct in Org-mode? Here's one of my attempts: ================================================================ * Which text editors are reasonable? :mct: ** Emacs :yes: ** Vim :yes: ** Notepad :no: ** Microsoft Word :no: ================================================================ (based on tags). (I think tags are better than properties here, since they are more easily visible in the Org source.) Here's another one: ================================================================ * Which text editors are reasonable? :PROPERTIES: :test-type: mct :END: - [X] Emacs - [X] Vim - [ ] Notepad - [ ] Microsoft Word ================================================================ Both seem to have one disadvantage: long questions = long headings, which looks bad. And yet another, completely different: ================================================================ * Question on text editors :mct: ** Question Which text editors are reasonable? ** Right answer Emacs ** Right answer Vim ** Wrong answer Notepad ** Wrong answer Microsoft Word ================================================================ Any other ideas? Second, how to extend the exporter to get what I want? (I don't want anyone to code that for me, just a general reading guideline so that I can get my hands dirty and ask more specific questions later.) TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University