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

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 06-21-2012, 02:08 AM   #31
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,901
Karma: 2909045
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Quote:
Originally Posted by DiapDealer View Post
With regard to the select char->entity substitution not working on Windows platforms:

The following modifications to the "src/Sigil/ResourceObjects/HTMLResource.cpp" file would seem to remedy that. I've only been able to test it (in an admittedly very limited fashion) on the Windows and Linux platforms (my OS X dev machine is misbehaving ATM), but no adverse affects thus far from simply using the UTF-8 hex representation of the characters in place of of the "\uXXXX" unicode codepoint.
Good catch!
Toxaris is offline  
Old 06-21-2012, 06:37 AM   #32
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: 8,880
Karma: 39839185
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Toxaris View Post
Good catch!
Don't get too excited. SInce I'm not very familiar with the codebase, I may have just moved the problem somewhere else.

I believe \uXXXX is the preferred way of handling unicode in strings in C/C++/Java, but it sure seems like Microsoft's compiler doesn't like it in this particular case. The hex representations may cause issues, but I doubt it since they're single* unicode codepoints being sought out... in a decidedly utf-8 encoded document. It might be different if you were searching for "fa\u00e7ade" vs "fa\xc3\x87ade"

* Yes, I know unicode codepoints/graphemes may not be single "characters."

Last edited by DiapDealer; 06-21-2012 at 06:39 AM.
DiapDealer is offline  
 
