Quantcast
Channel: MobileRead Forums - Sigil
Viewing all 3443 articles
Browse latest View live

Universal Solution for Centering Text Under Image

$
0
0
I spent two days reading various posts, blogs, suggestions, and methods for centering text under an image. I originally saw and used the figcaption method, which looks wonderful in Sigil, but did not translate when converted to mobi.

Since then I read that 'this reader likes it with this method' and 'that reader doesn't like that method' and what it sounded like there is no single solution that will look right in every e-reader.

I will be publishing to Amazon but also want an epub version. The "SVG" wrapper method sounded like the most touted, but then invariably someone came on and said, 'The Sony reader doesn't read SVG' or whatever. And frankly, SVG looked like a monster.

Is there no simple way to center text under an image that is universal??? I know it isn't recommended but I am seriously leaning towards just putting the text in the graphic in Adobe Photoshop to make sure it will be correct in every reader. Even if that degrades the text quality. It seems better than having it look totally unprofessional due to not aligning under the image.

Thanks for any guidance.

best way to add numbered chapters to a book with no chapters

$
0
0
in this case, the retail epub version of Wilbur Smith - War Cry. no headers, no chapters, just 200 ish pages of text with scene breaks.

i was able to do it in a very convoluted way involving find the scene break style, regex it into having a h2 and add the text" chapter", then generate a new toc, then convert the book in calibre to get toc classes assigned, then regex those to extract a number to use as a chapter number

there is surely a slicker and sigil only way ? - a plug in ??
start point - a book with no chapters, just scenes- the entire story is in a single xhtml ( others just contain also by, dedications etc )
target : a book with numbered chapters and one xhtml file per chapter

[Plugin] reLink : Link unspecified href to the right XHTML file.

$
0
0
Hello everyone !

I just want to share this plugin "edit" that Just find the XHTML source where the ID is from and replace the link by it's real path.

Eg :
Let's suppose that there is a <p id="myid001">Text</p> in Chapter003.xhtml. So the script find it and convert all link that point to it like this :
Code:

<a href="#myid001">Text</a>
to
Code:

<a href="../Text/Chapter003.xhtml#myid001">
You just must specify an tag id so the script can find the right XHTML file to link it.

EDIT : The plugin assumes that all fragment ids are unique, however, if multiple files contain the same id they'll all be changed to the last file that the id was used in.

You can use the AddIDs by Doitsu to generate ID on your document if there is no ID in.

Requirements :
- Python 3.4
- BeautifulSoup 4
- Sigil 0.8.7

Version : 1.0a

Thanks !

NB : Sorry, my english is poor :o And it's my first post. :D

Attached Files
File Type: zip reLink_v1.0a.zip (912 Bytes)

How can I create subsections in Table of Contents

$
0
0
I'm sure I've seen them in some of my books, but I couldn't find exactly what I was looking for for an example. The closest I've found was similar to below:

Front Matter(followed by a down arrow)
Praise for...
Also by
Title Page
Copyright

and then the normal TOC continues.

If you tap the down arrow, it changes to a right arrow and all the subsections are hidden. (I might have the direction of the arrows reversed, but...) :D

Looking at the code in Sigil, I couldn't see anything that would cause this behavior, and a search for "Front Matter" had no results.

I have a couple enormous books where I would like to break the ebook down into the same sections as the actual books, i.e.

Section One
Chapter 1
Chapter 2
Chapter 3
...
Section Two
Chapter 16
Chapter 17
Chapter 18
...
Section Three, etc.

Is this possible, and if so, how do you do it?
Thanks for your help.

Sigil files go where?

$
0
0
Just started playing around and created some stuff on Sigil. When I saved it, the file planted itself in my 'Downloads' folder. What shall I do to tell Sigil to, go find its own folder?

Maybe its my setup? Still haven't quite got used to Windows 10.

How to handle ampersand (&) in 0.9.8

$
0
0
I use the character & in several places through my book, e.g. S&P 500.

When I first had it simply as the standalone &, I would get an error in the preview window pointing out that & is an escape code and should be followed by other characters or a # and then numbers. So I replaced it with &amp; which is the HTML named code for that character.

However, when I save the file, "&amp;" is replaced by "&amp;amp;amp;"

I tried using "& # 38;" (without the spaces) instead, but on saving, it's replaced by "&amp;#38;amp;"

Subsequent saves just make the chain that much longer.

Both &amp; and & # 38;(without the spaces) are in my list of entities to preserve, along with various quotes, dashes, and ellipses. None of those others are affected. Only the ampersand is getting messed with.

I'm running 0.9.8. Is anyone else seeing this problem? Is there a workaround?

Blockquote Tab

$
0
0
Do E-pubs use the <blockquote> tab? I cannot find it in Sigil's format area, and when I type it manually it does not obey the stylesheet instructions. Is there another way to format quotes that I should know about? If so, can you suggest a stylesheet blub for quotations?

Quotation mark

