Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 02-22-2016, 02:56 PM   #331
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by Hitch View Post
Hi:

You mean...what you mean is, it's not that easy to make the program do it? You don't mean, it's not that easy for people, right? (Seriously...just clarifying what you said.)

Hitch
I mean making the program do it. Getting the fonts is easy, that is just one call. Getting the correct filenames of these fonts... not that easy at all. Getting the Bold/Italic/Bold Italic as well as the regular, even harder. There could be cases with localized versions that the current version does not even work. When the names are known, it is easier, as long as you take into account that not everybody uses c:\Windows. Oh, and the methods of getting the filenames also change depending on which version of Windows you use.
For people it is easy, go to the font directory and just copy it...
Toxaris is offline   Reply With Quote
Old 02-22-2016, 03:03 PM   #332
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
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:
Originally Posted by Toxaris View Post
I mean making the program do it. Getting the fonts is easy, that is just one call. Getting the correct filenames of these fonts... not that easy at all. Getting the Bold/Italic/Bold Italic as well as the regular, even harder. There could be cases with localized versions that the current version does not even work. When the names are known, it is easier, as long as you take into account that not everybody uses c:\Windows. Oh, and the methods of getting the filenames also change depending on which version of Windows you use.
For people it is easy, go to the font directory and just copy it...
Right. That's what I thought you meant. :-)

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
Hitch is offline   Reply With Quote
Advert
Old 02-24-2016, 06:37 AM   #333
BetterRed
null operator (he/him)
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: 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

Click image for larger version

Name:	Capture.JPG
Views:	202
Size:	48.7 KB
ID:	146666

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
BetterRed is online now   Reply With Quote
Old 02-24-2016, 01:06 PM   #334
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
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.
Toxaris is offline   Reply With Quote
Old 02-24-2016, 02:13 PM   #335
BetterRed
null operator (he/him)
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: 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 :-
  • uninstalled epubtools,
  • deleted %appdata%toxaris,
  • did fresh install, restored epubtools.cfg and ePUBToolsSRRules.xml from backup into the new %appdata%toxaris.
However, I tried editing ePUBToolsSRRules.xml directly with Notepad++. This seems to work fine. Of course I did it when Word wasn't running. I also edit Word's exclusion lists directly with Notepad++. I plan on editing ePUBToolsSRRules directly from now on.

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
Attached Files
File Type: zip EpubTools config and log.zip (1.4 KB, 170 views)

Last edited by BetterRed; 02-24-2016 at 02:16 PM.
BetterRed is online now   Reply With Quote
Advert
Old 02-24-2016, 03:23 PM   #336
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
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.
Toxaris is offline   Reply With Quote
Old 02-24-2016, 03:58 PM   #337
BetterRed
null operator (he/him)
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: 21,742
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Toxaris View Post
If I remember correctly, that button just makes a copy and recreates the hash. So, no real rocket science.
Apart from the fact that it uses invisible data (the hashes) to determine if the file has changed, rather than the visible modify timestamp of the designated file being later than the visible modify timestamp of the copy in %appdata%/toxaris.

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.

Quote:
Originally Posted by Toxaris View Post
Oh, and of course it wants to validate the XML file.
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.
BetterRed is online now   Reply With Quote
Old 02-24-2016, 04:37 PM   #338
BetterRed
null operator (he/him)
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: 21,742
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by BetterRed View Post
And if it doesn't validate - then does (should) it show an error message?
Apparently not.

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.
BetterRed is online now   Reply With Quote
Old 02-25-2016, 02:55 AM   #339
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by BetterRed View Post
Apparently not.

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
It does not? That is strange. In the code it is specifically specified that a message must be given in case the validation fails. Otherwise it would be useless of course... Can you sent me the xml file with the error? I would like to test this.
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.
Toxaris is offline   Reply With Quote
Old 02-25-2016, 03:44 AM   #340
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by BetterRed View Post
Apart from the fact that it uses invisible data (the hashes) to determine if the file has changed, rather than the visible modify timestamp of the designated file being later than the visible modify timestamp of the copy in %appdata%/toxaris.
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.
Toxaris is offline   Reply With Quote
Old 02-25-2016, 05:21 AM   #341
BetterRed
null operator (he/him)
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: 21,742
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Toxaris View Post
***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).
Do you really mean 'crash' - crash what - Windows, Word, Epub-Tools

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:
Originally Posted by Toxaris View Post
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.
That's what I understood too - that's why it irritated me so, the behaviour didn't match.

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.
BetterRed is online now   Reply With Quote
Old 02-25-2016, 11:35 AM   #342
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by BetterRed View Post
Do you really mean 'crash' - crash what - Windows, Word, Epub-Tools
I did mean crash. When I ran the test case on my development machine, it went straight to the debugger and give the issue. It would not go forward nor backwards. That is why you had to end the process/form hard.

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.
Toxaris is offline   Reply With Quote
Old 02-25-2016, 06:15 PM   #343
BetterRed
null operator (he/him)
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: 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
BetterRed is online now   Reply With Quote
Old 02-26-2016, 03:12 AM   #344
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by BetterRed View Post
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
Well, validation with regards to tags is one thing. The add-in also validates if the correct tags are used and if they are all there (there is one optional). So not only structure is checked.
Toxaris is offline   Reply With Quote
Old 02-26-2016, 05:46 AM   #345
BetterRed
null operator (he/him)
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: 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
BetterRed is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 07:48 PM.


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