Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve experience of reading epub documents #129

Closed
exprade opened this issue Jun 18, 2013 · 6 comments
Closed

improve experience of reading epub documents #129

exprade opened this issue Jun 18, 2013 · 6 comments

Comments

@exprade
Copy link

exprade commented Jun 18, 2013

I hope epub document's default alignment is justify-aligned instead of left-aligned,and the margins can be set.

@houqp
Copy link
Member

houqp commented Jun 19, 2013

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

@exprade
Copy link
Author

exprade commented Jun 25, 2013

i see. what about the margin setting?

@chrox
Copy link
Member

chrox commented Jun 26, 2013

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

@exprade
Copy link
Author

exprade commented Jun 27, 2013

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?

@houqp
Copy link
Member

houqp commented Jun 27, 2013

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

@chrox
Copy link
Member

chrox commented Jul 1, 2013

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

@chrox chrox closed this as completed Jul 1, 2013
houqp pushed a commit to houqp/koreader that referenced this issue Apr 24, 2017
fix line wrap at punctuation apostrophe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants