|  10-02-2014, 02:09 PM | #1 | 
| Color me gone            Posts: 2,089 Karma: 1445295 Join Date: Apr 2008 Location: Central Oregon Coast Device: PRS-300 | 
				
				A token for current path
			 
			
			Is there is function or token for the current path which I could use in replace? Right now I get my one big html file out of OCR with a long list of bookmark ids. When the big html file is split the ids don't have the long path appended so they don't appear in any file for links. So I'd like to be able to append the current path in a S/R, then they will pop up in the TOC or elsewhere. | 
|   |   | 
|  10-02-2014, 02:43 PM | #2 | 
| Ex-Helpdesk Junkie            Posts: 19,421 Karma: 85400180 Join Date: Nov 2012 Location: The Beaten Path, USA, Roundworld, This Side of Infinity Device: Kindle Touch fw5.3.7 (Wifi only) | 
			
			Huh? I thought when you split a file, the editor kept track of and updated the links...
		 | 
|   |   | 
|  10-02-2014, 03:13 PM | #3 | 
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | 
			
			@mrmikel Gleaned from a series of your posts: You are fighting a system that works fairly well. Sigil split will adjust links to all existing files (NB deleting a file that has a link will result in a broken link that will need repair by hand) Using Sigil split : Immediate: Ctrl-Enter Insert Marker (for later): Ctrl-Shift-Enter Split at Markers: F6 id on <h# tags are not needed if you use chapter per file as Top of file is assumed for the TOC | 
|   |   | 
|  10-02-2014, 03:15 PM | #4 | 
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | 
			
			BTW since this is  Calibre thread    Calibres split tool also adjusts links | 
|   |   | 
|  10-02-2014, 03:20 PM | #5 | 
| Ex-Helpdesk Junkie            Posts: 19,421 Karma: 85400180 Join Date: Nov 2012 Location: The Beaten Path, USA, Roundworld, This Side of Infinity Device: Kindle Touch fw5.3.7 (Wifi only) | |
|   |   | 
|  10-02-2014, 08:09 PM | #6 | 
| Color me gone            Posts: 2,089 Karma: 1445295 Join Date: Apr 2008 Location: Central Oregon Coast Device: PRS-300 | 
			
			It works fine when I bring it in, but after I change name= to id= it breaks all the links. That is the sequence, and it doesn't have anything to do with splits.
		 Last edited by mrmikel; 10-02-2014 at 08:18 PM. | 
|   |   | 
|  10-02-2014, 09:56 PM | #7 | 
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 Join Date: Jan 2010 Device: Nexus 7, Kindle Fire HD | 
			
			Changing the name of all "name" attributes to "id" shouldn't break any links ... provided the original hrefs pointing to those names/ids were valid to begin with.
		 | 
|   |   | 
|  10-02-2014, 10:01 PM | #8 | 
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | 
			
			did you manage to damage the quote pair in the process name="foo" id=bar" | 
|   |   | 
|  10-03-2014, 07:55 AM | #9 | 
| Color me gone            Posts: 2,089 Karma: 1445295 Join Date: Apr 2008 Location: Central Oregon Coast Device: PRS-300 | 
			
			My fault, inconsistent conversion by the OCR program. I will have to check the output more carefully. The links are there all the time, but anchors only most of the time, not all the time. My new first step is to click on all the links in the TOC to see which are broke. Last edited by mrmikel; 10-03-2014 at 10:15 AM. | 
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| PRS-350 About the epub custom font path And how to know the path? | 52manhua | Sony Reader Dev Corner | 6 | 12-20-2013 01:28 AM | 
| Red Leaves and the Living Token - a new, atypical, fantasy novel | benburrell | Self-Promotions by Authors and Publishers | 12 | 09-08-2012 03:53 PM | 
| PRS-600 Gift token request | greylin | Sony Reader | 0 | 02-04-2011 06:34 PM |