07-16-2013, 01:42 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2013
Device: all
|
Odd Sigil behavior = <span style="font-size: 0.9em;">???
Sorry if this has been asked before. I searched the forum and elsewhere on the net and didn't find an answer. I've been using Sigil for a few months now on a couple of different platforms (Win and Mac). Trying to set up a work flow for converting our paper magazine into ePub format.
I've noticed an odd behavior that I can't believe hasn't driven someone else batty: whenever I highlight a group of items and make a bulleted list by clicking on the list button, Sigil adds the span tag seen in the header above. For example: <ul> <li><span style="font-size: 0.9em;">Walla Walla</span><br /></li> <li><span style="font-size: 0.9em;">Kukamunga</span><br /></li> </ul> You may also notice that Sigil is adding a completely unnecessary <br /> tag. Is this normal Sigil behavior? Is there a way to stop this? It happens no matter what computer I'm using, even with a fresh copy of Sigil. Obviously, I can do a find/replace to get rid of this junk, but I don't understand why it's showing up in the first place! Thanks, Pete |
07-16-2013, 02:36 PM | #2 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Probably an unwanted side effect of converting the text to HTML. The reason why you have not seen it before, is probably because most people here work in codeview, not bookview. Most only use bookview to get a grasp on how it probably will look and since the preview window the bookview is hardly used by a lot of users...
I advise to create a bug report at the Sigil site. |
Advert | |
|
07-16-2013, 03:09 PM | #3 | |
Well trained by Cats
Posts: 30,391
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I made a cleanup REGEX. Better yet, do your joins in CV and it does not happen. |
|
07-16-2013, 04:28 PM | #4 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2013
Device: all
|
Thanks to you both. I do a lot in code view, but I copy/paste in book view because code view loses all the line breaks, and it's easier to switch back to code view and clean things up with a find/replace than to find and p-tag all the paragraphs back into a 1500-word article.
@theducks I'm not joining any lines, just taking clean text and making a list. It's very clean in code view. I'm kind of anal about clean code. I only make the list in book view because for whatever reason the list buttons grey out in code view. I'll submit a bug report and hope they take care of it. I do appreciate you both taking a swing at this. Pete |
07-17-2013, 01:16 AM | #5 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
It is beter to import a HTML source than to copy/paste as formatting can/will be lost.
|
Advert | |
|
07-17-2013, 07:05 AM | #6 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
This sort of behavior is seen too if you cut and paste in bookview from one place to another where the text size surrounding it is different. It will obnoxiously change the existing size to the new surrounding size using a span tag. For me it usually shows 30pts as the new size.
|
07-22-2013, 12:20 PM | #7 | |
Wizard
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Quote:
Does Sigil had an Excel-like 'Paste Values' or a Word-like 'Paste Text' option? If it does, then I can assign a key to it Paul |
|
07-22-2013, 01:11 PM | #8 | |
Well trained by Cats
Posts: 30,391
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Do explore it's varied uses: There is a simple Paste and there is what I call: Apply to: eg. surround the selected text in <div> tags Sample (starter set) clips were supplied. You can tailor those to your taste. A while back I posted 'My Clips' (as they were then. They (d)evolve over time) |
|
07-22-2013, 06:15 PM | #9 | |
Wizard
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
I remember your clips posting - very helpful
I cannot find the simple Paste, i.e. just the text w/o any formatting that works in BV So if I wanted to copy the H1 para in BV and paste just the text into the next para HERE, the tags also get pasted. I was wondering if there were a 'format-less' paste. CV works fine, but BV will often try to 'help' me by maintaining the formatting with a lot of {style = ....} and I end up with the screen shot Quote:
|
|
07-22-2013, 06:52 PM | #10 | |
Well trained by Cats
Posts: 30,391
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
In Sigil has to be a P or H or possibly a Div. But it is easy to change in BV or CV Paste that h# text Now set the insert point (click) on the line: Ctrl-7 (same as clicking the P button |
|
07-22-2013, 09:33 PM | #11 |
Wizard
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
@theducks --
Agreed In BV your recommendation seems to paste the h# tags, and then the [P] does change to <p> format. Issue is that it leaves the old H# text in a para by itself, (1) in the screen shot. (the Bold-Italic-Underline just a marker) For this sort of stuff, CV will be my friend Paul |
07-22-2013, 10:03 PM | #12 | |
Well trained by Cats
Posts: 30,391
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
<h3 class="foo" becomes <p class="foo" Now if your style sheet was: h3.foo ( and you only had a: p { The foo would be ignored |
|
07-22-2013, 10:50 PM | #13 |
Wizard
Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Sorry, I'm not being more clear, but I wasn't refering to class = ....
In the screen shot 1. Copy the "One One One" 2. Select the HERE in the text and Paste (ctrl-v) (makes another h1 as a seperate para, and 'splits' the text para) 3. Ctrl-7 or [P] on the pasted "One One One" (makes it <p> level) I was wondering if there was a way to just insert the clip board text at the HERE, without any tags or formatting, so that I'd end up with just the one para, and not 3 (the 2nd screen shot only has the one para) I probably won't C&P headers (that was only a convient test), but Sigil inserts { style = "font .........} ad hoc formatting to try and emulate the styleing of the source text CV will work, but sometimes BV can be easier for things like that Paul |
07-22-2013, 11:34 PM | #14 |
Well trained by Cats
Posts: 30,391
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Now I see,
And I don't think so. I wonder if the could make a 'modified' (from the default behavior) paste. Something like: Shift while selecting 'Copy' with the mouse to copy raw text. or Shift-Paste to paste without style tags |
07-23-2013, 06:56 AM | #15 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
This would be in line with normal behavior. It might be paste, then paste special that allows you to specify. It might be a bit of a two step with extra keystrokes, but it would be worth it to save eliminating the unexpected extraneous styles inserted.
Often you only know this issue has happened when you try to do something else with the related text in book view...nothing happens. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
automatic reset of font size in field "comments"? | Grins | Calibre | 3 | 12-19-2012 03:24 AM |
PRS-505 PRS-505 what is the font size of "Large" | vans | Sony Reader | 11 | 09-28-2012 10:16 AM |
PRS-T1 Rooted T1: Can an "in-between" font size be added | caribbean_spur | Sony Reader Dev Corner | 13 | 01-20-2012 11:03 AM |
ePub validation error: 'element "span" not allowed here' | nannygoats | ePub | 5 | 11-30-2011 08:47 AM |
Odd Paragraph Style behavior for text input | Sylver | Conversion | 8 | 02-11-2011 04:37 PM |