Thread: Odyssey 2 column mode
View Single Post
Old 02-01-2012, 12:24 PM   #7
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 4,742
Karma: 246906703
Join Date: Dec 2011
Location: USA
Device: Oasis 3, Oasis 2, PW3, PW1, KT
Ok, found the problem. The page-template is techinically inside the spanish epub, but it never gets referenced, my bad for thinking that if a file exists inside a epub that it actually gets used. I use the german epub of ilias and odyssey as reference (this one also has "built in" 2 column mode). This is main01.htm:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  <title>Ilias und Odyssee</title>
  <link href="resources/stylesheet.css" type="text/css" rel="stylesheet" />
  <link href="resources/page-template.xpgt" type="application/vnd.adobe-page-template+xml" rel="stylesheet" />
</head>
<body>
<div class="body">
<div id="p1" class="section">
<div class="text">
  <h1 class="author">Homer</h1>
  <h1 class="title">Ilias</h1>
</div></div></div>
</body>
</html>
The spanish main1.htm (truncated after the body begins). Notice between the blue lines, no page-template link:
Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>La Iliada</title>
    <meta name="generator" content="pdftohtml 0.36"/>
    <meta name="author" content="Homero"/>
    <meta name="date" content="2003-06-05T13:00:24+00:00"/>
    <meta name="subject" content="eBooket"/>
    <meta content="http://www.w3.org/1999/xhtml; charset=utf-8" http-equiv="Content-Type"/>
    <link href="stylesheet.css" type="text/css" rel="stylesheet"/>
    <style type="text/css">
		@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }</style>
  </head>
  <body class="calibre">[...]
after copying the red from german epub it works as desired - 2 column mode on very small font-size:
Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>La Iliada</title>
    <meta name="generator" content="pdftohtml 0.36"/>
    <meta name="author" content="Homero"/>
    <meta name="date" content="2003-06-05T13:00:24+00:00"/>
    <meta name="subject" content="eBooket"/>
    <meta content="http://www.w3.org/1999/xhtml; charset=utf-8" http-equiv="Content-Type"/>
    <link href="stylesheet.css" type="text/css" rel="stylesheet"/>
    <link href="resources/page-template.xpgt" type="application/vnd.adobe-page-template+xml" rel="stylesheet" />
    <style type="text/css">
		@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }</style>
  </head>
  <body class="calibre">[...]
The stylesheet and page-template are both stylesheets? No? Would be nice to filter the bare minimum out of that to ADD to the stylesheet.css - and only change the stylesheet, and not each and every html file.

Sorry for the details, for someone working with epubs regularily I must seam like a Dodo bird. Did not know that I actually have to remember html coding just to enjoy my ereaders undocumented features ....

And do other ereaders do that too - displaying the 2 column automatically?
DuckieTigger is offline   Reply With Quote