Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-26-2016, 10:09 AM   #1
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
A modest proposal

Now that Preview Pane has made Sigil a WYSIWYG editor for all practical purposes, I work more and more often in Code View, rather than creating fresh html in my choice of text editors. What would really speed this up is having an icon for double quotes, similar to the boldface, italic, usw icons already there. This would replace multiple mouse clicks with one.
Notjohn is offline   Reply With Quote
Old 08-26-2016, 10:56 AM   #2
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: 28,509
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
You should be able to create a custom Clip to accomplish that pretty easily.
DiapDealer is offline   Reply With Quote
Advert
Old 08-26-2016, 12:09 PM   #3
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,706
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by DiapDealer View Post
You should be able to create a custom Clip to accomplish that pretty easily.
@Notjohn: There's also a Clips toolbar that you can enable by right-clicking an empty area in the toolbar and selecting Clip Bar.
BTW, you can also wrap text in tags or quotation marks, e.g. “\1”. (\1 will be replaced by the currently selected text-)
Doitsu is offline   Reply With Quote
Old 08-26-2016, 12:19 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: 30,950
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 Doitsu View Post
@Notjohn: There's also a Clips toolbar that you can enable by right-clicking an empty area in the toolbar and selecting Clip Bar.
BTW, you can also wrap text in tags or quotation marks, e.g. “\1”. (\1 will be replaced by the currently selected text-)
I use this feature (clips) all the time. You can even paste them into the Replace box instead of applying to selected text, thus, as building blocks for complex replaces
theducks is offline   Reply With Quote
Old 08-26-2016, 02:24 PM   #5
dynabook
Techno-geek
dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.dynabook ought to be getting tired of karma fortunes by now.
 
Posts: 225
Karma: 1116651
Join Date: Nov 2006
Location: Mississippi, USA
Device: PRS-T1 (Black), PRS-T3S (Black), Kobo Aura ONE
I am having trouble getting that (pasting clips into Find box) to work. Clips keep pasting into the source even though I click on the Find box first. I have a new Mac with El Capitan. Worked on my old El Capitan Mac. I think I may have made a change in preferences to get it to work but I have forgotten what it was.
--MH
dynabook is offline   Reply With Quote
Advert
Old 08-26-2016, 08:53 PM   #6
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: 28,509
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by dynabook View Post
I am having trouble getting that (pasting clips into Find box) to work. Clips keep pasting into the source even though I click on the Find box first. I have a new Mac with El Capitan. Worked on my old El Capitan Mac. I think I may have made a change in preferences to get it to work but I have forgotten what it was.
--MH
Are you thinking of Saved Searches? If you bring up Saved Searches (Tools->Save Searches), You can select a saved search and populate both the Find and Replace boxes, and conduct the F&R activity from within the Saved Searched widget.

If you put your cursor in the Replace box before bringing up the Clip Editor (Tools->Clip Editor) you can select a clip and paste it into the Replace box by hitting the "Paste Clip" button. But the cursor has to be there first. The clip gets pasted wherever the cursor is.

Last edited by DiapDealer; 08-26-2016 at 09:57 PM.
DiapDealer is offline   Reply With Quote
Old 08-26-2016, 09:21 PM   #7
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,332
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Notjohn, here is an image of how I set up the clip bar. It acts as a whole new bar that can hold all kinds of custom commands which get inserted wherever the cursor is located.



The only differences I've noted is that when in code view the clip (ex: "\1") will surround selected text with double quotes, while if you are in the find or replace fields it will replace the selected text with exactly "\1" .

eg.
the clip: <em>\1</em>

In code view with
<p>&nbsp;</p>
selected, the clip will produce:
<em><p>&nbsp;</p></em> (edit - yes I know this is incorrect - just showing that the <em> tags will surround whatever is selected)

In the find or replace fields anything selected will be replaced by:
<em>\1</em>

Last edited by Turtle91; 08-27-2016 at 10:07 AM.
Turtle91 is offline   Reply With Quote
Old 08-27-2016, 09:14 AM   #8
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,679
Karma: 8700123
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Turtle91 View Post

The only differences I've noted is that when in code view the clip (ex: "\1") will surround selected text with double quotes, while if you are in the find or replace fields it will replace the selected text with exactly "\1" .

eg.
the clip: <em>\1</em>

In code view with
<p>&nbsp;</p>
selected, the clip will produce:
<em><p>&nbsp;</p></em>

In the find or replace fields anything selected will be replaced by:
<em>\1</em>
That is because you didn't set the search properly.
  • First at all, you need to set the search mode as "Regex".
  • After that, in the "Find:" field you need to write the words to replace between (\byour words here\b).

Following your example, you need to write in the "Find:" field, the following:

Code:
(\b<p>&nbsp;</p>\b)
and after that you'll get

Code:
<em><p>&nbsp;</p></em>
By the way, the correct code would be <p><em>&nbsp;</em></p>

Regards
Rubén

Last edited by RbnJrg; 08-27-2016 at 09:25 AM.
RbnJrg is offline   Reply With Quote
Old 08-27-2016, 10:01 AM   #9
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,332
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Thanks Rubén, I was just trying to show an example of how the "clip" acts differently depending on where your cursor is placed, not how to do a find/replace or the proper semantics of <em><p>. I guess I wasn't very good at explaining...

Quote:
Originally Posted by RbnJrg View Post
That is because you didn't set the search properly.
  • First at all, you need to set the search mode as "Regex".
  • After that, in the "Find:" field you need to write the words to replace between (\byour words here\b).

Following your example, you need to write in the "Find:" field, the following:

Code:
(\b<p>&nbsp;</p>\b)
and after that you'll get

Code:
<em><p>&nbsp;</p></em>
By the way, the correct code would be <p><em>&nbsp;</em></p>

Regards
Rubén
Turtle91 is offline   Reply With Quote
Old 08-28-2016, 06:04 AM   #10
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
(Just thought I'd ask! I don't MIND the symbol icon, or using macros.)
Notjohn is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Humor Swift, Jonathan: A Modest Proposal. 18 Aug 07 RWood Kindle Books 1 05-23-2014 02:26 PM
A Modest Proposal - Eternal Copyright Ninjalawyer General Discussions 206 03-09-2012 07:05 PM
Humor Swift, Jonathan: A Modest Proposal RWood BBeB/LRF Books 2 04-21-2007 07:01 PM


All times are GMT -4. The time now is 10:57 PM.


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