| 
			
			 | 
		#196 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489 
				Karma: 2914715 
				Join Date: Jun 2012 
				
				
				
				Device: kobo touch 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#197 | |
| 
			
			
			
			 Zealot 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105 
				Karma: 37668 
				Join Date: Feb 2012 
				
				
				
				Device: Kobo Touch 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Anyway, a few hours of RegEx search&replace solved this :-). This was another lesson of the importance of backing up...  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#198 | 
| 
			
			
			
			 Zealot 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105 
				Karma: 37668 
				Join Date: Feb 2012 
				
				
				
				Device: Kobo Touch 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			friedmandu, tshering: I'm sorry, I just tried to put javascript to an another book, without success, so it seems that this method not works all the time. I can't share with you the book which was this worked on (or describe the procedure in details), but if you send me a file which has highlighting problems, I could try to cure that to see whether its working or not.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#199 | |
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489 
				Karma: 2914715 
				Join Date: Jun 2012 
				
				
				
				Device: kobo touch 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Anyway, thank you for your offer to help.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#200 | 
| 
			
			
			
			 Generally Awesome Person 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,100 
				Karma: 2191133 
				Join Date: Jan 2013 
				Location: /dev/kmem 
				
				
				Device: Kobo Clara HD, Kindle Oasis 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			What other Kobo tags did you have to add? Maybe it's something I can build in to the plugin?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#201 | |
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489 
				Karma: 2914715 
				Join Date: Jun 2012 
				
				
				
				Device: kobo touch 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 As for question 3, I take it to be a simple question on how to reference js files in general. You my google for it or have a look here  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#202 | |
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489 
				Karma: 2914715 
				Join Date: Jun 2012 
				
				
				
				Device: kobo touch 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 The other problem I had was with ranges of text that were not at all covered by kobo span tags, as for instance tables and lists. This was of course my fault, since I did not think of those case at all to start with. I do not know about your plug-in (and I do not know whether calibre changes tables and list to some other constructions), but judging from your description earlier in this thread your plug-in might be prone to these problems too. Last edited by tshering; 04-15-2013 at 05:36 AM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#203 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 603 
				Karma: 641742 
				Join Date: Mar 2012 
				Location: DE 
				
				
				Device: Kobo Glo 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			After using the KoboTouchExtended plugin to I found that 
		
	
		
		
			the first html-tag or span-tag after a <span class="koboSpan" id="kobo.1.1"> a white space before this tag is removed. Original text (* represents a space, that is removed after conversion): Code: 
	<h2>Moody’s plaatst vraagtekens bij waardering*<small>DE</small></h2> … <p>Het bod van*<span class="smallcaps">JAB</span> waardeert <span class="smallcaps">DEMB</span> in totaal op 7,5 miljard euro. Code: 
	<h2><span class="koboSpan" id="kobo.1.1">Moody’s plaatst vraagtekens bij waardering<small>DE</small></span></h2> … <p><span class="koboSpan" id="kobo.4.1">Het bod van<span class="smallcaps">JAB</span> waardeert <span class="smallcaps">DEMB</span> in totaal op 7,5 miljard euro. Green: second, third… html-tag/code: space not removed. Is there a way to fix this? It should only be fixed if a white space precedes the first html-tag/code. Not just simply add one. Last edited by Anak; 04-15-2013 at 11:03 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#204 | |
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 603 
				Karma: 641742 
				Join Date: Mar 2012 
				Location: DE 
				
				
				Device: Kobo Glo 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 But nowadays the kobo.css is just an empty file and the kobo.js is the same in every kepub. Kobo should not put these files into their kepubs but place them on their devices and write a routine that looks for them. The only interesting thing i've found in the kobo.js is the "webkit-nbsp-mode" implementation by Kobo: CSS property: -webkit-nbsp-mode Description Defines the behavior of nonbreaking spaces within text. Syntax: -webkit-nbsp-mode: normal | space; Values • normal (default): Nonbreaking spaces are treated as usual. • space: Nonbreaking spaces are treated like standard spaces. Kobo.js Kobo's implementation in the kobo.js file: Code: 
	webkitNbspMode = 'space'; Code: 
	webkitNbspMode = 'normal'; Code: 
	[Reading] readingWebkitNbspMode=normal  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#205 | 
| 
			
			
			
			 Watching the Sky 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 239 
				Karma: 634112 
				Join Date: Oct 2012 
				Location: Winnipeg, MB 
				
				
				Device: Kobo Aura 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			The KED currently chokes when trying to send CBR/CBZ files to the Kobo Glo.  Is there a chance you could add a small routine to check the type of file being sent and perform the extended features operations only on files that might support it, ignoring others?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#206 | ||
| 
			
			
			
			 Generally Awesome Person 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,100 
				Karma: 2191133 
				Join Date: Jan 2013 
				Location: /dev/kmem 
				
				
				Device: Kobo Clara HD, Kindle Oasis 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Quote: 
	
  | 
||
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#207 | 
| 
			
			
			
			 Watching the Sky 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 239 
				Karma: 634112 
				Join Date: Oct 2012 
				Location: Winnipeg, MB 
				
				
				Device: Kobo Aura 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#208 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 603 
				Karma: 641742 
				Join Date: Mar 2012 
				Location: DE 
				
				
				Device: Kobo Glo 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#209 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,841 
				Karma: 5843878 
				Join Date: Oct 2010 
				Location: UK 
				
				
				Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Is the 2.5 upgrade going to affect Joel's plugin? I am thinking specifically of this post: if the kobo driver changes in Calibre, would Joel's plugin still work? I suspect this question may be technically daft, but by know you know I am no techie  
		
	
		
		
		
		
		
		
		
		
		
		
	
	 
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#210 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905 
				Karma: 47303824 
				Join Date: Jul 2011 
				Location: Sydney, Australia 
				
				
				Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			It will affect it in the same way that it affect the main plugin. Both have an option to support newer firmware, so just check that for the driver you are using. I have made the changes to the main plugin and they should be in the next calibre release. After that, there won't be a problem for either plugins. Unless one of us break some code. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Unfortunately, I have just remembered there might not be a calibre release this week. Kovid said he was going to be away and might not be able to do the release this week.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
| Tags | 
| epub, kepub, kobo | 
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Downloading kepub to ADE | scr212 | Kobo Reader | 14 | 10-14-2012 03:37 PM | 
| KePub Toolbox | Thasaidon | Kobo Reader | 1 | 08-08-2012 08:49 AM | 
| What will happen/I gain if I forced an ePub book to a KePub book? | andsoitgoes | Kobo Reader | 4 | 04-04-2012 05:33 PM | 
| Touch Any hack/work-around to sync bookmarks of non Kobo ePub (kepub) | andsoitgoes | Kobo Reader | 3 | 04-03-2012 04:56 PM | 
| Kobo Adobe Epub is a Kepub instead | rashkae | Kobo Reader | 61 | 01-13-2012 07:15 AM |