View Single Post
Old 03-06-2010, 10:19 AM   #58
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,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by zelda_pinwheel View Post
a question : last night when i tried to edit the toc the changes wouldn't "stick". i edited the titles directly in the toc but when i closed it and came back to it (or saved the file) the changes had not been applied ; neither changes to titles, nor changes to "include / don't include" list (checkboxes). this works in sigil 0.1.* versions. bug ?
Already on the tracker, issue #277.

Quote:
Originally Posted by zelda_pinwheel View Post
another question : i see sigil 0.2 now supports fonts. this overjoys me, you can imagine. however, i cannot for the life of me figure out how to add them through the interface. i tried dragging the files onto the sigil file navigator, no joy. and i didn't find an "import" command in the menus. if i created a "Fonts" folder directly in the epub, sigil didn't see it and add the files. i had to manually add the files to the epub and *also* to the .opf ; after that, they were recognised. is this feature not finished, or am i missing something really obvious ? either way, thank you SO MUCH for adding it ! the book i was working on, The Professor and the Madman (i bought the mobi version since no epub was available, and it came out of calibre thoroughly mangled, i was absolutely horrified when i looked at the code ), uses a LOT of special characters to show phonetic pronunciation ; if i don't embed a font supporting these characters, the book becomes partially unreadable.
Have you tried right-clicking the Fonts folder in the Book Browser and selecting "Add existing items..."? That opens a dialog where you can select the files you want to add.

Yes, I need to start writing some documentation. I plan on starting very soon.

And font embedding will be officially supported when I figure out a way to query the system for the font files installed (plus some QtWebKit support). The user should be able to have a font drop-down box like in Word, only with just a "<add new font>" option for epubs with no fonts. Selecting that option would open a standard font selection dialog for the OS, and selecting a font should make Sigil pull it out of the system (and any font variants present, like bold, italic etc.), add it to the epub file and attach the required CSS to the file and the current selection.

But that will have to wait until QtWebKit supports font variants. Currently it won't display italic or bold, only the regular.

In 0.2.0 I've made it easier to do this by hand, but that's far from ideal.
Valloric is offline   Reply With Quote