I had an adventure printing out one of my travel blogs for a friend who cannot read it online at the moment. Essentially I wanted to generate a PDF of my blog with posts in chronological order.
The best solution is the service Blogger partners with, blog2print. I am however a cheapskate, and besides I didn't want to wait for postal delivery. I needed it now.
Ignoring the chronological order requirement for the moment, I tried the obvious solution: print as PDF from a browser. No go. Blogger sites print badly. Chrome generated only the first entry. Firefox formatted it badly, putting an almost blank page at the beginning and more elsewhere. Konqueror cut off pieces near the bottom of the page, as did Opera.
Next I tried the web2pdf conversion service. This didn't generate any extra blank areas, but put page breaks right across photographs. No good.
More searching turned up various browser plugins or tools, which didn't work well. Also there were suggestions to customise the CSS of my blog to handle print media, which looked like too much work, but may be worth pursuing when I have time.
Eventually the solution I came up with was to install a local instance of Wordpress on my machine, run the Atom XML export from Blogger (which I always have on my machine anyway, for backup) through this converter, inport the XML, then print from the Wordpress page using the browser's print function. The output is acceptable. Now I only have to get Wordpress to display in chronological order. I've found a plugin that works with Wordpress 3.1 called default-sort-ascend.
Another advantage of Wordpress is that the reader has control over the number of posts to show per page. I can therefore set it to a large number to get the whole blog. In Blogger, only the blog admin can change this.
There is an online service called ljbook, but this requires me to make my Wordpress site public. I'd rather do it all on my machine privately.
There are various Wordpress plugins for printing one or a group of posts as PDF, but I think they don't do any better than the print as PDF function of web browsers.
One tip I want to explore when I have more time is a toolchain converting the Atom XML to Docbook using PHP+XSLT and then FOP to PDF. Apparently this can generate very good quality output.
At this point I'd like to insert a gripe about Chrome 11. I can see no way to tell it to generate A4 PDF output. The "paper" size dropdown is disabled so I can only get Letter size PDFs. Print A4 to printer, yes it takes that from my environment settings. Someone please prove me wrong, otherwise I'm surprised that Google could miss this.
The next adventure, which isn't really to do with blog import was when I tried to print the PDF. It really is my problem because I have an old Lexmark E312 Postscript printer. When I tried to print the PDF from Okular, it would abort on a complicated page. I fared a little better with Acroread by selecting Level 2 Postcript but eventually a too-complex page would stymie the printer. I think it's not because my printer doesn't have enough memory; I have 12MB installed, which should be sufficient for a page at a time. I think it's because my printer only handles Level 2 Postscript and even then, splutters on any slight deviations from the standard, or perhaps has some implementation deficiencies.
Eventually my solution was to generate and print the Postscript a page at a time from the PDF using pdftops from Poppler. I don't really understand why this works. I surmise it's because pdftops makes sure to generate only standard Postscript and filters out any quirks in the PDF. Thank goodness there's more than one way to do things on Linux.
Monday, 18 April 2011
Saturday, 19 February 2011
Wednesday, 8 December 2010
Chickens of the world unite
As far as I can search nobody has published this pun* I improvisationally invented many years ago, when I was one of a group of trainees in a factory, and we spotted a tray full of sunny side up eggs in the cafeteria. So here it is:
Chickens of the world unite; you have nothing to lose but your yolks!
* The closest I could find was: Eggheads of the world unite etc.
Chickens of the world unite; you have nothing to lose but your yolks!
* The closest I could find was: Eggheads of the world unite etc.
Friday, 5 November 2010
Green Gables Island
I recently came across an old piece I wrote for a class on travel writing I took I think about 15 years ago. It's written with a magazine audience in mind, which is why it reads a little impersonal. The trip itself was taken in the mid 1980s but I think little of my description is outdated. My instructor's comments are below the piece.
What do Anne of Green Gables and the Cajuns of Louisiana have in common? The answer lies in a jewel of an island nested off the coast of New Brunswick.
Prince Edward Island is Canada's smallest province A half-hour ferry ride across the Northumberland Strait and you are transported to another age. The air feels softer, your cares distant. One of the first things you will notice is the bright red soil of the exposed cliff faces. The brilliant colouration comes from the rust in the soft sandstone.
The French Arcadians were some of the first settlers and made good use of the fertile soil. Unfortunately they became victims in a larger drama played between the superpowers of that age, England and France. After France lost the Battle of Louisbourg in 1758, the Arcadians were forcibly repatriated. Some went to Louisiana and became the Cajuns, a corruption of Arcadian. Still others risked their lives and fled to the woods. They not only survived but thrived. Today one islander in seven is an Arcadian and a descendant of those stubborn refugees.
If you come in the right season you may come across an Arcadian festival. They were having one at Abram-Village while I was there. Dancers whirled to the beat of Arcadian folk songs, while stalls offered enticing culinary delicacies. Nearby, contestants were demonstrating traditional feats such as wood chopping and the horse team pull. Every other family is named Arsenault. That's how small a group of families the original settlers were. Their language is a linguistic snapshot of 17th century French.
Wandering out of the fairgrounds you are likely to come across a small crafts shop or artisanat. On display was an antique quilt with an intriguing story. Back in the 1930s, the artist, an Arcadian housewife, saw a plane in the sky for the first time in her life. It made such an impression on her that she recorded her impressions with quiltwork.
On the other side of the island, near Cavendish, is Green Gables. This is the house Lucy Maud Montgomery lived in with her cousins. Lucy was the creator of that spirited character, Anne of Green Gables, so beloved by children all over the world. Her heroine is based in no small part upon herself. A short distance from the house is a serene, wooded walk where Lucy must have spent many a happy hour as a child, listening to the babbling brook and the sounds of nature.
During your drive around the island you will come across blandishments to stop and indulge in an all you can eat lobster feast. Give in to temptation once. You will be shown to a buffet table groaning with hearty side dishes. A short while later, your pièce de résistance arrives, a lobster boiled as red as the soil of the island. After the dinner, as the twilight ferry bears you towards Nova Scotia, perhaps you will understand why the Arcadians were as reluctant as you are to leave.
My instructor commented that I had used a couple of hackneyed phrases: jewel of an island, and babbling brook. I notice that I had a chance to make the account a bit more personal when writing about the aeroplane quilt, instead of being an anonymous reporter, but missed it. I also see now that I used impression twice in one sentence. And looking up Montgomery's biography reveals that her days in Cavendish were mostly lonely and her imaginative mind provided companions so my description was a bit inaccurate.
What do Anne of Green Gables and the Cajuns of Louisiana have in common? The answer lies in a jewel of an island nested off the coast of New Brunswick.
Prince Edward Island is Canada's smallest province A half-hour ferry ride across the Northumberland Strait and you are transported to another age. The air feels softer, your cares distant. One of the first things you will notice is the bright red soil of the exposed cliff faces. The brilliant colouration comes from the rust in the soft sandstone.
The French Arcadians were some of the first settlers and made good use of the fertile soil. Unfortunately they became victims in a larger drama played between the superpowers of that age, England and France. After France lost the Battle of Louisbourg in 1758, the Arcadians were forcibly repatriated. Some went to Louisiana and became the Cajuns, a corruption of Arcadian. Still others risked their lives and fled to the woods. They not only survived but thrived. Today one islander in seven is an Arcadian and a descendant of those stubborn refugees.
If you come in the right season you may come across an Arcadian festival. They were having one at Abram-Village while I was there. Dancers whirled to the beat of Arcadian folk songs, while stalls offered enticing culinary delicacies. Nearby, contestants were demonstrating traditional feats such as wood chopping and the horse team pull. Every other family is named Arsenault. That's how small a group of families the original settlers were. Their language is a linguistic snapshot of 17th century French.
Wandering out of the fairgrounds you are likely to come across a small crafts shop or artisanat. On display was an antique quilt with an intriguing story. Back in the 1930s, the artist, an Arcadian housewife, saw a plane in the sky for the first time in her life. It made such an impression on her that she recorded her impressions with quiltwork.
On the other side of the island, near Cavendish, is Green Gables. This is the house Lucy Maud Montgomery lived in with her cousins. Lucy was the creator of that spirited character, Anne of Green Gables, so beloved by children all over the world. Her heroine is based in no small part upon herself. A short distance from the house is a serene, wooded walk where Lucy must have spent many a happy hour as a child, listening to the babbling brook and the sounds of nature.
During your drive around the island you will come across blandishments to stop and indulge in an all you can eat lobster feast. Give in to temptation once. You will be shown to a buffet table groaning with hearty side dishes. A short while later, your pièce de résistance arrives, a lobster boiled as red as the soil of the island. After the dinner, as the twilight ferry bears you towards Nova Scotia, perhaps you will understand why the Arcadians were as reluctant as you are to leave.
My instructor commented that I had used a couple of hackneyed phrases: jewel of an island, and babbling brook. I notice that I had a chance to make the account a bit more personal when writing about the aeroplane quilt, instead of being an anonymous reporter, but missed it. I also see now that I used impression twice in one sentence. And looking up Montgomery's biography reveals that her days in Cavendish were mostly lonely and her imaginative mind provided companions so my description was a bit inaccurate.
Friday, 29 October 2010
Writing a blog is hard
For me that is. An entry can take a couple of hours.
The reason is that most of my blogs are travelogues, generated from old travel diaries. First of all I have to decipher my own handwriting. Ok, that's my problem. Actually that doesn't take too long except for the odd word or two.
In the case of old diaries I have to dredge up the memories associated with the events recorded. I have to ask myself, was what I remembered plausible and consistent with the record? Why did I phrase things a certain way? I'm a stickler for accuracy, you see. But this phase is good to shed light on the details.
Then I have to find les mots justes to entertain the reader. This is the fun part. I have to avoid cliches, and overuse of certain words. I have to make the tenses consistent. I have get the tone right. And sometimes I have to check that a word means what I intended. This is good practice for a writer actually, to truly understand the meanings of words.
Then I have to add background information and hyperlinks. I must make sure that I spell names correctly. I must present the correct facts and not guesswork. Wikipedia is my friend here. I learn quite a few facts in this phase, long after the journey has been completed. It's humbling to discover that sometimes what I took to be the case was somewhat in error, or not the whole story.
In the case of my opinions, I have to be fair-minded and label my prejudices as such. It's not a matter of political correctness. Part of the spice of life is comprehending how there can be so many aspects to everything.
Finally I have to proofread and correct minor mistakes like mismatch of case, tense or number. Or poor phrasing with misdirected referents. Sometimes this correction continues even after publishing.
Sometimes I forget to include an anecdote and have to go back to amend the entry.
I have to insert pictures at appropriate places. It's kind of fun to look for the good shots in my collection. I often wish I had taken more shots so as to have more candidates.
And of course, I like telling jokes and playing with words. And playing with readers' expectations.
All in all it's an enjoyable way to spend a couple of hours.
So, if you would like to enjoy some of my travel blogs, follow the links from this page.
The reason is that most of my blogs are travelogues, generated from old travel diaries. First of all I have to decipher my own handwriting. Ok, that's my problem. Actually that doesn't take too long except for the odd word or two.
In the case of old diaries I have to dredge up the memories associated with the events recorded. I have to ask myself, was what I remembered plausible and consistent with the record? Why did I phrase things a certain way? I'm a stickler for accuracy, you see. But this phase is good to shed light on the details.
Then I have to find les mots justes to entertain the reader. This is the fun part. I have to avoid cliches, and overuse of certain words. I have to make the tenses consistent. I have get the tone right. And sometimes I have to check that a word means what I intended. This is good practice for a writer actually, to truly understand the meanings of words.
Then I have to add background information and hyperlinks. I must make sure that I spell names correctly. I must present the correct facts and not guesswork. Wikipedia is my friend here. I learn quite a few facts in this phase, long after the journey has been completed. It's humbling to discover that sometimes what I took to be the case was somewhat in error, or not the whole story.
In the case of my opinions, I have to be fair-minded and label my prejudices as such. It's not a matter of political correctness. Part of the spice of life is comprehending how there can be so many aspects to everything.
Finally I have to proofread and correct minor mistakes like mismatch of case, tense or number. Or poor phrasing with misdirected referents. Sometimes this correction continues even after publishing.
Sometimes I forget to include an anecdote and have to go back to amend the entry.
I have to insert pictures at appropriate places. It's kind of fun to look for the good shots in my collection. I often wish I had taken more shots so as to have more candidates.
And of course, I like telling jokes and playing with words. And playing with readers' expectations.
All in all it's an enjoyable way to spend a couple of hours.
So, if you would like to enjoy some of my travel blogs, follow the links from this page.
Friday, 16 July 2010
Glue stick and lip balm stick
Hmm, just noticed that a glue stick looks like a lip balm stick, except larger. Looks like an accident waiting to happen. Wonder if I can use the idea in a story. :)
Subscribe to:
Comments (Atom)

