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-10-2024, 02:57 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: 173
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
2.3.1: Accented character encoding automatically updated?

Edit: Oops, I checked the update log for 2.3.0 and I think this is probably the answer to my question:
"we are now using NFC unicode normalization form for all content, links, urls, and file paths."
Sorry, I didn't make the connection when I read it the first time. Please delete this thread.


Thanks for the latest version, it looks great.

Spoiler:
This is just a request for confirmation.

TLDR:
Questions:

1. does Sigil automatically update all accented characters (çéàùïöÔôÂâ etc.) to proper unicode characters now regardless of source encoding? On open, as well as on paste?

2. If Sigil catches them now on its own I don't have to worry about it, but if some of them can still sneak through, is it possible to restore my backup .ini (with the old encoding) of my saved searches? (how?)

I usually do those searches routinely on all files just in case and don't bother to check the reports, I just want to know if I should start checking again for anything in future.




Context:

Some old Mac / InDesign files add accents as a separate character:
è = e + `

In Notepad++ using the arrow keys to move the cursor it takes 2 clicks to pass the double characters and they used to be listed in the Characters Used report in Sigil. They can (occasionally) display wrong (accent next to the letter instead of above it) so I have saved searches to replace them all with correct unicode characters.

I've just noticed that in Sigil 2.3.1 the ini file has been modified:

Code:
111\Name=bases/suppl\xe9mentaires/accents en 2 cars/E aigu 2c
111\Find=E\x301
111\Replace=\xc9
Instead of this:

Code:
115\Name=bases/supplémentaires/accents en 2 cars/E aigu 2c
115\Find=É
115\Replace=É
(Find is 2 characters, pretty sure that is not preserved here)

Now those searches return ALL accented characters (including correct unicode ones).

I pasted some of the double characters from Notepad++ into Sigil and only the correct unicode character was listed in the report, but if I copy just the floating accent it will display.

Code view
Name:  2024-10-10_20h02_04.jpg
Views: 111
Size:  1.6 KB
Report
Click image for larger version

Name:	2024-10-10_20h03_43.jpg
Views:	25
Size:	6.4 KB
ID:	211315

So it seems like those characters are now automatigally updated when they are pasted into code view, but I want to be sure so I don't accidentally miss any.

Thanks for any information you can give.

Last edited by Mister L; 10-10-2024 at 04:33 PM.
Mister L is offline   Reply With Quote
Old Yesterday, 09:58 AM   #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,115
Karma: 5450818
Join Date: Nov 2009
Device: many
There is an environment variable that disables the unicode C normalization where the spec allows it. It makes no sense to me to use it but ....

Check out the latest Sigil Users Guide for a table of environment vars if interested.
KevinH is offline   Reply With Quote
Old Yesterday, 02:28 PM   #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: 173
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Quote:
Originally Posted by KevinH View Post
There is an environment variable that disables the unicode C normalization where the spec allows it. It makes no sense to me to use it but ....

Check out the latest Sigil Users Guide for a table of environment vars if interested.
Thanks Kevin. I don't want to disable the normalisation since it saves me some work, this is a great feature. I'll probably wait a bit before I retire my saved searches to be sure nothing random is sneaking past.

I will take a look at the variables table, thanks for that info.


One other question, my default window size is not retained, any idea why that might happen? When I open Sigil the main window is in the right place but it's too wide on the right side, regardless of the size / position of the window on the last close.
Mister L is offline   Reply With Quote
Old Yesterday, 03:40 PM   #4
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,115
Karma: 5450818
Join Date: Nov 2009
Device: many
What OS? What Qt version? (see the About Sigil menu).
Does this happen only with Sigil 2.3.1 or can it happen with earlier versions as well?

When we moved our release builds to Qt6 only we removed a bunch of cruft that was needed for remembering sizes for Qt5 only but that was fixed in Qt 6.7.x series. Perhaps some change there is impacting things?

Are you using 2 or more monitors? Are it (they) using fractional dpi scaling by chance?
KevinH is offline   Reply With Quote
Old Today, 11:12 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: 173
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Quote:
Originally Posted by KevinH View Post
What OS? What Qt version? (see the About Sigil menu).
Windows 10, Sigil 2.3.1, QT 6.7.2. Let me know if you need anything more precise about the windows version.

Quote:
Originally Posted by KevinH View Post
Does this happen only with Sigil 2.3.1 or can it happen with earlier versions as well?
It didn't happen until I updated to 2.3.1 but I just reinstalled 2.2.1 / Qt 6.6.2, launched Sigil, fixed the window size, opened a file, saved, closed, then re-launched and the window size was not saved. Time stamp says the .ini file is updated each time.

Then I tried with Sigil 1.9.30 / Qt 5.12.9 and the window position / size was properly saved.

Sigil v1 uses a different .ini file to the v2 Sigils: sigil.ini (Sigil 1) and sigil_v6.ini (Sigil v2). I copied the "mainwindow" geometry from the (correct) sigil.ini file into the sigil_v6.ini to test but it didn't change anything.

Quote:
Originally Posted by KevinH View Post
When we moved our release builds to Qt6 only we removed a bunch of cruft that was needed for remembering sizes for Qt5 only but that was fixed in Qt 6.7.x series. Perhaps some change there is impacting things?
I imagine in that case other people would see the same thing? Otherwise probably something weird in my .ini?

Quote:
Originally Posted by KevinH View Post
Are you using 2 or more monitors? Are it (they) using fractional dpi scaling by chance?
One monitor, 1920x1080 resolution, 100% scale.

Not sure this is useful at all but in case it helps, here is the mainwindow geometry from the sigil_v6.ini file (used by Sigil v2):
Spoiler:

[mainwindow]
maximized=false
fullscreen=false
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\x 2\x5\0\0\0\0\0\0\x5\xfd\0\0\x4\xe\0\0\x2\x5\0\0\0\ x1f\0\0\x5\xfd\0\0\x4\xe\0\0\0\0\0\0\0\0\a\x80\0\0 \x2\x5\0\0\0\x1f\0\0\x5\xfd\0\0\x4\xe)
toolbars=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x 3\0\0\0\0\0\0\0\x8c\0\0\x3\x1f\xfc\x2\0\0\0\x2\xfb \0\0\0\x16\0\x62\0o\0o\0k\0\x62\0r\0o\0w\0s\0\x65\ 0r\x1\0\0\0\xb5\0\0\x2\x10\0\0\0X\0\xff\xff\xff\xf b\0\0\0\x16\0\x63\0l\0i\0p\0s\0w\0i\0n\0\x64\0o\0w \x1\0\0\x2\xcb\0\0\x1\t\0\0\0X\0\xff\xff\xff\0\0\0 \x1\0\0\0\x82\0\0\x3\x1f\xfc\x2\0\0\0\x2\xfb\0\0\0 \x1a\0p\0r\0\x65\0v\0i\0\x65\0w\0w\0i\0n\0\x64\0o\ 0w\x3\0\0\x5\xa1\0\0\x1\x9e\0\0\x1\xdf\0\0\x2s\xfb \0\0\0\x1e\0t\0\x61\0\x62\0l\0\x65\0o\0\x66\0\x63\ 0o\0n\0t\0\x65\0n\0t\0s\x1\0\0\0\xb5\0\0\x3\x1f\0\ 0\0X\0\xff\xff\xff\0\0\0\x3\0\0\x3\x93\0\0\0\xeb\x fc\x1\0\0\0\x1\xfb\0\0\0*\0v\0\x61\0l\0i\0\x64\0\x 61\0t\0i\0o\0n\0r\0\x65\0s\0u\0l\0t\0s\0n\0\x61\0m \0\x65\0\0\0\0\0\0\0\x3\x93\0\0\0\x46\0\xff\xff\xf f\0\0\x2\xdf\0\0\x3\x1f\0\0\0\x4\0\0\0\x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\x65\0p\ 0o\0\x41\0\x63\0t\0i\0o\0n\0s\x1\0\0\0\x8f\xff\xff \xff\xff\0\0\0\0\0\0\0\0\0\0\0&\0t\0o\0o\0l\0\x42\ 0\x61\0r\0I\0n\0\x64\0\x65\0x\0\x41\0\x63\0t\0i\0o \0n\0s\x1\0\0\x1\x33\xff\xff\xff\xff\0\0\0\0\0\0\0 \0\0\0\0\x1e\0t\0o\0o\0l\0\x42\0\x61\0r\0U\0n\0\x6 4\0o\0R\0\x65\0\x64\0o\x1\0\0\x1\xd7\xff\xff\xff\x ff\0\0\0\0\0\0\0\0\0\0\0\x1c\0t\0o\0o\0l\0\x42\0\x 61\0r\0X\0\x45\0\x64\0i\0t\0o\0r\x1\0\0\x2\x31\xff \xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x16\0t\0o\0o\0l \0\x42\0\x61\0r\0\x46\0i\0n\0\x64\x1\0\0\x2\x66\xf f\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x1a\0t\0o\0o\0 l\0\x42\0\x61\0r\0\x43\0l\0i\0p\0s\0\x32\x1\0\0\x2 \xc0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x1e\0t\ 0o\0o\0l\0\x42\0\x61\0r\0\x41\0u\0t\0o\0m\0\x61\0t \0\x65\x1\0\0\x2\xde\xff\xff\xff\xff\0\0\0\0\0\0\0 \0)
Mister L is offline   Reply With Quote
Old Today, 11:54 AM   #6
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,986
Karma: 199001268
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I've never had any problems with mainwindow retaining it's size on Windows 10. I also wouldn't recommend copying data directly from Sigil.ini to Sigil_v6.ini. I'm suspecting that parts of your .ini may be corrupted.
DiapDealer is offline   Reply With Quote
Old Today, 12:01 PM   #7
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: 173
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Quote:
Originally Posted by DiapDealer View Post
I've never had any problems with mainwindow retaining it's size on Windows 10. I also wouldn't recommend copying data directly from Sigil.ini to Sigil_v6.ini. I'm suspecting that parts of your .ini may be corrupted.
That seems plausible. How can I fix it? Can I delete the sigil_v6.ini and let it regenerate a new .ini file or will that cause more problems?
Mister L is offline   Reply With Quote
Old Today, 12:33 PM   #8
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,986
Karma: 199001268
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Mister L View Post
That seems plausible. How can I fix it? Can I delete the sigil_v6.ini and let it regenerate a new .ini file or will that cause more problems?
That would be the easiest and safest way, actually. You can back up your existing _v6.ini if you like. If regenerating a new ini fixes things (and I'm betting it will), I'd try reconfiguring things to you liking rather than copying stuff from the backup _v6.ini (there's probably some things you could safely copy, but I certainly wouldn't copy any old geometries over). Cross that bridge after determining if deleting the _v6.ini and letting Sigil recreate it fixes the window size restore issue.

Also keep in mind that when multiple instance of Sigil are running, the last one to close is the geometry that get's saved. So make sure the last instance is set to to the size you want before closing.
DiapDealer is offline   Reply With Quote
Old Today, 12:58 PM   #9
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: 173
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Quote:
Originally Posted by DiapDealer View Post
That would be the easiest and safest way, actually. You can back up your existing _v6.ini if you like. If regenerating a new ini fixes things (and I'm betting it will), I'd try reconfiguring things to you liking rather than copying stuff from the backup _v6.ini (there's probably some things you could safely copy, but I certainly wouldn't copy any old geometries over). Cross that bridge after determining if deleting the _v6.ini and letting Sigil recreate it fixes the window size restore issue.
Hm, it didn't work. :/ I changed the original _v6.ini to _v6.ini.old then opened Sigil, a new _v6.ini was created, I fixed the window, opened a file, saved it, closed Sigil, opened it again and the window is too large again. It's not the end of the world but it means the preview window is covering part of the ToC so I have to resize it each time.

Quote:
Originally Posted by DiapDealer View Post
Also keep in mind that when multiple instance of Sigil are running, the last one to close is the geometry that get's saved. So make sure the last instance is set to to the size you want before closing.
Oh, I know. I very frequently have 2 epubs open at the same time in different positions and if I accidentally close the "right" one first I relaunch another instance of Sigil before I close the "wrong" one.
Mister L is offline   Reply With Quote
Old Today, 01:18 PM   #10
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,986
Karma: 199001268
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Mister L View Post
Hm, it didn't work. :/ I changed the original _v6.ini to _v6.ini.old then opened Sigil, a new _v6.ini was created, I fixed the window, opened a file, saved it, closed Sigil, opened it again and the window is too large again. It's not the end of the world but it means the preview window is covering part of the ToC so I have to resize it each time.
What is actually changing size? Is the MainWindow changing, or is one dockwidget (in a stacked configuration with another dockwidget) claiming a little more vertical space within the main Window each time Sigil is launched? If it's the latter, are you running Sigil maximized? The info you posted earlier indicated that you weren't running maximized. But if you are, there was an issue beginning with Sigil 2.3 that could make this happen. It's still there to some extent in Sigil 2.3.1 on Windows. Run "almost-but-not-quite" maximized and see if that stops the problem. We'll keep looking into it.
DiapDealer is offline   Reply With Quote
Old Today, 02:10 PM   #11
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: 173
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Quote:
Originally Posted by DiapDealer View Post
What is actually changing size? Is the MainWindow changing, or is one dockwidget (in a stacked configuration with another dockwidget) claiming a little more vertical space within the main Window each time Sigil is launched? If it's the latter, are you running Sigil maximized? The info you posted earlier indicated that you weren't running maximized. But if you are, there was an issue beginning with Sigil 2.3 that could make this happen. It's still there to some extent in Sigil 2.3.1 on Windows. Run "almost-but-not-quite" maximized and see if that stops the problem. We'll keep looking into it.
It's the main window which is changing size (with the toolbars, code view, etc. docked), but the width, not the height. I have the preview open in a smaller window to the right of the main window and instead of opening with the two windows lined up next to each other, the small preview window overlaps the main window.

Here are some screenshots:
How I want it
Click image for larger version

Name:	right.jpg
Views:	10
Size:	152.9 KB
ID:	211426
How it is when I open it
Click image for larger version

Name:	wrong.jpg
Views:	8
Size:	159.3 KB
ID:	211427

I tried reducing the height a little bit and then opening a file / saving / closing / relaunching; the new height was saved but still not the width.
Mister L is offline   Reply With Quote
Old Today, 03:05 PM   #12
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,986
Karma: 199001268
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Best guess is that you're shrinking one element below it's (current Qt) recommended width. Qt tries to juggle all of these things but isn't always successful at restoring everything exactly.

Try temporarily closing the F&R Window, and see if that stops the growth.
Or the Clips bar.

Everything looks to be staying the same size to me except for the central widget (which in turn makes MainWindow grow).
DiapDealer is offline   Reply With Quote
Old Today, 03:16 PM   #13
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 772
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
The main window (in my case, Windows 10) has a minimum required width of around 955-960px with the F&R window open. If you shrink the window below this value then the next time you open Sigil it is set to this minimum width.

On the other hand, it's hard to see such a situation as a bug, as Qt simply tries to fit all widgets/controls on the screen.
BeckyEbook is offline   Reply With Quote
Old Today, 03:48 PM   #14
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: 173
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Ok, it is indeed a question of minimum window size apparently. The size I want is approximately 927px, the size I get is 1014 pixels (according to my screen cap).

If I close the F&R + several toolbars + the ToC I still get 1014.
Click image for larger version

Name:	notoc.jpg
Views:	6
Size:	152.4 KB
ID:	211431

If I leave it at 1014 but move it to the left (so the preview is not blocking it) I can keep all the usual toolbars + ToC and F&R and the size / position is restored on open.

Means I have a bit less space for reference documents to the left of Sigil but I will learn to live with it, I guess.

Thanks very much to both of you for helping me figure it out.
Mister L is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Character encoding issue Frenchguy Editor 5 10-02-2017 02:33 PM
Is there a setting to change all accented characters to the corresponding character LadyKate Library Management 1 06-29-2014 09:11 AM
Problem with character encoding thesuker Calibre 2 11-09-2012 10:11 PM
What character encoding am I seeing? Claghorn Conversion 1 08-22-2012 10:02 AM
how to tell the character encoding??? rheostaticsfan Calibre 23 06-21-2010 03:26 PM


All times are GMT -4. The time now is 08:23 PM.


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