Export with Authorship Colors

92 views
Skip to first unread message

Mike

unread,
Dec 21, 2011, 3:00:49 PM12/21/11
to EtherPad Open Source Discussion
before I get started on this, has anyone done this already? I saw an
old, expired/closed post about it from last year:

http://groups.google.com/group/etherpad-open-source-discuss/browse_thread/thread/b86b5058a03c255e/8ca50200c83b3902?lnk=gst&q=Export+with+Authorship+Colors+#8ca50200c83b3902

Thanks,
Mike

Peter Martischka

unread,
Dec 22, 2011, 5:15:38 AM12/22/11
to etherpad-open-...@googlegroups.com
well, it shouldn't be too diffcult. The quesiton is: why you want this
feature and how many people want it?

Michael Sievers

unread,
Dec 25, 2011, 5:49:16 PM12/25/11
to etherpad-open-...@googlegroups.com
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 <peterma...@googlemail.com>:

Eugene Mirotin

unread,
Dec 26, 2011, 11:49:23 AM12/26/11
to etherpad-open-...@googlegroups.com
For HTML specifically the authors colors can be exported like that

<style>
.text.author-AUTHOR_ID { /* repeated for each of document's authors */
    background-color: AUTHOR_COLOR;
    display: inline-block;
}
</style>

<span class="text author-AUTHOR_ID">text</span>

Mike

unread,
Dec 28, 2011, 10:48:41 AM12/28/11
to EtherPad Open Source Discussion
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 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:
> 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:
>
> >http://groups.google.com/group/etherpad-open-source-discuss/browse_th...
>
> > Thanks,
> > Mike

Mike

unread,
Jan 31, 2012, 1:39:40 PM1/31/12
to EtherPad Open Source Discussion
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

Mike

unread,
Jan 31, 2012, 1:49:53 PM1/31/12
to EtherPad Open Source Discussion
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.

Mike

unread,
Jan 31, 2012, 4:38:01 PM1/31/12
to EtherPad Open Source Discussion
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.

John McLear

unread,
Jan 31, 2012, 7:38:05 PM1/31/12
to etherpad-open-...@googlegroups.com
I'm really excited to see this :)

Mike

unread,
Feb 1, 2012, 9:48:08 AM2/1/12
to EtherPad Open Source Discussion
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.

Mike

unread,
Feb 1, 2012, 2:58:11 PM2/1/12
to EtherPad Open Source Discussion
I sent you an email with a link sop you can see it in action on my
test server, John.

Mike

Benoit Lathiere

unread,
Sep 6, 2013, 11:16:54 AM9/6/13
to etherpad-open-...@googlegroups.com
Hi !
Is this feature still in progress ? It is a commercial feature or do You already have a beta version ?
Thanks.

Ben.

Joe Corneli

unread,
Sep 17, 2013, 8:10:39 AM9/17/13
to etherpad-open-...@googlegroups.com, mwa...@mindedge.com
Yes, I'd also be interested to know more about how this turned out...
> --
> You received this message because you are subscribed to the Google Groups
> "Etherpad Open Source Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to etherpad-open-source...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Mike Warner

unread,
Sep 17, 2013, 11:44:47 AM9/17/13
to Joe Corneli, etherpad-open-...@googlegroups.com
it turned out great.  I've attached a resulting output.  This was some time ago and I don't recall exactly what I had to change to get this accomplished.  I'm swamped at the moment, but will see if I can dig out the changes.

Mike


2013/9/17 Joe Corneli <holtze...@gmail.com>
64420787038224-latest.html
64420787038224-latest.doc

Joe Corneli

unread,
Sep 19, 2013, 8:47:08 AM9/19/13
to Mike Warner, etherpad-open-...@googlegroups.com
Wonderful - I'll look forward!
Reply all
Reply to author
Forward
0 new messages