diff --git a/pyqtdistutils.py b/pyqtdistutils.py
index f452941958..0150cd8684 100644
--- a/pyqtdistutils.py
+++ b/pyqtdistutils.py
@@ -10,11 +10,17 @@ from distutils.core import Extension as _Extension
from distutils.command.build_ext import build_ext as _build_ext
from distutils.dep_util import newer_group
from distutils import log
+from distutils.spawn import find_executable
import sipconfig, os, sys, string, glob, shutil
from PyQt4 import pyqtconfig
iswindows = 'win32' in sys.platform
-QMAKE = os.path.expanduser('~/qt/bin/qmake') if 'darwin' in sys.platform else'qmake'
+isosx = 'darwin' in sys.platform
+QMAKE = '/Volumes/sw/qt/bin/qmake' if isosx else 'qmake'
+if find_executable('qmake-qt4'):
+ QMAKE = find_executable('qmake-qt4')
+elif find_executable('qmake'):
+ QMAKE = find_executable('qmake')
QMAKE = os.environ.get('QMAKE', QMAKE)
WINDOWS_PYTHON = ['C:/Python26/libs']
OSX_SDK = '/Developer/SDKs/MacOSX10.4u.sdk'
diff --git a/setup.py b/setup.py
index 9054e9ea9a..439eef6ce2 100644
--- a/setup.py
+++ b/setup.py
@@ -65,7 +65,7 @@ def setup_mount_helper():
if __name__ == '__main__':
from setuptools import setup, find_packages
- from pyqtdistutils import PyQtExtension, build_ext, Extension
+ from pyqtdistutils import PyQtExtension, build_ext, Extension, QMAKE
from upload import sdist, pot, build, build_py, manual, \
resources, clean, gui, translations, update, \
tag_release, upload_demo, build_linux, build_windows, \
@@ -76,10 +76,8 @@ if __name__ == '__main__':
entry_points['console_scripts'].append(
'calibre_postinstall = calibre.linux:post_install')
optional = []
- qmake = '/Volumes/sw/qt/bin/qmake' if isosx else 'qmake'
- qmake = os.environ.get('QMAKE', qmake)
def qmake_query(arg=''):
- return subprocess.Popen([qmake, '-query', arg],
+ return subprocess.Popen([QMAKE, '-query', arg],
stdout=subprocess.PIPE).stdout.read()
qt_inc = qt_lib = None
qt_inc = qmake_query('QT_INSTALL_HEADERS').splitlines()[0]
diff --git a/src/calibre/ebooks/conversion/cli.py b/src/calibre/ebooks/conversion/cli.py
index 058ed49130..f705523312 100644
--- a/src/calibre/ebooks/conversion/cli.py
+++ b/src/calibre/ebooks/conversion/cli.py
@@ -35,14 +35,10 @@ normally have been passed to the output plugin.
After specifying the input \
and output file you can customize the conversion by specifying various \
-options. the available options depend on the input and output file types. \
+options. The available options depend on the input and output file types. \
To get help on them specify the input and output file and then use the -h \
option.
-You can also get detailed help on all the options any input/output pair \
-of formats supports by specifying the -h flag after the input and output \
-filenames.
-
For full documentation of the conversion system see
''') + 'http://calibre.kovidgoyal.net/user_manual/conversion.html'
diff --git a/src/calibre/gui2/convert/pdb_output.ui b/src/calibre/gui2/convert/pdb_output.ui
index 5f21031233..3d35a1f4e3 100644
--- a/src/calibre/gui2/convert/pdb_output.ui
+++ b/src/calibre/gui2/convert/pdb_output.ui
@@ -17,7 +17,10 @@
-
- Format:
+ &Format:
+
+
+ opt_format
diff --git a/src/calibre/gui2/convert/pdf_input.ui b/src/calibre/gui2/convert/pdf_input.ui
index 40f480b15d..626c68ea63 100644
--- a/src/calibre/gui2/convert/pdf_input.ui
+++ b/src/calibre/gui2/convert/pdf_input.ui
@@ -17,7 +17,10 @@
-
- Line Un-Wrapping Factor:
+ Line &Un-Wrapping Factor:
+
+
+ opt_unwrap_factor
@@ -50,7 +53,7 @@
-
- No Images
+ No &Images
diff --git a/src/calibre/gui2/convert/pdf_output.ui b/src/calibre/gui2/convert/pdf_output.ui
index ef29c55265..ca9bd6b40f 100644
--- a/src/calibre/gui2/convert/pdf_output.ui
+++ b/src/calibre/gui2/convert/pdf_output.ui
@@ -17,7 +17,10 @@
-
- Paper Size:
+ &Paper Size:
+
+
+ opt_paper_size
@@ -27,7 +30,10 @@
-
- Orientation:
+ &Orientation:
+
+
+ opt_orientation
diff --git a/src/calibre/gui2/convert/txt_output.ui b/src/calibre/gui2/convert/txt_output.ui
index dfe6d40fc9..32b14b9bc4 100644
--- a/src/calibre/gui2/convert/txt_output.ui
+++ b/src/calibre/gui2/convert/txt_output.ui
@@ -17,7 +17,10 @@
-
- Line ending style:
+ &Line ending style:
+
+
+ opt_newline
diff --git a/src/calibre/trac/plugins/Changelog.py b/src/calibre/trac/plugins/Changelog.py
index 146d8b16d0..1f438de5e3 100644
--- a/src/calibre/trac/plugins/Changelog.py
+++ b/src/calibre/trac/plugins/Changelog.py
@@ -54,7 +54,7 @@ class ChangelogFormatter(blog.LogFormatter):
for msg in entry[1]:
txt.append(u' * ' + msg)
- return u'\n'.join(txt)
+ return (u'\n'.join(txt)).encode('ascii', 'replace')
def bzr_log_to_txt():
path = BZR_PATH
diff --git a/src/calibre/translations/calibre.pot b/src/calibre/translations/calibre.pot
index 5607483f02..3e19a726f6 100644
--- a/src/calibre/translations/calibre.pot
+++ b/src/calibre/translations/calibre.pot
@@ -5,8 +5,8 @@
msgid ""
msgstr ""
"Project-Id-Version: calibre 0.6.6\n"
-"POT-Creation-Date: 2009-08-10 19:10+MDT\n"
-"PO-Revision-Date: 2009-08-10 19:10+MDT\n"
+"POT-Creation-Date: 2009-08-11 11:45+MDT\n"
+"PO-Revision-Date: 2009-08-11 11:45+MDT\n"
"Last-Translator: Automatically generated\n"
"Language-Team: LANGUAGE\n"
"MIME-Version: 1.0\n"
@@ -643,54 +643,52 @@ msgid ""
"\n"
"The output ebook format is guessed from the file extension of output_file. output_file can also be of the special format .EXT where EXT is the output file extension. In this case, the name of the output file is derived the name of the input file. Note that the filenames must not start with a hyphen. Finally, if output_file has no extension, then it is treated as a directory and an \"open ebook\" (OEB) consisting of HTML files is written to that directory. These files are the files that would normally have been passed to the output plugin.\n"
"\n"
-"After specifying the input and output file you can customize the conversion by specifying various options. the available options depend on the input and output file types. To get help on them specify the input and output file and then use the -h option.\n"
-"\n"
-"You can also get detailed help on all the options any input/output pair of formats supports by specifying the -h flag after the input and output filenames.\n"
+"After specifying the input and output file you can customize the conversion by specifying various options. The available options depend on the input and output file types. To get help on them specify the input and output file and then use the -h option.\n"
"\n"
"For full documentation of the conversion system see\n"
msgstr ""
-#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:101
+#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:97
msgid "INPUT OPTIONS"
msgstr ""
-#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:102
+#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:98
msgid "Options to control the processing of the input %s file"
msgstr ""
-#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:108
+#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:104
msgid "OUTPUT OPTIONS"
msgstr ""
-#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:109
+#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:105
msgid "Options to control the processing of the output %s"
msgstr ""
-#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:123
+#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:119
msgid "Options to control the look and feel of the output"
msgstr ""
-#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:138
+#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:134
msgid "Control auto-detection of document structure."
msgstr ""
-#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:148
+#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:144
msgid "Control the automatic generation of a Table of Contents. By default, if the source file has a Table of Contents, it will be used in preference to the automatically generated one."
msgstr ""
-#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:158
+#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:154
msgid "Options to set metadata in the output"
msgstr ""
-#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:161
+#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:157
msgid "Options to help with debugging the conversion"
msgstr ""
-#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:185
+#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:181
msgid "List builtin recipes"
msgstr ""
-#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:254
+#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:250
msgid "Output saved to"
msgstr ""
@@ -4129,7 +4127,7 @@ msgid ""
"p, li { white-space: pre-wrap; }\n"
"
\n"
"Set a regular expression pattern to use when trying to guess ebook metadata from filenames.
\n"
-"A reference on the syntax of regular expressions is available.
\n"
+"A reference on the syntax of regular expressions is available.
\n"
"Use the Test functionality below to test your regular expression on a few sample filenames. The group names for the various metadata entries are documented in tooltips.