The authorId is just an attribute, as bold, italic and so on.
The problem is not to extract these information from the pad, but how to put in in the export format, e.g. the html-export.
I thought about the possibility of writing a generic xml export, which exports all attributes of the attribute pool and binds these attributes (and the values) to the corresponding text ranges. The output of such an xml export could than be transformed in anything else.
Using xml as an intermediate export result would allow to create one well-engineered export module and let other exporters just use the xml instead of working on the attributed text directly.
Just a suggestion.
I have written a LaTeX export modul from scratch some months ago. Refactoring this code to export xml instead of LaTeX is no big deal. I will have a look at this next year :)
Cheers and happy holidays!
2011/12/22 Peter Martischka <petermartisc...@googlemail.com>:
> well, it shouldn't be too diffcult. The quesiton is: why you want this > feature and how many people want it?
> On 21 December 2011 21:00, Mike <mwar...@mindedge.com> wrote: >> before I get started on this, has anyone done this already? I saw an >> old, expired/closed post about it from last year:
we've had a few requests for it. One of our partners uses Etherpad in
a writing workshop and wants to use the authorship colors as a way to
mimic Word's track changes.
I suppose I could use some js to get the bgcolor CSS for the
author_ids and regex add it to the respective spans before pushing it
to ooffice.
Mike
On Dec 22, 5:15 am, Peter Martischka <petermartisc...@googlemail.com>
wrote:
I'm pretty close on this. I only need to get the bgcolor for each
author and put it inline. I can fudge it and set any bgcolor I want
and it persists through open office. Can someone clue me in as to how
to access the list of authors and pad css from a plugin? There seems
to be a disconnect between plugins and the pad object.
Thanks,
Mike
On Dec 28 2011, 10:48 am, Mike <mwar...@mindedge.com> wrote:
> we've had a few requests for it. One of our partners uses Etherpad in
> a writing workshop and wants to use the authorship colors as a way to
> mimic Word's track changes.
> I suppose I could use some js to get the bgcolorCSSfor the
> author_ids and regex add it to the respective spans before pushing it
> to ooffice.
> Mike
> On Dec 22, 5:15 am, Peter Martischka <petermartisc...@googlemail.com>
> wrote:
> > well, it shouldn't be too diffcult. The quesiton is: why you want this
> > feature and how many people want it?
> > On 21 December 2011 21:00, Mike <mwar...@mindedge.com> wrote:
> > > before I get started on this, has anyone done this already? I saw an
> > > old, expired/closed post about it from last year:
> I'm pretty close on this. I only need to get the bgcolor for each
> author and put it inline. I can fudge it and set any bgcolor I want
> and it persists through open office. Can someone clue me in as to how
> to access the list of authors and pad css from a plugin? There seems
> to be a disconnect between plugins and the pad object.
> Thanks,
> Mike
> On Dec 28 2011, 10:48 am, Mike <mwar...@mindedge.com> wrote:
> > Hi Peter,
> > we've had a few requests for it. One of our partners uses Etherpad in
> > a writing workshop and wants to use the authorship colors as a way to
> > mimic Word's track changes.
> > I suppose I could use some js to get the bgcolorCSSfor the
> > author_ids and regex add it to the respective spans before pushing it
> > to ooffice.
> > Mike
> > On Dec 22, 5:15 am, Peter Martischka <petermartisc...@googlemail.com>
> > wrote:
> > > well, it shouldn't be too diffcult. The quesiton is: why you want this
> > > feature and how many people want it?
> > > On 21 December 2011 21:00, Mike <mwar...@mindedge.com> wrote:
> > > > before I get started on this, has anyone done this already? I saw an
> > > > old, expired/closed post about it from last year:
never mind. I got it. Just had to pass pad object to the plugin that
was handling the inline styles. I must have messed something up when
I was passing it earlier.
On Jan 31, 1:49 pm, Mike <mwar...@mindedge.com> wrote:
> well, it's already inline. I'm just adding background-color to the
> inline style declaration for the span that I was able to preserve.
> On Jan 31, 1:39 pm, Mike <mwar...@mindedge.com> wrote:
> > Hi all,
> > I'm pretty close on this. I only need to get the bgcolor for each
> > author and put it inline. I can fudge it and set any bgcolor I want
> > and it persists through open office. Can someone clue me in as to how
> > to access the list of authors and pad css from a plugin? There seems
> > to be a disconnect between plugins and the pad object.
> > Thanks,
> > Mike
> > On Dec 28 2011, 10:48 am, Mike <mwar...@mindedge.com> wrote:
> > > Hi Peter,
> > > we've had a few requests for it. One of our partners uses Etherpad in
> > > a writing workshop and wants to use the authorship colors as a way to
> > > mimic Word's track changes.
> > > I suppose I could use some js to get the bgcolorCSSfor the
> > > author_ids and regex add it to the respective spans before pushing it
> > > to ooffice.
> > > Mike
> > > On Dec 22, 5:15 am, Peter Martischka <petermartisc...@googlemail.com>
> > > wrote:
> > > > well, it shouldn't be too diffcult. The quesiton is: why you want this
> > > > feature and how many people want it?
> > > > On 21 December 2011 21:00, Mike <mwar...@mindedge.com> wrote:
> > > > > before I get started on this, has anyone done this already? I saw an
> > > > > old, expired/closed post about it from last year:
On Tue, Jan 31, 2012 at 9:38 PM, Mike <mwar...@mindedge.com> wrote: > never mind. I got it. Just had to pass pad object to the plugin that > was handling the inline styles. I must have messed something up when > I was passing it earlier.
> On Jan 31, 1:49 pm, Mike <mwar...@mindedge.com> wrote: > > well, it's already inline. I'm just adding background-color to the > > inline style declaration for the span that I was able to preserve.
> > On Jan 31, 1:39 pm, Mike <mwar...@mindedge.com> wrote:
> > > Hi all,
> > > I'm pretty close on this. I only need to get the bgcolor for each > > > author and put it inline. I can fudge it and set any bgcolor I want > > > and it persists through open office. Can someone clue me in as to how > > > to access the list of authors and pad css from a plugin? There seems > > > to be a disconnect between plugins and the pad object.
> > > Thanks, > > > Mike
> > > On Dec 28 2011, 10:48 am, Mike <mwar...@mindedge.com> wrote:
> > > > Hi Peter,
> > > > we've had a few requests for it. One of our partners uses Etherpad > in > > > > a writing workshop and wants to use the authorship colors as a way to > > > > mimic Word's track changes.
> > > > I suppose I could use some js to get the bgcolorCSSfor the > > > > author_ids and regex add it to the respective spans before pushing it > > > > to ooffice.
> > > > Mike
> > > > On Dec 22, 5:15 am, Peter Martischka <petermartisc...@googlemail.com
> > > > wrote:
> > > > > well, it shouldn't be too diffcult. The quesiton is: why you want > this > > > > > feature and how many people want it?
> > > > > On 21 December 2011 21:00, Mike <mwar...@mindedge.com> wrote:
> > > > > > before I get started on this, has anyone done this already? I > saw an > > > > > > old, expired/closed post about it from last year:
> On Tue, Jan 31, 2012 at 9:38 PM, Mike <mwar...@mindedge.com> wrote:
> > never mind. I got it. Just had to pass pad object to the plugin that
> > was handling the inline styles. I must have messed something up when
> > I was passing it earlier.
> > On Jan 31, 1:49 pm, Mike <mwar...@mindedge.com> wrote:
> > > well, it's already inline. I'm just adding background-color to the
> > > inline style declaration for the span that I was able to preserve.
> > > On Jan 31, 1:39 pm, Mike <mwar...@mindedge.com> wrote:
> > > > Hi all,
> > > > I'm pretty close on this. I only need to get the bgcolor for each
> > > > author and put it inline. I can fudge it and set any bgcolor I want
> > > > and it persists through open office. Can someone clue me in as to how
> > > > to access the list of authors and pad css from a plugin? There seems
> > > > to be a disconnect between plugins and the pad object.
> > > > Thanks,
> > > > Mike
> > > > On Dec 28 2011, 10:48 am, Mike <mwar...@mindedge.com> wrote:
> > > > > Hi Peter,
> > > > > we've had a few requests for it. One of our partners uses Etherpad
> > in
> > > > > a writing workshop and wants to use the authorship colors as a way to
> > > > > mimic Word's track changes.
> > > > > I suppose I could use some js to get the bgcolorCSSfor the
> > > > > author_ids and regex add it to the respective spans before pushing it
> > > > > to ooffice.
> > > > > Mike
> > > > > On Dec 22, 5:15 am, Peter Martischka <petermartisc...@googlemail.com
> > > > > wrote:
> > > > > > well, it shouldn't be too diffcult. The quesiton is: why you want
> > this
> > > > > > feature and how many people want it?
> > > > > > On 21 December 2011 21:00, Mike <mwar...@mindedge.com> wrote:
> > > > > > > before I get started on this, has anyone done this already? I
> > saw an
> > > > > > > old, expired/closed post about it from last year:
> I'm working on generating and retaining the legend now. When it's
> done, I'll email you a link so you can check it out.
> On Jan 31, 7:38 pm, John McLear <johnym...@gmail.com> wrote:
> > I'm really excited to see this :)
> > On Tue, Jan 31, 2012 at 9:38 PM, Mike <mwar...@mindedge.com> wrote:
> > > never mind. I got it. Just had to pass pad object to the plugin that
> > > was handling the inline styles. I must have messed something up when
> > > I was passing it earlier.
> > > On Jan 31, 1:49 pm, Mike <mwar...@mindedge.com> wrote:
> > > > well, it's already inline. I'm just adding background-color to the
> > > > inline style declaration for the span that I was able to preserve.
> > > > On Jan 31, 1:39 pm, Mike <mwar...@mindedge.com> wrote:
> > > > > Hi all,
> > > > > I'm pretty close on this. I only need to get the bgcolor for each
> > > > > author and put it inline. I can fudge it and set any bgcolor I want
> > > > > and it persists through open office. Can someone clue me in as to how
> > > > > to access the list of authors and pad css from a plugin? There seems
> > > > > to be a disconnect between plugins and the pad object.
> > > > > Thanks,
> > > > > Mike
> > > > > On Dec 28 2011, 10:48 am, Mike <mwar...@mindedge.com> wrote:
> > > > > > Hi Peter,
> > > > > > we've had a few requests for it. One of our partners uses Etherpad
> > > in
> > > > > > a writing workshop and wants to use the authorship colors as a way to
> > > > > > mimic Word's track changes.
> > > > > > I suppose I could use some js to get the bgcolorCSSfor the
> > > > > > author_ids and regex add it to the respective spans before pushing it
> > > > > > to ooffice.
> > > > > > Mike
> > > > > > On Dec 22, 5:15 am, Peter Martischka <petermartisc...@googlemail.com
> > > > > > wrote:
> > > > > > > well, it shouldn't be too diffcult. The quesiton is: why you want
> > > this
> > > > > > > feature and how many people want it?
> > > > > > > On 21 December 2011 21:00, Mike <mwar...@mindedge.com> wrote:
> > > > > > > > before I get started on this, has anyone done this already? I
> > > saw an
> > > > > > > > old, expired/closed post about it from last year: