From: John C. <joh...@ua...> - 2005-01-20 22:02:28
|
Reini, Ok, I've fixed the CVS HEAD. The section, lines, words and bytes arguments were getting ignored because they were setting $c which wasn't used after the '$ct = implode("\n", $c);' line. I changed the $c to $ct in the 'if' statements after that. The reason I added the div tag was so that I could differentiate between UnfoldSubPagesPlugin tags. For example, in order to have the style sheet differentiate between a normal chapter and the preface, I'll use a div tag to mark on UnfoldSubPagesPlugin as 'db_preface' or 'db_chapter' to have the style sheet use the proper DocBook tags for that section. It is really cool to be able to use phpWiki as a source for documentation (HTML Help and PDF). And because Microsoft uses HTML in it's help system, phpWiki provides a really good preview for what the final product will look like. The div tag argument is a very small modification that really helps in conversion to DocBook. Thanks, John -----Original Message----- From: php...@li... [mailto:php...@li...] On Behalf Of Reini Urban Sent: Thursday, January 20, 2005 2:48 PM To: php...@li... Subject: Re: [Phpwiki-talk] UnfoldSubpages Fix... John Cole schrieb: > I noticed that UnfoldSubpages still has a problem. It's ignoring some of > its arguments. I moved a section of code lower and it now processes the > arguments (my first crack at this was wrong and I moved the section too > far). Please do patches against CVS HEAD. Your patch is against an ancient version. Which arguments had been ignored? > Also, this has an added argument to create div tags around the plugin > content. This is used by my phpwiki.xhtml->docbook.xml xsl stylesheet. > Once that change gets in, I'll post my stylesheet and some instructions on > how to use it. div/span tags with an enumerated plugin id tag are generated automatically for all plugins. So just use #UnfoldSubpagesPlugin, #UnfoldSubpagesPlugin1 and so on. <div class="wikitext"><span class="plugin" id="MostPopularPlugin">...</span></div> <div class="plugin tightenable top" id="UnfoldSubpagesPlugin"> ... </div> You don#t need to add this, and its useless since you don#t know here if a span or div is required (span for inlined plugins) > I have a few other small things that would make docbook creation > nicer/simpler, but I'll keep those for later. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Phpwiki-talk mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phpwiki-talk ------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. |