![]() |
#1 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Two requests
Hi Kovid
I'm using Editor more often now, and use the TOC tool all the time - so useful being able to add Covers, Jackets etc. without having to muck about. If the tasks below are already possible (with buttons) I apologise, and somebody please point! Firstly: No button for text alignment - which is pretty standard everywhere and I miss it! Other related codes -- indent, bullets etc. I can live without but those, too, would be nice in the future. I don't doubt you have them in the pipeline. Just looking up at the forum formatting options - most of those on the left hand half of the toolbar would be good in time. ![]() Second: TOC tool -- it would be very, very useful to be able to use "bulk"selections in the nesting screen. It's quite frustrating having to individually indent chapters if a book has 80!! Thanks so much for all your hard work. |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,884
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
There is no alignment (or other styling) button because this is a code editor not a WYSIWYG editor
When a 'clips' tool gets implemented, you can make all the 'clips' you want to insert your class="foo" to the tag . foo being the most perfect of styles ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,156
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
And if you want to indent multiple entries in the ToC Editor, simply select them all and drag and drop them onto their parent entry.
|
![]() |
![]() |
![]() |
#4 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Quote:
![]() When a clips tool is available, I prefer to limit my clips to Regex stuff that's a pain to type. |
|
![]() |
![]() |
![]() |
#5 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
What kind of challenges that creates for a code editor I have no idea. Just pointing out the obvious difference. Last edited by DoctorOhh; 03-18-2014 at 07:46 AM. |
|
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,156
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#8 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Quote:
I DO code text alignment into major styles (such as "H" class headings) and have a class defined for centering in my CSS which I can easily add to coding as needed. However, until and even if, a clip feature is added to Editor, having a button for text alignment (span style coding) seems like an obvious thing...to this little black duck, anyway. I am happy to be enlightened! |
|
![]() |
![]() |
![]() |
#9 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
|
![]() |
![]() |
![]() |
#10 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
So anything that can be wrapped with a span tag around selected words can get a button, but if it cannot fit in a span tag I don't think it will get done. Or at least it will be a low priority, only for when Kovid gets bored with everything else he has to do. ![]() |
|
![]() |
![]() |
![]() |
#11 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
Quote:
![]() OK - in terms of using a button to apply a code, what's the difference between inserting italics: Code:
<p>The cat sat on the <i>fluffy</i> mat.</p> Code:
<p class="calibre1" style="text-align: center;">The cat sat on the fluffy mat.</p> Maybe Kovid can consider it if and when he's ever bored enough ... does that ever happen?? |
|
![]() |
![]() |
![]() |
#12 | ||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Without question it could be done with enough analysis in the program, but it is definitely far more complicated then the assumptions in your example. Again, the challenges this creates from a coding point of view I can't even begin to guess, but it is obviously not the same as bold, italic, strike-thru etc... This editor is most likely never going to be a what you see is what you get editor. So if you want to change calibre1 to text-align: center, for the foreseeable future you'll have to insert the line into the proper class in the CSS. Quote:
Last edited by DoctorOhh; 03-19-2014 at 05:46 AM. |
||
![]() |
![]() |
![]() |
#13 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,156
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The problem with justification, is as has been pointed out that it is a block level property, not an inline one, and while it is certainly possible to detect the nearest surrounding block and slap the style="text-align: whatever" on it, this is not generally a good way to structure your code. You really should setup alignment at a global level with CSS and apply it to all blocks, with a few specific exceptions.
|
![]() |
![]() |
![]() |
#14 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,884
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Why encourage sloppy coding by providing a tool that creates a potential inline mess
![]() I realize there are occasional valid uses, but those few can/should be hand coded. IMHO block level styling should be done via the CSS ![]() |
![]() |
![]() |
![]() |
#15 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 159
Karma: 24430
Join Date: Mar 2012
Location: Australia
Device: Nexus 7"
|
I don't think I have been making myself clear. I certainly would never advocate or use buttons to change alignment in "bulk" (multiple paragraphs) in body text and clearly I use CSS for 99.995% of all alignment. However, it is occasionally very handy to use a button to, for example, quickly center (or otherwise) something like a headline, or a company name, whatever, sitting in between paragraphs in a novel. If you have an existing class that has all the characteristics you want OTHER than the alignment, it saves defining a new class or typing in the style:align coding. (Sigil's buttons override the class alignment, if any.) The insertion point is pretty straightforward, surely, as you would only be using a button to align an entire selected line/block of text. I can't see how that's sloppy or how it encourages sloppy coding, personally.
Anyway, thanks everyone. I have learned to differentiate between simple inline and other codes -- something I hadn't thought of before since I define characteristics for italics etc. in my CSS. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Enhancement requests (or Does it already do that?) | atuszynski | Calibre | 2 | 04-04-2011 11:02 PM |
Two questions/requests | MildBill | Conversion | 13 | 01-31-2011 03:47 AM |
Feature Requests | quietone | Calibre | 6 | 03-07-2010 01:56 AM |
Change requests | mikelv | EPUBReader | 0 | 11-30-2009 01:19 PM |