01-11-2015, 03:08 PM | #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.
|
01-11-2015, 08:20 PM | #17 | |
Wizard
Posts: 2,297
Karma: 12126329
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 08:27 PM. |
|
01-12-2015, 02:18 AM | #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 02:24 AM. |
01-12-2015, 08:54 AM | #19 | |
Well trained by Cats
Posts: 29,768
Karma: 54401244
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 |
|
01-12-2015, 12:22 PM | #20 |
Member
Posts: 15
Karma: 10
Join Date: Jan 2015
Device: iPad
|
|
01-12-2015, 12:22 PM | #21 |
Member
Posts: 15
Karma: 10
Join Date: Jan 2015
Device: iPad
|
|
01-12-2015, 01:28 PM | #22 | |
Member
Posts: 15
Karma: 10
Join Date: Jan 2015
Device: iPad
|
Quote:
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? |
|
01-12-2015, 06:11 PM | #23 |
Interested in the matter
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
|
01-13-2015, 12:16 PM | #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.
|
01-13-2015, 01:30 PM | #25 |
Interested in the matter
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
You're welcome.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A question for you all. | J.M. Pierce | Writers' Corner | 11 | 09-26-2010 08:49 PM |
iPad 3G question | vonCZ | Apple Devices | 46 | 08-10-2010 10:33 AM |
Classic Few Nook Question and Question on Nook 3G vs WiFi | blackonblack | Barnes & Noble NOOK | 4 | 07-02-2010 02:07 AM |
Looking for another reader question and PRS-600 question | lilpretender | Which one should I buy? | 9 | 10-24-2009 04:02 AM |