Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 06-13-2018, 09:44 AM   #1
Corinne
Member
Corinne began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2018
Device: None
Assistance for 1st time manuscript conversion, Caliber 3.23

Greetings! I am entirely new at manuscript conversion. So far,I've had success in preparing my manuscripts for conversion. At the end of each chapter there is a simple poem and drawing When using epub, it all comes together well, save for the cover. Can't seem to center the text or image. I have the same results in mobi. I use drawings and simple text, in other words, in both books.

I've read the manual, but can't seem to find instructions for centering images. I go to edit book, I see the 'codes' I see the line with the 'image' in it but I'm clueless as to what to do next. I plead humble ignorance. Respectfully.

My cover drawing is 74kb. The rest of them, are less than 60kb. I do not know if this is too large or too small. I can easily, and happily, resize them upon finding out the correct dimensions.

Thank you for the assistance! Kind regards...
Corinne is offline   Reply With Quote
Advert
Old 06-13-2018, 10:59 AM   #2
RbnJrg
Guru
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 839
Karma: 3222221
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Corinne View Post
Greetings! I am entirely new at manuscript conversion. So far,I've had success in preparing my manuscripts for conversion. At the end of each chapter there is a simple poem and drawing When using epub, it all comes together well, save for the cover. Can't seem to center the text or image. I have the same results in mobi. I use drawings and simple text, in other words, in both books.

I've read the manual, but can't seem to find instructions for centering images. I go to edit book, I see the 'codes' I see the line with the 'image' in it but I'm clueless as to what to do next. I plead humble ignorance. Respectfully.

My cover drawing is 74kb. The rest of them, are less than 60kb. I do not know if this is too large or too small. I can easily, and happily, resize them upon finding out the correct dimensions.

Thank you for the assistance! Kind regards...
If you want to center an image, just enclose the <img> tag between <p> tags and style the <p> with "text-align: center;".

An example:

Suppose your image is named "MyImage1.jpg". Then, what you must do is the following:

1. In your .xhtml file, write:

Code:
<p class="center"><img alt="" src="../Images/MyImage1.jpg"/></p>
2. And in your .css stylesheet, write:

Code:
.center {
   text-align: center;
   text-indent: 0;
}
Don't forget to link the css stylesheet with your .xhtml file. That's all. The same is for centering text:

Code:
<p class="center">Your text here or whatever</p>
Regards
Rubén
RbnJrg is offline   Reply With Quote
Old 06-14-2018, 09:36 AM   #3
Corinne
Member
Corinne began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2018
Device: None
Thank you kindly!
Corinne is offline   Reply With Quote
Old 06-14-2018, 12:12 PM   #4
Corinne
Member
Corinne began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2018
Device: None
Thank you Reuben. Forgive my ignorance, but how do you 'link' the CSS with the XHTML? I appreciate the patience and the time.

Kind regards,
Corinne.
Corinne is offline   Reply With Quote
Old 06-14-2018, 12:41 PM   #5
RbnJrg
Guru
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 839
Karma: 3222221
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Corinne View Post
Thank you Reuben. Forgive my ignorance, but how do you 'link' the CSS with the XHTML? I appreciate the patience and the time.

Kind regards,
Corinne.
Hi Corinne;

In your first post you said that are using Calibre 3.23; well, I will explain you what to do in that program.

I suppose that you already have loaded your ebook in Calibre. Do right click in that ebook and choose the "Edit book" command; the Calibre Editor will show.
In the "File Browser" window (at the left of the screen) select the file whose image and text you want to center and after that, do right click. You will see something like this screenshot:

Click image for larger version

Name:	Image1.png
Views:	22
Size:	159.4 KB
ID:	164467

Select the command "Link stylesheets...". Now you'll see something like this dialog:

Click image for larger version

Name:	Image2.png
Views:	20
Size:	23.7 KB
ID:	164468

In the above picture you see only one .css file but it can be several. If you have only one, then select that .css file; if there is more than one .css file, select what you want (in all cases, desmark the option "Remove existing links to stylesheets"). Press "Ok". That's all

Regards
Rubén

PS: And don't forget to write the ".center" style in the .css file you have selected according to the explanation.
RbnJrg is offline   Reply With Quote
Old 06-15-2018, 01:05 PM   #6
Corinne
Member
Corinne began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2018
Device: None
Click image for larger version

Name:	Untitled.png
Views:	25
Size:	532.5 KB
ID:	164479

Hi Reuben. I hope I attached the above file correctly. It is what I see when I go into edit book. I tried your code yesterday and it didn't work, no doubt because I entered it incorrectly. I have no other books in Calibre save for the one I'm currently working on, above.

I enlarged the cover drawing by a few kb's yesterday and it centered itself automatically, and unexpectedly, in both epub and mobi. They both present beautifully, but will I still need to center them anyway in edit books?

In epub, the drawings are justified left with a simple poem on the right. Once I convert to mobi, from epub, they all center themselves automatically! I'm wondering if they will stay that way?

I thank you for your helpful guidance and will study it so I can learn it.

Kind regards,

Corinne.
Corinne is offline   Reply With Quote
Old 06-15-2018, 03:35 PM   #7
RbnJrg
Guru
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 839
Karma: 3222221
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Corinne View Post
Hi Reuben. I hope I attached the above file correctly. It is what I see when I go into edit book. I tried your code yesterday and it didn't work, no doubt because I entered it incorrectly. I have no other books in Calibre save for the one I'm currently working on, above.

I enlarged the cover drawing by a few kb's yesterday and it centered itself automatically, and unexpectedly, in both epub and mobi. They both present beautifully...
Well, I don't know where to start for

The first thing: the screenshot you attached it says me that you are using a svg wrapper. And inside of that svg wrapper, you are putting a .jpeg image (I didn't see any text inside the container). So, your cover consists only in one image, no text. But the way to center an image (or text) inside a svg wrapper is different from the way we employ when we're not in a svg container. And what I explained you in my previous posts, is to center image or text, out of a svg wrapper.

The second thing: according to your screenshot, you are already applying styles by means of "embedded css" (if you want to understand better the way to apply styles, watch the link below).

https://en.wikibooks.org/wiki/Cascad...HTML_and_XHTML

And, in your embedding styles, you have the following (do click in the picture to enlarge it):

Click image for larger version

Name:	Image1.png
Views:	20
Size:	49.6 KB
ID:	164480

The style body {text-align: center; padding: 0pt; margin: 0pt;} what it makes, is to center all text and images inside the .xhtml file. So, you already have set that all elements in the files with the embedded style body {text-align: center; padding: 0pt; margin: 0pt;} are centered. For that reason is that you see all centered automatically.

Third thing: in your svg wrapper, you are using the property preserveAspectRatio="none". Very probably it would be better for you to set that property as "xMidYMid meet", that is, preserveAspectRatio="xMidYMid meet". If you want to understand better what that means, look at this link:

https://wiki.mobileread.com/wiki/SVG...26_AspectRatio

Also it would be very good for you to read all that page, if you are going to use svg covers.

Quote:
...but will I still need to center them anyway in edit books?
No, you won't. The elements are already centered by the embedded styles you are applying (of course, in the "Code View" pane of Calibre you won't see them centered, only in the "File preview" pane.

Quote:
In epub, the drawings are justified left with a simple poem on the right. Once I convert to mobi, from epub, they all center themselves automatically! I'm wondering if they will stay that way?
Yes, they will

Quote:
I thank you for your helpful guidance and will study it so I can learn it.
You are welcome
Rubén
RbnJrg is offline   Reply With Quote
Old 06-16-2018, 10:08 AM   #8
Corinne
Member
Corinne began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2018
Device: None
Hi Reuben. I designed the book title in paint shop. That is also where I draw my images. What I've just learned is that they are called 'svg wraps.' The only text on the cover, then, is, 'written and illustrated by...'

On my way to the library shortly where I will read the files you've sent. You are a God send, and I thank you ... I'll be back.

Kind regards,
Corinne.
Corinne is offline   Reply With Quote
Old 06-16-2018, 10:13 AM   #9
Corinne
Member
Corinne began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2018
Device: None
I apologize, 'Ruben.'. . And not Reuben...
Corinne is offline   Reply With Quote
Old 06-16-2018, 12:49 PM   #10
RbnJrg
Guru
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 839
Karma: 3222221
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Corinne View Post
I apologize, 'Ruben.'. . And not Reuben...
Nothing to apologize And if the text you wrote is in the image, then that is not text, is a part of the image. In the screenshot you attached, between the <svg> and </svg> tags, there is not any <text></text> tags. Those last ones, are used to write text inside a svg wrapper. For that reason I'm telling you that in that file (whose picture you attached) there is no text. If you want to learn how to write text inside a svg wrapper, please read this link:

http://tutorials.jenkov.com/svg/text-element.html

Take in count that when we are working out of a svg container, we use <p></p> tags to write text.

Regards
Rubén
RbnJrg is offline   Reply With Quote
Old 06-17-2018, 09:24 AM   #11
Corinne
Member
Corinne began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2018
Device: None
Thank you Ruben. In the next clickable sequence, in the screen shot, all the text shows up. I should have sent you that one. It all presents favorably in both formats. Or at least seems to! . The library is closed today or I'd send it.

Kind regards Ruben and I look forward to reading the enclosed link..

Corinne.
Corinne is offline   Reply With Quote
Old 06-17-2018, 02:56 PM   #12
RbnJrg
Guru
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 839
Karma: 3222221
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Corinne View Post
Thank you Ruben. In the next clickable sequence, in the screen shot, all the text shows up. I should have sent you that one. It all presents favorably in both formats. Or at least seems to! . The library is closed today or I'd send it.

Kind regards Ruben and I look forward to reading the enclosed link..

Corinne.
Glad that you had be able to solve your issues

Kind regards to you too.
Rubén
RbnJrg is offline   Reply With Quote
Old 06-19-2018, 12:19 PM   #13
Corinne
Member
Corinne began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2018
Device: None
What do these numbers mean?

Click image for larger version

Name:	what do these numbers mean.png
Views:	15
Size:	3.4 KB
ID:	164561

Hello Ruben. These numbers show up, not at the beginning of a paragraph but in the middle of the works. They occur a few times throughout the conversion in Calibre. I check my manuscript to see where these breaks happen and they are not at the bottom or top of a page but right in the middle of text. Some say 44 44 some say 74, etc. I'm clueless...

I appreciate it!

Kind regards,

Corinne.
Corinne is offline   Reply With Quote
Old 06-19-2018, 03:11 PM   #14
RbnJrg
Guru
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 839
Karma: 3222221
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Corinne View Post
Attachment 164561

Hello Ruben. These numbers show up, not at the beginning of a paragraph but in the middle of the works. They occur a few times throughout the conversion in Calibre. I check my manuscript to see where these breaks happen and they are not at the bottom or top of a page but right in the middle of text. Some say 44 44 some say 74, etc. I'm clueless...

I appreciate it!

Kind regards,

Corinne.
It seems that are page numbers from the source. By chance, did you convert your manuscript to .pdf before converting it in epub with Calibre?
RbnJrg is offline   Reply With Quote
Old 06-20-2018, 12:23 PM   #15
Corinne
Member
Corinne began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2018
Device: None
No Ruben. My manuscript is a Word Doc.x. No PDF.

Thanks for the help! I'm going to look into getting a reader that I can add apps too for both epub and Mobi. This way I can actually see how they will read on an actual reading device...

All page numbers were removed prior. They don't show up in my manuscript, only after conversion...
Corinne is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[IOS] What is the best ipad caliber companion to connect to my windows caliber lib? emanueol Apple Devices 25 03-31-2018 07:46 PM
Caliber help for deleting Book Title, page nos., Date and time in EPUB o/p file svkanthikiran Conversion 2 08-16-2014 04:06 PM
1st Time landdog49 Kindle Fire 2 02-10-2012 08:16 AM
Assistance with look of conversion... Bev M Kindle Formats 2 10-31-2010 11:06 AM


All times are GMT -4. The time now is 07:08 AM.


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