crock
13 years agoMerge branch 'headings' master
Frédéric Jolliton [Tue, 6 Mar 2007 00:31:38 +0000 (01:31 +0100)]
Merge branch 'headings'

13 years agoUse <ul> instead of <ol> for list without a specific style.
Frédéric Jolliton [Sun, 22 Oct 2006 20:34:14 +0000 (22:34 +0200)]
Use <ul> instead of <ol> for list without a specific style.

13 years agoAdded support for macro arguments. Added an optional argument to TableOfContents... headings
Frédéric Jolliton [Thu, 19 Oct 2006 23:38:12 +0000 (01:38 +0200)]
Added support for macro arguments. Added an optional argument to TableOfContents macro.

13 years agoAdded -n/--numbered-headings option.
Frédéric Jolliton [Thu, 19 Oct 2006 23:16:14 +0000 (01:16 +0200)]
Added -n/--numbered-headings option.

13 years agoAdded LocalTableOfContents macro
Frédéric Jolliton [Thu, 19 Oct 2006 20:59:49 +0000 (22:59 +0200)]
Added LocalTableOfContents macro

13 years agoAdded heading numbers
Frédéric Jolliton [Thu, 19 Oct 2006 12:21:56 +0000 (14:21 +0200)]
Added heading numbers

13 years agoParser updated to allow backquote to be inserted in text.
Frédéric Jolliton [Tue, 15 Aug 2006 12:42:28 +0000 (14:42 +0200)]
Parser updated to allow backquote to be inserted in text.

14 years agoAdded LICENSE, and updated MANIFEST accordingly.
Frédéric Jolliton [Mon, 7 Aug 2006 02:23:08 +0000 (04:23 +0200)]
Added LICENSE, and updated MANIFEST accordingly.

14 years agoAnother fix to XHTML output to works with latest CSS.
Frédéric Jolliton [Sun, 30 Jul 2006 14:17:40 +0000 (16:17 +0200)]
Another fix to XHTML output to works with latest CSS.

14 years agoFixed body's class attribute when generating Crock from command line.
Frédéric Jolliton [Sun, 30 Jul 2006 14:08:03 +0000 (16:08 +0200)]
Fixed body's class attribute when generating Crock from command line.

14 years agoUpdated crock.css
Frédéric Jolliton [Sun, 30 Jul 2006 13:27:36 +0000 (15:27 +0200)]
Updated crock.css

14 years agoFix address to Crock source text.
Frédéric Jolliton [Fri, 28 Jul 2006 15:34:28 +0000 (17:34 +0200)]
Fix address to Crock source text.

14 years agoAdded possibility to specify output encoding. Added the pseudo-layout "null".
Frédéric Jolliton [Fri, 28 Jul 2006 15:27:19 +0000 (17:27 +0200)]
Added possibility to specify output encoding. Added the pseudo-layout "null".

The -O option allows to specify output encoding. It defaults
to 'utf8'.

The "null" layout outputs the body of the document, without
adding XHTML around it to form a complete page. The XML
declaration (<?xml ..?>) is not even printed.

14 years agoUse only crock.css by default
Frédéric Jolliton [Wed, 12 Apr 2006 20:40:06 +0000 (22:40 +0200)]
Use only crock.css by default

14 years agoSwitched to distutils.
Frédéric Jolliton [Wed, 12 Apr 2006 20:36:05 +0000 (22:36 +0200)]
Switched to distutils.

The documentation point at the git repository now.

14 years agoCompute title digest from utf8 encoded string for Unicode title.
Frédéric Jolliton [Thu, 30 Mar 2006 08:23:07 +0000 (10:23 +0200)]
Compute title digest from utf8 encoded string for Unicode title.

14 years agoRemoved extra body tag generated by asXhtml. Oops. frederic@jolliton.com--2005-main,crock--main--0.1
Frederic Jolliton [Mon, 6 Mar 2006 23:08:52 +0000 (23:08 +0000)]
Removed extra body tag generated by asXhtml. Oops.

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-34

