View Single Post
Old 02-13-2017, 02:13 PM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,301
Karma: 148951763
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by chaot View Post
I am already one step ahead. Testing the minimum! What you refer to was meant as an example. Anyway!

Assuming we got a stylesheet (and want to have it reflected in our book). Because we can have a stylesheet not appearing in the head section, and therefore unreflected in the book (I test that).

Then this is the minimum and function!

Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <title></title>
  <link href="stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
You left out

Code:
<meta content="http://www.w3.org/1999/xhtml; charset=utf-8" http-equiv="Content-Type"/>
I have seen plenty of ePub where the code is not going to be rendered correctly because it's the program doing the rendering is not forcing UTF-8. The meta content is needed to make sure the program renders the code as UTF-8. It's even sometimes needed for a Kindle. It is mostly quotes and apostrophes that won't be rendered correctly.
JSWolf is online now   Reply With Quote