From kupu-issues at codespeak.net Thu Jul 2 05:48:07 2009 From: kupu-issues at codespeak.net (Kupu issue tracker) Date: Thu, 02 Jul 2009 03:48:07 +0000 Subject: [kupu-dev] Failed issue tracker submission Message-ID: <20090702034807.DF204168400@codespeak.net> You are not permitted to access this tracker. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: not available Url: http://codespeak.net/pipermail/kupu-dev/attachments/20090702/cddebd29/attachment.diff From roche at upfrontsystems.co.za Thu Jul 2 22:01:10 2009 From: roche at upfrontsystems.co.za (=?ISO-8859-1?Q?Roch=E9?= Compaan) Date: Thu, 02 Jul 2009 22:01:10 +0200 Subject: [kupu-dev] Extending Kupu to edit XML in another namespaces In-Reply-To: <1245781157.29069.136.camel@didi> References: <1245781157.29069.136.camel@didi> Message-ID: <1246564870.10356.232.camel@didi> On Tue, 2009-06-23 at 20:19 +0200, Roch? Compaan wrote: > Hi there > > My development team is trying to extend Kupu with some features to allow > editing of XML in other namespaces, for example MathML. We did manage to > embed MathML as CDATA but this is not ideal. Our efforts are checked > into the Plone collective. > http://svn.plone.org/svn/collective/collective.matheditor/ > FYI, in addition to MathML we also want to extend it to embed QML > (http://cnx.org/content/m10136/latest/). > > For a start, we would like to know what must be done to tell Kupu to > leave alone tags in other namespaces. Furthermore, we would like to know > how you can make Kupu aware of the structure of the embedded XML. > > Is what we are trying to do feasible, or is Kupu meant to edit HTML > only? I'm happy to report that this was fun and relatively easy todo. I am very impressed with how modular and pluggable Kupu is. This is how we did it: 1. We extended the XhtmlValidation class in common/kupucontentfilters.js to allow the tags from the namespaces we wanted to use. We realise that the validation is not always strict, but at least it was easy to tell Kupu to leave our tags alone. 2. We created a drawer and some tools to generate our custom tags. 3. We created some CSS rules to style our tags. One caveat that we can happily live with for the moment is that you can't use the namespace in the tag eg. but have to set the xmlns attribute eg. . CSS selectors don't seem to recognise namespaced tag names either, but they do style simple tag names. We will write up what we did and how we did it in more detail once we're done. -- Roch? Compaan Upfront Systems http://www.upfrontsystems.co.za From johnny at johnnydebris.net Mon Jul 6 11:08:11 2009 From: johnny at johnnydebris.net (Johnny deBris) Date: Mon, 06 Jul 2009 11:08:11 +0200 Subject: [kupu-dev] Extending Kupu to edit XML in another namespaces In-Reply-To: <1246564870.10356.232.camel@didi> References: <1245781157.29069.136.camel@didi> <1246564870.10356.232.camel@didi> Message-ID: <4A51BEFB.2040400@johnnydebris.net> Roch? Compaan wrote: > I'm happy to report that this was fun and relatively easy todo. Wow, that's good to hear... I'm somewhat surprised, as the last tests I performed with non-HTML tags were miserable failures, perhaps browsers behave better nowadays, definitely good to hear! Cheers, Guido From aaltepet at altepeter.net Mon Jul 6 14:21:20 2009 From: aaltepet at altepeter.net (Andy Altepeter) Date: Mon, 6 Jul 2009 07:21:20 -0500 Subject: [kupu-dev] Extending Kupu to edit XML in another namespaces In-Reply-To: <1246564870.10356.232.camel@didi> References: <1245781157.29069.136.camel@didi> <1246564870.10356.232.camel@didi> Message-ID: <200907060721.20579.aaltepet@altepeter.net> Hi Roch?, > One caveat that we can happily live with for the moment is that you > can't use the namespace in the tag eg. but have to set the > xmlns attribute eg. . CSS selectors don't seem > to recognise namespaced tag names either, but they do style simple tag > names. Congratuations. This sound cool. One wondering I had regarding this caveat is whether the namespace would be recognized if the kupu doc being edited in the iframe was served up as text/xml or text/xml+xhtml ? I know that firefox treats documents differently if they are xml documents... Andy > > We will write up what we did and how we did it in more detail once we're > done. From roche at upfrontsystems.co.za Mon Jul 6 19:41:29 2009 From: roche at upfrontsystems.co.za (=?ISO-8859-1?Q?Roch=E9?= Compaan) Date: Mon, 06 Jul 2009 19:41:29 +0200 Subject: [kupu-dev] Extending Kupu to edit XML in another namespaces In-Reply-To: <200907060721.20579.aaltepet@altepeter.net> References: <1245781157.29069.136.camel@didi> <1246564870.10356.232.camel@didi> <200907060721.20579.aaltepet@altepeter.net> Message-ID: <1246902089.6647.67.camel@didi> On Mon, 2009-07-06 at 07:21 -0500, Andy Altepeter wrote: > Hi Roch?, > > > > One caveat that we can happily live with for the moment is that you > > can't use the namespace in the tag eg. but have to set the > > xmlns attribute eg. . CSS selectors don't seem > > to recognise namespaced tag names either, but they do style simple tag > > names. > > > Congratuations. This sound cool. One wondering I had regarding this caveat > is whether the namespace would be recognized if the kupu doc being edited in > the iframe was served up as text/xml or text/xml+xhtml ? I know that firefox > treats documents differently if they are xml documents... Thanks for the idea, we'll definitely investigate this since we do have cases where we have to mix namespaces often enough to make xmlns attributes tedious and ugly. -- Roch? Compaan Upfront Systems http://www.upfrontsystems.co.za From vinimaster at gmail.com Wed Jul 29 19:58:13 2009 From: vinimaster at gmail.com (=?ISO-8859-1?Q?Vin=EDcius_das_Chagas_silva?=) Date: Wed, 29 Jul 2009 14:58:13 -0300 Subject: [kupu-dev] creating a drawer Message-ID: <5d39e5810907291058v3937c7ddv54241bbe15915745@mail.gmail.com> Hi, At first time, sorry for my bad english. I need some help to create a custom drawer to list specific content on a plone site and insert it on a page edited with kupu. Any one knows how can I do it? Thanks for your help. -- Atenciosamente, Vin?cius das Chagas Silva N?cleo de Pesquisa em Sistemas de Informa??o - NSI Instituto Federal Fluminense - IF Fluminense ----------------- Linux User #475221 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://codespeak.net/pipermail/kupu-dev/attachments/20090729/6fd947d8/attachment.htm