Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 10-16-2019, 07:25 PM   #1
Mister L
Groupie
Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Posts: 179
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Help! Is it possible to merge 2 sets of .ini files?

I have no idea how this happened (Sigil crashed a couple of times recently and I presume it happened then, although I am pretty sure I still had everything intact after the last crash and right up to a few hours ago...) but I just noticed that somehow QUITE A LOT of my clips and saved searches have disappeared. Most of them, in fact.

I do have backups of the .ini files but the last one is from the 26th of September and like an eedjit despite making a mental note to do it "as soon as I finish this" I did not make new ones after recently adding / modifying some of these. x( (Lesson learned. Modify clips and / or saved searches, make new backup IMMEDIATELY afterwards).

Using the Compare feature of Notepad++ I can see that there are things present in the saved backup that are gone BUT also some of the recent changes have been preserved in the current files... so I don't think I want to just replace the current file with the backup.

But I also noticed there are numbers at the beginnings of the lines which presumably tell Sigil the order to present the items and if I copy-paste the missing stuff from one file to the other it wreaks havoc with those and I am really not sure I feel up to re-doing all the numbers by hand (saved searches has more than 700 lines of code, plus in addition to adding some new things recently I also modified the order of certain groups). :/

So my question is this:
Is there any way to merge two sets of .ini files to keep the most recent info from each one and get as complete a set of data as possible? (maybe using something a little more sophisticated than just a text editor?)

I realise this is unlikely but before I give up I'd rather ask because you never know...

(Even better --but obviously I don't believe this will be possible even for a second...-- is there any way to recover the .ini versions from, say, this morning / yesterday?)

I'll leave things alone until tomorrow (it's bedtime for me now) and hope that miraculously by then someone will have a solution (bearing in mind that I am not a dev and while I am not afraid of code my skills are limited and basic and my tools stop at Notepad++ and whatever comes by default with Windows 8.1). :/

Thanks in advance for any advice (other than "more frequent backups stupid." Please don't kick me while I'm down).
Mister L is offline   Reply With Quote
Old 10-16-2019, 08:47 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,761
Karma: 5706256
Join Date: Nov 2009
Device: many
Yes it is possible. It could be done with a text editor that supports just ascii and NOT utf-8 and very very careful cutting snd pasting be sure to get all of the data associated with each key.
KevinH is offline   Reply With Quote
Advert
Old 10-17-2019, 07:42 AM   #3
Mister L
Groupie
Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Posts: 179
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Quote:
Originally Posted by KevinH View Post
Yes it is possible. It could be done with a text editor that supports just ascii and NOT utf-8 and very very careful cutting snd pasting be sure to get all of the data associated with each key.
Oh good news! Can you recommend a text editor (I am pretty sure Notepad supports utf-8 and also the windows blocknotes does because it sometimes warns me not to save as ascii if I don't want to lose formatting)?

What about the numbers at the beginning of the lines though, if I leave them alone will they cause trouble / would I have to re-do them manually?
Mister L is offline   Reply With Quote
Old 10-17-2019, 07:44 AM   #4
Mister L
Groupie
Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Posts: 179
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
I'm so furious at myself for this, usually I am very "MY PRECIOUSSSSS" about my ini files and the instant I make a change I make a new backup, I have all the backups in a folder locally and the most recent one is also stored in dropbox JUST TO BE SURE... of course it had to be the ONE TIME I don't make a new backup that I lose them.
Mister L is offline   Reply With Quote
Old 10-17-2019, 08:21 AM   #5
Mister L
Groupie
Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Posts: 179
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Quote:
Originally Posted by Mister L View Post
Oh good news! Can you recommend a text editor (I am pretty sure Notepad supports utf-8 and also the windows blocknotes does because it sometimes warns me not to save as ascii if I don't want to lose formatting)?

What about the numbers at the beginning of the lines though, if I leave them alone will they cause trouble / would I have to re-do them manually?
Okay I've installed text-morph because it was the first text editor for ascii I found (I couldn't find a way to select ascii format anywhere in NotePad or windows block-notes).

So now I'm really just worried about the line numbers: are they going to be problematic? Can Sigil sort out duplicates and correct them or is that asking too much? (If I just copy-paste directly I am almost sure I will end up with duplicate numbers).
Mister L is offline   Reply With Quote
Advert
Old 10-17-2019, 09:14 AM   #6
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,761
Karma: 5706256
Join Date: Nov 2009
Device: many
Run a test. First just copy both ini files to create backups in case a mistake is made. Then start with a fresh default or known good ini file created by Sigil. Then copy from one of the ini files just one item and paste it into the known good ini. Fire up Sigil to see if it is recognized. Close out of Sigil. Then repeat with something from the other ini file. You may have to renumber some of the numbered list. Fire up Sigil to see if it was accepted.

Rinse and repeat.
KevinH is offline   Reply With Quote
Old 10-17-2019, 09:59 AM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Mister L View Post
Oh good news! Can you recommend a text editor (I am pretty sure Notepad supports utf-8 and also the windows blocknotes does because it sometimes warns me not to save as ascii if I don't want to lose formatting)?

What about the numbers at the beginning of the lines though, if I leave them alone will they cause trouble / would I have to re-do them manually?
Notepad++
It supports almost everything a coder could want
(while viewing) Colorizes tags, bracket pair match ...
and it is easy on the wallet: Free
theducks is offline   Reply With Quote
Old 10-17-2019, 06:09 PM   #8
Mister L
Groupie
Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Posts: 179
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Quote:
Originally Posted by KevinH View Post
Run a test. First just copy both ini files to create backups in case a mistake is made. Then start with a fresh default or known good ini file created by Sigil. Then copy from one of the ini files just one item and paste it into the known good ini. Fire up Sigil to see if it is recognized. Close out of Sigil. Then repeat with something from the other ini file. You may have to renumber some of the numbered list. Fire up Sigil to see if it was accepted.

Rinse and repeat.
Good plan, thanks. For the moment I have just gone back to the last saved version because I have files to finish for clients but hopefully soon I'll have time to try and cobble this whole thing back together. :/ The good news is, I think I didn't lose quite as much as I originally thought, so fiou.

Quote:
Originally Posted by theducks View Post
Notepad++
It supports almost everything a coder could want
(while viewing) Colorizes tags, bracket pair match ...
and it is easy on the wallet: Free
Thanks that's actually the one I already use (what would we do without the compare feature right ??) but I couldn't find a way to save as ascii, only other formats (ansi, utf-whatever...). Is there a trick I don't know?
Mister L is offline   Reply With Quote
Old 10-17-2019, 06:28 PM   #9
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Mister L View Post
Good plan, thanks. For the moment I have just gone back to the last saved version because I have files to finish for clients but hopefully soon I'll have time to try and cobble this whole thing back together. :/ The good news is, I think I didn't lose quite as much as I originally thought, so fiou.



Thanks that's actually the one I already use (what would we do without the compare feature right ??) but I couldn't find a way to save as ascii, only other formats (ansi, utf-whatever...). Is there a trick I don't know?
AFAIK it only saves in the format you are editink. There are tools to chang the encoding ((ASCII, UTF-x), The type of EOL.
But on the whole, you just edit and it does not change the mode of the file.
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Merge multiple XHTML files at once gmw Sigil 1 12-28-2010 02:35 AM
LBook Firmware ini files sein Astak EZReader 17 06-05-2010 08:49 AM
How to merge Mobi files? King Mook Mook Kindle Formats 1 12-26-2009 05:07 AM
Is there a program that will merge prc files and... GatorDeb Kindle Formats 42 10-24-2008 11:48 AM
Is there a way to merge lrf files? Tom Swift Sony Reader 14 09-24-2007 07:13 PM


All times are GMT -4. The time now is 05:05 AM.


MobileRead.com is a privately owned, operated and funded community.