14 years agoUntabified sources. Minor updates.
Frederic Jolliton [Sat, 4 Mar 2006 17:12:30 +0000 (17:12 +0000)]
Untabified sources. Minor updates.

 * I'm now using only spaces for indentation.

 * Updated sys.path to make sure that layout module filename can be
   absolute.
git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-33

14 years agoFixed XHTML links generation.
Frederic Jolliton [Thu, 2 Mar 2006 10:07:19 +0000 (10:07 +0000)]
Fixed XHTML links generation.

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-32

14 years agoMissing file. Minor documentation update.
Frederic Jolliton [Mon, 27 Feb 2006 06:16:35 +0000 (06:16 +0000)]
Missing file. Minor documentation update.

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-31

14 years agoMajor update.
Frederic Jolliton [Sun, 26 Feb 2006 18:04:22 +0000 (18:04 +0000)]
Major update.

The crock.py module was split into several modules, including:

 * crock/parser.py, crock/block.py, crock/tree.py.

There is too many changes to list them here.
git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-30

14 years agoFixed paragraph formatting.
Frederic Jolliton [Wed, 1 Feb 2006 00:07:30 +0000 (00:07 +0000)]
Fixed paragraph formatting.

 * Fixed a typo that prevented paragraph to be formatted
 correctly in list. (Spaces were not removed at the start
 of the lines, thus item format was not correctly parsed.)

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-29

14 years agoMinor updates to the CSS
Frederic Jolliton [Tue, 31 Jan 2006 23:55:13 +0000 (23:55 +0000)]
Minor updates to the CSS

 * Fixed CSS to display verbatim blocks correctly in pre-patch27
   document.

 * Small change to the caption border.
git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-28

14 years agoAdded caption support. Rewrote a large part of crock.py.
Frederic Jolliton [Tue, 31 Jan 2006 23:37:06 +0000 (23:37 +0000)]
Added caption support. Rewrote a large part of crock.py.

 * Added caption support (with '--- caption ---' syntax) for table and
 verbatim blocks.

 * Updated cross.css and crock.txt accordingly.

 * Rewrote a large part of crock.py, by creating a class per block type
 and moving all the parsing logic to each class to let them handle the
 syntax. Adding a new block type should be easy now (but Crock is about
 simplicity, so it may not be a good idea to add new block types though.)

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-27

14 years agoFixed duplicate header bug. Added support for '-' filename.
Frederic Jolliton [Sun, 25 Dec 2005 18:00:48 +0000 (18:00 +0000)]
Fixed duplicate header bug. Added support for '-' filename.

 * Fixed duplicate header bug (Bernt)

 * Added support for '-' filename to read stdin instead.
git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-26

14 years agoAdded support to escape some characters. CSS updated. TOC inside a <div class="toc">.
Frederic Jolliton [Thu, 22 Dec 2005 17:11:10 +0000 (17:11 +0000)]
Added support to escape some characters. CSS updated. TOC inside a <div class="toc">.

 * Added support to escape *, / and _ characters.

 * TOC in now in a <div> with 'toc' class.

 * CSS updated to fix links style, and some table related styles.
git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-25

14 years agoFixed documentation.
Frederic Jolliton [Sun, 11 Dec 2005 18:48:08 +0000 (18:48 +0000)]
Fixed documentation.

 * Documentation corrected for grammar. Thanks Bernt !
git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-24

14 years agoWrap resulting XML tree into a Document node.
Frederic Jolliton [Thu, 17 Nov 2005 01:34:52 +0000 (01:34 +0000)]
Wrap resulting XML tree into a Document node.

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-23

14 years agoBetter lists generation. Fixed XML and XHTML doctype declarations.
Frederic Jolliton [Mon, 14 Nov 2005 05:58:59 +0000 (05:58 +0000)]
Better lists generation. Fixed XML and XHTML doctype declarations.

 * Better list generation, by handling correctly list style changes.

 * Migration to tuxeenet.tx removed XML and XHTML doctype
   declarations. We now write them again.
