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-06-2013, 07:06 PM   #16
mzmm
Groupie
mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.
 
mzmm's Avatar
 
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
\1 is a back reference to a captured group using regular expressions.

this is an excellent resource for anything related to regular expressions:
http://www.regular-expressions.info/brackets.html
mzmm is offline   Reply With Quote
Old 08-06-2013, 07:30 PM   #17
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,306
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by mzmm View Post
\1 is a back reference to a captured group using regular expressions.

this is an excellent resource for anything related to regular expressions:
http://www.regular-expressions.info/brackets.html
Yes in general the \1 is related to a reg exp but in this case it's a portion of the way the clips work and refers to the high lighted text in Sigil.
PeterT is offline   Reply With Quote
Old 08-07-2013, 03:03 AM   #18
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,050
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
Thanks to all! I think I should primarily test it in different contexts, in order to check the whole functionality.
Leonatus is offline   Reply With Quote
Old 08-07-2013, 11:21 AM   #19
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by theducks View Post
Div, P will reflow, maintaining the style

I feel that Pre turn into total hash if a reflow is needed.
There is a CSS option to pre-wrap PRE statements I believe. I do not know how well it is supported in eBook Readers.

Dale
DaleDe is offline   Reply With Quote
Old 08-07-2013, 12:25 PM   #20
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,050
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
Quote:
Originally Posted by DaleDe View Post
There is a CSS option to pre-wrap PRE statements I believe. I do not know how well it is supported in eBook Readers.
... and Sigil. This would have been my next question, but, as far as I can see, the Pre-tag would require to remove the given p-formats (in my case) and would not forward the point (for pre-adjustments are necessary).
Leonatus is offline   Reply With Quote
Old 08-07-2013, 02:12 PM   #21
mzmm
Groupie
mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.
 
mzmm's Avatar
 
Posts: 171
Karma: 86271
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
pre-wrap actually kind of works on ADE. on the ipad the text is mangled (sometimes in kind of a charming way). using white-space:pre; worked for this poem on ADE, but the iPad cuts off any overflow on the right-hand side of the screen.

i also tested by putting the poem in <pre> tags, which yielded the same results in ADE and on the ipad. i used sigil to make the test book and it displayed in the preview panel as expected.

doubt there's too much actual use for this, but posting some screenshots here for posterity.

ADE with white-space:pre-wrap;
Spoiler:

ADE with white-space:pre; first page (zoomed in a lot)
Spoiler:

ADE with white-space:pre; second page
Spoiler:

iPad with white-space:pre-wrap;
Spoiler:

iPad with white-space:pre;
Spoiler:


here's the css is was using:
Code:
.poem {
	background-color:transparent;
        font-size:.9em;
        font-family:Inconsolata, Consolas, 'Courier New', Courier, monospace;
        white-space:pre;
        margin:0;
        padding:0;
  }
with <div class="poem"></div>.

the poem is called 'Homage to Dada', by Henri Chopin, written in 1965.

Last edited by mzmm; 08-07-2013 at 02:14 PM.
mzmm is offline   Reply With Quote
Old 08-07-2013, 03:29 PM   #22
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
pre (or pre-wrap) without monospace font: tricky to get the spacing right, not to say impossible.

monospace font in "normal" text in a book: bad choice, poor typestting.

Hard to combine both
Jellby is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Paragraphs in a Border teh603 Sigil 5 08-01-2013 04:41 PM
How to remove multiple class attribute from div lrui Recipes 4 08-13-2012 09:47 PM
Replace multiple matching instances within paragraph? murphycc Conversion 2 02-23-2012 09:53 AM
assigning styles to headings kamanza Sigil 9 11-14-2011 04:41 AM
Paragraph indent-size should not applied to centered paragraphs? ShellShock Calibre 3 01-16-2010 11:54 AM


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


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