GwR diagnostic for KG crash

This commit is contained in:
GRiker 2010-01-22 11:36:24 -07:00
parent 64611c1b0d
commit 6a8b4f9a21
2 changed files with 32 additions and 8 deletions

View File

@ -17,7 +17,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>20</x> <x>20</x>
<y>20</y> <y>70</y>
<width>241</width> <width>241</width>
<height>21</height> <height>21</height>
</rect> </rect>
@ -36,7 +36,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>20</x> <x>20</x>
<y>50</y> <y>100</y>
<width>241</width> <width>241</width>
<height>17</height> <height>17</height>
</rect> </rect>
@ -49,7 +49,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>20</x> <x>20</x>
<y>110</y> <y>160</y>
<width>171</width> <width>171</width>
<height>17</height> <height>17</height>
</rect> </rect>
@ -62,7 +62,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>300</x> <x>300</x>
<y>20</y> <y>70</y>
<width>231</width> <width>231</width>
<height>22</height> <height>22</height>
</rect> </rect>
@ -78,7 +78,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>300</x> <x>300</x>
<y>50</y> <y>100</y>
<width>231</width> <width>231</width>
<height>22</height> <height>22</height>
</rect> </rect>
@ -94,7 +94,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>300</x> <x>300</x>
<y>80</y> <y>130</y>
<width>231</width> <width>231</width>
<height>22</height> <height>22</height>
</rect> </rect>
@ -110,7 +110,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>20</x> <x>20</x>
<y>80</y> <y>130</y>
<width>241</width> <width>241</width>
<height>17</height> <height>17</height>
</rect> </rect>
@ -123,7 +123,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>300</x> <x>300</x>
<y>110</y> <y>160</y>
<width>231</width> <width>231</width>
<height>22</height> <height>22</height>
</rect> </rect>
@ -135,6 +135,29 @@
<string>*</string> <string>*</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" name="label_5">
<property name="geometry">
<rect>
<x>61</x>
<y>20</y>
<width>461</width>
<height>20</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Special Tags for Catalog Creation</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</widget> </widget>
<resources/> <resources/>
<connections/> <connections/>

View File

@ -2453,6 +2453,7 @@ class EPUB_MOBI(CatalogPlugin):
for (i,word) in enumerate(title_words): for (i,word) in enumerate(title_words):
hit = re.search('[0-9]+',word) hit = re.search('[0-9]+',word)
if hit : if hit :
print "library.catalog:CatalogBuilder.generateSortTitle(): translating '%s'" % word
translated.append(EPUB_MOBI.NumberToText(word).text) translated.append(EPUB_MOBI.NumberToText(word).text)
else: else:
translated.append(word) translated.append(word)