Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-03-2023, 08:48 AM   #1
libre75
Enthusiast
libre75 began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Mar 2019
Device: epub
Merge two html files

Hi all, I find myself with an epub file that once converted from word to epub the h1 titles are placed alone in an html page and the rest of the page with paragraph character is placed in the following html file.
With sigil is it possible to merge the two html files so that the h1 title and text are in the same html file?
libre75 is offline   Reply With Quote
Old 06-03-2023, 08:58 AM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,110
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
In general you can merge files by right-clicking in the book browser on the file(s) to merge and selecting 'merge'. If you only select one html file it will merge with the file directly above it in the book browser.

In your case that wouldn't help very much.
I'm assuming each <h1> has a unique title...?? If so, I think you will need to manually copy/paste the <h1> tag from the list to the individual html files.

If the <h1>s are a simple list of chapter numbers then you can use the ReworkChapteHeads plugin to add chapter headers to each page.
Turtle91 is offline   Reply With Quote
Advert
Old 06-03-2023, 09:05 AM   #3
libre75
Enthusiast
libre75 began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Mar 2019
Device: epub
But by copying h1 and pasting it in the file with the text, then the validator shows a lot of errors, which weren't there before, any ideas to solve the problem?
libre75 is offline   Reply With Quote
Old 06-03-2023, 09:13 AM   #4
libre75
Enthusiast
libre75 began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Mar 2019
Device: epub
I just tried also with the "merge" method as you suggested, and it works fine, but the validator reports errors, which otherwise wouldn't be there, is it possible to avoid this problem?
Thank you.
libre75 is offline   Reply With Quote
Old 06-03-2023, 09:23 AM   #5
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,110
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
I can't really give details without seeing an example of the actual code. I don't know what "lots of errors" means...
Turtle91 is offline   Reply With Quote
Advert
Old 06-03-2023, 09:23 AM   #6
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,676
Karma: 5433388
Join Date: Nov 2009
Device: many
After using file merge from BookBrowser, please post the exact error message from the validator so we know what it is objecting to.

If both html files were valid before merging they generally should be after merging.

Perhaps running Mend on the file might help if the errors are structural.

Last edited by KevinH; 06-03-2023 at 09:33 AM.
KevinH is offline   Reply With Quote
Old 06-03-2023, 09:36 AM   #7
libre75
Enthusiast
libre75 began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Mar 2019
Device: epub
The OEBPS/Text/untitled-04.html resource was not found in the EPUB container
libre75 is offline   Reply With Quote
Old 06-03-2023, 09:37 AM   #8
libre75
Enthusiast
libre75 began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Mar 2019
Device: epub
How to use Mend?
libre75 is offline   Reply With Quote
Old 06-03-2023, 09:41 AM   #9
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,110
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
What is the href in your respective link?

What is the full path/filename (hover your mouse over the file in the bookbrowser) that you are trying to point to??


Select "Tools/Reports" and then "Links" on the left side to see if the links are pointing to the correct location.
Turtle91 is offline   Reply With Quote
Old 06-03-2023, 09:46 AM   #10
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,110
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by libre75 View Post
How to use Mend?
Right-click in the code view area. Select "Reformat HTML".

How familiar are you with using Sigil?? It may be beneficial to read through the User's Guide.
Turtle91 is offline   Reply With Quote
Old 06-03-2023, 09:47 AM   #11
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,676
Karma: 5433388
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by libre75 View Post
The OEBPS/Text/untitled-04.html resource was not found in the EPUB container
Was that from using right click to merge 2 adjacent files in BookBrowser? If so, I do not believe it. The only way that could occur was if the link was already broken.


What version of Sigil are you using?
As suggested, reading Sigil's User Guide to get down the basics would certainly help.

Last edited by KevinH; 06-03-2023 at 09:53 AM.
KevinH is offline   Reply With Quote
Old 06-03-2023, 09:51 AM   #12
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,110
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
It will also be helpful to see the actual code that you are using... it should look something like:

<h1><a href="untitled-04.html">Some title text</a></h1>


Can you take a snapshot of the page, or copy/paste a section so we can see what the actual problem could be??? All of our suggestions are just shooting in the dark without some actual code.
Turtle91 is offline   Reply With Quote
Old 06-03-2023, 09:55 AM   #13
libre75
Enthusiast
libre75 began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Mar 2019
Device: epub
file 04 is gone, it was merged with 5, so now files go from 03 to 05
libre75 is offline   Reply With Quote
Old 06-03-2023, 10:04 AM   #14
libre75
Enthusiast
libre75 began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Mar 2019
Device: epub
The validator says the problem is on line 45 of the toc.ncx file
<content src="Text/untitled-04.html#navPoint_4"/>
libre75 is offline   Reply With Quote
Old 06-03-2023, 10:26 AM   #15
libre75
Enthusiast
libre75 began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Mar 2019
Device: epub
I didn't understand what code I should post, the validator points the problem to the toc.ncx file, and the 04 html file no longer exists.
libre75 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
In an epub, how to merge 2 html into a single html alegriadelarte Editor 3 03-15-2023 04:32 PM
Access to local HTML files and content, HTML ebooks, annotation on HTML ebooks leo315 enTourage Archive 2 05-10-2010 02:40 PM
How to merge Mobi files? King Mook Mook Kindle Formats 1 12-26-2009 05:07 AM
PRS-500 HTML merge tool needed sic Sony Reader Dev Corner 14 11-07-2007 06:04 PM
Is there a way to merge lrf files? Tom Swift Sony Reader 14 09-24-2007 07:13 PM


All times are GMT -4. The time now is 12:41 PM.


MobileRead.com is a privately owned, operated and funded community.