Giter VIP home page Giter VIP logo

Comments (5)

ildar avatar ildar commented on September 18, 2024

from fbreader.

AlfredoCubitos avatar AlfredoCubitos commented on September 18, 2024

I change the font size in: Look and Feel Preferences -> Style

  1. this text section has font style Basic which is used for code. I can change this font size
  2. this text section is Standard Paragraph used for the reading content. I cannot change this font size. But I can change the font type (e.g. from arial to courier)

As you can see, different formatted text in between an standard paragraph can also be changed.

Btw: changing the system language has no effect to the Preference Menu Widgets :-( only to the drop down menu

fbreader

from fbreader.

ildar avatar ildar commented on September 18, 2024

from fbreader.

AlfredoCubitos avatar AlfredoCubitos commented on September 18, 2024

its epub format.
The book is copyright protected, so I can not send the book.
But the error occurs on several different epub books.
I can provide style sheet information.

Example format which is not recognized:
<h2 class="title"><a id="ch13lvl2sec560"></a>How it works...</h2>
Text in a simple <p> tag or without any tag

What is recognized:
Text in a code tag
<code class="literal">compile()</code>

The style information for the example image:

class="literal">platform</code> module. The local context is where new variables will be created:<pre class="programlisting">        globals = {'__builtins__':__builtins__, 
                   'Path': Path, 
                   'platform': platform} 
        locals = {} 
        exec(code, globals, locals) 
        return locals['Configuration'] 
</pre></li>
<li class="listitem">This returns only the defined <code class="literal">Configuration</code> class from the locals which are set by the executed module. Any other variables will be ignored.</li>
</ol>
</div>
</div>
<div class="section" title="How it works..."><div class="titlepage"><div><div><h2 class="title"><a id="ch13lvl2sec560"></a>How it works...</h2>
</div>
</div>
</div>
<p>The details of the Python language—syntax and semantics—are embodied in the <code class="literal">compile()</code> and <code class="literal">exec()</code> functions. The <code class="literal">exec()</code> function reflects the way Python handles global and local variables. There are two namespaces provided to this function. The global <code class="literal">namespace</code> instance includes <code class="literal">__builtins__</code> plus a class and module that might be used in the file.</p>
<p>The local variable namespace will have the new class created in it. This namespace has a <code class="literal">__dict__</code> attribute that makes it accessible via dictionary methods. Because of this, we can then extract the class by name. The function returns the class object for use throughout the application.</p>
<p>We can put any kind of object into the attributes of a class. Our example showed mapping objects. There's no limitation on what can be done when creating attributes at the class level.</p>
<p>We can have complex calculations within the <code class="literal">class</code> statement. We can use this to create attributes which are derived from other attributes. We can execute any kind of statement, including <code class="literal">if</code> statements and <code class="literal">for</code> statements to create attribute values.</p>
</div>
<div class="section" title="There's more..."><div class="titlepage"><div><div><h2 class="title"><a id="ch13lvl2sec561"></a>There's more...</h2>

When opening the book with Sigil everything works fine ;-)

from fbreader.

ildar avatar ildar commented on September 18, 2024

from fbreader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.