![]() |
#331 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
For people it is easy, go to the font directory and just copy it... |
|
![]() |
![]() |
![]() |
#332 | |
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:
I wish it were not so easy. I think that between Atlantis and whats-its, um, Jutoh, there are likely thousands, if not tens of thousands, (especially good old TNR) unlicensed fonts in eBooks around the globe. I'm stupid. I license fonts all the time. I even licensed an extortionate (to my way of thinking) font, just because I HAD to have it. It was a sans, with an absolutely lovely G. (I know. I'm odd, at best.) And have I used it? HARDLY. Planned to use it for my (then) new website. Ended up using something normal from the Goog. Hitch |
|
![]() |
![]() |
Advert | |
|
![]() |
#333 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,742
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Tools Version 1.18, Word 2010, Windows 10
When I try to update the S&R 'temporary' xml file nothing happens, and the Exit button does nothing, I have to click red X to dismiss the dialogue Reverted to Version 1.16 - same behaviour This looks like the checksum not changing problem we had before. I want to use my latest C:\_Miscellaneous\myReplaceRules.xml but once again I can't - even if I delete %AppData%\Toxaris\ePUBToolsSRRules.xml I can't ![]() Maybe it would it be better if I maintained %AppData%\Toxaris\ePUBToolsSRRules.xml directly? I might give that a go tomorrow. BR |
![]() |
![]() |
![]() |
#334 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Hmm. Are you sure the files are not in use? What you can try is to delete the option CRC32hash from the configuation file. That will cause a new hash to be created. I will look into the code to see what could cause this. Usually it is caused by open files.
The behaviour should not change in version 1.16 since nothing has been changed there. |
![]() |
![]() |
![]() |
#335 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,742
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Toxaris - files are not in use (other than by epubtools), to prove that I tried it immediately after a Windows restart.
I removed the CRC32HASH and tried again, same result. I'm attaching the config and log in a zip. The log is short because I tried this yesterday :-
I've had this problem several times - hopefully direct editing means I'll not get it again. Am I the only person who prefers to edit XML with a text editor, rather than fiddle around with Word tables? Wouldn't be surpised if I am. I probably edit my S&R rules more frequently than those who only use it to fix scanning glitches. I also (mainly) use it to de-jargonise. BR Last edited by BetterRed; 02-24-2016 at 02:16 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#336 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
It remains very strange. You are the only one, that I know off, that has this problem. I personally usually use the internal editor. I will look at the files and the code. If I remember correctly, that button just makes a copy and recreates the hash. So, no real rocket science. Oh, and of course it wants to validate the XML file.
|
![]() |
![]() |
![]() |
#337 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,742
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
I can see that the hash can be used avoid superfluous copying, thereby saving a tiny amount of disk wear-and-tear and a blink of an eye in time when the Recreate temporary S/R XML each use is checked. But if the options are as I have them. then surely the hash is irrelevant. I thought the whole point of that configuration was to give the user absolute control over the copying. And if it doesn't validate - then does (should) it show an error message? BR Last edited by BetterRed; 02-24-2016 at 04:01 PM. |
|
![]() |
![]() |
![]() |
#338 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,742
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
I just ran my xml file through this XML Validation and discovered I had lost a '/' on a closing tag. After fixing that error, the EpubTools S&R->Create temporary file features works. I wonder if there's an xml validator PI for Notepad++? Added : of course there is, I already have it - XML Tools ![]() BR Last edited by BetterRed; 02-24-2016 at 04:45 PM. |
|
![]() |
![]() |
![]() |
#339 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
A message box should be shown in case the file does not validate. What sometimes happens, is that the message box is hidden behind other forms and therefore it seems that a program is stuck when it is actually waiting for answer. Such a messagebox can be hard to select. I have seen it in rare cases. I will see if I can add some code to be absolutely sure this cannot happen. I use the CRC for multiple reasons. One is that the timestamp is not always enough. I have seen cases the timestamp is not changed or is changed with no changes to the file. In any case calculating a CRC32 hash is no rocket science in itself, it is a relative simple process. It is also calculated very quickly. **EDIT** I have run a test case of what you described (forgetting a slash in the ending tag) and your are correct. The validation will crash instead of reporting that it does not validate (and why). I will fix this of course. ***EDIT 2*** I have fixed this... The program will now not only crash, but also gives the reason why (as it should and was designed). Last edited by Toxaris; 02-25-2016 at 03:26 AM. |
|
![]() |
![]() |
![]() |
#340 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Actually the button you use do not use the hashes or any check in that regard. Even if it is the same file, it will just create a new file. The button you pressed is pretty 'dumb' in that area, as is intended.
|
![]() |
![]() |
![]() |
#341 | ||
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,742
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() From now on I'll be checking my XML in Notepad++, I've also flicked the auto-validate switch on. So hopefully Epub-tools will never see any errors. Quote:
I am wondering if the ongoing frustrations I've had with the XML rules feature have been due unreported errors in the XML file ever since the getgo. I've never explicitly fixed any errors, instead what I've been doing is to restore my rules and the saved rules from backup and then re-enter the changes and add comments as padding to force a checksum difference Ψ² BR Last edited by BetterRed; 02-25-2016 at 05:25 AM. |
||
![]() |
![]() |
![]() |
#342 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
Anyway, it is fixed now. If you want, I can sent you the validation scheme for the XML. I will wait a bit for the release of this, as I am testing the option to have equations/formulas exported as SVG in the ePUB instead of a bitmap image. That should give better images. |
|
![]() |
![]() |
![]() |
#343 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,742
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
No hurry, now we've tracked down the cause and I've enabled appropriate settings in the XML-Tools PI for Notepad++ the add-in should never see any bad XML, from me at least.
And if it should happen again I know what to look for - there's no shortage of XML validators ![]() BR |
![]() |
![]() |
![]() |
#344 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
|
|
![]() |
![]() |
![]() |
#345 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,742
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Toxaris - FYI, I bit the bullet! Converted my S&R rule tables to spreadsheets, which IMO is the best approach for reading and maintaining tabular data.
I'll have a script to save those as csv files, convert to xml, and then concatenate the xml 'header', the xml tables and the xml 'footer' to create a new MyReplaceRules.xml. That's the file I input into EPUB-Tools->Settings->S&R->Create temp S/R XML, as per my last screen shot. This 'approach' has been rattling around in my head for some time. BR |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |