| 
			
			 | 
		#16 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 21 
				Karma: 10 
				Join Date: Apr 2013 
				
				
				
				Device: Kindle Paperwhite 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Is there any news on how to get soft hyphens working? I've tried pasting in the soft hyphens into the aliases using the raw output as a guide, and it's not recognizing any aliases that have soft hyphens.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#17 | |
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 328 
				Karma: 800105 
				Join Date: Feb 2013 
				
				
				
				Device: PW1 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 The main issue I'm running into is that words don't always have a single soft hyphen in them, sometimes they have 2 or 3. Unless I can come up with a fancy regular expression that can match the word and still work properly with the HTML-parsing library I'm using, I'm not sure what else I can do. The only other thing I can think of is to brute-force it by searching every possible combination of position and amount of soft hyphens in every term, but that seems a bit excessive. If anyone has a simpler solution I'm all ears.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#18 | |
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 230 
				Karma: 13495 
				Join Date: Feb 2009 
				Location: SoCal 
				
				
				Device: Kindle 3, Kindle PW,  Pocketbook 301+, Pocketbook Touch, Sony 950, 350 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Last edited by EbokJunkie; 11-23-2014 at 08:34 PM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#19 | |
| 
			
			
			
			 Member 
			
			![]() Posts: 21 
				Karma: 10 
				Join Date: Apr 2013 
				
				
				
				Device: Kindle Paperwhite 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 EDIT: Awww yis, that worked perfectly. I opened it with Sublime Text and saved as UTF-8 instead of Western that Notepad uses. Thank you SO MUCH! Last edited by trekky0623; 11-23-2014 at 07:19 PM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#20 | |
| 
			
			
			
			 Member 
			
			![]() Posts: 21 
				Karma: 10 
				Join Date: Apr 2013 
				
				
				
				Device: Kindle Paperwhite 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 But does C# support regex search? Why not search for aliases like this: alias: Nessarose search:N\x{00AD}*e\x{00AD}*s\x{00AD}*s\x{00AD}*a\x {00AD}*r\x{00AD}*o\x{00AD}*s\x{00AD}*e Which will match soft hyphens 0 or more times between each letter, guaranteeing to find every instance of that term regardless of soft hyphens included in it. If you wanted to be absolutely sure, you could do some more fancy regex: search: Code: 
	N(\x{00AD}|­|­|­|­|­)*e(\x{00AD}|­|­|­|­|­)*s(\x{00AD}|­|­|­|­|­)*s(\x{00AD}|­|­|­|­|­)*a(\x{00AD}|­|­|­|­|­)*r(\x{00AD}|­|­|­|­|­)*o(\x{00AD}|­|­|­|­|­)*s(\x{00AD}|­|­|­|­|­)*e
Code: 
	(\x{00AD}|­|­|­|­|­)*
If C# supports inline mode changes like Perl, you could even make that string case-insensitive while preserving the case sensitivity of the alias: Code: 
	((?i)\x{00AD}|­|­|­|­|­(?-i))*
Last edited by trekky0623; 11-24-2014 at 11:53 AM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#21 | |
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 328 
				Karma: 800105 
				Join Date: Feb 2013 
				
				
				
				Device: PW1 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Thanks for your suggestion! Last edited by Ephemerality; 11-25-2014 at 01:18 AM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#22 | 
| 
			
			
			
			 Enthusiast 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 26 
				Karma: 2716 
				Join Date: Oct 2014 
				
				
				
				Device: Kindle 4, Kindle Voyage 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I can't seem to get the generated xray to work on the Kindle Voyage (latset update). I tried on the Paperwhite, it worked; but when i put the same files on the Voyage, the xray file disappears as soon as I open the books. Anyone else having trouble with that?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#23 | |
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 328 
				Karma: 800105 
				Join Date: Feb 2013 
				
				
				
				Device: PW1 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 If you have any books from Amazon on it that have X-Ray working, you can send me one of the X-Ray .asc files via PM and I can have a look at it to see if it is any different.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#24 | |
| 
			
			
			
			 Member 
			
			![]() Posts: 21 
				Karma: 10 
				Join Date: Apr 2013 
				
				
				
				Device: Kindle Paperwhite 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Code: 
	Something went wrong while searching for start of highlight. Was looking for (or one of the aliases of): Galinda Upland (aka Glinda) Searching in: “Please, it is <i class="calibre10" aid="F8915">Ga</i>linda. The proper old Gil*likinese pro*nun*ci*ation, if you don’t mind.” One idea I just had is that, in Notepad++, which is the only thing I can use to create proper chapter markers, it counts certain characters like the soft hyphen as 2 characters. I have no idea why, but that did cause me some trouble in making chapter files at first. Last edited by trekky0623; 11-24-2014 at 07:47 PM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#25 | |
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 328 
				Karma: 800105 
				Join Date: Feb 2013 
				
				
				
				Device: PW1 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Edit: The Voyage does have a new X-Ray format, in an SQLite database. Currently looking through it, not sure how far I'll get without the actual device to see what it looks like when it's displayed. Last edited by Ephemerality; 11-24-2014 at 08:45 PM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#26 | |
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 328 
				Karma: 800105 
				Join Date: Feb 2013 
				
				
				
				Device: PW1 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 So there's some issue due to the encoding that I don't entirely understand... Finished a test version of a converter to convert from the old X-Ray format to the new one that the Voyage is using. If anyone else has a Voyage and wants to try it, send me a PM. It's a command-line tool, so users should be comfortable with that. Last edited by Ephemerality; 11-25-2014 at 10:59 PM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#27 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 21 
				Karma: 10 
				Join Date: Apr 2013 
				
				
				
				Device: Kindle Paperwhite 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I just tried out v. 1.36. I only got one error this time: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Code: 
	Something went wrong while searching for start of highlight. Was looking for (or one of the aliases of): Sarima Searching in: <span class="chbeg" aid="LTSU6">S</span>ar*ima,” said her young*est sis*ter, “wake up. Nap*time’s over. We have a house*guest at sup*per, and I need to know if we have to kill a hen. There are so few left, and what we give the trav*eler we miss all winter in eggs <nobr class="calibre13">. . .</nobr> What do you think?” Locations are still way, way off, especially later in the book. I'm still not sure how to fix that.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#28 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 21 
				Karma: 10 
				Join Date: Apr 2013 
				
				
				
				Device: Kindle Paperwhite 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			If this helps, these are the locations for the old version where I manually added soft hyphens and the locations for the new version: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Old version: Code: 
	"locs":[[658333,561,0,21],[658937,253,0,8],[659431,282,39,8],[660584,256,179,21],[660883,324,25,8],[661535,424,0,8],[662332,162,98,8],[662821,631,104,21],[663869,78,0,8],[664541,254,0,8],[668729,81,30,8],[668853,243,100,8],[669139,416,46,8],[669845,526,51,8],[670414,469,0,8],[672053,215,0,8],[672495,466,108,8],[673594,198,24,8],[675364,335,37,8],[676688,290,0,21],[677115,680,193,8],[678790,619,25,8],[686094,588,63,8],[691502,680,511,8],[696483,128,55,8],[704655,362,79,8],[705258,478,98,8],[705778,161,25,8],[706030,221,102,8],[707288,181,0,8]] Code: 
	"locs":[[622780,521,0,7],[623344,236,0,7],[623810,271,36,7],[624895,240,170,7],[625178,304,25,7],[625790,399,0,7],[626550,153,91,7],[627017,597,100,7],[627898,197,124,7],[628660,245,0,7],[632638,73,24,7],[632754,239,98,7],[633036,397,40,7],[633714,485,47,7],[634242,434,0,7],[635787,203,0,7],[636212,449,104,7],[637260,178,24,7],[638936,321,36,7],[640211,279,0,7],[640622,645,177,7],[642190,590,20,7],[649163,565,60,7],[654339,630,477,7],[659090,117,48,7],[666844,347,78,7],[667431,453,94,7],[667926,143,19,7],[668157,209,95,7],[669343,176,0,7]]  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#29 | ||
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 328 
				Karma: 800105 
				Join Date: Feb 2013 
				
				
				
				Device: PW1 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Quote: 
	
  | 
||
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#30 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 328 
				Karma: 800105 
				Join Date: Feb 2013 
				
				
				
				Device: PW1 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Version 1.41 has been uploaded. If anyone has a PW2 with firmware 5.6, it would be nice to see the the XRAY.asc files are in the old format or the new format. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	The Kindle Voyage is definitely using the new format, so it would be nice to see if it works at all for anyone with those devices.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
| Tags | 
| x-ray | 
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Windows 8 with Kindle Application | nomadreader | Amazon Kindle | 4 | 03-16-2013 03:47 PM | 
| Which Windows pc / Android application will keep epub annotations consistent? | internalaudit | Reading and Management | 0 | 03-01-2013 10:55 AM | 
| how do you create your application installer for Windows. | KevinH | Calibre | 4 | 01-07-2011 10:04 PM | 
| portable application for windows ebook reading | rheostaticsfan | Reading and Management | 8 | 06-27-2008 09:26 PM |