Enthusiast
Old 06-21-2012, 07:22 AM   #33
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,050
Karma: 4347035
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by DiapDealer View Post
The hex representations may cause issues, but I doubt it since they're single* unicode codepoints being sought out... in a decidedly utf-8 encoded document.
But the document could be utf-16 encoded, couldn't it?
Jellby is offline  
Old 06-21-2012, 07:47 AM   #34
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: 8,880
Karma: 39839185
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Jellby View Post
But the document could be utf-16 encoded, couldn't it?
The original source could possibly be utf-16, but at the point the entity substitution happens, Sigil seems to have already homogenized everything to utf-8 (that's an assumption based on the presence of the "QString::fromUtf8" function). Still... it could pose a problem if Sigil does (or chooses to in the future) preserve the underlying utf-8/16-ness of a document. Right now, though, it seems that portion of Sigil's code is confidently expecting utf-8. *shrugs*

Last edited by DiapDealer; 06-21-2012 at 07:51 AM.
DiapDealer is offline  
Old 06-22-2012, 11:58 AM   #35
paulhypno
Junior Member
paulhypno began at the beginning.
 
paulhypno's Avatar
 
Posts: 9
Karma: 10
Join Date: Apr 2012
Location: Oxford, England
Device: Kindle
I have a problem that is worse with the latest betas:

When working in book view and I want to edit the code I highlight roughly the lines or just place my cursor at the point where I want to work. However when I then switch to Code View I am taken to the very beginning of the document so I've lost my place.

Similarly, when I've done editing in Code View and switch back to Book View I'm again taken to the start of the document.

It's making it so difficult to work with and it wasn't like this in the non-beta version (although it was always a bit flaky when switching views)

I'm in 0.5.902 (although the About still says 0.5.901 - not worried about that though)

Last edited by paulhypno; 06-22-2012 at 12:04 PM. Reason: add information
paulhypno is offline  
Old 06-22-2012, 12:30 PM   #36
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
There is no syncing of the cursor between views anymore.

The plan is to leave the cursor where you left it in the specific view (if possible). So if you edit in CV and then switch to BV and move around, when you switch to CV again your cursor should be where you left it.

Unfortunately, the cursor position in BV is not working right at this time but will hopefully be fixed before release.

Alternatively you can highlight some text in BV and type Ctrl-F, then after switching to CV type Ctrl-G to find the text. Of course, you need to select text that doesn't have any formatting codes in it and have to have your Find & Replace set to current file, etc. so its not great - but its available if you want to use it.
meme is offline  
Old 06-22-2012, 01:21 PM   #37
paulhypno
Junior Member
paulhypno began at the beginning.
 
paulhypno's Avatar
 
Posts: 9
Karma: 10
Join Date: Apr 2012
Location: Oxford, England
Device: Kindle
Many thanks for speedy, helpful comments>

Quote:
Originally Posted by meme View Post
There is no syncing of the cursor between views anymore.
I assume there is a reason for this? I do realise that Sigil isn't a "belt and braces" word processor or html editor but it is otherwise so good, and it IS designed to edit documents so this problem is a big negative.

Am I right in thinking that it used to be possible? If so then it's a retrograde move. Please see next comment for what it means in practice:

Quote:
So if you edit in CV and then switch to BV and move around, when you switch to CV again your cursor should be where you left it.
Yes but if I want to see the Book View effect of my Code View editing, and maybe switch back because I haven't got it right, I can't do this. As soon as I switch to Book View I am at the top of the document again. OK the cursor is always where I left it (should I want to return) but that's not the problem.

Quote:
Alternatively you can highlight some text in BV and type Ctrl-F, then after switching to CV type Ctrl-G to find the text...
Yes I've had to do this but I have a big plea for a real solution. Thanks
paulhypno is offline  
Old 06-23-2012, 04:08 AM   #38
jbacelar
Connoisseur
jbacelar began at the beginning.
 
Posts: 67
Karma: 30
Join Date: Dec 2011
Location: Spain, south coast
Device: PocketBook 622
Quote:
Yes but if I want to see the Book View effect of my Code View editing, and maybe switch back because I haven't got it right, I can't do this. As soon as I switch to Book View I am at the top of the document again. OK the cursor is always where I left it (should I want to return) but that's not the problem.
I totally agree
jbacelar is offline  
Old 06-23-2012, 04:43 AM   #39
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
The cursor positioning in Book View is broken at the moment. When fixed the cursor in BV will be where you left it when you return to BV from CV.
meme is offline  
Old 06-23-2012, 07:36 AM   #40
joehunt
Connoisseur forever
joehunt ought to be getting tired of karma fortunes by now.joehunt ought to be getting tired of karma fortunes by now.joehunt ought to be getting tired of karma fortunes by now.joehunt ought to be getting tired of karma fortunes by now.joehunt ought to be getting tired of karma fortunes by now.joehunt ought to be getting tired of karma fortunes by now.joehunt ought to be getting tired of karma fortunes by now.joehunt ought to be getting tired of karma fortunes by now.joehunt ought to be getting tired of karma fortunes by now.joehunt ought to be getting tired of karma fortunes by now.joehunt ought to be getting tired of karma fortunes by now.
 
joehunt's Avatar
 
Posts: 869
Karma: 4950926
Join Date: Sep 2011
Device: iPad3, Sony 650, K3, KT, PW2
Quote:
Originally Posted by meme View Post
The cursor positioning in Book View is broken at the moment. When fixed the cursor in BV will be where you left it when you return to BV from CV.
I really wanted to try the beta, but I was wasting so much time finding my place in BV after making a change in CV, that I gave up. I'll wait patiently for the fix (or the final).
joehunt is offline  
Old 06-23-2012, 08:47 AM   #41
Zeypxi
Member
Zeypxi began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Apr 2011
Device: none
Quote:
Originally Posted by joehunt View Post
I really wanted to try the beta, but I was wasting so much time finding my place in BV after making a change in CV, that I gave up. I'll wait patiently for the fix (or the final).
Same here. Spell checking fix and cursor sync would be great. And can we remove the not so special characters from the Special Characters menu (if it's not too much asked).

Cheers, thank you for all the work.
Zeypxi is offline  
Old 06-23-2012, 09:10 AM   #42
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,439
Karma: 5560777
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by meme View Post
The cursor positioning in Book View is broken at the moment. When fixed the cursor in BV will be where you left it when you return to BV from CV.
I take it that this will re-enable the Sigilsplit button in BV? (The #1 most used feature of BV that I use.) It is a real pain to find the same place in CV , Where Sigil split does work.
BTW 'Insert Chapter Marker' still works after I fixed the shortcut, which had changed from Ctrl-Shift-Enter to Ctrl-Shift-Return (which does not exist on a Win Keyboard)
theducks is offline  
Old 06-23-2012, 10:13 AM   #43
Danger
Evangelist
Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.
 
Danger's Avatar
 
Posts: 486
Karma: 1665031
Join Date: Nov 2010
Location: Vancouver Island, Nanaimo
Device: K2 (retired), Kobo Touch (passed to the wife), KGlo, Galaxy TabPro
Quote:
Originally Posted by theducks View Post
...
BTW 'Insert Chapter Marker' still works after I fixed the shortcut, which had changed from Ctrl-Shift-Enter to Ctrl-Shift-Return (which does not exist on a Win Keyboard)
And here I always thought they were the same thing. Of course I can't remember what a keyboard said on it 26 years ago when I first was learning DOS 1.0 and I know my keyboard currently says "Enter" but I've always made the assumption that Return/Enter did the same exact thing. Damn now I have to go and change my shortcut as well. Funny it was working just fine right up to the point I read this post and them blammo it just stopped working for me.
......

Sorry theducks. It's early morning here and I just couldn't resist
Danger is offline  
Old 06-23-2012, 12:49 PM   #44
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: 8,880
Karma: 39839185
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I've seen at least one reference to:
Code:
<title>Rich text editor, editor, press ALT 0 for help.</title>
magically appearing in Code View in this thread, but didn't see where the issue was formally acknowledged.

To consistently recreate the issue (I'm sure there are other ways):

1) Open Sigil 0.5.902 (brand-new empty document)
2) Switch to Code View of "Section0001.xhtml" (note the "<title></title>")
3) Delete the "<p>&nbsp;</p>" line in Code View
4) Switch to Book View
5) Type some text
6) Switch to Code View and note "<title>Rich text editor, editor, press ALT 0 for help.</title>"

