View Single Post
Old 02-15-2018, 09:39 AM   #84
mcdummy
Connoisseur
mcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the roughmcdummy is a jewel in the rough
 
mcdummy's Avatar
 
Posts: 73
Karma: 7130
Join Date: Apr 2015
Device: PRS-T3
Removing improper characters from ids and references

Hi,

I've noticed that some writers on wiki articles use improper (not allowed) characters (such as, e.g., :,;()äöüß) in IDs and the corresponding references (href="..).

In the E-Books created by the Wiki Reader plugin, these characters are replaced in either the references or in the IDs (cannot remember which one) but not in both, which results in broken links.

Is there a simple way for replacing these characters in both the IDs and the reference? For instance in a pre-processing stage before calibre converts a Wiki-page to the final E-Book?

Regards,

McDummy
mcdummy is offline   Reply With Quote