Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-22-2020, 12:23 AM   #1
mikage3038
Junior Member
mikage3038 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2020
Device: Kindle Paperwhite
Is it possible to edit 1st line of HTML while converting?

Hello everyone

I use Calibre to send documents to my Kindle, and now I want to make a change in my file.
I got the original file in azw3 but recognized as MOBI in Calibre(bought from Amazon).For editing, I convert it to AZW3 in Calibre and found it was like this: (HTML file in the text part)
Quote:
<html xmlns="http://www.w3.org/1999/xhtml" class="hltr" lang="ja">
<head><meta charset="UTF-8"/>
<title>ご利用上の注意</title>
<link href="../styles/0002.css" rel="stylesheet" type="text/css"/>
<link href="../styles/0001.css" rel="stylesheet" type="text/css"/>

</head>
<body class="p-caution">
<div class="main1">

<p class="calibre">本電子書籍を示すサムネイルなどのイメージ画像は、再ダウンロード時に予 告なく変更される場合があります。</p>

</div>
</body>
</html>
And I just want to change the [class="vrtl"] in the first line into [class="hltr"] or maybe just delete it.
But I found that the Search&Replace function in Convert doesn't work.
I have seen that it's unable to change things out of <body>
So is there any way to do that?
(For now I can use the editor to change that file-by-file, but it's too inefficiency.)

Thank you

PS:For what's I'm doing, I just want to change the vertical-writing to horizontal one. A Lot of books are released vertical in Japan but I prefer horizontal.
mikage3038 is offline   Reply With Quote
Old 09-22-2020, 12:49 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use the Edit Book tool. Or if you want to override the actual CSS use the filter style information tool in the look & feel->styling section of the conversion dialog.
kovidgoyal is offline   Reply With Quote
Advert
Old 09-22-2020, 01:32 AM   #3
mikage3038
Junior Member
mikage3038 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2020
Device: Kindle Paperwhite
Quote:
Originally Posted by kovidgoyal View Post
Use the Edit Book tool. Or if you want to override the actual CSS use the filter style information tool in the look & feel->styling section of the conversion dialog.
I just did it by overriding CSS.
add
Quote:
.vrtl {
-webkit-writing-mode: horizontal-lr;
font-family: serif-ja, serif
}
and it works.

But I still wondering how could I edit multiple files at the same time with the Edit Book tool.

Anyway, thank you for your help very much.
mikage3038 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
1st time poster: Converting Word'S in & pt to ems Farmer_Jonas Conversion 9 04-01-2019 08:26 AM
Abby Finereader 12 saving only 1st header or footer in HTML? nsyst Workshop 0 11-03-2014 12:50 AM
remove indent from 1st line of chapter only cybmole Sigil 15 02-21-2011 10:50 AM
PRS-900 Problem with 1st line on a page cut off? Marcy Sony Reader 7 02-17-2010 01:20 AM


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


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