MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Writer2ePub (https://www.mobileread.com/forums/forumdisplay.php?f=230)
-   -   bullet and numbered lists (https://www.mobileread.com/forums/showthread.php?t=122468)

cel4145 02-21-2011 02:20 PM

bullet and numbered lists
 
Very exciting extension for OO/LO. I was just at the O'Reilly TOC digital publishing conference last week where epub and how to create an efficient workflow that results in epub and can be used in InDesign was the talk of the conference. Your extension with OO/LO, Luke, could be the solution for some projects, particularly the one I am working with.

However, I've tried the current version with both OO 3.30 and LO 3.3.0, and bullet and numbered lists items are being formatted as p tags. If this just an unsupported conversion item, or is there some trick to setting styles to get this to work?

Thanks for any assistance :)

Charlie Lowe
Writing Spaces Co-Editor
http://writingspaces.org/

kreti 02-22-2011 03:41 AM

You can add the next lines in 'Sub TraverseText', in the Traverse Macro, between the lines:
'sParEx = fnExportParagraph(oPar)' and
'CountLength = CountLength + Len (sParEx)'
to see the list numbering.
....
sParEx = fnExportParagraph(oPar)
'proper code.
if oPar.NumberingIsNumber = true then
if oPar.ListLabelString = "" then
sParEx = "<p>" & "- " & right(sParEx, len(sParEx) - 3)
else
sParEx = "<p>" & oPar.ListLabelString & right(sParEx, len(sParEx) - 3)
end if
end if
' end proper code

CountLength = CountLength + Len (sParEx)
.....

cel4145 02-24-2011 01:40 PM

Thanks. But I'n not familiar with the Traverse Macro or the coding of this extension. So I guess the answer to my question is that lists are not currently supported in the extension?

eBookLuke 05-06-2011 12:49 PM

Thanks Kreti, tonight I will try to implement your code :)

I will release soon a new version of W2E with some improvement about images, tables and (maybe) lists

Luke

[EDIT]: done, the next version will have lists support, thanks to Kreti.
Your code is quite simple but very functional :)

Luke

kreti 05-07-2011 06:29 AM

I changed the code because I needed it, and it is a pleasure to share with others.


All times are GMT -4. The time now is 08:17 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.