Filipe Correia wrote:
> Hi,
>
> I'm making a plugin for trac that implements IContentConverter, and am
> seeing a lot of similarities between what I want to do and the code in
> the Formatter class (in trac/wiki/formatter.py). So, I'm thinking,
> perhaps I should make a class that inherits from Formatter instead,
> and override the right methods?
> Do you think this a realistic approach? The new format will also be a
> markup language (more precisely, docbook-xml).
>
> I realize the WikiEngine is being refactored and that what I want to
> do will be much easier after that, but until then  perhaps I can put
> something together without that much trouble.
>   

It's certainly doable with a Formatter subclass, and it has been done 
before for LaTeX export (1), but this way is quite tedious, rigid, etc.

After the refactoring, it'll be a piece of cake ... I need to find some 
time to finish the "alpha" version of it, to make sure the approach I've 
taken is OK. If you feel like, I can send you the patch of the work in 
progress I currently have (but be aware that it doesn't even "compile" 
at this point).

-- Christian

(1) - http://trac.edgewall.org/ticket/2296

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to