Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-01-2016, 05:40 PM   #16
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,577
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Can you duplicate it by pasting the same data into other applications that give you the plain text choice when pasting?
DiapDealer is online now   Reply With Quote
Old 07-01-2016, 06:39 PM   #17
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,729
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by DiapDealer View Post
Can you duplicate it by pasting the same data into other applications that give you the plain text choice when pasting?
I tried it with Notepad++ v6.5.2 and got almost the same results when I selected Edit > Paste Special > HTML Format.

Spoiler:
Code:
Version:0.9
StartHTML:00000176
EndHTML:00000535
StartFragment:00000210
EndFragment:00000499
SourceURL:https://www.mobileread.com/forums/newreply.php?do=postreply&t=275356
<html><body>
<!--StartFragment-->A search for "Fragment" in the entire repository for Sigil comes up with
 nothing.  So this comment string is not being generated by Sigil.  It 
could come from your system clipboard software or from whatever source 
you copied it from, or from clipboard utilities.<br>
<br>
KevinH
	<!--EndFragment-->
</body>
</html>


(Apparently Notepad Plus doesn't remove the header information.)

BTW, when I looked at the clipboard content with the free Windows CLCL clipboard manager I saw the same fragment tags when I selected HTML Format from format list.

I.e., the fragment tags are definitely generated by the app the text was copied from.

IMHO, this is a purely cosmetic issue since the fragment tags are valid comments. If the OP doesn't like them, he could create a search and replace clip to remove them.
Doitsu is offline   Reply With Quote
Old 07-01-2016, 07:16 PM   #18
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,735
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
For Windows there are clipboard utilities that will scrub markup from the clipboard, I use one called Clipboard Fusion. When its enabled I don't get the question when I paste into Sigil's Book View - from Word, Firefox or the calibre ePub viewer.

BR

Last edited by BetterRed; 07-01-2016 at 07:24 PM.
BetterRed is online now   Reply With Quote
Old 07-03-2016, 11:19 AM   #19
PapaKilo
Connoisseur
PapaKilo began at the beginning.
 
Posts: 84
Karma: 10
Join Date: Jul 2012
Location: Florida USA
Device: Android, kindle
I know where it comes from and how to remove it. I just wanted to know if there was a way to prevent it in the first place.

Or maybe an option in 'Mend and prettify' to remove them

PK
PapaKilo is offline   Reply With Quote
Old 07-03-2016, 11:53 AM   #20
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,577
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Sorry but no. Sigil might fix some invalid code when you allow it to, but it's not going to remove perfectly valid code as part of its Mend or Prettify features (nor is it going to diddle the content of what another application placed in the clipboard before pasting it).

You can easily create a clip to find/remove the comments you don't want, and even assign a keyboard shortcut to the clip for convenience. A plugin can also be written to do something similiar. This is just not something that's a good candidate for inclusion in Sigil's core functionality, I'm afraid.

Last edited by DiapDealer; 07-03-2016 at 12:02 PM.
DiapDealer is online now   Reply With Quote
Old 07-03-2016, 11:30 PM   #21
PapaKilo
Connoisseur
PapaKilo began at the beginning.
 
Posts: 84
Karma: 10
Join Date: Jul 2012
Location: Florida USA
Device: Android, kindle
OK, that's interesting. Just exactly how would you create a clip that would search and replace something?

There is nothing like that in the clip editor andI can't find any documentation about the clip editor. The documentation on the Sigil site is for ver 7 and won't open anyway.

PK
PapaKilo is offline   Reply With Quote
Old 07-04-2016, 08:26 AM   #22
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,770
Karma: 6000000
Join Date: Nov 2009
Device: many
Sigil ver 7.2 docs epub hosted on our github site is still quite relevant and opens just fine with Sigil. What error message are your getting when trying to open that file?
KevinH
KevinH is offline   Reply With Quote
Old 07-04-2016, 09:16 AM   #23
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,729
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by PapaKilo View Post
OK, that's interesting. Just exactly how would you create a clip that would search and replace something?
Actually, I misspoke I suggested using clips; I meant the Saved Searches feature. The steps are as follows:

1. Press CTRL+ALT+F to open the Saved Searches dialog box.
2. Press CTRL+E to add a new entry with the following data:
Name: Delete fragment tags; Find:<!--(Start|End)Fragment-->
(Leave the Replace box empty)
3. Click Save and close the Saved Searches dialog box.

The next time you see fragment comments and want to delete them, you'd:

1. Switch to Code View mode and select the Regex mode.
2. Press CTRL+ALT+F to open the Saved Searches dialog box.
3. Select the Delete fragment tags saved search and click Load Search.
4. Click Replace All.

This may sound complicated, but all you'd have to do is one key press and 2 or three mouse clicks.

If you want to avoid having to switch to Regex mode, you could also create a Saved Search group with two entries: one for <!--StartFragment--> and one for <!--EndFragment-->.
Doitsu is offline   Reply With Quote
Old 07-04-2016, 09:29 AM   #24
PapaKilo
Connoisseur
PapaKilo began at the beginning.
 
Posts: 84
Karma: 10
Join Date: Jul 2012
Location: Florida USA
Device: Android, kindle
Cool, didn't know you could do that. It is hidden very well.

Why isn't there a context menu or tool bar for Saved Searches???

PK
PapaKilo is offline   Reply With Quote
Old 07-04-2016, 09:31 AM   #25
PapaKilo
Connoisseur
PapaKilo began at the beginning.
 
Posts: 84
Karma: 10
Join Date: Jul 2012
Location: Florida USA
Device: Android, kindle
BTW apparently I got a bad download on the DOC's.

PK
PapaKilo is offline   Reply With Quote
Old 07-04-2016, 09:48 AM   #26
PapaKilo
Connoisseur
PapaKilo began at the beginning.
 
Posts: 84
Karma: 10
Join Date: Jul 2012
Location: Florida USA
Device: Android, kindle
Well that fixes the problem with getting errors when using clips to put things in the Find box. This is way cooler.

Wish I'd seen it sooner

Thanks for all the help,
PK
PapaKilo is offline   Reply With Quote
Old 07-04-2016, 10:20 AM   #27
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by PapaKilo View Post
Cool, didn't know you could do that. It is hidden very well.

Why isn't there a context menu or tool bar for Saved Searches???

PK
Well, it is the menu and if you right-click on the search field, you can select a saved search. It has been in Sigil since 0.6.x I believe.
Toxaris is offline   Reply With Quote
Old 07-04-2016, 11:08 AM   #28
PapaKilo
Connoisseur
PapaKilo began at the beginning.
 
Posts: 84
Karma: 10
Join Date: Jul 2012
Location: Florida USA
Device: Android, kindle
Yes, I know now. After I found out about it I figured out how to use it. Love the Group function.
PapaKilo is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil error Alonso Alvarez Sigil 8 10-12-2013 08:29 PM
Sigil 0.7.0 Error in Windows Xp mont555 Sigil 5 02-23-2013 04:01 PM
Sigil error in Ubuntu 12.04 njm55n Sigil 13 05-20-2012 06:19 AM
Need help with Sigil validation error wraylewis Sigil 8 12-21-2011 02:46 PM
Sigil start error? weedfreak Sigil 0 03-26-2011 05:30 AM


All times are GMT -4. The time now is 07:30 PM.


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