Code Monkey home page Code Monkey logo

Comments (6)

houqp avatar houqp commented on May 18, 2024

Hi, you can set render style to epub.css, that will set alignment to justify-aligned.

from koreader.

exprade avatar exprade commented on May 18, 2024

i see. what about the margin setting?

from koreader.

chrox avatar chrox commented on May 18, 2024

You could try setting 'p' selector in the epub style sheet like this:

p { 
    text-align: justify; 
    text-indent: 1.5em; 
    margin-top:0.2em; 
    margin-bottom: 0.3em;
    margin-left: 1.0em;
    margin-right: 0.7em;
}

Note that in order to keep left and right margin visually matched, the left margin should be set 0.3em larger than the right margin.

screenshot from 2013-06-26 13 31 21

from koreader.

exprade avatar exprade commented on May 18, 2024

sorry, i know nothing about code.i compared all the codes, found:
body {
text-indent: 0px;
margin: 0;
text-align: justify;
}

*.justindent { text-align: justify; text-indent: 1.3em; margin-top:0em; margin-bottom: 0em }

and:
img {
text-align: center;
text-indent: 0px;
display: block;
margin: 0.5em;
border-style: solid;
border-width: medium;
}
.section_image { text-align: center; }
.coverpage { text-align: center; }
p image { display: inline }

a { display:inline; text-decoration: underline; color: gray; }
p { text-align: justify; text-indent: 1.2em; margin-top:0em; margin-bottom: 0em }

should i modify both of them?

from koreader.

houqp avatar houqp commented on May 18, 2024

@exprade , just replace the last line (p {....}) with what @chrox posted above :)

from koreader.

chrox avatar chrox commented on May 18, 2024

This issue should be solved as in #59 and #137. So close this now.

from koreader.

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.