View Single Post
Old 04-30-2012, 02:13 AM   #325
dave2008
Addict
dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.
 
Posts: 251
Karma: 183457
Join Date: Jan 2012
Device: k3G, KDXG, AuraHD
Quote:
Originally Posted by NuPogodi View Post
Thanks for new release. I do not need add 'lost' extentions by myself anymore. So I've made only a couple of minor improvements which make my life more comportable:

1. The default font in crereader.lua (line 54, "FreeSerif") is still worth of replacing by "Droid Sans"
Could you give a reason for switching to Droid Sans as default font?

Quote:
Originally Posted by NuPogodi View Post
2. As zip-extentions are now allowed, crereader.lua feeds non-existing zip.css to crengine. The best way to solve this problem is to unzip the selected file & to look for the extention of the contained filestream. As I have no ideas how to realize this feature in terms of lua, I've solved this problem in a 'dirty' way, i.e. I've added few lines which allow me to localize the needed style.css for files like "anyfile.extention.zip"

Just insert in crereader.lua (line 34, just before your comment "these two format use the same css file")

BTW, I'm afraid that already reported problem of the font selection is somehow related to absent css-styles. At least, adding the above code solves this problem for *.fb2.zip-files (see absolutely adequate screenshot, the cff-fonts are not deleted)

3. It should also be useful (say, for illustration & debug purposes) to make screenshots. I've again used the 'dirty' method - just added a hotkey (Shift-P) which stored the /dev/fb0-content to raw-file (crereader.lua, line 315)

But I still hope that I'll have an opportunity to make screenshots directly (*.png or *.bmp), rather than raw-files that require succeeding conversion.
Thanks for you patches, I will add it to master branch. It will be even better if you can send a pull request in github next time
dave2008 is offline   Reply With Quote