Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-02-2025, 03:50 PM   #811
ElMiko
Fanatic
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 516
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
Quote:
Originally Posted by Turtle91 View Post
Not quite...399 is it, because when you get to 400 you would incorporate the "D" for 500.
Of course.

In that case, I'm with @theducks... totally not worth changing it for a mere 399 chapters...
ElMiko is offline   Reply With Quote
Old 12-04-2025, 08:42 AM   #812
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 686
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
I'm removing many <a href ... /a> around text (in many files). Most of the time it's fine, sometimes it catches too much.

Example:
<a href="../../f70d_0040.smil#rgn_txt_0040_0006" class="pcalibre2 calibre4 pcalibre1 pcalibre">text</a>
should become
text

I use:

Search:
<a href=".*?(?<=smil).*?">(.*?)</a>
Replace:
\1

But, like in this case, it catches all this (instead of only the second href with ".smil" inside (I want to keep the note)).

<a href="v014884_split_068.html#note-d2e8351" class="pcalibre noteref pcalibre1 pcalibre2" id="id_3738">88</a> <span id="id_3739"> <a href="../../d202_100.smil#txt_2555" class="pcalibre calibre4 pcalibre1 pcalibre2">text</a>


I've been playing around but can't seem to find a reliable way to only get the <a href ... /> which contains ".smil".

Any ideas from you gurus?
patrik is offline   Reply With Quote
Old 12-04-2025, 09:25 AM   #813
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,934
Karma: 207182180
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Instead of .*?

Try using something like [^>]*

It prevents things from going beyond the closing bracket of a tag

So altogether: something like:

Code:
<a href=[^>]*(?<=smil)[^>]*>([^>]*)</a>
just might work.
DiapDealer is offline   Reply With Quote
Old 12-04-2025, 12:37 PM   #814
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 686
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
You rock!

That seems to work perfectly! I learn something every time I read you guys posts. Thanks.
patrik is offline   Reply With Quote
Old 12-04-2025, 06:13 PM   #815
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,934
Karma: 207182180
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Happy it worked for you!
DiapDealer is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Examples of Subgroups emonti8384 Lounge 32 02-26-2011 07:00 PM
Accessories Pen examples Gunnerp245 enTourage Archive 15 02-21-2011 04:23 PM
Stylesheet examples? Skitzman69 Sigil 15 09-24-2010 09:24 PM
Examples kafkaesque1978 iRiver Story 1 07-26-2010 04:49 PM
Looking for examples of typos in eBooks Tonycole General Discussions 1 05-05-2010 05:23 AM


All times are GMT -4. The time now is 11:28 PM.


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