Comments (9)
How are you adding chapters?
Because, at a glance I don't see a way addChapter can do that, meaning you are obviously doing something I didn't anticipate (or overlooked). :P
I'm not saying you are wrong, as you obviously have the problem.
from phpepub.
The cover is added by this line :
$book->addChapter('Notices', 'Cover2.html', $content_start.$this->getExportInformation('PHPePub').$bookEnd);
and the chapters are added through a loop :
foreach ($this->entries as $entry) {
foreach ($this->tags as $tag) {
$book->setSubject($tag['value']);
}
$chapter = $content_start.$entry->getContent().$bookEnd;
$book->addChapter($entry->getTitle(), htmlspecialchars($entry->getTitle()).'.html', $chapter, true, EPub::EXTERNAL_REF_ADD);
}
from phpepub.
Can I get you to send me an example of a defective book to [email protected]?
from phpepub.
Boy, does that bug make me look "stoopid"
In addChapter I increase chapterCount. That function calls a few others of course, in the course of which the code checks if the book has been initialized yet, if it haven't is does so. Initialize Sets up the zip file and adding the preliminary metadata depending on the setup of the book. For instance the ePub version.
And that initialization sets chapterCount to 0, AFTER I just increased it to 1...
I need more coffee.
from phpepub.
P.S.: For a minimum impact of your current code, at least until I'm ready to release 4.0.6, you can just uncomment the $this->chapterCount = 0;
line in the initialize
function.
from phpepub.
No worries. Thanks for your time.
For a minimum impact of your current code, at least until I'm ready to release 4.0.6
If we can get it through composer before end of March, it's perfectly fine. :)
from phpepub.
I need to test 4.0.6 a little more, it's on github master branch now,
but I expect to release it before the end of February.
On 21-02-2016 15:44, Thomas Citharel wrote:
No worries. Thanks for your time.
For a minimum impact of your current code, at least until I'm ready to release 4.0.6
If we can get it through composer before end of March, it's perfectly
fine. :)—
Reply to this email directly or view it on GitHub
#36 (comment).
from phpepub.
Perfect !
from phpepub.
Hello @Grandt!
Do you plan to release a new version in next days?
from phpepub.
Related Issues (20)
- Downloading Images from an https protocol HOT 6
- Cover image thumbnail broken in 3.30
- Encoding special caracters for filename HOT 2
- TOC showing up at end of created eBook HOT 10
- Encrypt epub with a password
- Generated epub file does not display on iBook. HOT 4
- Wrong variable name in buildTOC() V3.30 HOT 1
- Add file in META-INF ? HOT 3
- Error converting markup with svgs HOT 15
- Pathinfo extension undefined HOT 6
- remove composer.phar from legacy folder
- How can I force images to be stored in the root of the image directory?
- Warnings in PHP log during an export epub
- How can I generate pages hidden from the toc?
- How can I set reference/landmark type for specific pages/chapters? HOT 1
- Replace each() by foreach() HOT 1
- Can I convert PDF to EPUB using the library? HOT 1
- Call to a member function addIndexPoint() on boolean at vendor/grandt/phpepub/src/PHPePub/Core/EPub.php:383
- Replace each() by foreach() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpepub.