Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-10-2020, 10:14 PM   #16
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,828
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JJ Johnson View Post
PyCharm is a code editor I've been using lately that has a word wrap toggle. Called "soft-wrap", it's disabled by default, which is actually what I'd expect in a code editor.

No question about it, if you want to edit the text of a book, you'd typically want word wrap enabled so that all text is visible. But not so much when editing the markup, IMO.
If the only markup is close to the start of line, that approach might be okay. I've seen all too many books where markup is scattered across the line including nasty bits for last phrase and last word.
DNSB is offline   Reply With Quote
Old 06-11-2020, 07:35 AM   #17
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,478
Karma: 5703586
Join Date: Nov 2009
Device: many
plus ending tags plus spans, plus italics, bold, underline, etc.
KevinH is offline   Reply With Quote
Advert
Old 06-11-2020, 07:49 AM   #18
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,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I honestly can't understand how anyone could think that looking at half (or one-fourth, or one-eighth) of a line of markup would be advantageous at all. Needing to scroll back and forth horizontally (as well as vertically) to get the entire picture seems like a step backward from only needing to scroll vertically to me.
DiapDealer is offline   Reply With Quote
Old 06-11-2020, 08:48 AM   #19
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,629
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Occasionally I've stumbled on conversion output where every sentence is a new paragraph, not whole books, normally short passages. Or where several paragraphs get joined into a Proustian screed. Having the original and a 'no line-wrap' editor makes it easier to reconstruct the original paragraph structure.

That Sigil doesn't have a no-line-wrap toggle has never bothered me, there are zilllions of editors that do - even Notepad has it

I just don't get the attitude that every tool must have every flying fish and duck that the gods ever invented to put on wall - I can't saw wood with my croquet mallet either

Open With is the best gizmo anyone ever added to Sigil.

BR
BetterRed is offline   Reply With Quote
Old 06-11-2020, 09:04 AM   #20
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,312
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
Are Croquet mallets those things they stick in the ground at the end of the cricket pitch??

I'm not sure that I would use non-word wrap all that often either. Although I could see myself using it once-in-a-while.

My thought is that, I assume, the coding window is a Qt based widget. If that is true, I would think that word-wrap functionality is a setting that should be able to be set/unset with a simple selection. Sigil's GUI doesn't currently have that selection functionality, but I imagine if the OP wanted to add it to the feature request list, then the developers could prioritize it based on need and difficulty to implement.

btw - jk on the croquet mallet thing...
Turtle91 is offline   Reply With Quote
Advert
Old 06-11-2020, 11:01 AM   #21
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,478
Karma: 5703586
Join Date: Nov 2009
Device: many
Nope. Not adding it. Find another editor and use "open with". We are not in race to add editor features when a user can easily launch up to 5 other editors with only a click or two.

**EDIT**

I take that back. I am being too obstinate. I do not think that feature is worthwhile and therefore I do not want to spend any of my time on implementing it (especially the user interface icon and toggle).

