View Single Post
Old 01-21-2022, 04:19 AM   #38
Moonbase59
Addict
Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.Moonbase59 ought to be getting tired of karma fortunes by now.
 
Moonbase59's Avatar
 
Posts: 233
Karma: 1000244
Join Date: Oct 2021
Location: Germany
Device: Tolino Vision 5, Tolino Tab 8", Pocketbook Era (16GB)
If really the plugin has to do it (vs. "strings returned by a plugin are normalized by Calibre"), be aware that there are some caveats lurking here:
  • You’ll probably want use the NFC (Normalization Form Canonical Composition), as in unicodedata.normalize('NFC', string).
  • Personally, I’d advise against using NFKC (the "compatibility" composition), because it breaks too much, like super- and subscripts, Roman numerals. Even the angstrom sign (Å) will silently be converted to the Swedish letter (Å).
  • Be sure the string is complete, i.e. not starting with a combining character or ending with a joining one.
  • Some more info on Wikipedia and unicode.org.
Attached Thumbnails
Click image for larger version

Name:	Auswahl_193.png
Views:	219
Size:	55.3 KB
ID:	191743  

Last edited by Moonbase59; 01-21-2022 at 04:35 AM.
Moonbase59 is online now   Reply With Quote