git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-22

14 years agoNew list styles. Switched to tuxeenet.tx. Updated documentation.
Frederic Jolliton [Mon, 14 Nov 2005 05:04:39 +0000 (05:04 +0000)]
New list styles. Switched to tuxeenet.tx. Updated documentation.

 * Added support for roman, alpha and decimal list styles.

 * Switched from tuxeenet.web (a private project) to tuxeenet.tx (a
   public project.)
git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-21

15 years agoUse /usr/bin/env instead of /bin/env.
Frederic Jolliton [Sat, 6 Aug 2005 18:30:57 +0000 (18:30 +0000)]
Use /usr/bin/env instead of /bin/env.

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-20

15 years agoAdded possibilty to describe an alternative layout. Fixed URL bug.
Frederic Jolliton [Sat, 6 Aug 2005 15:29:19 +0000 (15:29 +0000)]
Added possibilty to describe an alternative layout. Fixed URL bug.

* Added option -l/--layout to allow specifying an alternative
  layout. This option take a module name as argument and look
  for a function named 'layout'.

* A sample layout was added (layoutsample)

* Fixed URL bug (when only one word was specified between [])
git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-19

15 years agoAdded installation script
Frederic Jolliton [Mon, 1 Aug 2005 08:03:33 +0000 (08:03 +0000)]
Added installation script

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-18

15 years agoUpdated documentation for installation instruction.
Frederic Jolliton [Mon, 1 Aug 2005 08:02:04 +0000 (08:02 +0000)]
Updated documentation for installation instruction.

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-17

15 years agoUpdated TableOfContents macro to allow specifying maximum depth of the TOC to display.
Frederic Jolliton [Mon, 1 Aug 2005 07:41:18 +0000 (07:41 +0000)]
Updated TableOfContents macro to allow specifying maximum depth of the TOC to display.

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-16

15 years agoRemoved g_title global variable. Split process into various functions.
Frederic Jolliton [Fri, 29 Jul 2005 06:36:38 +0000 (06:36 +0000)]
Removed g_title global variable. Split process into various functions.

* Removed g_title global variable.

* Split process function into various functions:

 * blocksToXhtml to transform blocks list into XHtml tree,

 * textToXhtml to transform a text into XHtml tree,

 * and process with now just wrap the textToXhtml function
   to open file, read it, transform it then output result.
git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-15

15 years agoXHTML output: Better element's id choice for heading
Frederic Jolliton [Thu, 28 Jul 2005 06:20:38 +0000 (06:20 +0000)]
XHTML output: Better element's id choice for heading

* For the XHTML output (the only choice at the moment) the id
  of the element <h1>..<h6> are now generated from a checksum
  applied on heading title, so that fragments (reference to id)
  are valid even if document structure change.
git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-14

15 years agoFixed position of block level macro in the output page.
Frederic Jolliton [Wed, 27 Jul 2005 09:21:05 +0000 (09:21 +0000)]
Fixed position of block level macro in the output page.

* Fixed position of block level macro in the output page.
  They're now correctly inserted into paragrahps instead
  of prefixing them.

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-13

15 years agoAdded possibility to specify several CSS stylesheet. Insert UTC date instead of local...
Frederic Jolliton [Wed, 27 Jul 2005 01:04:11 +0000 (01:04 +0000)]
Added possibility to specify several CSS stylesheet. Insert UTC date instead of local date.

* Added possibility to specify several CSS stylesheet
  (static list currently.)

* "Generated on .." message now use UTC date instead of local date.
  (Calling ctime with TZ set to UTC.)

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-12

15 years agoRemoved support for heading at level 7 (no such thing in XHTML)
Frederic Jolliton [Mon, 25 Jul 2005 06:46:32 +0000 (06:46 +0000)]
Removed support for heading at level 7 (no such thing in XHTML)

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-11

