![]() |
#1 |
Junior Member
![]() Posts: 7
Karma: 12
Join Date: Aug 2013
Device: ipad, android and kindle
|
Code view displays square box instead of non latin characters
We have two Windows 7 machines. We installed Sigil on both. One Windows 7 home edition works fine and displays non-latin (specifically South Asian script) characters. The second apparently with similar configuration shows only squares in code view. Book view works fine (the epub uses embedded font).
First windows 7 machine that works has AMD processor (about four years old Dell machine). We experimented with the Preference section where code view font can be specified. A change in specified in either case makes no difference. First machine always displays correct characters and second no matter what font we specify shows square boxes instead. In both cases, we downloaded fresh Sigil version last week (aug 14 2013). What could be the difference? What can we do to identify the issue on the problematic machine. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Have you checked the regional settings in windows on both?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Second thought:
Have you checked the font directories on both? On both computers? And did you install/embed any fonts in Sigil to display the non-latin characters? Did you ever install additional fonts on the older or newer computer, to the fonts directory for Windows? I suspect that one Win7 computer has a different group of default fonts installed with the Win7 system. That's likely the culprit, but I could be dead wrong. I don't know if, like many Windows systems, Sigil will look for/use a font that it can find in the main font directories in the OS. I usually stick to what I know will work, OR, I embed fonts in Sigil to cover any characters that aren't displaying correctly (after I check encoding, etc.). Hope that helps somehow. Hitch |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 7
Karma: 12
Join Date: Aug 2013
Device: ipad, android and kindle
|
Difference in fonts on the two computers
Two Windows 7 computers where difference showed up were at two locations. So it was difficult to compare them fully. Now I have been reproduced the issue on XP and Windows 7. Windows 7 works fine. XP does not.
The ebook has non English characters and ebbok uses custom (embedded) unicode font to display non English characters. In book view, the text shows up correctly using the embedded fonts. The problem is only in code view. Per the documentation, the preference section defines the monospaced font to use in code view. Both computers used mono-spaced Consolas. To be sure, I took Consolas fonts files from Windows 7 and moved to XP (I deleted origianl XP fonts and copied Windows 7 fonts in the font directory). I verified by deleting Consolas font that Sigil is reading the same font directory to select monspaced fonts. The problem remained. Clearly, all of the three computers are not totally identical. The fonts used as shown in the preference section are identical. It appears to me that Sigil uses some additional information/fonts in the code view. Help? I am so confused. |
![]() |
![]() |
![]() |
#5 | |
Junior Member
![]() Posts: 7
Karma: 12
Join Date: Aug 2013
Device: ipad, android and kindle
|
Font directories in Windows
Quote:
WHAT do you mean by "main font directoires"? Are there multiple font directories and if so where they are. I have been keeping all my fonts in Fonts under Windows folder. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,908
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
There are Windows (system available) fonts and there are other fonts, those that get used only embeded in books.
Windows performance suffers when the font folder gets bloated with gobs of rarely used fonts. There are font navigator utilities to help manage the 'active' font set |
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Like I said, have you checked the Windows regional settings?
|
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 7
Karma: 12
Join Date: Aug 2013
Device: ipad, android and kindle
|
Regional settings
|
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
That's not what I meant. In windows you can tell in what region you are. Some core components use it to determine their actions. It should not matter, but you never know...
|
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 7
Karma: 12
Join Date: Aug 2013
Device: ipad, android and kindle
|
|
![]() |
![]() |
![]() |
#11 |
Junior Member
![]() Posts: 7
Karma: 12
Join Date: Aug 2013
Device: ipad, android and kindle
|
Found Solution
The problem appears to be around the way Sigil picks mono spaced fonts. The default mono spaced font used. By Sigil is Consolas. Even when the two computer had identical Consolas fonts, the problem persisted. It appears that Sigil either due to a bug or some other valid reasons, does not use Consolas but ends up using some other monospaced font which does not have non Latin characters.
The solution, a brute force one though, is to replace fonts on the problematic computer with font files I had on the computer where Sigil worked correctly. Obviously, windows won't allow to replace all fonts easily. I deleted (after creating a backup) all fonts windows allowed me to delete. I was left with about a dozen font family consisting of 200 fonts. I copied fonts from the working computer. Reboot. And Sigil started displaying correctly. Still don't know which font it was looking for. But problem is solved for now. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problems inserting latin characters | Pandinus | Sigil | 8 | 07-14-2013 02:42 AM |
replace in book view changes view to code view | cybmole | Sigil | 4 | 10-28-2012 01:20 PM |
Sigil highlight Book View No Longer Shows in Code View | Themus | Sigil | 4 | 10-04-2012 07:54 PM |
quotes differences book view & code view | cybmole | Sigil | 13 | 03-29-2011 01:53 AM |
lock book view & code view windows into synch | cybmole | Sigil | 5 | 01-19-2011 10:30 PM |