Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 01-04-2013, 11:17 AM   #31
SauliusP.
Plugin Developer
SauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
SauliusP.'s Avatar
 
Posts: 97
Karma: 23854
Join Date: Feb 2012
Location: Lithuania
Device: Kindle
Hi Wulfgar,

Sure you can ask. Answers are simple.
1. I have a library of DOCX files and don't care about DOC.
2. DOC is a terrible binary format, and DOCX (even though complex) – just an XML pack.

Microsoft has a utility for mass conversion of DOCs to DOCXs. E.g., this article gives a short run-through:
http://blogs.msdn.com/b/ericwhite/ar...c-to-docx.aspx
SauliusP. is offline  
Old 05-09-2013, 03:02 AM   #32
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 3,795
Karma: 2698649
Join Date: Mar 2012
Location: NSW Australia
Device: none
Hi SauliusP.

I used your plug in today, there are two things I'd like to have

Small Caps support - not important, but I like to use them in document titles

This is important to me, why can't I set default settings in Preference->Conversion->Input Options,
If that's hard to do, is there some way I can do it manually - by tweaking the plugin if needs be.

I have attached images of what I always get as the default, and what I always want as the default - for 'various' reasons I always start a conversion by hitting Reset Defaults

Thanks BR
Attached Thumbnails
Click image for larger version

Name:	Capture what I get.JPG
Views:	68
Size:	29.0 KB
ID:	105620   Click image for larger version

Name:	Capture what I want.JPG
Views:	64
Size:	30.0 KB
ID:	105621  

Last edited by BetterRed; 05-09-2013 at 03:28 AM. Reason: give image attachments right name
BetterRed is offline  
Old 05-09-2013, 03:27 AM   #33
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,885
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by BetterRed View Post
I have attached images of what I want,
Images??? Seems like the attachments are missing.
DoctorOhh is offline  
Old 05-09-2013, 03:32 AM   #34
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 3,795
Karma: 2698649
Join Date: Mar 2012
Location: NSW Australia
Device: none
DoctorOhh

yes - Capture what I get.jpg, and Capture what I want.jpg - I had them misnamed - you must have happened by when I was changing the names :lol:
BetterRed is offline  
Old 05-09-2013, 05:41 AM   #35
SauliusP.
Plugin Developer
SauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
SauliusP.'s Avatar
 
Posts: 97
Karma: 23854
Join Date: Feb 2012
Location: Lithuania
Device: Kindle
Quote:
Originally Posted by BetterRed View Post
Hi SauliusP.

I used your plug in today, there are two things I'd like to have

Small Caps support - not important, but I like to use them in document titles

This is important to me, why can't I set default settings in Preference->Conversion->Input Options,
If that's hard to do, is there some way I can do it manually - by tweaking the plugin if needs be.

I have attached images of what I always get as the default, and what I always want as the default - for 'various' reasons I always start a conversion by hitting Reset Defaults

Thanks BR
Hello there,

I can add small caps. Somehow I think I have added support for them, but probably that's my imagination... let me check.

DOCX Input is the only external plugin of this type in Calibre's plugin ecosystem. As such, it shows some missing features. E.g. there is no way to set it's options in Preferences, like with internal plugins. It is simply loaded later. What I can do is to ask Kovid to implement such a feature and I will do this.
SauliusP. is offline  
Old 05-09-2013, 06:26 AM   #36
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 3,795
Karma: 2698649
Join Date: Mar 2012
Location: NSW Australia
Device: none
Quote:
Originally Posted by SauliusP. View Post
Hello there,

I can add small caps. Somehow I think I have added support for them, but probably that's my imagination... let me check.

DOCX Input is the only external plugin of this type in Calibre's plugin ecosystem. As such, it shows some missing features. E.g. there is no way to set it's options in Preferences, like with internal plugins. It is simply loaded later. What I can do is to ask Kovid to implement such a feature and I will do this.
Hi - thanks for getting back to me.

If it the defaults can't be easily be put into the Preferences - how about a plugin configuration dialogue, similar to what many of kiwidudes plugins have - eg Count Pages.

Actually, that would be more in keeping with the overall scheme of Calibre, in that Preferences relate to the 'core product', whilst 3rd party plug-ins have independent configuration dialogues.

Cheers BR
BetterRed is offline  
Old 05-09-2013, 07:12 AM   #37
SauliusP.
Plugin Developer
SauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
SauliusP.'s Avatar
 
Posts: 97
Karma: 23854
Join Date: Feb 2012
Location: Lithuania
Device: Kindle
Quote:
Originally Posted by BetterRed View Post
If it the defaults can't be easily be put into the Preferences - how about a plugin configuration dialogue, similar to what many of kiwidudes plugins have - eg Count Pages.
Those plugins are GUI plugin, and this one—input plugin. From programming perspective they are different beasts and configuration is also different.

Anyway, I have raised a feature request to make external plugins configurable. If anyone from Calibre team would get interested in adding it, it'll happen then.
SauliusP. is offline  
Old 05-12-2013, 04:46 AM   #38
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 3,795
Karma: 2698649
Join Date: Mar 2012
Location: NSW Australia
Device: none
Hi SauliusP.

You can ignore most of this - as its been overtaken by what's in the Addendum - I'm leaving it here for contextual coherence