$
0
0
Hello, I have an epub where no typographical quotation marks are in (Inch ").
If I want to change it, he also changes the XML Attribute e.g.
<link rel="stylesheet" href="../Styles/main.css" type="text/css"/> with.

How can I change the quotation marks to » and « or typographic correct “…”

Sorry for my bad english.

Image Width in Contents Pane

$
0
0
I would like svg images included in my book to utilise the maximum screen space of whatever device the reader is using, so my stylesheet says,
Code:

        div.image {
width:100%; margin:2em auto; text-align:center;
}
        img      {
max-width:100%; max-height:100%
}

Sigil's contents pane shows text at full width, but inserted images are rendered at about 75%. I asked about this up in the Epub forum and also at Inkscape, but I think it must be a Sigil issue.

Has anyone encountered this problem, and if so, can I get a fix please?

Request for a Sigil (Lite) EPUB Reader

$
0
0
This is a request that an EPUB reader be developed based on the Sigil EPUB editing program (Sigil Lite). The idea would be to use the basic Sigil program, remove its editing ability, and scale back the features to be consistent with an EPUB viewer only. The main new feature needed would be the ability to view and print the entire EPUB (not just specific files within it).

Why is a NEW reader needed when there are already programs like Calibre out there? The major reasons are as follows:

1. There is a need for a self-contained (or near self-contained) reader that faithfully and accurately reproduces EPUBs and which could be sent with EPUBs to ensure consistency and fidelity of viewing. This is not a big concern if your content is primarily uncomplicated text, such as in a novel. But when rather complicated tables, images, graphics and more are included, the appearance of the EPUB can vary considerably by reader. Sigil and Calibre virtually stand alone as the two programs that do display complicated EPUBs consistently and properly.

2. However, unlike Calibre, Sigil accommodates EPUB3 multimedia (audio, video, etc.). This is a MAJOR advantage that Sigil has over Calibre.

3. And, unlike Calibre, Sigil can print the EPUB to any printer, not just to a PDF file. For what I do this is another MAJOR advantage that Sigil has over Calibre.

4. Lastly, the EPUB management features included with Calibre are either overrated or not applicable for many of us. In my case I deal with small numbers of very complicated books and multimedia support, consistent viewing, fidelity to the original, and printing ability are far more important to me.

This is not meant to disparage Calibre. Calibre is an outstanding program for what it does, and I certainly use Calibre for certain applications. Unfortunately, Calibre does not meet the above needs for me in a reader.

To whomever in Sigil development might be listening, thank you for your consideration of this request.

Is there any downside to making REALLY short epubs?

$
0
0
I was whipping out some novel-length epubs for advanced readers and I noticed for the .epub to be converted to a .mobi in Kindlegen I had to put meta data in the epub. What I want to do now is make flash fiction epubs (less than 1000 words) in Sigil. Are there any downsides to doing this? Any quirks (like the meta data need for Kindlegen conversion) for doing it? (Ultimately I want to have an .odt, .docx, .epub and .mobi I can send out to people.) Thanks.

And btw Sigil is THE MOST RELIABLE software for doing this stuff. You guys are awesome!

Auto-hyphenation in Preview Panel?

$
0
0
I built an ebook last month, and everything went as usual. I started another yesterday, and I was astonished to see hyphenated words in the Preview Panel. In Code View, those words would be underlined in red for the portion that had been pushed onto the next line. I can make the hyphenation disappear if I change the width of the Preview Panel, but the red line remains.

Have I missed something? Is this a new option?

Sigil 0.9.6, Windows 7 Professional.

History

$
0
0
How can I delete the history of Find and replace what I've typed

Sigil creating blank pages when publishing ePubs

$
0
0
When I save an ePub created in Sigil and view it in Adobe Digital Editions, I'm getting blank pages randomly throughout. Is anyone else experiencing this? If so, have you found a solution to why this is happening?

Error XML not well formed - Please help!

$
0
0
Hi there,
I am rather new to the ebook world. Apologies is a similar thread already exists. I am seeing this error after converting a word doc to xhtml with notepad++

"Error XML not well formed: attribute name near column 11"

I've tried deleting bits and nothing I do seems to fix it..it doesn't look wrong to me...any suggestions? Thanks!

Code:

<?xml version="1.0" encoding="utf-8" ?>
<package unique-identifier="BookId" version="2.0" xmlns="http://www.idpf.org/2007/opf">
  <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
    <dc:identifier id="BookId" opf:scheme="UUID">urn:uuid:2bc70065-7d5d-481c-9e1d-338b5ed4dba6</dc:identifier>
    <dc:language opf:scheme="DCTERMS.RFC4646">en-US</dc:language>
    <dc:source>http://xml.openoffice.org/odf2xhtml</dc:source>
    <dc:creator>Briana Ellis</dc:creator>
    <dc:dc:date opf:event="publication" opf:scheme="DCTERMS.W3CDTF">2017-05-25T11:24:00</dc:dc:date>
    <dc:contributor>Briana Ellis</dc:contributor>
    <dc:dc:date opf:event="modification" opf:scheme="DCTERMS.W3CDTF">2017-05-25T11:24:00</dc:dc:date>
    <dc:subject>,</dc:subject>
  </metadata>
  <manifest>
    <item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml"/>
    <item href="Text/Carmilla%20V3.xhtml" id="Carmilla_V3.xhtml" media-type="application/xhtml+xml"/>
  </manifest>
  <spine toc="ncx">
    <itemref idref="Carmilla_V3.xhtml"/>
  </spine>
  <guide>
  </guide>
</package>


how to fix/workaround a truncated table display

$
0
0
what I want to polish is a single table within the epub of Hilary Clinton - How I Lost. I jsut want to tweak my own reading copy.

The epub opens with a two column table called cast of characters, which looks ok in sigil, but on my tablet in moon+ the right hand column is truncating - missing some characters.-
[ A common issue with tables I believe and a reason to NOT use them.
BUt in this case, the publisher has, so I figured I'd try to learn enough about table CSS to see if I can tweak the display within my personal copy of it.

or use a quick and dirty way to just wipe all the table code & go to a simple text list, with some tab or alt separator , if that is easier?

I will also check out the kindle azw sample version, if there is one, to see if that has been coded differently/ works better on tablet.

so here's a small fair use bit - can anyone advise on how to tweak it so that all text is visible- it does seem to wrap, but only after some stuff within the right hand column table boxes is lost

my immediate prime suspects is columen of 25% and 50% that does not add up to 100% ?
<h1 class="chaptertitle">CAST OF CHARACTERS</h1>

<table cellpadding="0" cellspacing="0" class="table-note" width="100%">
<colgroup class="calibre3">
<col width="25%" class="calibre4"/>

<col width="60%" class="calibre4"/>
</colgroup>

<tbody>
<tr class="calibre5">
<td valign="top" class="calibre6">
<b class="calibre7">Huma Abedin</b>
</td>

<td valign="top" class="calibre6">
Hillary Clinton’s closest aide
</td>
</tr>

<tr class="calibre5">
<td valign="top" class="calibre6">
<b class="calibre7">Julian Assange</b>
</td>

<td valign="top" class="calibre6">
Founder and publisher of WikiLeaks
</td>
</tr>
...
heres a bit that truncates as its too wide:
<td valign="top" class="calibre6">
Secretary of state in the George H.W. Bush administration
</td>

and some related css. ( I ran it through a calibre conversion so see if that would auto fic it - hence all the calibre CSS styles - but no joy)
.calibre3 {
display: table-column-group
}
.calibre4 {
display: table-column
}
.calibre5 {
display: table-row;
page-break-inside: avoid;
vertical-align: middle
}
.calibre6 {
display: table-cell;
padding-bottom: 1px;
padding-left: 1px;
padding-right: 1px;
padding-top: 1px;
text-align: left;
vertical-align: inherit
}
.calibre7 {
font-weight: bold
}

Sections Order

$
0
0
In my book browser window I have Section 0001.xhtml, Section 0002.xhtml, Section 0003.xhtml etc. When I "split at cursor" a new Section 0004.xhtml is created, and so on.

Depending on where I do my "splits" I sometimes find that the sections get out of their natural order. If that happens, is it possible to rearrange the numbering?

Shift+Enter Bug?

$
0
0
Hi all.

Does anybody have problem when hit shift+enter to break a line? Sometimes, instead of make a simple <br/> it creates a <div ...>, and after closing the div a <p></p>.

I'm using Windows 10 and Sigil 0.9.8.

Cheers and anyway thanks for the software, it's really helpful.

can the source file change line spacing in final epub?

$
0
0
I normally make my books starting with LibreOffice in the 'text body' "style" and the file is .odt. Then in LibreOffice I turn the .odt into an .html. Then I clean up the .html in the text editor Kate. Then I import the .html file into Sigil, where I make the epub.

Well, in order to make the paperback in Createspace I (in LibreOffice) exported the .odt into a pdf. Well, it turns out the line spacing is all funky. Espeically a little extra space between the first and second lines of every paragraph. The Createspace person send me a screenshot. (attached)

Then (mildly freaking) I turned my .odt into a .docx (in LibreOffice) and opened the .docx in Word 2010. The line spacing was normal.

But (back to the Sigil-made epubs) that got me wondering if using LibreOffice to make the .odt was throwing my line spacing off for the .epub too. Now I have stared at my Kindle till I don't even know what the heck I'm seeing and the spacing if not perfect, is pretty darn close to being right, but my question is, considering my work flow (as in the first paragraph) to make the .epub the way I do, is it possible that the line spacing could be goofy in the finished .epub (and hence the eBook as well)?

And then another question. If I have to, and I turn the .odt to a .docx in LibreOffice and I open the .docx in Word 2010 and I go to turn it into an .html there, do I choose "Single File Web Page" or "Web Page" or "Web Page, Filtered"?

Thanks

Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	N/A
Size:	67.4 KB
ID:	157120  

Inline Math equation editing

$
0
0
Hello every, I am a IT staff of a tutorial centre. I wish to know are the any ways to type math equation and symbols without editing html. Thank you very much.
Viewing all 3443 articles
Browse latest View live


Latest Images