1.0b5 Version
From 1.0b5
CVS
version, here is what should be done in order to finalize the editor :
Tasks
Improve WYSIWYG/Perl Translator interfacing
Kupu editor sends its currently editing XHTML document content to a server-side Perl script
kupu_html2twiki.
This one invokes Frederic Luddeni's Perl translator
bin/HtmlToTwiki.pl and calls a function which will do some
post-translation treatments
lib/TWiki/Contrib/KupuEditorAddOn/Html2TWiki.pm:translate (not well named now).
These treatments (based on regexps), consist in doing what the translator does not manage, like variables and permissions translation from our own XHTML representation...
Some works have to be done here.
TWikiML Edition (keeping it ?)
We have disabled it becauseof a difficulty. In TWikiML->XHTML direction, a server-side Perl script
bin/kupu_twiki2html_edit calling TWiki HTML rendering engine, sends the translation of the TWikiML source it has received. The difficulty lies in the necessity to rebuild a DOM tree from this XHTML source (or modify the existing one), before returning to WYSIWYG view
pub/_kupu/kuputranslator.js:TwikiToHtmlTranslatorTool:build.
Debugging/Finalizing/Testing
Most of the remaining problems and works deals with editor's TWiki integration (silent save, behaviour when a topic is locked etc.) and translator interfacing.
There is less to do with JavaScript tools
pub/_kupu/kuputwikitools.js. They are rather reliable, even if it remains some bugs.
Notes
XHTML Representations
Variables
We use SPAN inline block elements (because this is the representation we wanted). Example :
<span class="VARIABLE">TOC</span>
Variables can contain others variables, so overlapped blocks are possible.
We wanted to use XML tags but we had problems with their visual representation in IE.
Permissions
We use XHTML META information, here is an example :
<meta name="VIEW_PERMISSIONS" content="User1, User2"/>
<meta name="CHANGE_PERMISSIONS" content="User1, User2"/>
--
RomainRaugi - 09 Mar 2005
Feedback
Thanks Romain for documenting the pending items. Hopefully someone will pick up where you left
And thank you and your team for all the work you put in so far!
--
PeterThoeny - 10 Mar 2005