08-09-2018, 06:24 PM | #76 |
null operator (he/him)
Posts: 20,650
Karma: 26960534
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@NotJohn - England still prices horses in guineas (not sure about rest of UK or Ireland), and maybe some high value bespoke items such as Savile Row suits, Purdey guns, etc.
Another historical idiosyncrasy of UK money relates to the units in which Gilts (Bonds) were priced. Today it's a £100.00, but until fairly recently (i.e. last 50 years or so) the unit price was a weird amount that escapes my memory - something like £133.33'. BR Errata - my mother rescued that comptometer from being sent to the scrap heap. Last edited by BetterRed; 08-09-2018 at 06:27 PM. |
08-09-2018, 09:39 PM | #77 | |
Hedge Wizard
Posts: 801
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
|
Quote:
£2 11s. 8¼d. = £sd = pounds+ shillings + pence I have on my wall a set of UK pre decimal coins and also have an old £1 and a ten shilling note. For me it is pure nostalgia as I was 22 years old when British currency went decimal. I can even remember being sent to the shop to buy a certain kind of loaf of bread which was so many pence and one farthing. |
|
Advert | |
|
08-10-2018, 07:41 AM | #78 |
Guru
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
And that's why British people can do maths, while Americans can only do math.
|
08-10-2018, 11:10 AM | #79 | ||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
|
||
08-10-2018, 04:50 PM | #80 |
Wizard
Posts: 1,566
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Bug?
When I apply the command "Mend and Prettify Code" the cursor goes to the end of the file where I'm working; that is, it doesn't remain in the same place previous to "Mend and Prettify Code". That behaviour was not present in the previous version of Sigil.
|
Advert | |
|
08-10-2018, 05:20 PM | #81 | |
Grand Sorcerer
Posts: 27,586
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
The recent commit (after 0.9.10) to address another cursor issue, does not alleviate this. |
|
08-10-2018, 06:29 PM | #82 |
Sigil Developer
Posts: 7,713
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Yes, anytime an underlying file is overwritten that CodeView is currently showing in its QTextEdit widget, the cursor will move to the end of the file unless saved and restored somehow.
Given M and P can and does make wholesale changes to whitespace in the file, a cursor offset into the previous version (before M and P) can and will be pretty meaningless. M and P is not an editing command inside CodeView. M& P is taking the current contents of the file out of the QTextEdit Widget and passing it through gumbo with some extra smarts and then reloading it back in behind the scenes. So yes the cursor position from before is pretty meaningless. Last edited by KevinH; 08-10-2018 at 06:34 PM. |
08-10-2018, 06:54 PM | #83 |
Grand Sorcerer
Posts: 27,586
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I see what you're saying. The cursor has always moved to the end of the file whenever M&P has made changes--even in previous versions. I just happened to test a file/epub in Sigil v0.9.9 where M&P had nothing to do. Only when there's nothing for M&P to do does the cursor retain its position.
Just tried it with Sigil v0.9.9 and the cursor moved right to the end. Repeated the M&P and the cursor remained. Same with v0.9.7. There is no new behavior here. Last edited by DiapDealer; 08-10-2018 at 06:57 PM. |
08-11-2018, 08:45 AM | #84 | |
Wizard
Posts: 1,566
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
08-11-2018, 08:54 AM | #85 |
Grand Sorcerer
Posts: 27,586
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Kevin explained fairly well why retaining the cursor position from before an M&P cleanup would be meaningless after the M&P cleanup. We have no way of predicting (or tracking) what the cursor-position differential from before, to after, might be. We can't know what we can't know.
All we could do is retain the cursor position of a document that no longer exists. Restoring it in the new document wouldn't put you where you want to be. Something that's simple to do manually is often difficult (or impossible) to do programmatically. |
08-11-2018, 09:45 AM | #86 |
Sigil Developer
Posts: 7,713
Karma: 5444398
Join Date: Nov 2009
Device: many
|
No promises but I might be able to get the tag path to the block element that contains your current position and then try to get back at least to the block tag (assuming mend does not remove that tag and does not insert any new tags between the html tag and it) within the updated html file.
|
08-11-2018, 10:13 AM | #87 | |
Wizard
Posts: 1,566
Karma: 7043711
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
08-11-2018, 07:19 PM | #88 |
A Hairy Wizard
Posts: 3,117
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
We were having this difficulty when developing Marvin - when transitioning between portrait/landscape the current position would be lost and you'd have to swipe backward/forward to get back to where you started from. One of the solutions that was suggested was similar to what Kevin mentioned, but instead of remembering the tag, it was to remember a section of text (which wouldn't be changed with a M&P) and then "search" for that text to reposition.
|
08-11-2018, 09:02 PM | #89 |
Sigil Developer
Posts: 7,713
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Sigil could search for a text phrase or selection but uniqueness of any text fragment can not be guaranteed. Hopefully the enclosing tag will be possible.
|
08-12-2018, 04:38 AM | #90 | |
Guru
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
|
Quote:
3 x 1/4d = ¾d 3 x 8d = 24d = 2s 3 x 11s = £1 13s 3 x £2 = £6 In total £7 15 0¾ you are eightpence short. BobC |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil-0.8.900 released for testing - Wait for Sigil-0.8.901 | KevinH | Sigil | 106 | 10-04-2015 10:41 AM |
Sigil 0.8.5 Released | user_none | Sigil | 12 | 03-30-2015 11:28 AM |
Sigil 0.7.2 Released | user_none | Sigil | 40 | 06-24-2013 11:35 PM |
Sigil 0.7.0 Released | user_none | Sigil | 75 | 03-03-2013 12:41 PM |