Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-10-2013, 08:48 PM   #1
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Apply tags to more than one para in BV

I'm learning to work in CV, but some things are easier in BV

1. If I start with this from BV and select BOTH the first 2 paragraphs and apply the [H] button ...


Code:
<body>
  <p>Heading One</p>

  <p>Also Heading One</p>

  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac tellus nunc. Phasellus imperdiet leo metus, et gravida lacus. Donec metus ligula, elementum at pellentesque pellentesque, suscipit ac nunc.</p>

  <p>Etiam lobortis, massa ac aliquam auctor, augue nisl sagittis urna, at dapibus tellus erat ullamcorper ligula. Praesent orci dui, pulvinar id convallis a, faucibus non mauris. Donec tellus augue, tempus sed facilisis sed, fringilla quis leo. Mauris vulputate, leo ac facilisis vulputate, enim orci interdum augue, in blandit quam turpis quis dui.</p>

  <p>Morbi dictum luctus velit nec faucibus. Cras vitae tortor purus, ut tincidunt mauris. Sed at velit nisl. Donec eu mauris tortor, interdum condimentum erat. Nam egestas turpis eget nibh laoreet pharetra. Suspendisse a sem eros, ut pulvinar enim. In sed elit eu nulla accumsan tincidunt eget sit amet ipsum. Nullam ut massa rutrum dolor placerat tempor accumsan eget purus.&nbsp;</p>
</body>

The H1 tags only get applied to the last para

Code:
<body>
  <p>Heading One</p>

  <h1>Also Heading One</h1>
If I do each para one at a time, then I get the 2 H1 paragraphs (as expected)


I would have expected that [H1] would be applied to each para in the selection

Paul
phossler is offline   Reply With Quote
Old 05-10-2013, 11:13 PM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,095
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Is that a question?? Feature requests will get more notice if you put them here.

Cheers,
Turtle91 is offline   Reply With Quote
Advert
Old 05-11-2013, 08:58 AM   #3
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
@Turtle91 ---

Quote:
Is that a question?? Feature requests will get more notice if you put them here.

Well ..... sort of kind of an implied question (maybe).

I really meant to ask ....

"Is that the intended behavior to only apply such formatting to the last <..> text </ ..> in the selection, or a bug, or should it be suggested as possible feature?"

[P] works the same way, but it just seemed IMHO a little counter-intuitive.

Paul

PS. Thanks for the Link
phossler is offline   Reply With Quote
Old 05-11-2013, 09:04 AM   #4
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,095
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
It does make sense to be able to apply a change like that to all the tags in a selection. Although it would be interesting to see how it handled any internal <span><em><strong>, etc. tags.
Turtle91 is offline   Reply With Quote
Old 05-11-2013, 09:43 AM   #5
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,804
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
It makes sense to me the way it works.
It works on a single Element (http://www.w3.org/TR/1999/REC-html40...t.html#h-3.2.1 )
IMHO 3 sequential headings is odd and an alternate coding might be better.
Code:
<h3 class="chapter">42<br /><span class="chaptitle">The Title</span><br /><span class="chapsubt">subtle title :)</span></h3>
Bold, italic and those kinds of things are Phrase Elements and it is more common to have them applied to multiple elements.

Some day, we may see Sigil get the ability to 'set' (as in attach) a CSS selector interactively to those buttons via a right click with the default being the present SGC way.

scenario:
right-click the [P]: (multi: in the preferred order?) choose a selector (the burden is on the user to pick sensible ones)

ex: firstpara and bolditalic = <p class="firstpara bolditalic">
theducks is offline   Reply With Quote
Advert
Old 05-11-2013, 11:36 AM   #6
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Thanks --

I can see the postitives either way, but I still believe (IMVHO) that it's counter-intuititive to only apply an operation to part of the selection. It should be up to the user to realize that their choice was odd

I ended up applying H2 to both paras in BV, joining them, and finally inserting a line break so as to end up with a single H2 with 2 lines


Quote:
It does make sense to be able to apply a change like that to all the tags in a selection. Although it would be interesting to see how it handled any internal <span><em><strong>, etc. tags.

What was interesting was to use [H2] in code view with only a single <p>...</p> selected.
It ended up as <h2><p>...</p></h2>. I was expecting it to just replace the <p> tags. Just unexpected is all



Paul

Last edited by phossler; 05-11-2013 at 11:40 AM.
phossler is offline   Reply With Quote
Old 05-11-2013, 11:46 AM   #7
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,804
Karma: 54830978
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 phossler View Post
Thanks --

I can see the postitives either way, but I still believe (IMVHO) that it's counter-intuititive to only apply an operation to part of the selection. It should be up to the user to realize that their choice was odd

I ended up applying H2 to both paras in BV, joining them, and finally inserting a line break so as to end up with a single H2 with 2 lines





What was interesting was to use [H2] in code view with only a single <p>...</p> selected.
It ended up as <h2><p>...</p></h2>. I was expecting it to just replace the <p> tags. Just unexpected is all



Paul
Sigil is quirky (It really is the toolkit's used fault). It has been that way since 2.0

Don't Select in BV for those tag buttons... Just click to set the cursor (insertion point) on the line. Now click the button.
theducks is offline   Reply With Quote
Old 05-11-2013, 01:31 PM   #8
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
Don't Select in BV for those tag buttons... Just click to set the cursor (insertion point) on the line. Now click the button.
Ahh -- that DOES work better

Paul
phossler is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firmware Update which hack version to apply on upgraded kindle dx 3.2.1 aliabbasjp Amazon Kindle 0 04-12-2012 09:24 AM
Amazon Tags - Popular tags vs Unique tags. chrisanthropic Writers' Corner 6 09-19-2011 11:18 PM
How to apply the enhancements/patches ? nubbol Calibre 2 09-04-2010 11:42 PM
How to apply fixed-width fonts EnergyLens Calibre 5 04-17-2010 12:41 PM
Apply match_regexps and filter_regexpr on feeds logan Calibre 1 02-11-2009 06:08 PM


All times are GMT -4. The time now is 10:16 AM.


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