« februari 2010 | Main | april 2010 »
zaterdag, 13 maart, 2010
iPad kan ook eigen e-books lezen
In mijn blog, Apple iPad als e-book lezer, heb ik wat onderzoek gedaan naar de mogelijkheid om zelf e-books te maken.
Aanvullend op wat ik daar schrijf, en wat je uit de handleiding kan opmaken, wil ik een aardig feit benadrukken. Namelijk dat een e-book niets anders is dan een verzameling webpaginas (.html) in een zip bestand.
Verander de .epub extensie in .zip en je kan het uitpakken met een zip extractiie programma.
Tip: Om alles weer naar .zip te veranderen moet je niet de archief funktie in Mac OS X gebruiken en niet de map waar alles inzit comprimeren. Als je dat doet krijg je ten eerste verborgen Mac OS informatie in het zipbestand en ten tweede krijg je een map in een map. Als je het goed wilt doen, zip dan de INHOUD van de map met YemUZip en kies voor PC compatible. Geef bij het bewaren de naam van het boek weer op en verander later de extensie in .epub. Effe oefenen is ook hier het devies.
Ook mompelde ik wat dat je net als MP3s vermoedelijk je eigen e-books aan iTunes zal kunnen toevoegen en synchroniseren met je iPad. Die mogelijkheid wordt nu bevestigd op de iPad pagina bij Apple (zie afbeelding).
En om vast te oefenen met gratis e-books, hier een link naar de e-book afdeling van Libris.
Van elk e-book kan je een proefexemplaar downloaden. In epub en mobi formaat. Kies het epub formaat. Volg ook de links naar de uitlegpaginas.
Een overzicht van de genres opent in een raar venster binnen de pagina. Hier heb je de pagina als je die opent in een nieuw venster : Literatuur.
Ik haalde het proefexemplaat Het Diner van Herman Koch op. Na het uitpakken van het pakket om het te onderzoeken kwam ik al gelijk 2 HTML parse fouten tegen toen ik de paginas in een browser opende. In het HTML bestand buylink.xhtml ontbreekt een afsluitende </table> en in chapter02.xhtml is </body><html> verkeerd afgesloten. Aanpassen kan je met een HTML editor van je keus.
Ook zien de e-books er nogal flets uit. Niet erg opwindend om te zien. Bekijk dan eens dit artikel bij AppleInsider over wat Penguin Books van plan is :
Penguin betting big on interactive eBook content for Apple's iPad
Nu nog even overeenstemming zien te bereiken over de naam : Is het nu e-book, eBook of ebook. Volgens Wikipedia kan het allebei.
maandag, 08 maart, 2010
iWeb : Adding FancyZoom to iWeb without the hassle
I updated to FancyZoom 1.1 : http://www.cabel.name/2008/02/fancyzoom-10.html
First, put the FancyZoom folder in the root of the server.
Then paste this code in the HTML Snippet :
<script language="JavaScript"
type="text/javascript">
<!--
var bodyLoad =
parent.document.getElementsByTagName("body")[0];
load =
bodyLoad.getAttribute("onLoad");
bodyLoad.setAttribute("onLoad",
load + "setupZoom();");
var headID =
parent.document.getElementsByTagName("head")[0];
var
newScript = parent.document.createElement('script');
newScript.type =
'text/javascript';
newScript.src =
'/FancyZoom/js-global/FancyZoom.js';
headID.appendChild(newScript);
var headID =
parent.document.getElementsByTagName("head")[0];
var
newScript = parent.document.createElement('script');
newScript.type =
'text/javascript';
newScript.src =
'/FancyZoom/js-global/FancyZoomHTML.js';
headID.appendChild(newScript);
// -->
</script>
Here's the widget file. Look at the source :
http://www.wyodor.net/_Demo/Fancy//Fancy2_files/widget1_markup.html
The FancyZoom 1.1 code uses this variable in the js-global/FancyZoom.js file to find its own images :
var zoomImagesURI = '/images-global/zoom/'; // Location of the zoom and shadow images
The slash before images indicates it uses a relative to root link. To make it work with the FancyZoom folder add /FancyZoom before /images.
var zoomImagesURI = '/FancyZoom//images-global/zoom/'; // Location of the zoom and shadow images
This way it will not work on MobileMe when you use web.me.com/Username. Only when you have Personal Domain enabled. To use it with your MobileMe username, change it to :
var zoomImagesURI = '../FancyZoom/images-global/zoom/'; // Location of the zoom and shadow images
Change it also in my script above.
Adding titles to the FancyZoom images
Here are to 2 JavaScripts that add the caption (title) to the FancyZoom picture.
http://www.wyodor.net/FancyZoom/myPictures.js
http://www.wyodor.net/FancyZoom/setTitle.js
The myPictures.js file contains the filenames of the images you place on the iWeb page + the descriptions you give them. You have to compile that list yourself.
Note : The filenames of the pictures on the iWeb page and the pictures you link to should only have characters a-z, A-Z, 0-9 and _ (underscore).
The setTitle.js file loops thru the links on the page until it finds a link with your image.
It then loops thru the list of names in myPictures.js to find a match and gives the title of the link the description you gave it.
Note : the // at the begining of a line is a comment. Remove it to test the steps.
FancyZoom uses that title as the caption under the zoomed image.
The script only finds links to images with the extension .jpg. If you want, you can leave out the test.
If you leave out an imagename + discription for an image that fit the seach a default caption ("Foto" + sequence number) will be given.
You can change "foto" to something else.
Store both files in the FancyZoom folder.
If you have more than one page with images you have to duplicate the myPictures.js file, give it a unique name and use that file.
You have to paste two lines after the Javascript I published earlier :
<script language="JavaScript"
type="text/javascript">
<!--
other javascript
//
-->
</script>
<script src="/FancyZoom/myPictures.js"
type="text/javascript"></script>
<script
src="/FancyZoom/setTitle.js" type="text/javascript"></script>
Admire the result : http://www.wyodor.net/_Demo/Fancy/Fancy2.html
iWeb : Publish to MobileMe without the Sitename in the URL
How to publish to MobileMe without the iWeb Site name.
Go to the Finder.
Type Command-K (Connect to Server from the Go menu).
Copy/paste or type this line : http://idisk.me.com/MobileMeUserName/Web/Sites/
Use your own MobileMe user name.
Type Command-Shift-C to see the local Volumes and verify the iDisk Sites folder has mounted.
Open iWeb and create a Site. Or use an existing Site.
Name it Sites.
Choose to publish to a folder.
But Do not select a folder to publish to.
In the path field just type /Volumes/
You have to mount the iDisk Sites folder before publishing. Otherwise a Sites folder will be created in Volumes.
To easily mount the iDisk Sites folder, create an alias first.
Drag the iDisk Sites icon on top of your Username or on the Finder sidebar.
To mount the folder, select the Sites icon and type Command-R.
Now you can publish your iWeb pages.
Note that RSS and subscription feeds do not work.
And this set-up only works for ONE Site.
More iWeb Sites need to be published to a iWeb Sitesname folder.
You have to check the index.html file in the iDisk Sites folder to see that it redirects to the correct webpage.
Practice.