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

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-16-2010, 02:32 PM   #1
snowbb451
Junior Member
snowbb451 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2010
Device: iPad, Kindle
Math Epub

Hi,

I'm using sigil to create a ebook about geometry. Because of a lack of character, for symbols like \triangle \angle etc. I have to use png's. The issue I am having is that Sigil automatically places a space between the symbol image and the text after it.

I am somewhat new to html and epub, but I have a strong background in LaTeX. Is there anything I can place between the png and the text after it, to get rid of the space?

Thanks.
snowbb451 is offline   Reply With Quote
Old 08-16-2010, 03:04 PM   #2
amoroso
Groupie
amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.amoroso ought to be getting tired of karma fortunes by now.
 
amoroso's Avatar
 
Posts: 181
Karma: 1004070
Join Date: Jul 2010
Location: Italy
Device: Cybook Opus, Kindle
In case you are interested, ePub supports SVG images, and the popular Inkscape SVG editor can also render TeX code.
amoroso is offline   Reply With Quote
 
Enthusiast
Old 08-16-2010, 05:32 PM   #3
capidamonte
Not who you think I am...
capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!
 
capidamonte's Avatar
 
Posts: 346
Karma: 5337
Join Date: Jan 2010
Location: Honolulu
Device: Sony PRS-350
Are you generating specific pics, or are you trying to use general symbols? If general, unicode supports a lot of mathematics symbols -- try using Character Map to find the ones you need, and embed the font you like in the document itself so there won't be any missing symbols.
capidamonte is offline   Reply With Quote
Old 08-18-2010, 02:32 AM   #4
snowbb451
Junior Member
snowbb451 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2010
Device: iPad, Kindle
I'm using general symbols, because certain symbols would show up as working in sigil, but onced view with an iPad or adobe digital editions, the symbol would appear as a question mark. So I had to replace ⧍ with a png because it wouldn't show up in readers, and I had to replace Ɵ because it would not allow me to italicize it.

I haven't tried to use svg's. Will a svg resize on a reader?
snowbb451 is offline   Reply With Quote
Old 08-18-2010, 03:45 AM   #5
capidamonte
Not who you think I am...
capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!capidamonte , Klaatu Barada Niktu!
 
capidamonte's Avatar
 
Posts: 346
Karma: 5337
Join Date: Jan 2010
Location: Honolulu
Device: Sony PRS-350
Depends on the Reading System. Others will have to answer to that specifically -- I'm currently between readers, and haven't ever owned the most popular ones.

I assume that Sigil is properly naming the code page. So the iPad and ADE aren't unicode-capable? That, while not shocking given the disregard with which our corporate overlords do things, does surprise me a little. I think you would almost have to go out of your way these days to disable unicode.

For the PNG spacing: I just tried it with a simple paragraph, and I don't have a space at all. Could you share a small snippet of code?
capidamonte is offline   Reply With Quote
Old 08-18-2010, 09:42 AM   #6
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by snowbb451 View Post
I'm using general symbols, because certain symbols would show up as working in sigil, but onced view with an iPad or adobe digital editions, the symbol would appear as a question mark. So I had to replace ⧍ with a png because it wouldn't show up in readers, and I had to replace Ɵ because it would not allow me to italicize it.
Quote:
Originally Posted by capidamonte View Post
I assume that Sigil is properly naming the code page. So the iPad and ADE aren't unicode-capable? That, while not shocking given the disregard with which our corporate overlords do things, does surprise me a little.
This has been covered to death.

Font embedding saves the day for RS's that support it (iPad doesn't).
Valloric is offline   Reply With Quote
Old 08-18-2010, 09:54 AM   #7
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: 37,005
Karma: 18129756
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by Valloric View Post
This has been covered to death.

Font embedding saves the day for RS's that support it (iPad doesn't).
Actually, that's incorrect. The iPad does indeed support ePub with embedded fonts. The txtr app has an iPad version now that uses ADE and thus allows font embedding. So just don't use iBooks and use txtr instead.
JSWolf is offline   Reply With Quote
Old 08-18-2010, 10:48 AM   #8
snowbb451
Junior Member
snowbb451 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2010
Device: iPad, Kindle
Unfortunately, everything I make needs to be able to show up in iBooks on the iPad.

I have tried just having no space, between the picture and text, but sigil will automatically replace the space. here's what the code looks like for ⧍ABC

Code:
.calibre1 {
    height: auto;
    width: auto;
	border-width: 0px;
	border-style: none;
	white-space: nowrap;
	padding: 0
	}

.ecbx {
    font-weight: bold
        }

<img alt="" class="calibre1" src="../Images/triangle.png" /> <span class="ecbx">ABC</span>
Removing the space does achieve the desired result, but sigil keeps putting the space back.
snowbb451 is offline   Reply With Quote
Old 08-24-2010, 03:28 PM   #9
jharker
Developer
jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.jharker could sell banana peel slippers to a Deveel.
 
Posts: 345
Karma: 3473
Join Date: Apr 2007
Location: Brooklyn, NY, USA
Device: iRex iLiad v1, Blackberry Tour, Kindle DX, iPad.
One thing you might try -- don't know if this will work, but it's worth a shot. Add a negative right margin declaration like so:
Code:
.calibre1 {
    height: auto;
    width: auto;
    border-width: 0px;
    border-style: none;
    white-space: nowrap;
    padding: 0;
    margin: 0 -0.5em 0 0;
    }
...or something similar. This should close that space gap.

To auto-resize an image, you could try specifying the size of the image in units of em. So:
Code:
.calibre1 {
    width: 1.2em;
    border-width: 0px;
    border-style: none;
    white-space: nowrap;
    padding: 0;
    margin: 0 -0.5em 0 0;
    }
I haven't tried either of these in practice, so I'm curious to know if they will work. Please let us know!
jharker is offline   Reply With Quote
Old 08-26-2010, 12:27 PM   #10
snowbb451
Junior Member
snowbb451 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2010
Device: iPad, Kindle
The Negative margins worked great. I really don't have an issue with the way the png are showing up, because I have them about the median size of the range of font sizes a reader device can use.
snowbb451 is offline   Reply With Quote
Reply

Tags
math, sigil, space

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EPUB Math: Best Practices for Mathematics in Ebooks Adjust News 0 08-23-2010 10:17 PM
PRS-505 Math equations luma Sony Reader 4 06-04-2010 07:44 AM
Math Books MachinegunDojo Reading Recommendations 6 04-14-2010 11:06 AM
Math fiction Pablo Reading Recommendations 1 10-06-2009 09:57 PM
Calling all Math Enthusiasts! Mike's Place Introduce Yourself 36 05-20-2009 07:13 PM


All times are GMT -4. The time now is 09:33 PM.


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