Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-16-2013, 09:41 PM   #1
mashru
Junior Member
mashru began at the beginning.
 
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.
mashru is offline   Reply With Quote
Old 08-17-2013, 12:11 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,899
Karma: 2909045
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Have you checked the regional settings in windows on both?
Toxaris is offline   Reply With Quote
Old 08-17-2013, 06:35 AM   #3
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 2,303
Karma: 12005829
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by Toxaris View Post
Have you checked the regional settings in windows on both?
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
Hitch is offline   Reply With Quote
Old 08-18-2013, 02:45 PM   #4
mashru
Junior Member
mashru began at the beginning.
 
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.
mashru is offline   Reply With Quote
Old 08-18-2013, 02:48 PM   #5
mashru
Junior Member
mashru began at the beginning.
 
Posts: 7
Karma: 12
Join Date: Aug 2013
Device: ipad, android and kindle
Font directories in Windows

Quote:
Originally Posted by Hitch View Post
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

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.
mashru is offline   Reply With Quote
Old 08-18-2013, 03:45 PM   #6
theducks
Grand Sorcerer
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: 14,432
Karma: 5560777
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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
theducks is offline   Reply With Quote
Old 08-18-2013, 04:27 PM   #7
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,899
Karma: 2909045
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Like I said, have you checked the Windows regional settings?
Toxaris is offline   Reply With Quote
Old 08-18-2013, 04:44 PM   #8
mashru
Junior Member
mashru began at the beginning.
 
Posts: 7
Karma: 12
Join Date: Aug 2013
Device: ipad, android and kindle
Regional settings

Quote:
Originally Posted by Toxaris View Post
Have you checked the regional settings in windows on both?
Yes. Includes South Asian fonts, IME and other tools.
mashru is offline   Reply With Quote
Old 08-18-2013, 05:24 PM   #9
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,899
Karma: 2909045
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
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...
Toxaris is offline   Reply With Quote
Old 08-19-2013, 02:08 AM   #10
mashru
Junior Member
mashru began at the beginning.
 
Posts: 7
Karma: 12
Join Date: Aug 2013
Device: ipad, android and kindle
Quote:
Originally Posted by Toxaris View Post
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...
Yes both are set to the US region.
mashru is offline   Reply With Quote
Old 08-20-2013, 11:09 AM   #11
mashru
Junior Member
mashru began at the beginning.
 
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.
mashru is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


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


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