View Single Post
Old 06-10-2020, 05:38 AM   #12
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by slowsmile View Post
And if all you want to do is remove the letter-spacing: 0em; attribute from the CSS, you should be able to do that easily and quickly in one hit by using Search and Replace in Sigil.
Yes I can. I did.
Also, in the full file there were many other letter-spacing in styles, also not hard to delete: "letter-spacing:.+;"

The problem is that left 300 styles, scores of them identical and many empty. And a file with thousands of spans that were 99% redundant. Every paragraph split by spans, sometimes between letters in a word. That would have taken all day to simplify. Since the "letter-spacing" styles were interspersed with actual necessary formatting, like italics, I could not just delete or unify styles in groups by regex, the only way was one by one.

Letter-spacing in Word exports in body text is always garbage.
And almost always garbage even in headings.
If you think someone might want this, make it optional.

These tags are not from design choices made by anyone, they are Word trying to mimic the layout in the original page, and that makes no sense with a different font in a different size page.
Maybe in Word changing all fully justified text to left-aligned or monospace before exporting would stop it doing that.

Anyway, just my feedback. Up to you.

Last edited by AlanHK; 06-10-2020 at 05:55 AM.
AlanHK is offline   Reply With Quote