Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 09-30-2014, 01:52 PM   #76
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,373
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@KevinH: Your rationale for making python the primary plugin language was that there exists a large body of ebook manipulation code already in python. That large body of code exists in python 2, not python 3. But anyway, I've said my piece on this subject. Choose whatever you like, time will tell whether the choice was a wise one.

As for python 2.8, I was under the impression that the SSL security backports were going to be made into 2.8, but I see that the python devs finally decided to keep it in python 2.7. So I was wrong on that. They just decided to change the meaning of patch releases to no longer mean backwards compatible releases. They are really tying themselves into knots trying to push for python 3 adoption.
kovidgoyal is offline  
Old 09-30-2014, 01:58 PM   #77
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,587
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Yes python 2.7 (and Python 3.4) both have great support for regular expressions and can of course do many many things that are impossible to do with regular expressions alone.
In my opinion, Matthew Barnett's regex module should replace the standard python re module. I use it wherever possible (especially when bundling/compiling a python interpreter). Full unicode case folding when coupled with Python 3.4.

Regarding python 2 vs 3: sometimes it's just nice to not have to jump through hoops (the same ones)--even when they're low to the ground. Any brand-spanking-new python-based project I was starting today from scratch would most assuredly be based on Python 3 (even though python 2 has been very good to/for me).

Last edited by DiapDealer; 09-30-2014 at 02:02 PM.
DiapDealer is offline  
Old 10-02-2014, 04:07 PM   #78
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I am going to jump in here with a new bug report for Sigil. I have an eBook that uses smallcaps and the code in the XML is...

Code:
<h1 class="chapter3" id="adc"><span class="small">also by p. d. james</span></h1>
In the CSS, the code is...

Code:
span.small {
font-family: smallcaps
}
Now the code for the fonts is correct...

Code:
@font-face {
font-family: smallcaps;
font-weight: normal;
font-style: normal;
src: url(../Fonts/CharisSILSmCp-R.ttf)
}
@font-face {
font-family: smallcaps;
font-weight: bold;
font-style: normal;
src: url(../Fonts/CharisSILSmCp-B.ttf)
}
This displays correctly in ADE. But in Sigil, I get lowercase instead of smallcaps.

Sigil isn't recognizing span.small in the CSS.
JSWolf is offline  
Old 10-02-2014, 05:18 PM   #79
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: 8,789
Karma: 6000000
Join Date: Nov 2009
Device: many
Hi,
This isn't a bug report. A real bug report provides the steps to reproduce the bug, and a testcase. Since any type of css inconsistency can cause css to be ignored, this could simply be a problem someplace else in your css that ADE ignores. Also problems with included fonts can do the same thing. css can change the font but not the characters, and you have all lowercase chars. So what does smallcap do with lowercase characters in that font. I am not sure.

So just like your bug reports in Kindleunpack, I'll need a real testcase that exhibits the problem to rule out all of the other possible causes, otherwise I am just guessing.

KevinH

Quote:
Originally Posted by JSWolf View Post
I am going to jump in here with a new bug report for Sigil. I have an eBook that uses smallcaps and the code in the XML is...

Code:
<h1 class="chapter3" id="adc"><span class="small">also by p. d. james</span></h1>
In the CSS, the code is...

Code:
span.small {
font-family: smallcaps
}
Now the code for the fonts is correct...

Code:
@font-face {
font-family: smallcaps;
font-weight: normal;
font-style: normal;
src: url(../Fonts/CharisSILSmCp-R.ttf)
}
@font-face {
font-family: smallcaps;
font-weight: bold;
font-style: normal;
src: url(../Fonts/CharisSILSmCp-B.ttf)
}
This displays correctly in ADE. But in Sigil, I get lowercase instead of smallcaps.

Sigil isn't recognizing span.small in the CSS.
KevinH is offline  
Old 10-02-2014, 06:17 PM   #80
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I've PMed the problematical ePub so you can have a look and see what's what.
JSWolf is offline  
Old 10-02-2014, 06:57 PM   #81
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,731
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by JSWolf View Post
In the CSS, the code is...

