Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 06-27-2012, 09:09 PM   #91
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by DiapDealer
The original source could possibly be utf-16, but at the point the entity substitution happens, Sigil seems to have already homogenized everything to utf-8 (that's an assumption based on the presence of the "QString::fromUtf8" function). Still... it could pose a problem if Sigil does (or chooses to in the future) preserve the underlying utf-8/16-ness of a document. Right now, though, it seems that portion of Sigil's code is confidently expecting utf-8. *shrugs*
You're misunderstanding how the QString::fromUtf8 function works. Internally a QString is utf16. ::fromUtf8 takes a utf8 string and converts it into a utf16 string (all QStrings are utf16). Very little assumes or requires utf8 in regard to the text. PCRE included in 0.5.x was utf8 only. With 0.6.0 PCRE has added support for utf16 and Sigil is using it. Spell check does use uft8 but spell check is not required and does not prevent a utf16 document to be loaded or saved.

Quote:
Originally Posted by Serpentine
A few of us spoke up against the idea — but there was a lot of "Herpa derp I once edited something... so make the BV nice! XD," while actual users voiced that throwing web-components into something, to replace native ones was a bad idea and would require so many affordances to be forced into being, for little gain at the end of the day.
Try listening. I've told you this before. The majority of the old component was written in Javascript. The old component loads and uses JQuery for a number of different operations. Look at all of the [url=http://code.google.com/p/sigil/source/browse/?name=0.5.3#git%2Fsrc%2FSigil%2FResource_Files%2Fj avascript]helpers[/ur] that were used. This is in addition to all of the Javacript sprinkled throughout the BV source.

Quote:
Originally Posted by ondrejandrej
Hi, I installed the version 0.5.902 under Linux and realized, that it sucks. How do I remove it? There are no uninstallation instructions neither in enclosed text files nor in wiki.
Sigil is no longer provided as a binary package. If you installed from a binary package ask the author of that package. If you built from source. Learn about building from source because it includes the same uninstaller as pretty much every other source package. None.

---

Syncing:

Syncing the cursor between views isn't supported. The cursor should remember its position within the view.

BookView:

EPUB 3? Yes? The old BV doesn't support outputting HTML5. It actually doesn't even support outputting 100% valid XHTML. Tidy is used to turn the output into something that passes validation.

There is not good WYSIWYG editing component. I'm not willing to spend the time to write one from scratch as that would be the equivalent of creating something similar and even more complex than a browser. So either what's currently available can be used or no BV.

Personally I'd love to drop BV completely. It's the most frustrating piece of Sigil to work on. It doesn't work properly and it never has. It complicates the code base by a large amount. About 60% of the time spent working on every release is spent dealing with BV. That said, I don't think it's a good idea to drop BV from Sigil. A non-Sigil Sigil without BV would be a different story though.

Slotting the old BV back in is possible. It should only take an afternoon worth of work. I'll weigh the advantages of doing so. But don't think that putting the old BV back will solve every issue. For example, the old BV doesn't always produce output that will pass validation. It's actually easier to modify CKEditor's output than the old BV.

The point of the beta is to see what work, what doesn't, what people don't like and what people like. Funny thing about doing a beta is about 25% of the issues reported aren't new. They've been around for quite some time.

The hardest part of developing software is what one person requests as functionality and loves another person hates. So we end up with different parties asking for different things that don't work well together. There are only a few outcomes. One party isn't happy. Neither party is happy. Both parties are somewhat happy. It's pretty much impossible to make both parties completely happy.

At this point I'm thinking I have enough feedback to go back the drawing board for 0.6.0. Put some more work into it and try again at a later date. If something doesn't work there isn't anything wrong with trowing it out. The only drawback is with limited developers and limited resources it delays a new release.
user_none is offline  
Old 06-27-2012, 09:50 PM   #92
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,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Bug? 902 on XP

Sometimes in CV Replace is no longer an option (only Find)
Reloading (with a Save) the Book (and exact same page) and Replace is once again Available.

I have not pinned it down to any Solid events.
It has happened 3 times in the last few days
theducks is online now  
Old 06-27-2012, 10:06 PM   #93
capidamonte
Not who you think I am...
capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
capidamonte's Avatar
 
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
If you're looking for moral support for dropping BV as an editor, I'm offering it.

A simple Display View of how it looks, without any ability to edit would be fine with me (assuming it can actually display things like embedded fonts, etc.)

It'd be nice if such a Display View was dockable/separable (for dual-screen use), and if it auto-refreshed -- although I understand that may be difficult with well-formedness checks. A manual refresh would be adequate.

I think you are indeed trying to develop "two, Two, TWO! apps in one!" One for people that get HTML and regex, and one for people who don't -- or don't want always to be bothered, at least.

I wonder if it's even possible to write a "word-processor for epubs" that let's you look under the hood and tinker... Not enough guarantee of regularity to let you be confident of what you're changing when you word-process, especially when importing from external sources.

To keep it elegant, it's one or the other (or both, separately.)

$0.02,
capidamonte is offline  
Old 06-28-2012, 12:47 AM   #94
Danger
Evangelist
Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.
 
Danger's Avatar
 
Posts: 490
Karma: 1665031
Join Date: Nov 2010
Location: Vancouver Island, Nanaimo
Device: K2 (retired), Kobo Touch (passed to the wife), KGlo, Galaxy TabPro
Quote:
Originally Posted by capidamonte View Post
... A simple Display View of how it looks, without any ability to edit would be fine with me (assuming it can actually display things like embedded fonts, etc.)

It'd be nice if such a Display View was dockable/separable (for dual-screen use), and if it auto-refreshed -- although I understand that may be difficult with well-formedness checks. A manual refresh would be adequate...
Funny, that's exactly what I was thinking just before I read this post. I couldn't care less to actually edit in BV. The only thing I use BV for is to preview the changes I made in CV.... Does that indent look good enough, is that font size maybe too big, etc. etc. A simple preView rather than an editable BV would be great. Assuming that was easier than making BV an editable preview.

Quote:
Originally Posted by user_none
Syncing the cursor between views isn't supported. The cursor should remember its position within the view.
If only mine did remember where it was, currently my cursor jumps to the bottom of the CV screen when I switch from BV back to CV, pretty much everytime.
Danger is offline  
Old 06-28-2012, 01:32 AM   #95
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Quote:
Originally Posted by user_none View Post
Slotting the old BV back in is possible. It should only take an afternoon worth of work.
that gets my vote. even if you freeze it as-is & don't ever enhance it - one afternoons work for backward compatibility seems a good trade.
cybmole is offline  
Old 06-28-2012, 05:22 AM   #96
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
Quote:
Originally Posted by capidamonte View Post
I wonder if it's even possible to write a "word-processor for epubs" that let's you look under the hood and tinker...
It's certainly POSSIBLE. Any decent website editor does it, and an epub is only a limited-function set of web pages!
exaltedwombat is offline  
Old 06-28-2012, 05:42 AM   #97
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: 27,463
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by user_none View Post
You're misunderstanding how the QString::fromUtf8 function works. Internally a QString is utf16. ::fromUtf8 takes a utf8 string and converts it into a utf16 string (all QStrings are utf16). Very little assumes or requires utf8 in regard to the text. PCRE included in 0.5.x was utf8 only. With 0.6.0 PCRE has added support for utf16 and Sigil is using it. Spell check does use uft8 but spell check is not required and does not prevent a utf16 document to be loaded or saved.
Thanks for the clarification on QString::fromUtf8. But a built from scratch Sigil ePub does currently only contain utf-8 xhtml files, right? I know windows-1252 gets converted to utf-8 when you add/import... and I've never been able to get a utf-16 html file to add/import properly (in 0.5.3 or the 0.6 betas), so I figured it was a safe assumption that the code would only be encountering utf-8 at that point. But I guess that doesn't take into account non-Sigil built ePubs that may already contain utf-16 files, does it?

Last edited by DiapDealer; 06-28-2012 at 05:47 AM.
DiapDealer is offline  
Old 06-28-2012, 06:59 AM   #98
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
The old book view had its own problems which were very annoying. Things got automatically highlighted, so when you pressed delete more text than you wanted disappeared. But syncing, such as it was, was nice.

Please do not drop book view. It allows me to see if my code editing has been successful or not without having to open up another program. Half the utility would be gone, since if all I wanted to do was edit code I could use tweak epub along with any good text editor. Being able to find odd characters or strange spacing is very worthwhile. PG Canada material has page numbers made invisible that cause odd spaces in the text. It is not easy to see this in code view, but it is very clear in book view. The effect of non-breaking spaces is more obvious in book view than in code view. It is hard to keep both BV and CV, but it is worthwhile.

The syncing issue may not be such a big thing if we could see the position remembered in book view. I usually work my way down a document, so I would generally move down both on the BV side and CV side pretty much together anyway.

Any chance the BV modules old and new could be modularized, so they could be selected at install time, without creating much more work and hair tearing? Maybe that would satisfy both camps.
mrmikel is offline  
Old 06-28-2012, 08:05 AM   #99
JoHunt
I am what I am
JoHunt ought to be getting tired of karma fortunes by now.JoHunt ought to be getting tired of karma fortunes by now.JoHunt ought to be getting tired of karma fortunes by now.JoHunt ought to be getting tired of karma fortunes by now.JoHunt ought to be getting tired of karma fortunes by now.JoHunt ought to be getting tired of karma fortunes by now.JoHunt ought to be getting tired of karma fortunes by now.JoHunt ought to be getting tired of karma fortunes by now.JoHunt ought to be getting tired of karma fortunes by now.JoHunt ought to be getting tired of karma fortunes by now.JoHunt ought to be getting tired of karma fortunes by now.
 
JoHunt's Avatar
 
Posts: 6,625
Karma: 62235665
Join Date: Sep 2011
Device: iPad3, Voyage
Quote:
Originally Posted by mrmikel View Post

The syncing issue may not be such a big thing if we could see the position remembered in book view. I usually work my way down a document, so I would generally move down both on the BV side and CV side pretty much together anyway.
In my (somewhat humble) opinion cursor sync is one of the best parts of Sigil. No matter what view I'm in, if I see something I don't like, I can merely position my cursor and efficiently move between views as required.

I worry that last position remembered will require too much searching for the cursor. It may not be a problem on first edit, but on second proof changes may be far and few between.
JoHunt is offline  
Old 06-28-2012, 09:54 AM   #100
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
I'd prefer syncing myself, but user_none has made it clear he doesn't want to do it. I was just aiming for some middle ground that he could do without making it too much work. He does have a day job and I REALLY appreciate him bringing Sigil up to the level that he has. I am pretty sure MY mind could not stretch from payment processing software to epub creation software.

You have the displayed text which looks simple, then all the underlying code...where is the cursor, really? To which side of invisible text, or a change in style?
mrmikel is offline  
Old 06-28-2012, 10:25 AM   #101
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
Quote:
Originally Posted by mrmikel View Post
You have the displayed text which looks simple, then all the underlying code...where is the cursor, really? To which side of invisible text, or a change in style?
Doesn't really matter - as long as I can highlight a string of text and find the same string, with or without its adjacent code, highlighted in Code View.
exaltedwombat is offline  
Old 06-28-2012, 10:43 PM   #102
capidamonte
Not who you think I am...
capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.capidamonte can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
capidamonte's Avatar
 
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
Quote:
Originally Posted by exaltedwombat View Post
It's certainly POSSIBLE. Any decent website editor does it, and an epub is only a limited-function set of web pages!
No.

Imagine passing a website's code through three or four different web-editors, then opening the code-view and trying to parse what the heck everything was.

Never work. It's always a complex of spaghetti-code and overlaid styles. It's like what you get out of Calibre after a conversion.

It works, visually. That's it. Not readily parseable for elements, because it doesn't care. It's just trying to do something visual.

The point of proper editing of a book is to generate good classes and elements, divorcing style from content; the only way to do that is to get smart about minimizing what you use. If you allow it to be open-ended, you break easily Word-processing a book into shape, because the necessarily-limited set of elements and styling is exceeded and the app cannot cope -- it is impossible, short of machine-sentience for it to know what you intended.

Making an editor that displays what the code does, sure; that's self-evident. Making an editor that meets the needs of the ignorant and the wise is impossible -- all you'll ever get is kludges.

Now I'm up to $0.04.

Aloha,
capidamonte is offline  
Old 06-29-2012, 05:34 AM   #103
ondrejandrej
Member
ondrejandrej began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Sep 2010
Location: Brno, Czech Republic
Device: Android-based tablet
Quote:
Originally Posted by capidamonte View Post
If you're looking for moral support for dropping BV as an editor, I'm offering it.

A simple Display View of how it looks, without any ability to edit would be fine with me (assuming it can actually display things like embedded fonts, etc.)
In my case one example of a situation, where Book view is needed, is editing books in Czech language, where I often have to replace ASCII quotation marks with the proper Unicode quotes in Czech (example: „quoted text“). Many other languages use the same quotation marks. I use regular expressions to replace the opening ASCII quotation mark with a different character than the closing one. If I do it in Code view, the quotes in HTML tags are replaced as well (bad).

However, for this and other situations it would be enough to be able to exclude HTML tags in Search and Replace. Moreover Search and Replace in Book view isn't able to go through all files. I would be happy if there was one more checkbox "Exclude HTML tags" in Search and Replace dialog in Code view.

One more thing: I realized, that if I replace a hyphen with an en dash, the code – is inserted in the code view instead of unicode character "–", even if I enter "–" as the replacement text. That happens after clicking "Replace all". If I replace individually by clicking "Replace", the unicode character is inserted. I think it should be either one way or the other, not both. And I prefer inserting the unicode character (if I wanted to insert – I could enter it as replacement text).
ondrejandrej is offline  
Old 06-29-2012, 08:57 AM   #104
Dillinquent
eBook pro
Dillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toysDillinquent shares his or her toys
 
Dillinquent's Avatar
 
Posts: 71
Karma: 5634
Join Date: Jan 2011
Location: Hertford, UK
Device: PC, iPad, Kindle, Kindle Fire, Galaxy Ace
Title tag contents disappearing

A small bug I've found - the contents of the title tag sometimes goes awol leaving just the tags (<title></title>). It seems to happen in the active file when switching between BV & CV and back again, regardless of which source cleaning option is selected.
Dillinquent is offline  
Old 06-29-2012, 10:56 AM   #105
Danger
Evangelist
Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.
 
Danger's Avatar
 
Posts: 490
Karma: 1665031
Join Date: Nov 2010
Location: Vancouver Island, Nanaimo
Device: K2 (retired), Kobo Touch (passed to the wife), KGlo, Galaxy TabPro
Quote:
Originally Posted by ondrejandrej View Post
...to replace ASCII quotation marks with the proper Unicode quotes in Czech (example: „quoted text“). Many other languages use the same quotation marks. I use regular expressions to replace the opening ASCII quotation mark with a different character than the closing one. If I do it in Code view, the quotes in HTML tags are replaced as well (bad)....
I do this when replacing straight quote marks with proper curly quotes:

FIND: >"
REPLACE: >“

Replaces all quote marks after any > which usually denotes the end of an HTML tag.

Next, replace all " in front of a capital letter:

FIND: "([A-Z])
REPLACE: “\1

That should take care of most if not all quotes that start a sentence.

I then go on to replace the ending quote of a sentence with curly quote mark.

FIND: "</
REPLACE: ”\1

then replace all quote marks after a period, comma, question mark, exclamation mark:

FIND: ([.,?!])"
REPLACE: .”

I usually do a step through to check to make sure I got all the marks:

FIND: “(.*?)”

I then do a final step through to see if there are any straglers, this WILL find " marks in HTML tags, but not all of them by skipping any that start with an equal sign (classes) or ending in > end of class:

FIND: ([^=])"([^>])

It's a bit of work but MUCH less than stepping through each " mark and judging if it should be replaced. As all but the last two can "Replace All"

Last edited by Danger; 06-29-2012 at 10:59 AM.
Danger is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
0.5.901 (0.6.0 beta) avaliable user_none Sigil 118 06-19-2012 08:59 PM
0.4.903 (0.5 beta) Avaliable user_none Sigil 77 01-03-2012 09:24 PM
0.4.902 (0.5 beta) Avaliable user_none Sigil 65 12-18-2011 11:58 AM
No Avaliable format ? ? ? Janette55 Library Management 5 04-16-2011 04:09 PM
Beta 2.0.3 firmware 902 problems Roos PocketBook 15 12-15-2010 10:11 AM


All times are GMT -4. The time now is 09:23 AM.


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