Could you please put accelerators keys on the fields in the DOCX Input settings panel

Currently the only way I can get into it is with the mouse - a device I try to avoid.

If you can do that, then the need to integrate the PI into the Preferences Conversion settings will, for me at least, be diminished.

I've discovered that Alt/Enter on the icons on the left of the Conversion dialogue will display the relevant panel, but the only way into them is via an accelerator key. I've raised a report at launchpad asking if it can be fixed 'globally', but it may not be that easy.

Most dialogues in calibre have accelerator keys, DOCX Input is the one panel that I have to manually reset to my preferred settings every time I do a conversion so...

I would be satisfied if Use first found image as cover had one - that would give me an entry point into the panel, after that I would use Tab

I sometimes wonder if I am the only person who prefers to drive Calibre from the keyboard - I always preferred manual transmission vehicles too

Thanks BR

Addendum

Hi SauliusP. Just letting you know that I've created a 'local' version of the plugin with the initial values I want in the options. That will be OK - pending integration into preferences etc.

My discovery of the Alt/Enter key in the conversion dialogue opened up a can a worms concerning the Qt library keyboard handling After discussions with KG we both concluded (independently) that the easiest thing was for me to change the plug-in.

I'd still like small-caps tho'. Maybe when you wrote that you thought you had implemented them, you were thinking of Drop Caps, which I think are implemented.

I am able to produce much better EPUBS using your plug in than I can with RTF or Filtered HTML, the resultant HTML is MUCH easier to read & edit in Sigil. The docx files are substantially smaller, and the conversions are also about 30-40% faster.


For the record the source file I changed was docx_input.py
I changed some of the "recommended_value"s in the

Code:
    options = set([
        OptionRecommendation(name='first_cover', recommended_value=False,
            help=_('Cover from document.')),
        OptionRecommendation(name='skip_first_pg', recommended_value=False,
            help=_('Skip first page as a cover.')),
        OptionRecommendation(name='replace_bap', recommended_value=True,
            help=_('Enhance display compatibility and replace paragraph spacing before or after with empty paragraph.')),
        OptionRecommendation(name='font_embed', recommended_value=_('None'),
            level=OptionRecommendation.LOW, choices=EMBED_OPTIONS,
            help=_('Font embedding options.')),
        OptionRecommendation(name='substitute_normal_serif', recommended_value=False,
            help=_('Instead of font family for default (usually "Normal") style use "Serif". Useful for AZW3 (KF8).'))
    ])


br

Last edited by BetterRed; 05-23-2013 at 07:12 PM. Reason: add addendum
BetterRed is offline  
Old 06-05-2013, 04:12 AM   #39
SauliusP.
Plugin Developer
SauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
SauliusP.'s Avatar
 
Posts: 97
Karma: 23854
Join Date: Feb 2012
Location: Lithuania
Device: Kindle
Requiem to DOCX Input.

Received a notification from Kovid, that Calibre from next version will have native DOCX support and not based on my plugin. So I am leaving this plugin as it is and will not be enhancing it in the future.

It was nice, however, to make this step first.

R.I.P. DOCX Input.
SauliusP. is offline  
Old 06-05-2013, 04:35 AM   #40
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,300
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@SauliusP: Indeed, while the new calibre DOCX engine is not based on your plugin, the existence of your plugin did help in the creation of the engine, by showing what was possible, so thanks
kovidgoyal is online now  
Old 06-05-2013, 04:50 AM   #41
SauliusP.
Plugin Developer
SauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
SauliusP.'s Avatar
 
Posts: 97
Karma: 23854
Join Date: Feb 2012
Location: Lithuania
Device: Kindle
Quote:
Originally Posted by kovidgoyal View Post
@SauliusP: Indeed, while the new calibre DOCX engine is not based on your plugin, the existence of your plugin did help in the creation of the engine, by showing what was possible, so thanks
Welcome. Only just downloaded the trunk and new DOCX Input fails with exceptions :-D
SauliusP. is offline  
Old 06-05-2013, 04:54 AM   #42
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,300
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by SauliusP. View Post
Welcome. Only just downloaded the trunk and new DOCX Input fails with exceptions :-D
What exceptions?
kovidgoyal is online now  
Old 06-05-2013, 05:01 AM   #43
SauliusP.
Plugin Developer
SauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane AustenSauliusP. has memorized the entire works of Homer, Shakespeare, and Jane Austen
 
SauliusP.'s Avatar
 
Posts: 97
Karma: 23854
Join Date: Feb 2012
Location: Lithuania
Device: Kindle
Lets make it elsewhere: DOCX Input [Calibre Native]
SauliusP. is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DOCX Input and DOCX Metadata Reader SauliusP. Development 5 06-15-2012 03:17 AM
Understanding html input plugin nimblebooks Conversion 3 02-26-2012 02:06 AM
telling the input plugin to allow a rel=nofollow nimblebooks Conversion 0 02-22-2012 06:01 PM
Plugin which uses net as input and output medve Development 0 12-04-2011 04:20 PM
Looking For MHT Input Conversion Plugin FlooseMan Dave Plugins 4 03-30-2010 06:52 PM


All times are GMT -4. The time now is 12:33 PM.


MobileRead.com is a privately owned, operated and funded community.