Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Sunday, 16 March 2014

Happy birthday WWW

The World Wide Web celebrated 25 years on 12 March – although that’s really 25 years since conception rather than since birth. It was on the 12 March 1989 that Sir Tim Berners-Lee first put forward his proposal for what became the World-Wide Web.

The 34-year-old software engineer at CERN physics lab in in Geneva wrote a paper called, “Information Management: A Proposal”. The driving force was the need to not only communicate with colleagues, but also keep in contact with the many scientists who had worked at CERN and were now working elsewhere.

It soon became clear that the idea could be extended beyond CERN and in 1990, working with Robert Cailliau, proposed to use hypertext. The first Web site was created that year. Their thinking at the time was that there would be a web (the WorldWideWeb) of hypertext documents, and people could view them using a browser.

Steve Jobs is strangely linked to this story, and that’s because the first server was a NeXT Computer. These workstations were built by Jobs and his team, which included other ex-Macintosh staff. There was actually a note on the computer telling people not to turn it off. By late 1991, people outside CERN could access the Web as a service available on the Internet. By 1992, there was a server outside of Europe. It was set up in Palo Alto at the Stanford Linear Accelerator Center.

What Berners-Lee did that was special was to combine hypertext and the Internet. He also developed three technologies that we take for granted nowadays. They are: Hypertext Transfer Protocol (HTTP); Hypertext Mark-up Language (HTML); and unique Web addresses – URLs (Uniform Resource Locators).

In 1993 the Web browser called Mosaic was released. This had a graphical user interface and made browsing the Web easy and quick. The World Wide Web Consortium (W3C) was founded in 1994. The rest, as they say, is history.

Using the 25th birthday as a springboard, Sir Tim Berners-Lee has called for a bill of rights to protect freedom of speech on the Internet and users’ rights following leaks about government surveillance of online activity. Berners-Lee has said that there is a need for a charter like the Magna Carta to help guarantee fundamental principles.

Edward Snowden’s leaking of so many documents revealing (or confirming) that governments all over the world are monitoring Internet activity (as well phones) has brought Web privacy to the attention of the public. It seems that the NSA has been collecting personal data about Google, Facebook, and Skype users.

And now we can use the Web on our tablets and smartphones. We can buy just about anything from Amazon. We can look-up everything on Google, find out the details on Wikipedia, keep up with our friends on Facebook, watch videos on YouTube, shop, bank, and choose the best deals for insurance. We can send e-mails, and tweet about what we’re doing and who we’re with. We can also apply for a job, listen to music, read a book, and browse photos. In fact, we can do just about anything it’s possible to do.

It’s true that there is a dark side to the Web. People can find out a lot of information about you from a quick online search, and organizations, many of which are part of the government, can find out even more about your browsing habits etc. But on the whole, for most people, getting online is a natural part of the day – and it’s a very enjoyable part of their day. So well done TimBL, great idea. And happy birthday to the World Wide Web.

Sunday, 19 February 2012

How to create an e-book

For those of you who’ve been living on Mars, an e-book is a book that you can read using an e-reader, such as a Kindle or using the Kindle app on your smartphone or tablet. And the great thing is that anyone can publish an e-book. You don’t need to find a publisher, you just need a computer. On the other hand, the really bad thing about it is that anyone can publish a book, no matter how little merit it my have!

Now, obviously, there must be technical standards, so that the e-book you create can be read on a standard device. But like everything in IT, there are more than enough standards. Amazon’s Kindle uses a version of mobi and calls it Kindle Format 8 (KF8). Apple has an iBook standard called EPUB for books available from its iTunes store. Barnes & Noble have their Nook standard. And there’s Kobo, Sony Reader, iRex Digital Reader, the iRiver Story, and probably lots of others - including simple PDFs. The majority of e-book formats are based on some kind of HTML (like a Web page).
 
So, how do you create an e-book? Step 1 is to write something! E-books generally work best with text rather than text and pictures. And it seems Word is fine as the source of the text. Once you’ve done that, you need to create a nice cover, a contents list, and all the other things that you find in the front of a book. It seems to work better if you insert a page break at the end of each partial page or blank page.
 
If you want to publish for the Kindle, Amazon has KindleGen software available. I must admit, I couldn’t get it to work on my laptop. I put the files in the right place, ran it on a command line, etc. Kindle Previewer software lets you see how the layout of the book will appear on a Kindle.
 
If you have InDesign 5 or above, you can export to EPUB (for iTunes) and there is also a Kindle plug-in available.
 
I used Mobipocket from www.mobipocket.com/en/DownloadSoft/default.asp?Language=EN to convert my file. It didn’t like .docx, but was fine with .doc. However, I did lose lots of styling when I converted, so the document had to be reworked. As I said above, it’s not too clever with pictures and text boxes in a document. And that’s a problem with e-books at the moment. It’s important to keep your document as simple as possible. One other thing, the publisher edition of mobipocket protects the distribution of copyrighted content and includes Adobe PDF, Microsoft Word, and text file import wizards.
 
There’s also a piece of software called Calibre, which is available from http://calibre-ebook.com/download, that can be used to convert from one e-book format to another.
 
There are online services, like Lulu (www.lulu.com/uk/publish/ebooks/?cid=nav_ebks) that can help you publish your e-book. You upload your file, then create a cover, describe your book, pick a price, and promote your book. This gives you a route to Apple’s iBookstore, as well as selling it on Lulu’s Marketplace. In terms of royalties, Apple takes 30 percent, and Lulu takes 20 percent of the remainder.
 
If you want to publish through Barnes & Noble you can use the online service PubIt! (http://pubit.barnesandnoble.com/pubit_app/bn?t=pi_reg_home). Create an account then upload your e-book and cover art. Then PubIt! converts the digital files for viewing on Nook devices. And then you can sell it. Royalty rates range from 40 percent (for any book priced under $2.98 or over $10) to 65 percent (for any book priced between $2.99 and $9.99).
 
If you self publish to the Kindle, you earn the highest royalty rate if your book costs between $2.99 to $9.99 range. You get 70% of the price.
 
Using iTunes Connect gets your EPUB format book on the iBookstore shelves. There is an approval process, and you’ll need an iTunes account.
 
For $19.99 (and part of your royalty) you can use BookBrewer (http://bookbrewer.com/home), which lets you upload your cover, enter a description of your book, and copy and paste chapters. The e-book can then be sold through Amazon or Barnes & Noble.

Where am I in my investigation into e-books? I’ve created a book in Word that’s full of pictures with wrap-around text and text boxes with coloured backgrounds and shadows. It doesn’t convert very well. On the other hand, I have exported it as PDF and copied it onto my Android tablet into the Kindle app folder, and I can read my book using the Kindle app. (Older versions of the app don’t read PDFs.) My next task is to see whether I can ‘play’ with the HTML and create web pages that look more like my original Word pages and then go through the process again to get a good looking mobi file. At the moment, my PDF book doesn’t show up with the correct cover in the Kindle app.

If anyone’s got any suggestions, I’ll be interested to hear them.