View Single Post
Old 03-24-2024, 05:26 AM   #264
Markismus
Guru
Markismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicingMarkismus causes much rejoicing
 
Markismus's Avatar
 
Posts: 897
Karma: 149877
Join Date: Jul 2013
Location: Netherlands
Device: Cracked HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
The easy way is to use Koreader. When you generate a Koreader optimized Stardict dictionary a css-file is generated. You can add the css-lines from your file to it.

The long way is to embed all styling in the html again. Effectively to repeat all styling in every tag that it affects. Looks like a lot of work, more so because the converter to binary pocketbook format rips most formatting out of the dictionary again. You could of course remove all styling that's ripped from the css-file. Anything that's not italics or bold would be my first choice. IIRC, there are a few posts in the beginning of this thread that discuss all styling that is retained.

So use Koreader and copy-paste or reduce the css-file and add style="...."; strings to all affected blocks with search-replace either in an editor but preferably with code, so that you can reuse the work for another dictionary. Hopefully there are solutions on the web that do the embedding css into html style-strings for you.
Markismus is offline   Reply With Quote