15 years agoDifferentiate 'block' and 'inline' macro call. Fix list style. Fix XHTML 1.0 regression.
Frederic Jolliton [Mon, 25 Jul 2005 06:19:34 +0000 (06:19 +0000)]
Differentiate 'block' and 'inline' macro call. Fix list style. Fix XHTML 1.0 regression.

* Now differentiate between 'block' level and 'inline' level macro
  call. A block level macro is specified by using [[name]] syntax on
  its own line without space, where inline macro is [[name]] specified
  elsewhere.

* Indented paragraph without usual list style (paragraph starting with
  '*') are now generated correctly.

* TOC are now generated to be XHTML 1.0 Strict compliant (nested <ol>
  are in <li> elements.)

* macro() now check at which level (block/inline) macros are invoked
  to make sure to generate correct output.

* Syntax is less strict on space at end of page title/heading/block
  level macro.
git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-10

15 years agoAdded a macro to insert progress bar.
Frederic Jolliton [Mon, 25 Jul 2005 02:42:26 +0000 (02:42 +0000)]
Added a macro to insert progress bar.

* Added a macro with syntax [[% <n>]] where <n> is a number
  (for example: [[% 25]])
git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-9

15 years agoUpdated CSS and example page for macro and page title recent additions.
Frederic Jolliton [Sun, 24 Jul 2005 04:58:53 +0000 (04:58 +0000)]
Updated CSS and example page for macro and page title recent additions.

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-8

15 years agoKeywords now have highest priority (to prevent [] to take precedence of the contents.)
Frederic Jolliton [Sun, 24 Jul 2005 04:56:32 +0000 (04:56 +0000)]
Keywords now have highest priority (to prevent [] to take precedence of the contents.)

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-7

15 years agoAdded macro support. Added page title support. Added option to output XHTML tree.
Frederic Jolliton [Sun, 24 Jul 2005 04:44:55 +0000 (04:44 +0000)]
Added macro support. Added page title support. Added option to output XHTML tree.

* Added page title support (with syntax "** title **")

* Added macro support (with only 'TableOfContents' currently, to
  insert table of contents deduced from headings.)

* Option -T/--debug-tree added to output XHTML tree instead of
  generating XHTML. Usefull for debug purpose.

* Code reworked to be more modular.

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-6

15 years agoFixed tables generation (by removing <p> tag from <td> cells.)
Frederic Jolliton [Thu, 21 Jul 2005 21:14:03 +0000 (21:14 +0000)]
Fixed tables generation (by removing <p> tag from <td> cells.)

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-5

15 years agoAdded support for Unicode. Updated example accordingly.
Frederic Jolliton [Thu, 21 Jul 2005 21:09:39 +0000 (21:09 +0000)]
Added support for Unicode. Updated example accordingly.

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-4

15 years agoOutput a UTF8 XHTML 1.0 Strict page instead of just HTML.
Frederic Jolliton [Thu, 21 Jul 2005 20:49:25 +0000 (20:49 +0000)]
Output a UTF8 XHTML 1.0 Strict page instead of just HTML.

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-3

15 years agoAdded an example of crock.css.
Frederic Jolliton [Thu, 21 Jul 2005 20:31:08 +0000 (20:31 +0000)]
Added an example of crock.css.

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-2

15 years agoMinor update to documentation.
Frederic Jolliton [Thu, 21 Jul 2005 20:20:49 +0000 (20:20 +0000)]
Minor update to documentation.

git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--patch-1

15 years agoinitial import frederic@jolliton.com--2005-main,crock--main--0.1--base-0
Frederic Jolliton [Thu, 21 Jul 2005 20:00:28 +0000 (20:00 +0000)]
initial import

(automatically generated log message)
git-archimport-id: frederic@jolliton.com--2005-main/crock--main--0.1--base-0