Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 12-29-2014, 01:06 PM   #1
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Go to beginning of line with tags

Is there a reason why I can no longer use the 'home' key to go to the beginning of a line, if there's a tag there? Actually, I **THINK** it is 'no longer', because I've only noticed it since the last update.

I don't mind if there is a reason, it will just take me a while before I stop doing stuff automatically without checking if the cursor is at the right place. It took me 15 minutes to track down where my mistake was, after I made a change automatically and nothing was working anymore, then an indeterminate length of time to figure out WHY the error happened
MerlinMama is offline   Reply With Quote
Old 12-29-2014, 01:29 PM   #2
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: 31,059
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Home key goes to the left side, not the Beginning of the line (number)
AFAIK, it has always worked that way
theducks is online now   Reply With Quote
Old 12-29-2014, 01:59 PM   #3
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
What I'm talking about is that it DOESN'T go all the way to the left side if there's a tag there. My edit screen there might be 5 lines of text between number 17 and 18, and I have to call them something, so I call them lines. Sorry if that isn't technically correct, but I don't know any other term.

To be clear, below are two sentences, and after are what I'm talking about:

Do you want to come with me.
<p>We will go to the school for our child's play.

As of now (since last update), on the first sentence, the cursor would go to before the 'D', completely to the left, which is what I expect and it's always done.

On the second sentence, the cursor would end up AFTER the '<' and before the 'p', which is NOT completely to the left.

At least it is doing this to me, since Friday (well, I realized WHAT was happening last night, but the problem was occurring since Friday night).
MerlinMama is offline   Reply With Quote
Old 12-29-2014, 02:08 PM   #4
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: 31,059
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
on W7 64 it goes to the first character, any character, including the <

Try beautifying the file and see if that changes things.
Code:
Do you want to come with me.
<p>We will go to the school for our child's play.
I hope your example is not live code, it is poorly formed
theducks is online now   Reply With Quote
Old 12-29-2014, 03:40 PM   #5
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Nope, any file I open, if there's a tag, it goes AFTER the <. I tried beautifying, and it changes nothing.

I have no idea what your W7 64 means. Oh, just got it I think - windows 7, 64bits? If so, I'm using Windows 8.1, 64bits.

No, my example is just that, something typed up off the top of my head. I have no clue how to do a screen shot, so can't do that, and it wouldn't really show the problem anyway, just where the cursor ends up.
MerlinMama is offline   Reply With Quote
Old 12-29-2014, 05:39 PM   #6
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
I noticed this the other day as well. Of course, I didn't notice it until I had started typing over the tag name. I can see why to do this. If the line starts with a tag and you need to change it, the "<" doesn't change. The bit I am missing is that I can't get to the actual start of the line. For the other code editors I use, home goes to the first non-whitespace character in the line. Pressing home again goes to the beginning of the line.
davidfor is offline   Reply With Quote
Old 12-29-2014, 05:55 PM   #7
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Quote:
Originally Posted by davidfor View Post
I noticed this the other day as well. Of course, I didn't notice it until I had started typing over the tag name. I can see why to do this. If the line starts with a tag and you need to change it, the "<" doesn't change.
I sometimes need to remove the tag, but usually is that I work fast without really looking, so don't always notice that cursor isn't where it should be. Just like previous change where some codes would highlight the word back, so when you did a space, it would overwrite. Didn't notice THAT one immediately either LOL

Quote:
Originally Posted by davidfor View Post
The bit I am missing is that I can't get to the actual start of the line. For the other code editors I use, home goes to the first non-whitespace character in the line. Pressing home again goes to the beginning of the line.
I just use the left arrow key to get there...when I remember and notice. I have to say I only remember AFTER still, not to where I can do it immediately yet.
MerlinMama is offline   Reply With Quote
Old 12-29-2014, 06:54 PM   #8
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
This may have changed with the advent of 2.0/Qt5, can't recall if it was mentioned. But I can say that in Windows Portable v 1.48 the Home key moves the insertion point to the absolute beginning of the current line (ie what's displayed), irrespective of beautify or tags.

