17 ms·
Modernizing AbiWord code
- awill 11y agoI really loved AbiWord in the early 2000s. However, the fact that they refused to default to ODF meant I switched away. Who's going to store important documents in a format that only AbiWord can read. Still though, it's got many advantages over the LibreOffice bloat.
- 5ilv3r 11y agoI lot of folks I tried to convert to abiword refused because it didn't default to .doc for saved files.
- jrapdx3 11y agoAlways liked using Abiword on Linux, but the Windows version seemed quite buggy last time I tried it. IIRC Abiword could read and write in (some) .doc format, though that was not the default native format. Come to think of it, a decade or so ago, access to .doc files was a major reason to use Abiword on non-Windows platforms. It will be good to see it working again.
- hub_ 11y agoIt can read .doc. Never write. When it writes .doc it is actually writing RTF. A kludge, but this is better than always explaining users that saving as .rtf will be fine. And Word did that for a while part of a feature that was removed in an update. The only things were this didn't work is for some proprietary CMS that supported .doc but not .rtf. I'm personally not super happy about that, but it is still much better than not doing it.
- boondaburrah 11y agoI loved AbiWord's file format. It was literally a basic html file, so I could confidently store anything in it and know I could read it later, much easier than any ODF.
- oever 11y agoODF has many similarities to HTML. HTML has <div>, <h1>, <p>, <span>. ODF has <text:section>, <text:h text:outline-level="1"/>,<text:p>, <text:span>. Images are also PNG, JPEG and SVG. Formulas are MathML. Styling uses the same properties as CSS, but the are written in XML instead of using the CSS syntax. The ODF Essentials book is good introduction to the format. http://books.evc-cit.info/odbook/book.html http://books.evc-cit.info/odbook/book.html
- oever 11y agoVery nice to see activity on Abiword. The enthusiasm of the author is evident. Abiword does have support for ODF, but it could be better. Abiword 3 uses ODF 1.1. At the last ODF plugfest quite some issues were found [1, end of page]. There are now automatic tests than can be run to improve ODF support. The tests can be run from the command-line and give output as HTML [2]. Currently, there is a project underway that makes it possible to run the tests on a public test server which will show live results. hub asks for tests in his blog post. For loading, saving and rending ODF files, the ODF community can help. [1] http://odfplugfest.org/2015-thehague/report.html http://odfplugfest.org/2015-thehague/report.html [2] http://autotests.opendocumentformat.org/ http://autotests.opendocumentformat.org/
- hub_ 11y agoThere is definitely lots of improvement to do in that area for AbiWord. There is a long list of bugs from every side.
- hub_ 11y agoIt is not "refused". It is just not a trivial undertaking and with even more limited resources now, it is even less easy. Just switching to ODF as a default format wouldn't have been a good idea, the difference in data models would have caused problems. I have in mind that to do that we'd have to change the internal model for things like list and tables to not have to convert them back and forth each time with losses. This is a sad fact of the reality. BTW one of the glorious hackers from the "LibreOffice side" has implemented a LibroOffice filter to read AbiWord documents.
- sp332 11y agoUh, Eyeball Mark II? Where do I get my upgrade...
- ASalazarMX 11y agoProbably had laser eye surgery. Doesn't seem like he uses glasses.
- hub_ 11y agonope. Never had eye surgery and I have normal vision without glasses. It was just a nod a reading stuff with a second set of eyes (ie code I didn't write).
- sandyarmstrong 11y agoAbiWord is my favorite word processor. It was so much less bloated than any other graphical option. I wrote pretty much all of my papers in college with it. It reminded me of my previous favorite from my youth: Claris Word. Glad to see it's still alive. Updating to C++11 should make it a lot more appealing for new contributors.
- bsharitt 11y agoI used it back when OpenOffice was just too slow and bloated to use very well on most computers I owned ~10 years ago and earlier. But through a combination of improved OpenOffice/LibreOffice performance and faster computers, I finally drifted away from AbiWord. For one, I still had to install OpenOffice for PowerPoint type work, so it was there anyway and it usually kept up with MS format compatibility better than AbiWord. I think the last straw for for leaving AbiWord behind completely was the Novell(?) patches that made OpenOffice feel more at home on Linux and stop sticking out like a sore thumb(and I think those were the same patches that led to the LibreOffice fork when Sun/Oracle wouldn't accept them).
- chris_wot 11y agoThey were, under the go-oo.org push.
- frik 11y agoStarOffice 5.1 run fine on a Pentium 133MHz on Win95. It come from a German company which got bought buy Novell and rebranded and open sourced as OpenOffice 1x. Comparing StarOffice 5.1 and LibreOffice 4, lottle has changed. Well, the same can be said between Office 97 and Office 2016. The office suits were already feature complete in the late nineties, and conceptional issues still plague us 20 year later, as those programs saw only increamental improvements. While StarOffice was in good shape, OpenOffice was always in more rough shape, but nowadays LibreOffice cares more to deliver a more polished UX.
- gtufano 11y agoStar Division was bought by Sun Microsystems (later bought by Oracle). I was there, then. That's the original reason we have Oracle OpenOffice: Open Office part derived from Sun's OpenOffice; the Oracle part the reason for the split between LibreOffice and OpenOffice. ;-)
- api 11y agoIf you think cross platform development is bad now, go back to the late 90s or early 2000s... this brought back some painful memories. Look at the old Mozilla C++ guidelines for more cringe-worthy stuff.
- mhd 11y agoI thought Qt was a bit conservative, but then I read the wxWindows API (late 90s). Single platform often wasn't that much better, though. The awefulness of MFC was one big reason why Delphi was so popular.
- cannam 11y agoCross-platform development is bad now. I mean yes, I totally agree that the late 90s were really bad for portable C++ development. You couldn't trust the compilers, you had limited faith in the libraries, rewriting the container classes yourself and falling back on C idioms were commonplace. Man, we really had no idea who owned which pointer back then. But there was a sweet spot around 2006, when with C++ and Qt4 you could reach every major desktop platform with a single codebase with essentially identical UIs bar the detailed widget rendering, and you could do it using code that was still largely acceptable to work with. I did a fair bit of successful work that way. Then the iPhone came along, and a platform explosion, incompatible managed-code platforms, many different input and output devices to support, more variety in UI design styles, the world of walled gardens and having to recreate the UI layer again and again for each company's devices. Now that's settled down a bit, and instead we have the paralysis of choice among piles of UI/back-end languages and frameworks all with their own tradeoffs. Still, at least C++ is a nicer language now.
- api 11y agoThere are more platforms today, but the tools are much better. Maybe it's a wash. In terms of platform sprawl I feel like we're back to the 1980s when there was Apple II, Mac, IBM PC, IBM clones (not always compatible), TRS-80, Commodore 64, etc.
- hub_ 11y agoPorting to iOS would be easier than to Android. Because on iOS we can simply write the UI code in Objective-C++. On Android, it involve doing JNI + Java and cross compiling the AbiWord engine. Something like what Firefox for Android is doing. But neither is in the pipe.
- samth 11y agoHappy to see AbiWord, the first open-source project I was part of, continuing to do things the right way. The cross-platform approach in AbiWord has always been committed to quality over convenience, and I'm glad that's continuing.
- hub_ 11y agoI'm not sure this will go the way one would want. There is nobody to do Windows and the Mac port has also fallen behind. I'd rather continue the bootstrapped Qt port in parallel to Gtk and use that.
- dduarte 11y agoI wonder how clang-tidy [1] could help in this task [1] http://clang.llvm.org/extra/clang-tidy/ http://clang.llvm.org/extra/clang-tidy/
- tfar 11y agoIt helps okay. I recently used it to slowly and mostly automatically introduce more and more C++11 across a bigger code base. For example it does a great job introducing nullptr [0] and an okay job turning classic for loops into range based for loops [1] where possible. [0] https://github.com/swift/swift/commit/eddd92ed76ae68cb1e202602fd3ebd11b69191a2 https://github.com/swift/swift/commit/eddd92ed76ae68cb1e2026... [1] https://github.com/swift/swift/commit/3c560e31b0f168da917e8d566db01fd1cd997d86 https://github.com/swift/swift/commit/3c560e31b0f168da917e8d...
- ravenstine 11y agoI liked AbiWord. It was very lean and GTK+ friendly. But I always had little gotchas with the formatting and problems with ODF occurring between word processors that didn't occur as often when originating from LibreOffice. It had the clean/snappy interface that LibreOffice should have had, but definitely not the document feature support it needed. These days, I'm not sure why anyone would bother trying to revive AbiWord. Not that I don't have my fair share of software engineering projects that are specific to my interests, but I personally wouldn't go back to using it or LibreOffice. If I really need a full-blown word processor, Google Docs does everything I need, and their Chrome app works for offline use. Most of the time, I can get away with writing stuff in Markdown. Then again, I'm a developer so that appeals to me. Microsoft Word online also works well cross-platform. With either one, you may not get the best multi-format support, but they're both very dependable IMO. I couldn't depend on AbiWord most of the time unless I knew the same doc would be opened in another AbiWord instance. Web-based technology really is, I think, the best way forward in cross-platform development for things like word processing which are not CPU intensive. People can and should use whatever tools they want to get the job done but, if I was to start a new Linux/CP word processor today, I'd be using Node.js with Babel and make it "Web Native". For some things you'll want C++ but, for me, not this. But best of luck to them for sure.
- oever 11y agoMicrosoft Office and Google Docs are examples of applications that require internet access and report information about the user to the software provider. That provider in turn can share that information with advertisers. That is a trade-off that not everybody is willing to make. There are applications like Etherpad, WebODF (supplied with packages like ownCloud) that make it possible to work from the browser but on a server that you can choose. Even desktop applications can be used in this way via LibreOffice Online or open365.io.
- chris_wot 11y agoInteresting - looks like AbiWord were having similar issues that LibreOffice were...
- moron4hire 11y agoThis is something I think about a lot. No matter how much time we spend on software design and doing things "right", in 5 years it's all going to get thrown out by someone who thinks the codebase needs "modernizing". It's actually a bit reassuring to me. Things only having a 5 year lifespan means you shouldn't spend a lot of time worrying about them. Code is meant to be disposable, and the less we treat it so, the more we hold ourselves back.
- kazinator 11y agoIf we treat software as permanent, we hold ourselves back from making risky changes that wreck it. If we treat software as temporary, we hold ourselves back from worthwhile improvements that will have enduring value, especially if they are fairly difficult.
- mikestew 11y agoThings only having a 5 year lifespan means you shouldn't spend a lot of time worrying about them. That's what we said in the 80s when we were using two-digit date fields.
- hub_ 11y agoMy approach is not to throw away. The changes are incremental and definitely the spirit of the original code is here.