View Single Post
Old 05-25-2021, 05:25 AM   #228
CalibUser
Addict
CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.
 
Posts: 203
Karma: 62362
Join Date: Jul 2015
Device: Sony
Quote:
Originally Posted by thosp View Post
I ran the plugin against a file containing, "Texta / Textb"

and it changed it to, "Texta I Textb".

That is incorrect, isn't it?
@thosp: The plugin is not perfect and a number of assumptions were made for changing text/symbols that may seem to be incorrect.

The plugin assumes that a "/" separated by two spaces should be the letter "I" as this was one of the frequent errors in ePub files that were converted from pdf files. It will not change a "/" if it is not surrounded by spaces.

So although the plugin is amending "Texta / Textb" incorrectly, it is making the change that it was programmed to do. If I amend the code to ignore " / " then it will not detect any " / "s that should be an "I".

It is not possible to amend the plugin so that it can work out whether a " / " should be changed to "I" or not. On balance, I will leave the plugin to change " / " to "I" as "I" in the pdf is commonly converted to "/" in the ePub.
CalibUser is offline   Reply With Quote