The text itself comes from a default setting in the language files (en.js) for CKEdit. Thinking it might be connected to the empty title tags... I tried entering a title (in step 2 of the above recreation steps), but no dice. The text I entered is still replaced by "<title>Rich text editor, editor, press ALT 0 for help.</title>" if you complete the steps.

Tested on Windows and Linux. Seems like it may be a common thing since I've found evidence of a few live websites with that same distinct title.

Last edited by DiapDealer; 06-23-2012 at 12:55 PM.
DiapDealer is offline  
Old 06-23-2012, 01:06 PM   #45
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
Quote:
Originally Posted by Zeypxi View Post
And can we remove the not so special characters from the Special Characters menu (if it's not too much asked).
.
Will have a look, but not high priority.

Quote:
Originally Posted by theducks View Post
I take it that this will re-enable the Sigilsplit button in BV? (The #1 most used feature of BV that I use.) It is a real pain to find the same place in CV , Where Sigil split does work.
BTW 'Insert Chapter Marker' still works after I fixed the shortcut, which had changed from Ctrl-Shift-Enter to Ctrl-Shift-Return (which does not exist on a Win Keyboard)
Not sure - user_none will have to comment as he removed it (possibly due to BV update issues or other reasons)

Made a note to look at the shortcut issue.

Quote:
Originally Posted by DiapDealer View Post
I've seen at least one reference to:
Code:
<title>Rich text editor, editor, press ALT 0 for help.</title>
magically appearing in Code View in this thread, but didn't see where the issue was formally acknowledged.
Yeah, its been seen and noted - but thanks for another way to show it. Makes it much easier to look at something when you can reproduce it as you know...
meme is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
0.5.901 (0.6.0 beta) avaliable user_none Sigil 118 06-19-2012 08:59 PM
0.4.903 (0.5 beta) Avaliable user_none Sigil 77 01-03-2012 09:24 PM
0.4.902 (0.5 beta) Avaliable user_none Sigil 65 12-18-2011 11:58 AM
No Avaliable format ? ? ? Janette55 Library Management 5 04-16-2011 04:09 PM
Beta 2.0.3 firmware 902 problems Roos PocketBook 15 12-15-2010 10:11 AM


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


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