04-04-2018, 08:06 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2018
Device: Kindle Paperwhite
|
Help with unordered list bullets please
Hello,
I'm currently busy with editing my ebook in Calibre in epub format. I've got my custom css attached to it. In CSS my unordered list is set to display dashes, instead of circles. The code looks like this: Code:
ul { list-style-type: none; text-align: justify; } ul li:before { content: '–'; position: absolute; margin-left: -20px; } When I convert my book to MOBI format, the dashes turn into circles, just like the part of the css was omitted. Also wrong. The dashes are actually very crucial to my book because in my native language you write dialogues using dashes, not quotation marks, so I'd really like them to stay where they should be, else all the dialogue parts are totally disrupted. Any help, please? |
04-04-2018, 09:19 PM | #2 |
Evangelist
Posts: 482
Karma: 2267928
Join Date: Nov 2015
Device: none
|
Why would you use list items for dialogues?
|
Advert | |
|
04-04-2018, 09:52 PM | #3 |
null operator (he/him)
Posts: 20,565
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I would assume to save typing the leading dash (usually an em dash)
IIRC languages that mark dialogue with a leading dash, such as Russian, only use a trailing dash if the speech is broken by a dialogue descriptor followed by more speech. BR |
04-04-2018, 11:05 PM | #4 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
MOBI has no support for CSS you need to convert to AZW3 instead. And using absolute positioning with pixel offsets is not really reflowable so whether it works or not in any given viewer is entirely a matter of luck.
|
04-05-2018, 04:33 PM | #5 |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2018
Device: Kindle Paperwhite
|
Exactly, BetterRed. Central European countries also mark dialogues with dashes. My language is among them. We use quotation marks for ...quoting only or for metaphores.
|
Advert | |
|
04-05-2018, 04:36 PM | #6 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2018
Device: Kindle Paperwhite
|
Quote:
Update: converting to AZW3 did the trick! Last edited by talizorah; 04-05-2018 at 05:25 PM. |
|
04-05-2018, 09:50 PM | #7 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Assuming you are using <li> only for dialogues, it should be a simple search and replace to insert the quote mark automatically. I dont really understand how wrapping every dialogue in <li> is easier than using <p>- instead.
|
04-06-2018, 11:14 AM | #8 |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2018
Device: Kindle Paperwhite
|
I use <li> only for dialogues. <p> I use for anything else and they have also different formatting than <li>. For example they have indents on first line by 5% which is also standard for a paragraph in my language. They also have different margin settings. Nevertheless your advice helped and now everything looks ok. I tested it on the device and no problems whatsoever anymore.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unordered list not changing font | spamis | ePub | 3 | 03-03-2017 03:18 PM |
Bullets do not flush after conversion | mystica | Conversion | 0 | 11-09-2012 02:24 PM |
Bullets | Gerlyn | Sigil | 0 | 02-23-2012 08:36 AM |
Need some assistance with CSS and unordered lists | Artha | ePub | 0 | 11-24-2011 05:17 AM |
Mobi unordered list style | framallo | Conversion | 1 | 03-23-2011 01:22 PM |