![]() |
#16 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#17 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,306
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Quote:
|
|
![]() |
![]() |
![]() |
#18 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#19 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
![]() |
![]() |
#20 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,050
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
... 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).
|
![]() |
![]() |
![]() |
#21 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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; } the poem is called 'Homage to Dada', by Henri Chopin, written in 1965. Last edited by mzmm; 08-07-2013 at 02:14 PM. |
![]() |
![]() |
![]() |
#22 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |