[Sugar-devel] Fwd: Print Support (journal vs activity)
Vamsi Krishna Davuluri
vamsi.davuluri at gmail.com
Wed Apr 22 13:19:14 EDT 2009
[21:52] <bemasc> iwikiwi: Read only handles pdf, and nothing else. You
still need all the conversion filters.
> [21:54] <bemasc> (Read actually can handle a few things other than pdf, but
> not jpg, png, odt, txt, html...)
> [21:55] <bemasc> iwikiwi: now, if you want, you could write a "Print"
> activity that can handle all these types. Presumably, that means including
> conversion filters inside the Print activity
> [21:55] <iwikiwi> bemasc, yep, just checked the documentation, and I want
> that particular case implemented, that is transfer a file from pendrive,
> then get it printed, so either I make all file export capable activities
> print or I just make a cups-pdf printing activity.
> [21:55] <iwikiwi> bemasc: exactly my thoughts :D
> [21:56] <CIA-56> Sugar: sayamindu sucrose-0.84 * r091d2ead5ef3 /po/es.po:
> Commit from Sugar Labs: Translation System by user sayamindu. 18 of 18
> messages translated (0 fuzzy).
> [21:56] <bemasc> iwikiwi: This "Print" activity could actually be built
> into Read, or it could be its own new Activity.
> [21:57] <bemasc> That's something you will have to decide.
> [21:57] <iwikiwi> bemasc: building it into read seems reasonable, but I
> wonder if I can add odf viewing to read... if i can everything is solved
> [21:58] <bemasc> iwikiwi: of course you can. Just convert to pdf and open
> with evince.
> [21:59] <-- kristianpaul has left this server (Read error: 110 (Connection
> timed out)).
> [21:59] <iwikiwi> bemasc: okay, so thats internal again, done. this way
> journal wont have to be disected much.
> [22:00] <bemasc> I like this idea. The cool thing about Read is the
> interface, which is designed to be usable (on the XO) in tablet mode.
> [22:00] <bemasc> If you do it this way, then as an additional benefit, Read
> will gain the ability to view all these different formats.
> [22:01] <iwikiwi> bemasc: okay, so when ever we open files in read, we do
> this, cups-pdf internally makes a temp object which read displays, and when
> we exit read, the object is destroyed, mean while within read it can be made
> a journal item, or sent to moodle or direct printing
> [22:02] <iwikiwi> very nice!
> [22:02] <bemasc> That sounds good to me.
> [22:02] <bemasc> I'm not sure if you even need cups-pdf, but it might be
> the easiest way.
> [22:03] <iwikiwi> hmm, what is the harder way you have in mind?
> [22:03] <bemasc> I mean, you want Read to be able to open a .odt file.
> [22:03] <bemasc> To do that, the .odt has to be converted to pdf, using
> libabiword.
> [22:04] <CIA-56> Sugar: sayamindu sucrose-0.84 * rfcd966df0030 /po/es.po:
> Commit from Sugar Labs: Translation System by user sayamindu. 18 of 18
> messages translated (0 fuzzy).
> [22:04] <Nubae> tomeu: my ip seems to be blacklisted and I cant commit to
> git, alsroot suggested I ssh proxy via your server
> [22:04] <iwikiwi> bemasc: actually this is easier, as i wont be needing to
> write a new filter
> [22:04] <bemasc> So you have two options: you can add a odt filter to cups,
> and then use cups-pdf.
> [22:04] <tomeu> heh
> [22:04] <bemasc> Or you can write your own code to say "it's an odt, so
> I'll use libabiword to convert it".
> [22:04] <tomeu> Nubae: don't have an account in shell.sl.o?
> [22:05] <Nubae> nope
> [22:05] <bemasc> iwikiwi: I don't know which way is easier.
> [22:05] <tomeu> Nubae: you should!
> [22:05] <tomeu> bernie: happen to be around?
> [22:05] <alsroot> tomeu: last time i blacklisted shell.sl.o :) -- but it
> could be resolved now
> [22:05] <CIA-56> Sugar: sayamindu sucrose-0.84 * r5cf22accff75 /po/es.po:
> Commit from Sugar Labs: Translation System by user sayamindu. 18 of 18
> messages translated (0 fuzzy).
> [22:05] <tomeu> alsroot: the blacklist is not per host and per key?
> [22:06] <tomeu> hmm
> [22:06] <Nubae> heh, yeah, it hasnt been needed till now
> [22:06] <tomeu> no, may be per host
> [22:06] <Nubae> I've deleted my key several times and recreated
> [22:06] <alsroot> tomeu: it it per IP-key then its ok
> [22:06] <Nubae> without luck
> [22:06] <tomeu> Nubae: can you comment in the ticket already open about it?
> [22:06] <tomeu> this is really a pita
> [22:06] <Nubae> yep
> [22:06] <iwikiwi> bemasc: I take 2nd, but I think I will leave this one bit
> till 6th, so i can actually play with the abiword framework code :p
> [22:07] <iwikiwi> i have endsem exams running atm
>
>
> pretty much sums it up, its either use pyabiword or cups-pdf for internal
> conversion :D
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.sugarlabs.org/archive/sugar-devel/attachments/20090422/17374bd9/attachment.htm
More information about the Sugar-devel
mailing list