View Single Post
Old 08-10-2014, 01:32 AM   #9
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Quote:
Originally Posted by GMcG View Post
Is there an end tag </div>? I don't see it.

George


I am sure the <div> tags match- eventually - I just copied & posted what i thought was the relevant chapter header code snippet,as we cant go around uploading entire books as attachments!

I checked for you - the closing ./div. for the chapter class is at the end of the chapter. i.e. the entire chapter is wrapped in that top level div

in fact the whole of each chapter is "double shrink wrapped" inside of a div within a body e.g.
<body class="text" id="text">
<div class="chapter" id="TOC-6">

Even more strangely, neither text or chapter are defined in the stylesheet - see below - It's a wonder the thing works at all!

Although it s an (oldish) retail book - the stylesheet suggests that it's a crude PDF conversion:
Code:
/* Textcafe version pdf2xml_2.0s54, */
/* A technology developed by Texterity, Inc - www.texterity.com */

b
{
  /* 320 uses */
  font-weight: bold;
}

div.pagebreak
{
  page-break-before: always;
}

p.dedication
{
  /* 1 uses */
  font-family: serif;
  font-size: small;
  text-indent: 0.0em;
  margin-left: 1.0em;
  margin-right: 1.0em;
  margin-top: 2.0em;
  text-align: center;
}

i
{
  /* 1987 uses */
  font-style: italic;
}

p
{
  /* 0 uses */
}

p.copyright
{
  /* 0 uses */
  font-family: serif;
  font-size: x-small;
  font-weight: normal;
  font-style: normal;
  text-indent: 0.0em;
  margin-left: 0.0em;
  margin-right: 0.0em;
  margin-top: 0.0em;
  margin-bottom: 0.0em;
  text-align: center;
}

p.also-by-author
{
  /* 1 uses */
  font-family: serif;
  font-size: x-small;
  text-indent: 0.0em;
  margin-left: 0.0em;
  margin-right: 0.0em;
  margin-top: 1.0em;
  margin-bottom: 1.0em;
  text-align: center;
}

p.also-by-title
{
  /* 66 uses */
  font-family: serif;
  font-size: x-small;
  text-indent: 0.0em;
  margin-left: 0.0em;
  margin-right: 0.0em;
  margin-top: 0.0em;
  margin-bottom: 0.0em;
  text-align: center;
}


p.image-center
{
  /* 28 uses */
  text-indent: 0em;
  margin-top: 1.0em;
  margin-bottom: 1.0em;
  text-align: center;
}

p.pause-space
{
  /* 33 uses */
  margin-top: 0em;
  margin-bottom: 0em;
}

p.tocchap
{
  /* 0 uses */
  font-family: serif;
  font-size: small;
  font-weight: normal;
  font-style: normal;
  text-indent: 0.0em;
  margin-left: 1.0em;
  margin-top: 0;
  margin-bottom: 0;
   
  text-decoration: none;
}

p.tocpart
{
  /* 0 uses */
  font-family: serif;
  font-size: small;
  font-weight: normal;
  font-style: normal;
  text-indent: 0.0em;
  margin-left: 0;
  margin-top: 1.0em;
  margin-bottom: 0;
   
  text-decoration: none;
}

p.tocsub1
{
  /* 0 uses */
  font-family: serif;
  font-size: small;
  font-weight: bold;
  font-style: normal;
  text-indent: 4.0em;
  margin-left: 0em;
  margin-top: 0;
  margin-bottom: 0;
   
  text-decoration: none;
}

p.tocsub2
{
  /* 0 uses */
  font-family: serif;
  font-size: small;
  font-weight: bold;
  font-style: normal;
  text-indent: 6.0em;
  margin-left: 0em;
  margin-top: 0;
  margin-bottom: 0;
   
  text-decoration: none;
}

span.smallcap
{
  /* 13 uses */
  font-size: xx-small;
}

span.largecap
{
  /* 81 uses */
  font-size: large;
}

span.sans
{
  /* 3 uses */
  font-family: sans-serif;
}

h2.chp
{
  /* 33 uses */
  /* inherits-from: h2.head-1; */
  font-family: serif;
  font-size: xx-large;
  font-weight: normal;
  font-style: normal;
  text-indent: 0.0em;
  margin-left: 0.0em;
  margin-right: 0.0em;
  margin-top: 2.0em;
  margin-bottom: 2.0em;
  text-align: center;
  color: #221F1F;
}

span.chapnum
{
  /* 2 uses */
  font-size: medium;
}

h3.sub1
{
  /* 279 uses */
  /* inherits-from: h3.head-4; */
  font-family: serif;
  font-size: medium;
  font-weight: bold;
  font-style: normal;
  text-indent: 0.0em;
  margin-left: 0.0em;
  margin-right: 0.0em;
  margin-top: 1.0em;
  text-align: center;
}

p.begin
{
  /* 2 uses */
  font-family: serif;
  font-size: small;
  text-indent: 0.0em;
  margin-left: 0.0em;
  margin-right: 0.0em;
  margin-top: 2.0em;
  }

p.para-flush
{
  /* 296 uses */
  /* inherits-from: p.text-1; */
  font-family: serif;
  font-size: small;
  text-indent: 0.0em;
  margin-left: 0.0em;
  margin-right: 0.0em;
  margin-top: 0.0em;
  margin-bottom: 0.0em;

}

p.para-indent
{
  /* 6316 uses */
  /* inherits-from: p.text-2; */
  font-family: serif;
  font-size: small;
  text-indent: 1.0em;
  margin-left: 0.0em;
  margin-right: 0.0em;
  margin-top: 0.0em;
  margin-bottom: 0.0em;
}

p.para-ragged-right
{
  /* 17 uses */
  font-family: serif;
  font-size: small;
  text-indent: 0.0em;
  margin-left: 0.0em;
  margin-top: 0.0em;
  margin-bottom: 0.0em;
  margin-right: 0.0em;
  }

p.para-ragged-indent
{
  /* 0 uses */
  font-family: serif;
  font-size: small;
  text-indent: 1.0em;
  margin-left: 0.0em;
  margin-top: 0.0em;
  margin-bottom: 0.0em;
  margin-right: 0.0em;
  }

p.para-ragged-left
{
  /* 2 uses */
  font-family: serif;
  font-size: small;
  text-indent: 0.0em;
  margin-top: 0.0em;
  margin-bottom: 0.0em;
  margin-left: 0.0em;
  margin-right: 0.0em;
  text-align: right;
}

p.source
{
  /* 6 uses */
  font-family: serif;
  font-size: small;
  text-indent: 0.0em;
  margin-left: 45%;
  margin-right: 0.0em;
    margin-top: 0.0em;
  margin-bottom: 0.0em;
}

p.para-center
{
  /* 2 uses */
  font-family: serif;
  font-size: small;
  text-indent: 0.0em;
  margin-left: 0.0em;
  margin-top: 0.0em;
  margin-bottom: 0.0em;
  margin-right: 0.0em;
  text-align: center;
}

span.xx-largecap
{
  /* 1 uses */
  font-size: xx-large;
}

h1.part
{
  /* 5 uses */
  /* inherits-from: h1.head-7; */
  font-family: serif;
  font-size: xx-large;
  font-weight: bold;
  font-style: normal;
  text-indent: 0.0em;
  margin-left: 0.0em;
  margin-right: 0.0em;
  text-align: center;
  margin-top: 2.0em;
  page-break-before: always;
}

span.partnum
{
  font-size: medium;
}
cybmole is offline   Reply With Quote