|  11-28-2017, 05:54 PM | #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? | 
|   |   | 
|  11-28-2017, 07:08 PM | #2 | |
| Wizard            Posts: 1,876 Karma: 8821117 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 | |
|   |   | 
|  11-29-2017, 02:13 AM | #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;
} | |
|   |   | 
|  11-29-2017, 04:35 AM | #4 | 
| eBook Enthusiast            Posts: 85,560 Karma: 93980341 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.
		 | 
|   |   | 
|  11-29-2017, 04:48 AM | #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.
		 | 
|   |   | 
|  11-29-2017, 04:57 AM | #6 | |
| eBook Enthusiast            Posts: 85,560 Karma: 93980341 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. | |
|   |   | 
|  11-29-2017, 10:50 AM | #7 | |
| Wizard            Posts: 1,876 Karma: 8821117 Join Date: Mar 2013 Location: Rosario - Santa Fe - Argentina Device: Kindle 4 NT | Quote: 
  But in that case, would be a bit more efficient to use the following code: 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 | |
|   |   | 
|  11-29-2017, 05:36 PM | #8 | 
| A Hairy Wizard            Posts: 3,395 Karma: 20212733 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
		 | 
|   |   | 
|  11-29-2017, 06:24 PM | #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: 
 | |
|   |   | 
|  12-02-2017, 11:36 PM | #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 | |
|   |   | 
|  12-04-2017, 06:09 PM | #11 | 
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 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-04-2017, 06:42 PM | #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 | |
|   |   | 
|  12-04-2017, 06:53 PM | #13 | 
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 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 | 
| 
 | 
|  Similar Threads | ||||
| 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 |