Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 04-26-2023, 03:08 PM   #16
gianni_1
Connoisseur
gianni_1 began at the beginning.
 
Posts: 85
Karma: 10
Join Date: Nov 2015
Device: tablet
More comments

HI,
sorry if I insist but, as you can see from fig.3, after a point the program puts by default "<p>....</p>" from which you get the result of fig.3_1.
Does anyone know if it is possible after a period to make the program write "<br>....<br>" (fig.4), so as to obtain the result of fig.4_1?
Thanks again and bye,
Gianni
Attached Thumbnails
Click image for larger version

Name:	fig.3.jpg
Views:	96
Size:	107.1 KB
ID:	201307   Click image for larger version

Name:	fig.3_1.jpg
Views:	89
Size:	67.0 KB
ID:	201308   Click image for larger version

Name:	fig.4.jpg
Views:	81
Size:	96.0 KB
ID:	201309   Click image for larger version

Name:	fig.4_1.jpg
Views:	91
Size:	69.8 KB
ID:	201310  
gianni_1 is offline   Reply With Quote
Old 04-26-2023, 03:23 PM   #17
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,470
Karma: 239219543
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by gianni_1 View Post
HI,
sorry if I insist but, as you can see from fig.3, after a point the program puts by default "<p>....</p>" from which you get the result of fig.3_1.
Does anyone know if it is possible after a period to make the program write "<br>....<br>" (fig.4), so as to obtain the result of fig.4_1?
Thanks again and bye,
Gianni
No. You must change it yourself manually. The bulk edit won't work.
Sirtel is offline   Reply With Quote
Advert
Old 04-27-2023, 03:58 PM   #18
un_pogaz
Chalut o/
un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.
 
un_pogaz's Avatar
 
Posts: 439
Karma: 145424
Join Date: Dec 2017
Device: Kobo
Quote:
Originally Posted by Sirtel View Post
No. You must change it yourself manually. The bulk edit won't work.
It's possible, just not especially practical alone.

@gianni_1 I recommend you to install and use the plugin Mass Search/Replace which will allow you to quickly launch a Search and Replace operation with a single click.

In the Search/Replace UI, select the field "Comments"
Code:
Search:
([\.!?])</p>\s*<p.*?>

Replace:
\1<br>

Last edited by un_pogaz; 04-27-2023 at 04:01 PM.
un_pogaz is offline   Reply With Quote
Old 04-27-2023, 04:29 PM   #19
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,470
Karma: 239219543
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by un_pogaz View Post
It's possible, just not especially practical alone.

@gianni_1 I recommend you to install and use the plugin Mass Search/Replace which will allow you to quickly launch a Search and Replace operation with a single click.

In the Search/Replace UI, select the field "Comments"
Code:
Search:
([\.!?])</p>\s*<p.*?>

Replace:
\1<br>
Mass Search and Replace didn't work when I tried to replace p with br. It was just ignored.

Edit: it seems to work now, so possibly something has changed since I tried it a couple of years ago.

Last edited by Sirtel; 04-27-2023 at 04:34 PM.
Sirtel is offline   Reply With Quote
Old 04-28-2023, 01:51 AM   #20
un_pogaz
Chalut o/
un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.
 
un_pogaz's Avatar
 
Posts: 439
Karma: 145424
Join Date: Dec 2017
Device: Kobo
Quote:
Originally Posted by Sirtel View Post
Mass Search and Replace didn't work when I tried to replace p with br. It was just ignored.

Edit: it seems to work now, so possibly something has changed since I tried it a couple of years ago.
What?

Editing comments was one of the first things I did with Mass Search/Replace.
But, if it works for you now, nice.
un_pogaz is offline   Reply With Quote
Advert
Old 04-28-2023, 08:45 AM   #21
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,470
Karma: 239219543
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by un_pogaz View Post
What?

Editing comments was one of the first things I did with Mass Search/Replace.
But, if it works for you now, nice.
Editing other things in comments worked, but not replacing p with br. Still, it was a couple of years ago and I only tried it once, I'm sure things have changed since then.
Sirtel is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove space between paragraphs in the field "Comments" AstroCalibre Library Management 5 12-09-2019 03:31 PM
Free (Kindle) Space Probe by Alan David [Sci-Fi Business vs Pirates Space Opera] ATDrake Deals and Resources (No Self-Promotion or Affiliate Links) 0 11-17-2017 04:47 AM
Free (Kindle) Space Trap by Juanita Coulson [Vintage SF Alien Contact Space Opera] ATDrake Deals and Resources (No Self-Promotion or Affiliate Links) 13 09-21-2017 12:44 PM
Space Captain Smith of the British Space Empire Kacetwo Deals and Resources (No Self-Promotion or Affiliate Links) 4 07-02-2012 03:41 AM


All times are GMT -4. The time now is 03:38 AM.


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