![]() |
#31 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
|
|
![]() |
![]() |
![]() |
#32 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,453
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Quote:
Thanks, KevinH |
|
![]() |
![]() |
Advert | |
|
![]() |
#33 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
EDIT: actually ... if you push the change, it will automatically build on Appveyor and I'll probably be able to download/test it on Windows this afternoon. ![]() Last edited by DiapDealer; 10-29-2018 at 09:48 AM. |
|
![]() |
![]() |
![]() |
#34 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,453
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Just pushed that change to master.
|
![]() |
![]() |
![]() |
#35 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
I compiled Sigil from master on my Linux machine and it looks like your fix works fine.
I checked the folder that contains the Sigil .ini files and all escaped characters were replaced with UTF-8 characters. I also created and saved a new Saved Search entry with accented and Arabic characters, which were also saved as UTF-8 characters. Last edited by Doitsu; 10-29-2018 at 11:49 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#36 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
A quick test on Windows 10 shows no problems (Windows 10). I did basically the same tests that you described earlier in the thread. Sigil actually converted my ini files to utf-8 whenever Sigil opened. There was no need to save or close.
The only issue I see that may trip a few people up, is that some of the default Saved Searches (convert entities to characters and vice-versa) can look like the Replace/Find field is empty after converting the file to utf-8. Anything with invisible space characters can look empty now. But that will also only affect the manual editing of those files. The Saved Search editor dialog has always looked like there's nothing in fields with invisible unicode characters (even when they were stored in the ini files as escape coded). The good news is that they can still add those invisible characters as escaped hex codes when manually editing those files. And Sigil will convert them. They've always had to enter unicode characters in the Saved Search Editor Dialog: escaped hex codes entered there have always ended up double-escaped in the ini files. Long story short: those who only edit Saved Searches through Sigil's dialog should notice no difference in behavior whatsoever. And those who edit the files manually should have an easier time of it! ![]() |
![]() |
![]() |
![]() |
#37 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
This change COULD adversely affect those who run two different versions of Sigil on the same machine (but those folks typically setup up a second prefs folder via environment variable so they can have separate prefs).
It could also affect anyone who might need to roll back to a previous version of Sigil for whatever reason. There'll need to be a warning on the release that preferences files are going to updated and may be incompatible with older versions of Sigil from that point on. Prefs should be backed up before updating to be safe. |
![]() |
![]() |
![]() |
#38 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,453
Karma: 5703586
Join Date: Nov 2009
Device: many
|
I agree completely. When we do the next release, we strongly urge people to make back-up copies of all their current Sigil related ini files just in case they want or need to revert back. Perhaps we even include a bash script that does that for Linux and Mac Users and a simple bat script for Windows users or maybe a little python script that runs on all platforms.
That way people can revert if they need to but the bulk of the people should be just fine. Quote:
|
|
![]() |
![]() |
![]() |
#39 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,453
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Quote:
Kevin |
|
![]() |
![]() |
![]() |
#40 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
And who knows what strange bugs may creep in (like that spellchecking cursor jumping bug). Very rare they occur, but over the years I sometimes ran two versions side-by-side. Quote:
If anything, I would say they may install a new version into a second folder. But how many people are messing around with their environment variables? Quote:
![]() |
|||
![]() |
![]() |
![]() |
#41 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,352
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
I don't know the numbers. I suspect very few. I also suspect those few who DO install a second instance, aren't doing so willy-nilly, and aren't "afeard of wrangling an env var or two" to make it work correctly. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Saved searches | abecedarian | Sigil | 5 | 04-14-2017 06:48 PM |
Saved searches : suggestions | Bertrand | Editor | 0 | 05-09-2014 05:58 AM |
Saved searches: right pane | roger64 | Editor | 2 | 04-07-2014 09:40 PM |
Where are searches saved? | travger | Calibre | 2 | 08-26-2012 01:37 PM |
Saved Searches - Using Hierarchy | nynaevelan | Library Management | 10 | 03-28-2011 10:45 PM |