|
|
#16 |
|
Member
![]() Posts: 15
Karma: 10
Join Date: Jan 2015
Device: iPad
|
They are in a cookbook epub file. :/ See a lot of them in cookbooks. I like to import recipes into my recipe management program, but I need to 'fix' all of those fractions first. This was a huge help! Thanks again.
|
|
|
|
|
|
#17 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
http://www.fileformat.info/info/unic...preview=entity I personally avoid the use of "vulgar fractions" because what happens when you are dealing with fractions that don't have proper unicode versions? For example, 3/10. Then you get an inconsistent look between the vulgar fractions + the non-vulgar versions. Also, especially when dealing with some of these less common vulgar fractions, the reading devices might not have those as a part of their fonts. Sure, they will probably have ½, ¼, but the fonts most likely will not have things like ⅝ and ⅞. I personally would go with consistency and readability over looks. Side Note: This also reminds me about the usages of superscript/subscript in ebooks. Sure, it may "look nicer", but it makes it tougher to read for people with poorer eyesight. I personally fall into the camp that tries to avoid smaller text. (Superscript footnotes, vulgar fractions, ...). We had a nice long chat on superscript footnotes/text back in this thread (I started it around Post #23): https://www.mobileread.com/forums/sho...d.php?t=241177 Yeah, I would probably just do this as normal search/replaces, and if you are dealing with a lot of cookbooks with the same fractions, I would just create a set of Saved Searches in Sigil. Last edited by Tex2002ans; 01-11-2015 at 09:27 PM. |
|
|
|
|
| Advert | |
|
|
|
|
#18 |
|
Interested in the matter
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
With Calibre editor,
1- Search all. 2- Use Regex-Function with: return match.group().replace ('½','1/2').replace ('⅓','1/3').replace ('¼','1/4') ..... etc. Last edited by jbacelar; 01-12-2015 at 03:24 AM. |
|
|
|
|
|
#19 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,274
Karma: 62000000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
This is using the very recent Edit feature ( which I have not come up to speed with).So it can be done |
|
|
|
|
|
|
#20 |
|
Member
![]() Posts: 15
Karma: 10
Join Date: Jan 2015
Device: iPad
|
|
|
|
|
| Advert | |
|
|
|
|
#21 |
|
Member
![]() Posts: 15
Karma: 10
Join Date: Jan 2015
Device: iPad
|
|
|
|
|
|
|
#22 | |
|
Member
![]() Posts: 15
Karma: 10
Join Date: Jan 2015
Device: iPad
|
Quote:
Ok, I created a new function:Code:
def replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs):
return match.group().replace('½','1/2').replace('⅓','1/3').replace('¼','1/4')
What do I use for the Find field so I can test out my new function? |
|
|
|
|
|
|
#23 |
|
Interested in the matter
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
|
|
|
|
|
|
#24 |
|
Member
![]() Posts: 15
Karma: 10
Join Date: Jan 2015
Device: iPad
|
Thank you!! My ebooks are going to clean up so nicely now. I greatly appreciate all of your input and help.
|
|
|
|
|
|
#25 |
|
Interested in the matter
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
You're welcome.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A question for you all. | J.M. Pierce | Writers' Corner | 11 | 09-26-2010 09:49 PM |
| iPad 3G question | vonCZ | Apple Devices | 46 | 08-10-2010 11:33 AM |
| Classic Few Nook Question and Question on Nook 3G vs WiFi | blackonblack | Barnes & Noble NOOK | 4 | 07-02-2010 03:07 AM |
| Looking for another reader question and PRS-600 question | lilpretender | Which one should I buy? | 9 | 10-24-2009 05:02 AM |