Code:
span.small {
font-family: smallcaps
AFAIK, small caps need to be defined as font-variant:

Code:
span.small { font-variant: small-caps; }
With this code Sigil will display small caps, if the font supports it.

BTW, older Sigil versions occasionally had problems with some embedded fonts, but Sigil 0.8.0 (or more precisely Qt 5.3.1) no longer exhibits this behavior.
Doitsu is offline  
Old 10-02-2014, 07:11 PM   #82
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Doitsu View Post
AFAIK, small caps need to be defined as font-variant:

Code:
span.small { font-variant: small-caps; }
With this code Sigil will display small caps, if the font supports it.

BTW, older Sigil versions occasionally had problems with some embedded fonts, but Sigil 0.8.0 (or more precisely Qt 5.3.1) no longer exhibits this behavior.
The smallcaps is not a font-variant. It's an embedded font. It's the only way for ADE to display proper small caps. The font is not being displayed.
JSWolf is offline  
Old 10-02-2014, 07:13 PM   #83
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Re: Bug report

Added to the bug report...

I just found something else odd. If I edit the CSS in any way (doesn't have to be the class that specifies the font), and then view the XML in Book View, the font displays.
JSWolf is offline  
Old 10-02-2014, 07:59 PM   #84
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,587
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by JSWolf View Post
I just found something else odd. If I edit the CSS in any way (doesn't have to be the class that specifies the font), and then view the XML in Book View, the font displays.
I have run into times when Book View doesn't seem to want to get in sync with the current CSS/HTML changes. Most often though (for me), it has to do with properly linked images not rendering (missing image icon). Occasionally, it seems that nothing short of a restart of Sigil will get everything in sync for me. It's not anything new to 0.8.0 (at least for me anyway).
DiapDealer is offline  
Old 10-02-2014, 08:22 PM   #85
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
As I recall, I have only seen this a few times. It is worse the more that you do, like changing all the images one by one.
mrmikel is offline  
Old 10-02-2014, 08:36 PM   #86
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: 8,789
Karma: 6000000
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by JSWolf View Post
I've PMed the problematical ePub so you can have a look and see what's what.
I see nothing in my PM? Are you sure you pm'd "KevinH"?
KevinH is offline  
Old 10-02-2014, 09:15 PM   #87
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by KevinH View Post
I see nothing in my PM? Are you sure you pm'd "KevinH"?
I am positive. I just double checked. Anyway, I sent a new PM.
JSWolf is offline  
Old 10-03-2014, 06:12 PM   #88
Arios
A curiosus lector!
Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.
 
Arios's Avatar
 
Posts: 463
Karma: 2015140
Join Date: Jun 2012
Device: Sony PRS-T1, Kobo Touch
May be a little off topic, but...

There is a very good review of Sigil here (http://www.softpedia.com/reviews/win...w-460816.shtml), and it's well deserved. Even the "bad" is not so bad!

Congratulations to user_none and KevinH,

Cheers!

PS I don't work for them
Arios is offline  
Old 10-03-2014, 07:27 PM   #89
blackest
Connoisseur
blackest began at the beginning.
 
Posts: 67
Karma: 10
Join Date: Sep 2014
Device: sony prs 2
Hi is there any debugging that can be turned on for Sigil i'm finding problems with 3 men in a boat on linux mint with the unofficial deb package switching between code view and book view i'm getting a segmentation fault. It could be low ram related.

one thing which would be helpful would be an option to fix the book view window size. I find with some images that you get a title rest of the page blank then the image and then the text. It is a pain having to load a version into my sony ereader to find i've oversized the images (again) .

The sony is a bit of a pain at times as it seems not to recognise some styling butting text up against images. i guess other readers have their own quirks too.
blackest is offline  
Old 10-03-2014, 08:06 PM   #90
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
There is a very well formatted ePub version (with images) of Three Men in a Boat that you can download for free (right here at MobileRead) and not actually have to do any editing to.
JSWolf is offline  
Closed Thread


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil 0.6.2 Released user_none Sigil 89 05-04-2014 06:42 AM
Sigil 0.7.4 Released user_none Sigil 47 01-05-2014 02:31 PM
Sigil V0.7.3 released user_none Sigil 59 09-11-2013 09:45 PM
Sigil 0.6.0 Released user_none Sigil 93 11-24-2012 06:50 PM
Sigil 0.4.1 Released user_none Sigil 50 09-01-2011 04:58 PM


All times are GMT -4. The time now is 04:16 AM.


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