![]() |
#271 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,056
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Thank you, Toxaris! Now the settings area works fine!
|
![]() |
![]() |
![]() |
#272 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,767
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Actually changes to Rules Document are NOT being processed
I've noticed this a couple of times - sometimes when I make a change to a rules document the xml file doesn't get rebuilt next time I use the rules document. Until now I resolved by starting and stopping Word, sometimes several times.
But that's not working now - the only thing of significance that's changed is that I upgraded to Windows 10 Version 1511 build 10586 - but I can't imagine that's germane. Personally I would rather do something explicit to rebuild the xml file from the .doc when I change the doc file, rather than hoping it gets rebuilt when I use it, which may not be immediately after I change it. The attached screenshot contains what I think is the relevant information. Note the dates on my rules document (2015-11-16 (today)) and the xml file (2015-11-12 (last Thursday)) I'll try editing my changes directly into the XML file, looks easy enough. BR Last edited by BetterRed; 11-16-2015 at 02:05 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#273 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,767
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
![]() |
#274 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
1. When Word starts, a hash is calculated of the SR document specified in the settings. If the hash is different compared to the stored hash (or there is no stored hash), the SR xml file is created. This is done in the background. When this procedure runs, a flag is set (this gives the message you saw earlier). 2. If you start the SR process, the same check is done as in 1, to ensure that in the meantime no changes are made. 3. If you change the SR document in the settings, it will do the same as 1. To be honest without looking at the code I cannot determine if this is done when the document is selected or after saving the settings. I think it is the first. 4. If the SR document is edited with the editor, it will do the same as 1 again, but not in the background. After editing the SR document will be adapted and stored. The temporary XML file used for the editor becomes the new XML file (saves a lot of time...). So, if the XML is not recreated, the hash is probably not changed according to the hash procedure in .NET. I choose hash, because it should be more effective than size and/or date. Therefore I am a bit baffled that it doesn't work for you. Yes, but the changes are that they will be overwritten when a change in hash is detected in the Word file. What I will do is build in an option to choose between a SR document or a SR XML file. |
|
![]() |
![]() |
![]() |
#275 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,767
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Toxaris - I've always found it much easier to edit the word document directly, rather than via the Settings forms. After changing the document, I see a vertical maze looking progress thingy when I've run S&R as its rebuilding the xml file.
The last thing I did was to relocate some lines in the tables. If the hash algorithm doesn't take relative position of text elements into account that would explain why its 'not working' - (2 + 3 + 4) = 9 and (3 + 4 + 2) = 9. But they are not the same 9 ![]() In my opinion it would be better to give the user a button to click, labelled something like "Build/Compile/Generate Run Time Rules Database Now". But all of that said I think I'd prefer to maintain the XML file directly - whilst it may appear to be more verbose than a table in a Word document or a Word Form, assuming you have a text editor that has a snippet library then it's easy to maintain - I use Notepad++ and the SnippetsPlus PI. BR Last edited by BetterRed; 11-16-2015 at 06:17 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#276 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Hmm, I can imagine that in that case the hash could be the same. Still strange, since a docx is a zipfile. One would assume that the hash would change.
What I will do is a bit more. In the settings screen there will be an option to indicate whether you want to work with the xml or Word document. There will also be a button for converting the document to the xml as well. If the xml is to be used, no conversions anymore in the background. Also the editor will be using either the Word document or the xml. It will be some work though to do it right. |
![]() |
![]() |
![]() |
#277 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,767
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() For me at least there's no urgency on this, I'm happy editing the XML directly ![]() BR I had an instance of software relying on a file checksum changing to indicate a 'new version' was available (MD5 or SHA-1, I forget which). Unfortunately a 'new version' had the same checksum as the 'old version', even though I knew for a fact they were not the same. This was borne out by the fact that the file date, and size had changed, and Beyond Compare reported differences. Interestingly the CRC32 checksums on the two files were different. |
|
![]() |
![]() |
![]() |
#278 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 296
Karma: 1618384
Join Date: Aug 2010
Device: Kindle
|
![]() Quote:
Does your Word add-in work on an iMac? I can run windows but prefer OS. |
|
![]() |
![]() |
![]() |
#279 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 296
Karma: 1618384
Join Date: Aug 2010
Device: Kindle
|
Ok, found the English page.
|
![]() |
![]() |
![]() |
#280 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Nope, it does not work on an iMac. There is nothing I can do about that, since the required libraries are not released by Microsoft. Also, even if they were released, it would be best effort only since I don't own an iMac.
|
![]() |
![]() |
![]() |
#281 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 296
Karma: 1618384
Join Date: Aug 2010
Device: Kindle
|
Thanks for the reply. I understand how hard it is to write software, much less software for different platforms. I'll have to check to see if I've got Word on my PC side of the Mac.
|
![]() |
![]() |
![]() |
#282 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 296
Karma: 1618384
Join Date: Aug 2010
Device: Kindle
|
I'm gong to send of a pocket book to one of the scan services and have it returned as a word doc. Can anyone give me an idea about the level of effort required to proof it? What are the typical errors that will be found. Do I have to read the whole book? Will the Word Add-In catch most of the problems?
|
![]() |
![]() |
![]() |
#283 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
You'll have a lot of text-sizing errors, which are represented in the output HTML as spans. Lots, and lots, and lots of spans. (DUH, corrected, thank you, Peter!). Then you'll have the fairly endless broken paragraph and page-ending errors; those are ubiquitous. The Word add-in does a pretty good job at finding possible broken paragraphs, particularly those broken mid-sentence. What it can't do--and no automated system can--is find those paragraphs that have the end of one sentence at or near the right-hand-margin on one page, and continue, flush-left, with a capitalized first letter at the top of the next page. Only human reading and decision-making can handle those. This--this very thing, proofing post-scan Word files--is the single biggest obstacle that we have with authors/publishers doing their backlists into eBooks. NONE of them want to do this step. ALL of them think that either a) this should be the scanning company's job, or b) this should be the formatting company's job. None of them are willing to accept that as publishers, it's THEIR job. The single biggest glitch is that they have zero interest in learning the underpinnings of Word. Most of them don't know how to see pilcrows, much less figure out page breaks versus section breaks, etc. The scanning companies don't want to proof for that type of errata, (broken paragraphs and the like) and we certainly don't; we're not editors or proofreaders. (Sorry, I digress). Anyway, that's what you should expect. Tox, who has done thousands of scans, will likely have more feedback, but that's at the top of what I see. Broken paragraphs; section/page breaks that have to be removed; paragraphs that may or may not be breaking across pages; typical scan OCR errors; and font/text-sizing errors. Oh, yes: you absolutely have to proofread the whole thing. Offered FWIW. Hitch Last edited by Hitch; 12-05-2015 at 06:43 PM. Reason: Idiotic scan-span typos. |
|
![]() |
![]() |
![]() |
#284 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,545
Karma: 79436716
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Hitch.... SPANS not SCANS
|
![]() |
![]() |
![]() |
#285 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Save any Document from Microsoft Word 2007 to EPUB using a Free Add-in from Aspose | romeok | ePub | 45 | 05-03-2017 03:33 PM |
Automatically add tag if word/phrase found in ebook? | eosrose | Calibre | 3 | 11-16-2011 06:48 AM |
Doc Splitter-Macro or Add-in For Word 2003 | konrad | Workshop | 0 | 03-08-2011 03:43 PM |
Can't see lit add in for MS Word | ray100 | Reading and Management | 3 | 08-12-2009 02:59 AM |