But with 2.14 the Home key positions the insertion point to the absolute beginning of the displayed line on overflow lines and to inside first tag '<' on the first line.

My preference would be as per 1.48, incidentally that's what you get with Sigil.

BR
BetterRed is offline   Reply With Quote
Old 12-29-2014, 07:13 PM   #9
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
So it is new and not just something I somehow overlooked. It makes a while since I had an overhaul of my 'books' where I needed to change/edit tags and such, but it was still something that I should have noticed if it changed much earlier.
MerlinMama is offline   Reply With Quote
Old 12-29-2014, 08:14 PM   #10
AnotherCat
....
AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.
 
Posts: 1,547
Karma: 18068960
Join Date: May 2012
Device: ....
Quote:
Originally Posted by BetterRed View Post
...with 2.14 the Home key positions the insertion point to the absolute beginning of the displayed line on overflow lines and to inside first tag '<' on the first line...
For me the cursor goes to the left of the '<' for the first tag on the first line except if the first tag is not indented in which case it goes inside the '<' of the first tag.

As the tags I most frequently edit are indented, and you know how it is about cats preferring mice, it is not something that really affects me though, one way or the other.

One could perhaps create an argument that if one wants the cursor to go to the beginning of a line that started with a tag then it is most likely one will be editing the tag, in which case going inside the first '<' could be regarded as useful???
AnotherCat is offline   Reply With Quote
Old 12-29-2014, 08:51 PM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...7e8a8e9b7b7052
kovidgoyal is online now   Reply With Quote
Old 12-31-2014, 01:23 PM   #12
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
MerlinMama is offline   Reply With Quote
Old 01-01-2015, 10:20 AM   #13
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
A new 'thing' I just found this morning. I'm not well-versed enough to know if any fix would correct this one as well, so I thought I'd mention it.

Each 'sentence' (or whatever you want to call it) began with a word followed by a hyphen to separate it, kind of word followed by definition. Example:

alltud - (Irish) exile</p>
Dhaoradh - (Irish) condemned</p>

I wanted to add the missing initial <p> but the cursor only moved to the END of 'alltud' and 'Dhaoradh' with the Home key.
MerlinMama is offline   Reply With Quote
Old 01-01-2015, 10:31 AM   #14
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: 31,059
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by MerlinMama View Post
A new 'thing' I just found this morning. I'm not well-versed enough to know if any fix would correct this one as well, so I thought I'd mention it.

Each 'sentence' (or whatever you want to call it) began with a word followed by a hyphen to separate it, kind of word followed by definition. Example:

alltud - (Irish) exile</p>
Dhaoradh - (Irish) condemned</p>

I wanted to add the missing initial <p> but the cursor only moved to the END of 'alltud' and 'Dhaoradh' with the Home key.
While not a 'cure' for the home issue that is scheduled for the next release.

Use (REGEX mode) Search and replace
Search:
Code:
</p>\s+([A-Za-z"])
<<I included a straight quote, add a curly one if used


replace:
Code:
</p> <p>\1
<< puts back the stuff found with a <p>
theducks is online now   Reply With Quote
Old 01-01-2015, 07:26 PM   #15
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Thanks. I only had about 6 lines to do, so once aware of the problem it was fine. My regex is very similar, once I mark the section of text for it to apply to

Search: </p>\n([a-zA-Z])
Replace: </p>\n<p>\1

Might I ask why you had \s+ in yours? Whenever I try to use it, it never seems to work as I intended...I'm probably misunderstanding what it's for.
MerlinMama is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Generated TOC at beginning of PDF via command line alexandreaquiles Conversion 1 10-12-2014 03:24 AM
Regex to search at beginning of line kakkalla Sigil 30 06-03-2013 03:08 PM
Regex to insert word at beginning of a line macnab69 Library Management 1 05-20-2013 02:56 AM
Amazon Tags - Popular tags vs Unique tags. chrisanthropic Writers' Corner 6 09-19-2011 11:18 PM
Line indents using "<div>" tags HarryT Kindle Formats 11 04-29-2009 10:18 PM


All times are GMT -4. The time now is 11:54 AM.


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