LyXBlogger
Premise
LyX really is a new way of thinking about documents. There is a bit of a learning curve about it, but once you get the formatting set up the way you want it, each successive chapter in your book sets up exactly the same-- automatically. It also prevents you from doing things that don’t normally make sense, like putting two spaces between a word, or a space at the beginning of a paragraph. It won’t even let you accidentally (or on purpose) put two blank lines between paragraphs. Content is content and layout is layout - and LyX does a good job keeping them separate.
So many of us have become LyX addicts for these and other reasons. But when one wants to publish to the web, as in creating an online blog, there comes a dilemma of the having your cake and eating it too variety. Of course LyX users still want to compose everything they do in LyX. But blogging engines, such as WordPress, don’t speak LyX, and they don’t understand PDF either. They hunger for none other than xhtml. Ah, but how to get your beautiful looking, carefully arranged document from LyX to WordPress, while retaining your document’s organization and allowing you to still manage your own CSS style file to tweak the formatting?
LyX die-hards have done it the hard way before. Like composing a document in LyX, then copying the screen into the blog engine composition window, and re-adding any formatting that was lost for titles, headings, emphasis, lists, and so on. Well those days are over. Now you can talk directly from LyX to your favorite blogging engine. That is, as long as your favorite blogging engine is WordPress.
Solution
LyXBlogger allows you to post to your WordPress blog right from LyX. Recent versions include the following features:
-
Provides XML-RPC connectivity to WordPress Blogs
-
Uploads images and formatted text automatically
-
Supports eLyXer XHTML format
-
Supports LyX 2.0 (internal) LyXHTML format
-
Extracts title from document and uses it as the posting title
-
Preserves document organization hierarchy as CSS classes
-
Provides consistent look among all your blog entries based on your master CSS file
-
Retrieves category list from server to allow user selection
-
Gives option to post to test site at blogtest.letseatalready.com
-
Displays messages and gets user input through xterm window
Screenshot
Here is a screenshot of LyXBlogger running on Ubuntu.
Download
LyXBlogger is available as a free download from the GNU
mirrors. If the mirrors don’t show a brand new release yet (a 24 hour delay is typical), try the
direct link.
Installation
LyXBlogger is installed as a Python module. For instructions, see the
user's guide.
Supported xhtml converters for LyX 1.6.x
Supported xhtml converters for LyX 2.0
-
eLyXer
-
LyXHTML (Internal in LyX 2.0)
Usage
LyXBlogger is called from the export menu of LyX. First, see if LyXBlogger is already listed in your LyX export menu. If it’s not, see the
user's guide for help in setting it up.
Alternatively, LyXBlogger can be invoked from the command line as
$ python -m lyxblogger <input_file>
Test Drive
LyXBlogger comes out of the box ready to upload to a test site (blogtest.letseatalready.com) where you can test its posting capability. LyXBlogger will ask you whether to post to the test site or not. For details, see see the
user's guide.
History
For the literary inclined, you can read about the initial work on LyXBlogger
here,
here, and
here. For the technically inclined, see the official
change log. For the rest of you, here is the history of LyXBlogger in a nutshell:
-
0.37 Fixed a bug from 0.36 where images didn’t show up
-
0.36 Allows editing of previous posts
-
0.35 Added sane exception handling and clear error messages.
-
0.34 Added support for Microsoft Windows. Verified support for Mac OS X. Changed name to LyXBlogger (with a capital “X”). Modularized source code and used eLyXer's coalesce.py to form it into one module for distribution. Includes unit testing code. Changed release license to GNU GPL3.
-
0.32: Asks for confirmation before uploading to default domain. Prompts for a new title if eLyXer’s default of ’Converted document’ is found.
-
0.31: Adds eLyXer support for LyX 1.6.x and 2.0
-
0.30: Changed to xml-rpc connectivity for automated posting of xhtml and images. Runs on LyX 2.0 (internal) LyXHTML format.
-
0.20 and previous: Initial releases pasted html code to the clipboard so it was ready to paste wherever you needed it, like into a text editor or a browser-based composition window. This still has a lot of usefulness for creating forum posts and for other projects, too. May be revived in the future under another project name.
Contact
For questions, support, and bug reports, you can contact the main developer at
JackDesert556@gmail.com. By doing so you can help the author improve LyXBlogger for future users. You can send your sample documents with a description of the errors encountered. Any documents sent will be treated with the utmost confidentiality.
Acknowledgments
Thanks to
Becky Carson for inspiring me to become a blogger. Thanks to Bruce Veidt for coining the name LyXBlogger. Thanks to Alex Fernandez for producing one of the xhtml converters that LyXBlogger works with,
eLyXer, for creating complete documentation which was easy to modify for this site, and for providing much-needed background information about how to integrate a Python project with LyX. Thanks to Anne Geoghegan for letting me test LyXBlogger on her Mac. Thanks to Andrea Bussinger for her continued support as I sat on my throne and typed away. Thanks to Richard Heck for reviewing LyX -LyXBlogger integration patches. Thanks to nongnu.org for hosting this project. Thanks to those who have asked for clarification, that the documentation may improve.