Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 10-30-2023, 11:41 AM   #1
jiembe
Zealot
jiembe began at the beginning.
 
Posts: 137
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
Lost the insertion of the css in header

Calibre 5.44

Suddenly this morning the editor stop adding css files in the header when creating a new file.
And in <title><title> the apostrophe is change to &apos;

Which is result in this
Quote:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>L&apos;Œuvre au noir</title>
</head>

<body>

</body>
</html>
Why ?
jiembe is offline   Reply With Quote
Old 10-30-2023, 12:54 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
It Never did this automatically.
Once you have a CSS, you must use select the files that you want to link to a EXISTING stylesheet: right click on one of the selected: Link stylesheetS
theducks is offline   Reply With Quote
Advert
Old 10-30-2023, 01:15 PM   #3
jiembe
Zealot
jiembe began at the beginning.
 
Posts: 137
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
Sorry. I don't think we are talking about the same thing. Maybe I wasn't clear.

Until this morning, when creating through the calibre editor a new html file to add to a book it always add in the <head></head> of the new file the links to all css files already in the book.

The result should have been

Quote:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>L'Œuvre au noir</title>
<link href="stylesheet.css" type="text/css" rel="stylesheet"/>
<link href="page_styles.css" type="text/css" rel="stylesheet"/>
</head>

<body>

</body>
</html>
jiembe is offline   Reply With Quote
Old 10-30-2023, 01:22 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Yes. The procedure I mentioned PUTS them in that place.

You are posting in Editor...

Were you having this issue with CONVERSION ?
theducks is offline   Reply With Quote
Old 10-30-2023, 01:43 PM   #5
jiembe
Zealot
jiembe began at the beginning.
 
Posts: 137
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
Conversion ?

I'm in calibre editor. I'm working on an epub file upload in the editor and I'm adding and html (or htm or xhtml) file to that epub.

(I'm working in french and I'm not as quite as familiar with the English words apply to calibre and epub)
jiembe is offline   Reply With Quote
Advert
Old 10-30-2023, 03:21 PM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I had to be sure.

Right click the book (section file):Link style sheets
The first is where yo right click. The menu item is at the bottom
The you should see something li #2 (it will list all stylesheets, but you only need link those you need for that file)
Attached Thumbnails
Click image for larger version

Name:	Edit-Link1.JPG
Views:	33
Size:	47.6 KB
ID:	204484   Click image for larger version

Name:	Edit-Link2.JPG
Views:	33
Size:	79.7 KB
ID:	204485  
theducks is offline   Reply With Quote
Old 10-30-2023, 03:36 PM   #7
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,103
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by theducks View Post
It Never did this automatically.
Once you have a CSS, you must use select the files that you want to link to a EXISTING stylesheet: right click on one of the selected: Link stylesheetS
I don't agree with that.
When creating a new xhtml file within the epub, the header and the stylesheet link are always created with the page. Never have I had to Link Stylesheets from the context menu for a newly created page.

Quote:
Originally Posted by jiembe View Post
Calibre 5.44

Suddenly this morning the editor stop adding css files in the header when creating a new file.
And in <title><title> the apostrophe is change to &apos;
Worth checking the following. In the Editor, go to Edit>Preferences>Editor Settings. On that page...
1. "Replace HTML entities as they are typed" is enabled
2. Click on "Change templates" and ensure the head tags are like this...
<head>
<title>{TITLE}</title>
</head>
Karellen is offline   Reply With Quote
Old 10-30-2023, 03:43 PM   #8
jiembe
Zealot
jiembe began at the beginning.
 
Posts: 137
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
Thank you.

Now I understand your explanation but I never need to use that procedure. As I said, until this morning, it was automatic at the creation of a new file: all css files present in the book where link in the <head> section.

Something change and I don't know what.
jiembe is offline   Reply With Quote
Old 10-30-2023, 03:48 PM   #9
jiembe
Zealot
jiembe began at the beginning.
 
Posts: 137
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
Quote:
Originally Posted by Karellen View Post
Worth checking the following. In the Editor, go to Edit>Preferences>Editor Settings. On that page...
1. "Replace HTML entities as they are typed" is enabled
2. Click on "Change templates" and ensure the head tags are like this...
<head>
<title>{TITLE}</title>
</head>
Yes that's what I have.

Should there be a reference to link the css
jiembe is offline   Reply With Quote
Old 10-30-2023, 03:59 PM   #10
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,103
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by jiembe View Post
Should there be a reference to link the css
No. It seems to be a separate process that adds that.
Karellen is offline   Reply With Quote
Old 10-30-2023, 04:09 PM   #11
retiredbiker
Addict
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 387
Karma: 1638210
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
Quote:
Originally Posted by jiembe View Post
Should there be a reference to link the css
Maybe too simple...when adding the file there is a line that says "Automatically add style-sheet links into new HTML files" — is this checked?
Attached Thumbnails
Click image for larger version

Name:	addfile.png
Views:	49
Size:	63.4 KB
ID:	204486  
retiredbiker is offline   Reply With Quote
Old 10-30-2023, 04:50 PM   #12
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Learned something new (I almost always am inserting a file into existing, so that is the stylesheet I link to)
theducks is offline   Reply With Quote
Old 10-31-2023, 07:36 AM   #13
jiembe
Zealot
jiembe began at the beginning.
 
Posts: 137
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
Quote:
Originally Posted by retiredbiker View Post
Maybe too simple...when adding the file there is a line that says "Automatically add style-sheet links into new HTML files" — is this checked?
That's it ! Even the apostrophe stay an apostrophe (I can't understand the link) ! I thought it was a bad manipulation from my part and so it was.

Thank you all specially retiredbiker.
jiembe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
header color cannot be change with CSS issam.seghir99 Viewer 0 11-24-2022 03:38 AM
Lost CSS / cover rikemice Conversion 7 04-29-2017 10:04 PM
pdf header reference to css rjwse@aol.com Conversion 11 12-09-2016 01:34 PM
Please help me with CSS code...am really lost Iroc ePub 21 03-31-2013 05:42 PM
Lost in CSS for a motto Artha ePub 1 12-01-2011 02:43 AM


All times are GMT -4. The time now is 06:25 PM.


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