| 
			
			 | 
		#1 | 
| 
			
			
			
			 absolute beginner 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 323 
				Karma: 1750999 
				Join Date: May 2017 
				Location: Go with the wind (43°19'17.7"N 2°00'19.4"W) 
				
				
				Device: ka1 
				
				
				 | 
	
	
	
		
		
			
			 
				
				SVG files treatment
			 
			
			
			Why can not treat svg files like a text file? 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Why can not see the resulting svg in the viewer when editing? Thanks for pay attention.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I have no idea what you are asking. The editor does allow editing of svg files. And if you want to view them, you include them in an html file and view that file instead.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 absolute beginner 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 323 
				Karma: 1750999 
				Join Date: May 2017 
				Location: Go with the wind (43°19'17.7"N 2°00'19.4"W) 
				
				
				Device: ka1 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks for your reply. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Now when I want to change "ns#" to "ns" along all the svg files I must go one by one because svg files don't have the same treatment as text files (html, xhtml, opf,...). And in the other hand, when you open an svg file, you can't see anything in the preview, it's empty. I think is a good idea to show the image.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Use the selected files mode of the search and replace and select all your svg files before doing the S&R. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	As for previews of svg files, not a feature I am interested in implement, but patches are welcome.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | ||
| 
			
			
			
			 absolute beginner 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 323 
				Karma: 1750999 
				Join Date: May 2017 
				Location: Go with the wind (43°19'17.7"N 2°00'19.4"W) 
				
				
				Device: ka1 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks for your reply. 
		
	
		
		
			Quote: 
	
 I selected "selected files" mode of S&R. Then I selected the concerned files. After I typed that I wanted to change I taped on "change all" buttun. The result (can be seen in the image) is: "You don't selected any file in the explorer". If I select "all files" mode of S&R the search is made but does not find anything. When I select "opened files" does seem to do nothing at all, no message, no change... Quote: 
	
  | 
||
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			That should fix it: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	https://github.com/kovidgoyal/calibr...32be7eb515f3e5 As for implementing preview, here you go: https://github.com/kovidgoyal/calibr...d775475dbf992a  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,269 
				Karma: 16544702 
				Join Date: Sep 2009 
				Location: UK 
				
				
				Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			@Kovid, 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Whilst you're in SVG support mode can I raise the following which I've been meaning to mention for a while? If a book contains .svg images and I run 'Beautify All Files', the .svg files are not beautified. If I open an individual .svg and run 'Beautify current file' it is beautified. Shouldn't 'Beautify All Files' actually mean 'all files'?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,269 
				Karma: 16544702 
				Join Date: Sep 2009 
				Location: UK 
				
				
				Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | |
| 
			
			
			
			 absolute beginner 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 323 
				Karma: 1750999 
				Join Date: May 2017 
				Location: Go with the wind (43°19'17.7"N 2°00'19.4"W) 
				
				
				Device: ka1 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 ![]()  
		 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| EPUB3 and svg files | roger64 | ePub | 20 | 07-12-2022 02:19 PM | 
| Can't add cover in Calibre -- get "svg-error" (the property 'svg' should be declared) | Just some guy | Editor | 7 | 04-11-2017 10:54 PM | 
| Convert SVG to PNG/JPEG in ePUB files | bunglegrind | Conversion | 2 | 04-24-2016 06:01 PM | 
| epub from SVG files | sachin | ePub | 7 | 05-11-2012 10:04 AM | 
| Which is the best way to add SVG (vector graphics) to PDF files ? | DSpider | 0 | 04-01-2011 08:27 PM | |