Log of /contributions/modules/export_docbook/export_docbook.module
Parent Directory
|
Revision Log
|
Revision Graph
Revision
1.5.2.19 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Sep 5 17:03:00 2008 UTC
(14 months, 3 weeks ago)
by
robertDouglass
Branch:
DRUPAL-5
Changes since
1.5.2.18: +3 -2 lines
Diff to
previous 1.5.2.18
, to
branch point 1.5
HTML and FO targets require different maximum image widths to account for different dpi settings. The XSLT now generates two imagedata elements per actual image. The imagewidth.fo and imagewidth.html variables (passed in by the export_docbook.module) determine the max widths of each. Next step is to make an admin interface for these properties so that they can be set manually.
Revision
1.5.2.18 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Aug 21 19:31:00 2008 UTC
(15 months ago)
by
robertDouglass
Branch:
DRUPAL-5
Changes since
1.5.2.17: +8 -3 lines
Diff to
previous 1.5.2.17
, to
branch point 1.5
The more enlightened handling of text() nodes allows me to take out a whole series of other hacks. Other bugfixes as well. Glossary is broken, with a bad stop-gap hack with hardcoded <para> tags to get the document to validate. Glossary needs more work.
Revision
1.5.2.16 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Aug 20 13:26:35 2008 UTC
(15 months, 1 week ago)
by
robertDouglass
Branch:
DRUPAL-5
Changes since
1.5.2.15: +11 -7 lines
Diff to
previous 1.5.2.15
, to
branch point 1.5
Major experimental addition to the xslt. In XHTML, it is allowed to have free-floating text nodes. Often, what looks like a paragraph of text actually has no <p> tag to speak of, but is a collection of text nodes and other nodes like <em> or <strong>. This is problematic because in DocBook XML they all belong in a <para> tag. But where to put those <para> tags is more complex than 'just wrap the text nodes in <para>'. So the XSLT that I've written looks at text nodes, determines if they are the children of block level elements (as opposed to children of <em>), and then, depending on whether or not there are previous or following siblings, and whether or not those siblings are block level elements, prints [[para]] or [[/para]] in the XML document. This is a hack to get around the fact that you can't print unmatched <para> and </para> elements in XSLT. Finally, back in PHP, the [[para]] placeholders are replaced with <para>.
Revision
1.5.2.13 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Aug 8 17:33:02 2008 UTC
(15 months, 2 weeks ago)
by
robertDouglass
Branch:
DRUPAL-5
Changes since
1.5.2.12: +36 -43 lines
Diff to
previous 1.5.2.12
, to
branch point 1.5
New functionality: validate DocBook XML. Users with appropriate permissions can now validate the exported DocBook XML against the DTD. Hint: it doesn't validate at the moment so I've got more work to do\!
Revision
1.5.2.9 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Jul 30 18:46:42 2008 UTC
(15 months, 4 weeks ago)
by
robertDouglass
Branch:
DRUPAL-5
Changes since
1.5.2.8: +38 -29 lines
Diff to
previous 1.5.2.8
, to
branch point 1.5
Adding a taxonomy based glossary module. Can play nicely with the Glossary module but they are not related or dependent on each other. Still in proof-of-concept phase with a hardcoded vid = 1.
Revision
1.5.2.8 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Jul 30 14:51:33 2008 UTC
(15 months, 4 weeks ago)
by
robertDouglass
Branch:
DRUPAL-5
Changes since
1.5.2.7: +92 -2 lines
Diff to
previous 1.5.2.7
, to
branch point 1.5
Stub code for a more configurable book export. The code has an admin page that has no functionality. However, it does build a representation of all the book hierarchies and invoke a hook so that other modules can tie into it. My hope is to turn this into a tool by which modules can add appendicies, glossaries, articles, and other items to the book.
Revision
1.5.2.6 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Jul 30 06:28:21 2008 UTC
(15 months, 4 weeks ago)
by
robertDouglass
Branch:
DRUPAL-5
Changes since
1.5.2.5: +15 -1 lines
Diff to
previous 1.5.2.5
, to
branch point 1.5
The logic for extracting the element type from the class name was too hard (for me) to do in XSLT. Good thing PHP's XSLT package lets you register PHP functions and call them from within the transformation.
Revision
1.5.2.4 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jul 29 15:32:55 2008 UTC
(15 months, 4 weeks ago)
by
robertDouglass
Branch:
DRUPAL-5
Changes since
1.5.2.3: +2 -2 lines
Diff to
previous 1.5.2.3
, to
branch point 1.5
Footnote support. Use <span class="docbook-footnote">Footnote text here.</span>. Note that if you use <p> tags in the footnote you have to be consistent about it. <span><p>text</p><p>more text</p></span> The one case that won't work well is <span>text<p>more text</p></span>.
Revision
1.5 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Apr 7 18:50:47 2006 UTC
(3 years, 7 months ago)
by
puregin
Branch:
MAIN
Branch point for:
DRUPAL-5
Changes since
1.4: +2 -3 lines
Diff to
previous 1.4
- replaced call to _book_get_depth() with call to book_location(),
required as a result of simplification/refactoring of book module.
Revision
1.3 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Nov 29 19:18:39 2005 UTC
(3 years, 11 months ago)
by
puregin
Branch:
MAIN
Changes since
1.2: +17 -32 lines
Diff to
previous 1.2
- changed engendered by removing 'export books' permission
- removed '_menu()' hook, not needed.
- make access check consistent with other 'export_' modules
-
Revision
1.2 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Nov 28 08:03:59 2005 UTC
(4 years ago)
by
puregin
Branch:
MAIN
Changes since
1.1: +23 -8 lines
Diff to
previous 1.1
- added export_docbook_link() hook to add 'Export DocBook' link to book
page.
- fixed up help and documentation
Revision
1.1 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Nov 23 10:06:25 2005 UTC
(4 years ago)
by
puregin
Branch:
MAIN
Initial check in for Export_DocBook module. This has been
tested with Drupal 4.6.3, PHP 5 and Tidy support.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
select a symbolic revision name using the selection box, or choose
'Use Text Field' and enter a numeric revision.