![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jun 2016
Location: Michigan
Device: none
|
How to keep blank underscore within a statement
I'm working on a language learning textbook. In one of the exercises, there are underscore markers where the student needs to provide the missing word. The author has (blank underscore) ________ as his formatting, but when I export to flowable epub out of Indesign it's gone and doesn't show.
Any suggestions how to retain the formatting? |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,764
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
1. In your css stylesheet: Code:
.underscore { text-decoration: underline; } Code:
<p>This is an example <span class="underscore"> </span></p> 1. In your css stylesheet: Code:
.underscore { display: inline-block; width: 8em; /* here you can set the length of the underscore */ border-bottom: 1px solid black; } Code:
<p>This is an example <span class="underscore"></span> very easy</p> I hope this help you. Regards Rubén |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Unicycle Daredevil
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
|
Quote:
Code:
.underscore3 { display: inline-block; width: 3em; border-bottom: 1px solid black; } .underscore4 { display: inline-block; width: 4em; border-bottom: 1px solid black; } |
|
![]() |
![]() |
![]() |
#4 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Perhaps I'm missing something obvious, but why not just use underscore characters? ie ________ ? It's an ASCII character and should never be "stripped out" by any software.
|
![]() |
![]() |
![]() |
#5 |
Unicycle Daredevil
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
|
Depending on the font, you may get tiny gaps between the individual characters, which doesn't look particularly nice.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
Still, the OP now has a range of options and can use whichever they prefer. |
|
![]() |
![]() |
![]() |
#7 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,764
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
![]() Code:
.underscore { display: inline-block; border-bottom: 1px solid black; } .width3 { width: 3em; } .width4 { width: 4em; } etc. Code:
<p>This is an example <span class="underscore width4"></span> very easy</p> Rubén |
|
![]() |
![]() |
![]() |
#8 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,348
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
|
That would make for a more streamlined CSS sheet, but a more complex class name. I thought I read somewhere on MR that SOME apps/readers may have problems with the compound class name??? My reader of choice (Marvin) displays them correctly so I do occasionally use this technique. YMMV
|
![]() |
![]() |
![]() |
#9 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
FWIW. Hitch |
|
![]() |
![]() |
![]() |
#11 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
For lines where you need the underscores, use a monospace font.
|
![]() |
![]() |
![]() |
#12 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
![]() |
![]() |
![]() |
#13 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
And any text on that line needs to be monospace.
|
![]() |
![]() |
![]() |
Tags |
flowable epub, indesign cs6, text-formatting, underscore |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Remove underscore when exporting from library | deadman36g | Calibre | 4 | 08-01-2015 12:15 AM |
Save to Disc - Folder name - Period changes to Underscore | Gutenberg | Library Management | 4 | 09-17-2012 10:48 AM |
Underscore to Italics in OpenOffice | Moejoe | Workshop | 8 | 05-23-2009 02:34 PM |