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 11-10-2012, 05:12 AM   #1
AUDRY Roger
Junior Member
AUDRY Roger began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2012
Device: Kobo Touch
French text in Code View

As you know, French comprises a lot of accented characters.When a html file is viewed in Code View, words appear either normal or with accented letters replaced by an ASCII code : for instance "président" is viewed as
"président".
The consequence of this is that the spellchecker will red underline the word
although there is no spelling mistake; and there are so many occurence of this
that the spellcheck becomes useless.
What disturb me is that it seems that there is no rule to determine such
different behaviours; and it happens that the same file appears normal in one session and different in the next.
Can somebody can explain this to me, and may be, give a me way of being
sure that the "normal" behavious will be selected.

Thanks for your help
AUDRY Roger is offline   Reply With Quote
Old 11-10-2012, 08:00 AM   #2
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Bonjour

This is what I see in code view with Sigil 0.6. So, I presume you are doing something wrong?

See attachment below.
Attached Thumbnails
Click image for larger version

Name:	sigil french.png
Views:	244
Size:	100.8 KB
ID:	95889  
roger64 is offline   Reply With Quote
Advert
Old 11-10-2012, 10:40 AM   #3
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Why not just write président instead of président? A valid epub must be utf-8 or utf-16 encoded which encompasses all characters in the French alphabet. As long as the reader has a font supporting French characters there should be no issue with using the characters themselves instad of the entities. That said if they don't have a font with French characters installed the entities shouldn't display properly either.
user_none is offline   Reply With Quote
Old 11-10-2012, 10:46 AM   #4
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
The most common reasons for using entities rather than Unicode characters are:
  • If your keyboard does not support the character you need to type, eg many keyboards do not have em-dash or the copyright symbol.
  • If your editor does not support unicode (not an issue for Sigil, of course!).
  • When you want to make it explicit in the source what is happening, eg the   code is clearer than the corresponding whitespace character.
  • When you need to escape HTML special characters like >, &, or ".
HarryT is offline   Reply With Quote
Old 11-10-2012, 10:49 AM   #5
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by HarryT View Post
The most common reasons for using entities rather than Unicode characters are: ...
All very good and valid reasons but they don't really apply in this situation... I would hope the character é would be relativity easy for a French Speaker (presumably using a French keyboard) to type.
user_none is offline   Reply With Quote
Advert
Old 11-10-2012, 10:51 AM   #6
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by user_none View Post
All very good and valid reasons but they don't really apply in this situation... I would hope the character é would be relativity easy for a French Speaker (presumably using a French keyboard) to type.
I agree, but it can be quicker to type the entity than to copy and paste the accented letter from the Windows "character map" accessory if one is using an English-language keyboard and you need to use an accented letter. Not that that would apply to the OP, of course, but as a general principle.
HarryT is offline   Reply With Quote
Old 11-10-2012, 11:07 AM   #7
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
One approach is to just convert all your entities to characters, do the spell check, and then convert them back to entities if needed. Of course, you don't have to do this by hand with 0.6.0 - you can create a Saved Searches group to do it for you. The examples included have a group with several of the blank space to show how it can be done.

It takes a bit to enter them, but do it once and its done - and if you export the group to a .ini file you can share it for others to use. A list like this could be scripted - maybe something I'll look into - the issue is deciding what lists to use (seems like 'everything' is needed, grouped appropriately).

There's also a request to add all special characters to the special characters dialog so an external character map wouldn't be necessary, but that may or may not get done.
meme is offline   Reply With Quote
Old 11-10-2012, 11:07 AM   #8
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: 29,703
Karma: 54369092
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
replacing entities should be fairly simple using the new (Sigil 6) 'Insert Special Characters' in conjunction with Search and replace.

If this is frequent, add those to the ones already in the Saved search list
theducks is offline   Reply With Quote
Reply

Tags
code view, french language

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Enter text in Book View or Code View ronaldl Sigil 5 10-29-2012 03:12 PM
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:02 AM.


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