| 
			
			 | 
		#31 | 
| 
			
			
			
			 Hedge Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 802 
				Karma: 19999999 
				Join Date: May 2011 
				Location: UK/Philippines 
				
				
				Device: Kobo Touch, Nook Simple 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I tested it last night and after I changed the date format at line 13 it worked well.  I will certainly be using it. 
		
	
		
		
		
		
		
		
		
		
		
		
		
			One minor point. I have problems seing some colours, especially yellow. Could you change the highlighting of the styles to cyan or green and repost. Thanks Last edited by Thasaidon; 06-09-2012 at 05:27 AM. Reason: fumble fingers  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#32 | |
| 
			
			
			
			 Berti 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,197 
				Karma: 4985964 
				Join Date: Jan 2012 
				Location: Zischebattem 
				
				
				Device: Acer Lumiread 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 And now you can give the highlighting any ugly color you want  , i built in a user-interface to define the colors....
		 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#33 | |
| 
			
			
			
			 Hedge Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 802 
				Karma: 19999999 
				Join Date: May 2011 
				Location: UK/Philippines 
				
				
				Device: Kobo Touch, Nook Simple 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#34 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 698 
				Karma: 150000 
				Join Date: Feb 2010 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			FWIW, I tried it in LibreOffice v. 3.5.3.2, but it fails with an error  
		
	
		
		
		
		
		
		
		
		
		
		
	
	"BASIC syntax error. Symbol expected" at this code (among several): Code: 
	Rem Attribute VBA_ModuleType=VBAModule Option VBASupport 1 Option Explicit Type file <=== error at this line name As String size As Long End Type  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#35 | |
| 
			
			
			
			 Berti 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,197 
				Karma: 4985964 
				Join Date: Jan 2012 
				Location: Zischebattem 
				
				
				Device: Acer Lumiread 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Maybe LO doesn't support user defined types. But the more probale reason is that it collides with the reserved names of LO. Replace "file" with "datei" (or "ficher"   ) in the "Type" and in the "Dim" - declaration and see if it works.
		 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#36 | ||
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 698 
				Karma: 150000 
				Join Date: Feb 2010 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks for your reply. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Quote: 
	
 Quote: 
	
 I also wondered if the actual error (from LO's point of view) occurred earlier in the module, and the line it indicated was merely where the interpreter realized there was an error, not the actual error itself. But messing with the two lines above the type declaration did not help either. Oh, well.  | 
||
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#37 | |
| 
			
			
			
			 Berti 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,197 
				Karma: 4985964 
				Join Date: Jan 2012 
				Location: Zischebattem 
				
				
				Device: Acer Lumiread 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 You're right, but looked into the wrong direction ![]() It's the variable "name" (the first of each Type), which hurts. I'll fix that for the next release, but the next problem will be to replace the "Get" somehow. In MSO, it reads the whole file into a string, in OO it's unknown (Maybe not in LO). That's probably not fixed with a simple replace...  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#38 | |
| 
			
			
			
			 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: 
	
 Hitch  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#39 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,625 
				Karma: 3120635 
				Join Date: Jan 2009 
				
				
				
				Device: Kindle PW3 (wifi) 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#40 | |
| 
			
			
			
			 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 mean, you'd have to (I don't program, so--those with real brains, leap in) aggregate ALL the styles and elements; probably doing so from the top-down, so most-used to least-used makes the most sense; search for all instances of "p," first, and then all classes used in the ePUB--and then do a string-match in the CSS...does that sound right, ye olden programmers? I mean, it seems more efficient to do it by element and then by class, but sometimes, what seems elementary (sorry, sorry, you guys KNOW I can't resist bad punnage!) isn't. We use something SOMEWHAT like this in two places; we have a PERL script and an NTPro script that both check for this--but it's in the HTML. I don't know how we'd adopt it to run inside Sigil, unless we took the additional steps of copying the file, merging it, and exploding it, but even so...it would be a SLICK addition in Sigil. I would infinitely rather the "used in the ePUB but not in the stylesheet" functionality than simply cleaning up the Stylesheet. I know some folks need that--and it would be nice fudge topping--but it's not as needed as the inverse. We have a House CSS that we use, so cleanup isn't as important for us, in the CSS itself...but I think everyone would love the missing classes thing. JMHO, Hitch  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#41 | 
| 
			
			
			
			 Berti 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,197 
				Karma: 4985964 
				Join Date: Jan 2012 
				Location: Zischebattem 
				
				
				Device: Acer Lumiread 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Shameless selfpromothion
			 
			 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#42 | |
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 A popular class used is <body class="text"> where text does not exist in the CSS. Also, dived classes are used at the beginning of a chapter that have no CSS style. I tend to remove the divs that div for the chapter title and then div for the body. No need of them at all.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#43 | |
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#44 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,891 
				Karma: 207182180 
				Join Date: Jan 2010 
				
				
				
				Device: Nexus 7, Kindle Fire HD 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Validation tools should stick to spec stuff... not stuff that simply annoys some of us more obsessive/compulsive coders out there.  
		 | 
|
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#45 | 
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			XML doesn't allow orphaned classes. So yes, it does break the XML rules and thus breaks the ePub rules. But, unused styles are not breaking anything.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Buy Broken or unused readers for the Museum | eBookLuke | Flea Market | 14 | 05-06-2012 12:30 PM | 
| Free Broken or unused readers for the Museum | eBookLuke | Flea Market | 0 | 05-22-2011 07:52 AM | 
| How often should an unused Kobo be charged? | Gary_M_Mugford | Kobo Reader | 2 | 10-30-2010 11:38 PM | 
| Unutterably Silly Zelda's gallery of used and unused avatars | Wetdogeared | Lounge | 40 | 05-16-2009 12:31 PM | 
| iLiad The six unused connections | design256 | iRex Developer's Corner | 10 | 09-13-2006 09:52 AM |