But if someone generated a pull request complete with toggle wrap mode icon made to match what we have now (and assign a key sequence) and that properly uses setLineWrapMode in CodeViewEditor (derived from QPlainTextEdit) and all supported code changes (including keeping the current state in the sigil.ini SettingsStore, I would include it if DiapDealer agrees.

Last edited by KevinH; 06-11-2020 at 11:40 AM.
KevinH is offline   Reply With Quote
Old 06-11-2020, 12:12 PM   #22
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,312
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
Quote:
Originally Posted by KevinH View Post
I do not think that feature is worthwhile and therefore I do not want to spend any of my time on implementing it (especially the user interface icon and toggle)...
Sorry if I wasn't clear... that's what I meant by 'prioritizing it based on need and difficulty' I wasn't trying to pressure anyone into doing even more work if you didn't feel it was worth the time. I remember another project I was a tester for and it was amazing how many 'features' a particular individual was constantly demanding to be added. At the beginning the developer was trying to be nice and tried to incorporate the requests, but he eventually had to 'prioritize' and many of them are still on the list to accomplish... this was 8 years ago...
Turtle91 is offline   Reply With Quote
Old 06-11-2020, 02:16 PM   #23
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,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
I would include it if DiapDealer agrees.
Nope. Ain't having it.
Spoiler:
Just Kidding. If someone else does the work (to the specs you clearly laid out), I'd happily click the Merge button on the pull request!
DiapDealer is offline   Reply With Quote
Old 06-11-2020, 05:05 PM   #24
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 809
Karma: 2416112
Join Date: Jan 2017
Location: Poland
Device: Various
Maybe someone will be motivated to do it, but for what? To check if all opening tags are OK? This is of course possible and does not even interfere with the settings in sigil.ini

Since I can do it through Open with and choose my favorite editor – it probably doesn't make sense.
Attached Thumbnails
Click image for larger version

Name:	SigilNoWrap.png
Views:	167
Size:	289.7 KB
ID:	179856  
BeckyEbook is offline   Reply With Quote
Old 06-11-2020, 07:14 PM   #25
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,629
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Even if it were done, I doubt I would use it.

Having the unwrapped lines in a text editor, and the wrapped lines in Sigil's CV panel means I can see the all the markup if needed. And after reconstructing a paragraph I can do a Save in the text editor and see the effects in Sigil's CV and PV panels.

If I need to do a lot of paragraph reconstruction and I have the original in electronic form (e.g. facsimile images), I usually move Sigil to a second monitor so that I see the original alongside the unwrapped lines in the text editor.

I'm curious to know of any other use cases for having unwrapped lines, other than the one I've described. For me at least, in all but trivial cases, my use case is more effectively done in a separate text editor rather than in Sigil.

BR

PS: to satisfy the all-in-one fanatics you could add a dockable Raw View editing window - joking of course

Last edited by BetterRed; 06-11-2020 at 07:23 PM. Reason: clarity
BetterRed is offline   Reply With Quote
Old 06-11-2020, 09:59 PM   #26
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,312
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
Quote:
Originally Posted by BeckyEbook View Post
Maybe someone will be motivated to do it, but for what? To check if all opening tags are OK? This is of course possible and does not even interfere with the settings in sigil.ini

Since I can do it through Open with and choose my favorite editor – it probably doesn't make sense.
Am I losing my mind?!? How are you able to get your Sigil window to display like that? It looks like you have word-wrap off - and your validation window doesn't extend the full width of the UI
Turtle91 is offline   Reply With Quote
Old 06-12-2020, 02:55 AM   #27
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 809
Karma: 2416112
Join Date: Jan 2017
Location: Poland
Device: Various
Quote:
Originally Posted by Turtle91 View Post
How are you able to get your Sigil window to display like that?
I built a version with this option for educational purposes (I wanted to see how it affects other functions). Sigil did not explode, but after three hours I returned to wrapping the line.
BeckyEbook is offline   Reply With Quote
Old 06-12-2020, 04:38 AM   #28
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by BetterRed View Post
I'm curious to know of any other use cases for having unwrapped lines, other than the one I've described. For me at least, in all but trivial cases, my use case is more effectively done in a separate text editor rather than in Sigil.
There are a handful, but I very rarely unwrap lines.

Usually it's when I'm skimming through the code for more "macro" fixes... mostly when you don't really care about exactly what's within the paragraphs, just verifying the surrounding markup is correctly applied.

Like having a PDF open and seeing if the EPUB has <blockquote>s (and classes) in the right location:

Code:
  <blockquote>
    <p class="blockquote">First words [...]</p>
    <p class="blockquote">Second very long paragraph [...]</p>
  </blockquote>
or trying to spot if EPUB3-like footnotes are wrapped correctly:

Code:
  <aside epub:type="footnote" id="ftn2">
    <p class="footnote">[2] This could be some super long</p>
    <p>multi-paragraph</p>
    <p>footnote</p>
    <p>that goes across many pages.</p>
  </aside>

  <aside epub:type="footnote" id="ftn3">
    <p class="footnote">[3] Another footnote [...]</p>
  </aside>

  <aside epub:type="footnote" id="ftn4">
    <p class="footnote">[4] And one more [...]</p>
  </aside>
Or working with especially egregious markup (hideous tables with huge paragraphs and/or lots of data, etc.).

So if you're only focusing on a straight line of:

Code:
<blockquote>
class="blockquote"
class="blockquote"
id="ftn2"
id="ftn3"
id="ftn4"
[...]
it's easier to spot potential errors.

Side Note: I recently proofed ~10 years of journal articles, and did something similar. I had the EPUB open side-by-side with the PDF, and did a pass "verifying the first word of every paragraph", so I knew all my <p>s were correct.

Reading straight down a line was magnitudes faster.

Also, patterns like:

Code:
<p>
<p>
<p>
<p class="noindent">
stand out like a sore thumb, and you can investigate closer (potential OCR error of a continued paragraph from the previous page).

Last edited by Tex2002ans; 06-12-2020 at 05:03 AM.
Tex2002ans is offline   Reply With Quote
Old 06-12-2020, 06:21 AM   #29
Thasaidon
Hedge Wizard
Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.
 
Thasaidon's Avatar
 
Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
Quote:
Originally Posted by BeckyEbook View Post
I built a version with this option for educational purposes (I wanted to see how it affects other functions). Sigil did not explode, but after three hours I returned to wrapping the line.
You should change your designation from Addict to "Great and Powerful Sorceress".
Thasaidon is offline   Reply With Quote
Old 06-12-2020, 06:40 AM   #30
najgori
Klak
najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'najgori gives new meaning to the word 'superlative.'
 
najgori's Avatar
 
Posts: 174
Karma: 150374
Join Date: Sep 2011
Location: Belgrade, Serbia
Device: many
Most editors have this option, from Atom to Far manager, however if developers do not want to make it part of Sigil, interested one can use external editor or ask Becky nicely.
najgori is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to enable Word Wrap in the Editor? Entry20 Editor 4 10-02-2018 12:03 PM
replace in book view changes view to code view cybmole Sigil 4 10-28-2012 01:20 PM
Sheet To Go -- Word Wrap in Cells? kenjennings enTourage Archive 0 05-06-2010 10:34 AM
Word wrap in the forum [closed] JSWolf Lounge 51 11-11-2007 10:22 PM


All times are GMT -4. The time now is 05:28 AM.


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