Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further patches (table attrs, --define, <li>...</li>, multiple HTML files #54

Open
GoogleCodeExporter opened this issue Apr 18, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

I have a few further patches that I'm willing to contribute if there's interest:

1. XHTML attributes for tables.
Append '{@class #id !style ^language}' to a table's header row to define 
'class', 'id', 'style' & 'lang' attributes.  Each attribute is optional so e.g. 
'{@TEST ^en}' will generate '<table border="1" class="TEST" lang="en">'.

2. Enable additional command line targets & define replacement macros.
By adding '--define <name>' to the command line any '%!preproc(<name>): …' is 
enabled in addition to those of the current target (similarly for postproc).  
This would allow you to share specific P*Procs between xhtml, html & dbk 
targets for instance.
Additionally, '--define <name>=<value>' will substitute all occurrences of 
'${<name>}' in the input document with '<value>'.  This substitution happens 
before PreProcs.  (I'm sure you can think of some uses for this.)
Multiple '--define name[=value]' args may be specified.  (Each must have a 
unique name.)
Args of the form '-Dname[=value]' are also accepted.

3. Improved XML list legibility (& PostProc-ability).
A small patch that generates '<li>list item.</li>' instead of  '<li>list 
item.\n</li>'.
For HTML, XHTML & DocBook too.
[This could be combined with my '<p>paragraph.</p>' patch.]

4. Support for outputting multiple [X]HTML files.
A small update to the patch submitted in issue 29.

[The results of all these changes may be seen in action in the new HTML help 
for svnX here:
 <http://code.google.com/p/svnx/wiki/Features_1_3> .]

Original issue reported on code.google.com by chris...@gmail.com on 25 Sep 2010 at 1:30

@GoogleCodeExporter
Copy link
Author

Nice addons! I want to make the extensions system a reality. Items 1 and 2 
would be real nice candidates for plugins.

Item 3 would break existing filters people have relying in the current format, 
but I agree that your format is best to process indeed. We should make this 
change at some point.

Item 4 is a great feature, it would free us from htmldoc for basic files.

Chris, could you please attach your patches to this issue?

Original comment by aureliojargas@gmail.com on 9 Nov 2010 at 8:55

  • Changed title: Further patches (table attrs, --define,
  • ...
  • , multiple HTML files
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

I suggest that classes should start with . and identifiers with #, being 
consistent with CSS. It would be nice that such syntax be compatible with other 
elements besides tables.

For some time I have used a couple simple filters to add those attributes using 
{{ }} as delimiters:

**{{.red}}bold**
<b class="red">bold

+ {{#first}} item A
<li id="first">item A</li>

Sadly I cannot use those filters for paragraphs since Txt2tags introduces a \n 
between the <p> and the first line plus multilne filters are not supported.

Original comment by wakara...@gmail.com on 10 Jul 2012 at 5:06

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant