![]() |
#1 |
Bibliothekar
![]() Posts: 38
Karma: 10
Join Date: Jun 2011
Location: San Jose City, Philippines
Device: Galaxy Tab S w/Bookari Premium
|
Full justification of comments?
When editing the comments in the metadata I like to fully justify the text. Unfortunately most of the books already in the library are in ragged-right format. Is there an easy way to have calibre fully justify all comments? Can full justification be set as a default in place of ragged-right?
|
![]() |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Ersatzreifen - you should be able to do it with Bulk Metadata Edit, difficulty depends on the 'state' of the HTML, if it's simple and well formed then replacing <p> with <p style="text-align: justify;"> should do the trick
Try it on a couple of books - others with deeper knowledge of HTML, RegEx may have a better solution Oh yes, and as always, with Bulk Metadata Edit, backup your library before doing massive updates BR Last edited by BetterRed; 06-25-2016 at 05:26 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Bibliothekar
![]() Posts: 38
Karma: 10
Join Date: Jun 2011
Location: San Jose City, Philippines
Device: Galaxy Tab S w/Bookari Premium
|
I've tested that on a few books, and found that so long as the paragraph tag exists exactly as <p> it does work. This is confirmed.
But most tags turned out to be in the form of <p class="description">, so I made a second filter to look for that condition only, and change it to <p class="description" style="text-align: justify;">, but that doesn't work at all: after running the filter I find that nothing has changed! The test fields in the search & replace filter indicate that it's going to work, but it didn't. What am I doing wrong? |
![]() |
![]() |
![]() |
#4 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
![]() |
![]() |
![]() |
#5 | |
Bibliothekar
![]() Posts: 38
Karma: 10
Join Date: Jun 2011
Location: San Jose City, Philippines
Device: Galaxy Tab S w/Bookari Premium
|
Quote:
![]() Only some of the book comments contain the <p> tag. For those which do your suggestion did work, but for those which had no <p> tag, which is most of them, it couldn't work. What's needed is a setting in Calibre to force the comments, all of them, to full justification, except where other justification is chosen by the user. Perhaps the powers that be can program such a setting into the Preferences. That would be nice! Thanks for the help, but.... (I'm still looking ![]() ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Aura HD Full Justification Need Help | xdrive | Kobo Reader | 8 | 09-02-2013 12:18 AM |
2.5.2 and full justification | alansplace | Amazon Kindle | 0 | 07-26-2010 03:12 AM |
Is full justification a no-brainer or what? | bugeyed | Sony Reader | 17 | 07-25-2010 02:16 PM |
Full justification in epub | HansTWN | iRex | 1 | 03-22-2010 08:15 PM |
Preference for Full Justification, How to? | ascherjim | Calibre | 13 | 06-26-2009 07:43 PM |