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

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 06-14-2016, 03:15 PM   #31
Doitsu
Wizard
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: 4,473
Karma: 14544619
Join Date: Dec 2010
Device: Kindle PW2
Sounds fine to me, too.
Doitsu is offline   Reply With Quote
Old 03-01-2018, 01:29 AM   #32
Ghod
Member
Ghod ought to be getting tired of karma fortunes by now.Ghod ought to be getting tired of karma fortunes by now.Ghod ought to be getting tired of karma fortunes by now.Ghod ought to be getting tired of karma fortunes by now.Ghod ought to be getting tired of karma fortunes by now.Ghod ought to be getting tired of karma fortunes by now.Ghod ought to be getting tired of karma fortunes by now.Ghod ought to be getting tired of karma fortunes by now.Ghod ought to be getting tired of karma fortunes by now.Ghod ought to be getting tired of karma fortunes by now.Ghod ought to be getting tired of karma fortunes by now.
 
Ghod's Avatar
 
Posts: 11
Karma: 584334
Join Date: Sep 2012
Location: Champaign, Illinois, USA
Device: Kobo Aura, Nook HD+, Nook Personal Touch, Nook Personal Touch with Glo
Hmmm...just installed and ran this plugin, but after running it, clicking on close just made it run again. Clicking on the X to close the window did the same. What did work, was to hit ESC (a few times--perhaps overkill, but it was preventing me from checking its work and saving the file).

I'm running Sigil 0.9.9 on Win10 x64.

This is actually the very first time I've installed and run a plugin. Mostly because it's taken me forever to get around to try building an epub from scratch. I'm trying to get my act together so I can provide my blind friend books he has no access to otherwise.
Ghod is offline   Reply With Quote
Old 03-01-2018, 03:38 AM   #33
Doitsu
Wizard
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: 4,473
Karma: 14544619
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Ghod View Post
Hmmm...just installed and ran this plugin, but after running it, clicking on close just made it run again.
This is a rare bug that only occurs if you install a plugin for the first time, assign it to a button and then click that button.
For the time being, the only way to fix it is to restart Sigil.

Quote:
Originally Posted by Ghod View Post
I'm trying to get my act together so I can provide my blind friend books he has no access to otherwise.
You might want to check out KevinH's Access-Aide plugin, which'll automatically add DAISY-recommended attributes for screen readers.

Last edited by Doitsu; 03-01-2018 at 03:44 AM.
Doitsu is offline   Reply With Quote
Old 04-09-2018, 06:41 PM   #34
Ghod
Member
Ghod ought to be getting tired of karma fortunes by now.Ghod ought to be getting tired of karma fortunes by now.Ghod ought to be getting tired of karma fortunes by now.Ghod ought to be getting tired of karma fortunes by now.Ghod ought to be getting tired of karma fortunes by now.Ghod ought to be getting tired of karma fortunes by now.Ghod ought to be getting tired of karma fortunes by now.Ghod ought to be getting tired of karma fortunes by now.Ghod ought to be getting tired of karma fortunes by now.Ghod ought to be getting tired of karma fortunes by now.Ghod ought to be getting tired of karma fortunes by now.
 
Ghod's Avatar
 
Posts: 11
Karma: 584334
Join Date: Sep 2012
Location: Champaign, Illinois, USA
Device: Kobo Aura, Nook HD+, Nook Personal Touch, Nook Personal Touch with Glo
Quote:
Originally Posted by Doitsu View Post
This is a rare bug that only occurs if you install a plugin for the first time, assign it to a button and then click that button.
For the time being, the only way to fix it is to restart Sigil.

So I probably shouldn't see it pop up again...

You might want to check out KevinH's Access-Aide plugin, which'll automatically add DAISY-recommended attributes for screen readers.
I will certainly do that. Thanks.
Ghod is offline   Reply With Quote
Old 04-14-2019, 10:48 AM   #35
Leonatus
Guru
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 630
Karma: 7077424
Join Date: Mar 2013
Location: Berlin, Germany
Device: Kobo Touch
Sigil v. 0.9.13, css_from_fonts v. 0.1.3 phthon v. 3.4.
The plugin worked all right until now, but recent- and steadily I receive this message:
Code:
Status: failed

Traceback (most recent call last):
  File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 135, in launch
    self.exitcode = target_script.run(container)
  File "C:\Users\Jürgen\AppData\Local\sigil-ebook\sigil\plugins\CSSFromFonts\plugin.py", line 16, in run
    font_object = ImageFont.truetype(font_path)
  File "site-packages\PIL\ImageFont.py", line 280, in truetype
  File "site-packages\PIL\ImageFont.py", line 145, in __init__
OSError: cannot open resource
Error: cannot open resource
No idea what it is. Might someone help, please?
Edit: Inserting @font-face manually works.

Last edited by Leonatus; 04-14-2019 at 10:58 AM.
Leonatus is offline   Reply With Quote
Old 04-14-2019, 11:29 AM   #36
Doitsu
Wizard
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: 4,473
Karma: 14544619
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Leonatus View Post
Sigil v. 0.9.13, css_from_fonts v. 0.1.3 phthon v. 3.4.
The plugin worked all right until now, but recent- and steadily I receive this message:
The plugin uses PIL for getting font properties. In rare cases PIL fails to retrieve font properties. PIL will most likely also fail to get the font properties of obfuscated fonts, which are sometimes embedded in commercial epubs.

What's the name of the font and where did you download it from?
Doitsu is offline   Reply With Quote
Old 04-15-2019, 04:35 AM   #37
Leonatus
Guru
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 630
Karma: 7077424
Join Date: Mar 2013
Location: Berlin, Germany
Device: Kobo Touch
Quote:
Originally Posted by Doitsu View Post
What's the name of the font and where did you download it from?
The font is called FoglihtenNo04 by glukfonts.pl. It' an otf font.
I use it for years and without problems.
What is PIL?
Leonatus is offline   Reply With Quote
Old 04-15-2019, 05:03 AM   #38
Doitsu
Wizard
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: 4,473
Karma: 14544619
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Leonatus View Post
What is PIL?
PIL is a Python Image Library.

Quote:
Originally Posted by Leonatus View Post
The font is called FoglihtenNo04 by glukfonts.pl.
The plugin worked fine with this font on my Windows machine and generated the following CSS declaration:

Code:
@font-face {
    font-family: 'FoglihtenNo04';
    font-weight: normal;
    font-style: normal;
    src: url('../Fonts/FoglihtenNo04-070.otf');
}
If the plugin previously worked with FoglihtenNo04, maybe the font file that you downloaded got corrupted or was locked by another process, e.g. a virus scanner or a backup tool, when you ran the plugin.

Does the plugin work with other fonts or do you get the same error message for all fonts?
Doitsu is offline   Reply With Quote
Old 04-15-2019, 11:36 AM   #39
Leonatus
Guru
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 630
Karma: 7077424
Join Date: Mar 2013
Location: Berlin, Germany
Device: Kobo Touch
I tried the same font on my other computer (both Win 10, 32 bit), where I had Sigil v. 0.9.10 installed, and everything is exactly as in your example (as it used to be with my first computer as well). I installed Sigil v. 0.9.13, and everything is o.k. as well.
Whereas, on my first computer, I reloaded the font from another source, and there came the same error message. I tried it with a different font, same error.
Edit: I tried it on a different ebook with the same result. Nota bene: adding the @font-face manually, everything is all right.
And, strange enough, after having transferred the origiginal epub to my second computer with the same loaded font, the plugin works without any issue.

Last edited by Leonatus; 04-15-2019 at 11:46 AM.
Leonatus is offline   Reply With Quote
Old 04-15-2019, 12:24 PM   #40
Doitsu
Wizard
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: 4,473
Karma: 14544619
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Leonatus View Post
Whereas, on my first computer, I reloaded the font from another source, and there came the same error message.
Most likely the font that causes the error is corrupted. Unless you can reproduce this error with a well-known font downloaded from the font developer's website, there's nothing I can do about it.
Doitsu is offline   Reply With Quote
Old 04-15-2019, 02:39 PM   #41
Leonatus
Guru
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 630
Karma: 7077424
Join Date: Mar 2013
Location: Berlin, Germany
Device: Kobo Touch
Well, I thank you for your help so far, and I don't want to be urging. However, I'm wondering, when a corrupted font should be the culprit, how the issue can occur with any other font that I use, and how it can be that, running the identic epub on another computer, the issue doesn't appear, and how the font can work if I add the respective css manually.
I downloaded and installed the plugin from scratch, but to no avail.
Leonatus is offline   Reply With Quote
Old 04-15-2019, 03:23 PM   #42
Doitsu
Wizard
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: 4,473
Karma: 14544619
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Leonatus View Post
However, I'm wondering, when a corrupted font should be the culprit, how the issue can occur with any other font that I use[...]
You didn't mention that the issue also occurs with other fonts and you didn't provide a test epub. Obviously, I can only fix issues that I (or other Sigil users) can reproduce.
Doitsu is offline   Reply With Quote
Old 04-15-2019, 03:26 PM   #43
Leonatus
Guru
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 630
Karma: 7077424
Join Date: Mar 2013
Location: Berlin, Germany
Device: Kobo Touch
Of course, that's true. But the strange is that the issue occurs on one computer, but not on the other. Thus, I fear, the problem might not be reproducable.
Leonatus is offline   Reply With Quote
Old 04-15-2019, 06:21 PM   #44
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 10,498
Karma: 60960973
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Quote:
Originally Posted by Leonatus View Post
Of course, that's true. But the strange is that the issue occurs on one computer, but not on the other. Thus, I fear, the problem might not be reproducable.
I wonder if that system has an invalid font (not the one you're embedding). See https://www.techwalla.com/articles/h...-corrupt-fonts for some discussion of tools to validate fonts.
PeterT is offline   Reply With Quote
Old 04-16-2019, 04:06 AM   #45
Leonatus
Guru
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 630
Karma: 7077424
Join Date: Mar 2013
Location: Berlin, Germany
Device: Kobo Touch
Quote:
Originally Posted by PeterT View Post
See https://www.techwalla.com/articles/h...-corrupt-fonts for some discussion of tools to validate fonts.
Thank you! I shall try this, but I have little hope, as I had used the font for years on both computers without issue. It seems there is some interference of the computer system.
Leonatus 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
Accessing fonts from CSS JSWolf Kobo Reader 11 07-03-2015 10:49 AM
How to invoke different fonts in CSS 2.3.1? xuyn2003 Kobo Reader 32 01-06-2013 09:52 PM
working with fonts in css jayz Kindle Formats 9 10-29-2012 04:09 PM
Possible to embed fonts in CSS of .lit file? tanzer21 Calibre 9 06-30-2010 07:26 PM
Suggestion: let's create typographic CSS sic Sony Reader 2 08-20-2007 07:17 PM


All times are GMT -4. The time now is 01:12 AM.


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