Hi all, I found Okular::TextDocumentGenerator, so I fully rewrite current txt backend using Okular::TextDocumentGenerator And code become pretty clear now.
Patch available here https://github.com/azat/okular/compare/master...add-txt-support.patch Human view here https://github.com/azat/okular/compare/master...add-txt-support New screenshot available here: http://i.imgur.com/YZEmlg0.png Any wishes? On Wed, Feb 13, 2013 at 8:48 AM, Azat Khuzhin <[email protected]> wrote: > On Wed, Feb 13, 2013 at 3:06 AM, Albert Astals Cid <[email protected]> wrote: >> El Dilluns, 11 de febrer de 2013, a les 11:14:33, Azat Khuzhin va escriure: >>> On Mon, Feb 11, 2013 at 1:15 AM, Albert Astals Cid <[email protected]> wrote: >>> > El Diumenge, 10 de febrer de 2013, a les 21:34:35, Azat Khuzhin va >> escriure: >>> >> Hi all, >>> > >>> > Hi >>> > >>> >> I write simple plain text backend for okular. >>> >> https://github.com/azat/okular/tree/add-txt-support >>> > >>> > To be honest i don't see what benefit a plain text backend for okular has, >>> > but I'm not going to try to stop you :-) >>> >>> I use okular to read books, and I have one book in plaintext format, >>> but kate doesn't the best choice to read books, so I start >>> implementing this backend. >> >> Makes sense, do you have a screenshot we can see how it is looking like? > > http://i.imgur.com/gX0DEJJ.png > Is this enough? > >> >> One of the things i think you'll need to implement is a font selector, no? So >> you can change font size, etc. That's one of the things we've been needing >> for >> lots of other "text based" formats, so it'd be cool to get globally :-) > > Good idea. > I will do this in the next week. More likely after some > refactoring/improvements of new plain text backend. > >> >>> >>> >> I will support this backend until bringing it to a normal state. >>> >> It means I will resolv many TODO's in this code, that I left, and do >>> >> some refactoring. >>> >> >>> >> And after some fixes, from time to time, to this backed will write >>> >> email to this mail list that new version is available. >>> >> >>> >> It will be great if this backend can be merged to upstream, for >>> >> everybody. >>> >> So if anybody can tell what must be fixed before merging to upstream, >>> >> I will do it as soon as I can. >>> >> >>> >> Patch available here >>> >> https://github.com/azat/okular/compare/master...add-txt-support.patch >>> >> >>> >> Graphic view available here >>> >> https://github.com/azat/okular/compare/master...add-txt-support >>> > >>> > Any reason this is happening in github instead of in git.kde.org? You'll >>> > probably get more help/visibility if in git.kde.org than in github >>> >>> I use github for open source development. >>> It doesn't take much to push to git.kde.org too. >>>ceil >>> I'v registered at identity.kde.org and now I have git.kde.org account. >>> But I don't know how can I create repository there. >>> Could you help me with this? >> >> Sadly you can't, you need a "contributor account" and for that there is a >> requirement you have contributed some patches before getting the account, so >> i >> guess for now you'll still need to be in github, sorry for the incorrect >> information :-/ > > Don't worry, I will use github. > I will push to new repository when I will get "contributor account". > >> >> Cheers, >> Albert >> >>> >>> > Cheers, >>> > >>> > Albert >>> >> >>> >> P.S. I will gladly except you help with development. >>> >> >>> >> -- >>> >> Azat Khuzhin >>> >> Primary email: [email protected] >>> >> _______________________________________________ >>> >> Okular-devel mailing list >>> >> [email protected] >>> >> https://mail.kde.org/mailman/listinfo/okular-devel >>> > >>> > _______________________________________________ >>> > Okular-devel mailing list >>> > [email protected] >>> > https://mail.kde.org/mailman/listinfo/okular-devel >>> >>> -- >>> Azat Khuzhin >>> Primary email: [email protected] >>> _______________________________________________ >>> Okular-devel mailing list >>> [email protected] >>> https://mail.kde.org/mailman/listinfo/okular-devel >> _______________________________________________ >> Okular-devel mailing list >> [email protected] >> https://mail.kde.org/mailman/listinfo/okular-devel > > > > -- > Azat Khuzhin > Primary email: [email protected] -- Azat Khuzhin Primary email: [email protected] _______________________________________________ Okular-devel mailing list [email protected] https://mail.kde.org/mailman/listinfo/okular-devel
