Posts: 71
jtwdyp
Joined: 08 Apr 2012
#1
I've been slowly writing stuff with LyX for a long time. But never actually published any of it. Lately I've been thinking of epublishing something, but lyx doesn't output EPUB format. I found a discussion about it on their mailing list that said it was possible to use something Called Sigil to convert, at least simple documents from LyXHTML to EPUB. Somebody suggested it would be easier to write new stuff with docbook:
LyX mailing list post wrote:(Docbook) XMLMind, which outputs both PDF and ePub
Not having ever used docbook I thought I'd try it long enough to find out if I could stand it's user interface...

With Synaptic I first searched for Sigil, which I couldn't find... Then I installed Docbook. At least I thought I did. But I couldn't figure out how to get it started. So I went back to Synaptic and repeated the search for"docbook" and selected every single listed package with the word docbook in the name. In /usr/doc I now find a number of docbook2XXX filters but nothing to actually write anything with...

What am I missing here???
Last edited by jtwdyp on 23 Sep 2014, 23:20, edited 1 time in total.
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#2
This is not my area of expertise, but it looks like docbook is a file format/xml schema language and not necessarily an app. The docbook wiki says you need a docbook aware text or xml editor for authoring. the suggested list in synaptic for docbook also pulls in gnu-emacs, which by all reports will work with docbook.

that said, when I installed docbook on my system, there is an option in libreofficer writer to save to docbook format.

this is a list from some ubuntu folks that might interest you.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CDMQFjAA&url=https%3A%2F%2Fhelp.ubuntu.com%2Fcommunity%2FDocBookEditors&ei=D8seVInOEdGjyASbroKoDw&usg=AFQjCNGdXXAhBDGOyU2qq9MzvKznPrOaBw&sig2=u4AqAMZw4IDNc5Roc_tdoA&bvm=bv.75775273,d.aWw"
linktext was:"https://www.google.com/url?sa=t&rct=j&q ... 5273,d.aWw"
====================================
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#3
Just something to try. In root terminal

Code: Select all

updatedb
wait. It may take a minute or less to finish.

Code: Select all

locate docbook
I use locate alot like a biker uses a roadmap when cruising through unknown territory.
Posts: 850
fatmac
Joined: 26 Jul 2012
#4
Yes, docbook is a format of text, like manpages, the program suggested was XMLMind.

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.xmlmind.com/xmleditor/"
linktext was:"http://www.xmlmind.com/xmleditor/"
====================================
Posts: 17
machinebacon
Joined: 17 Jul 2014
#5
You could use pandoc and convert .txt to epub:


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://johnmacfarlane.net/pandoc/"
linktext was:"http://johnmacfarlane.net/pandoc/"
====================================


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://johnmacfarlane.net/pandoc/epub.html"
linktext was:"http://johnmacfarlane.net/pandoc/epub.html"
====================================


This means you can use any editor you fancy - you just have to add the 'right' format tags, as shown in the example. You could of course go straight Markdown, too (this would be like the wiki style).
Posts: 667
jdmeaux1952
Joined: 01 Nov 2013
#6
rokytnji wrote: I use locate alot like a biker uses a roadmap when cruising through unknown territory.
I usually keep sniffing for beer.
Posts: 71
jtwdyp
Joined: 08 Apr 2012
#7
dolphin_oracle wrote:This is not my area of expertise, but it looks like docbook is a file format/xml schema language and not necessarily an app. The docbook wiki says you need a docbook aware text or xml editor for authoring.


Well that explains that part of my problem anyway.
the suggested list in synaptic for docbook also pulls in gnu-emacs, which by all reports will work with docbook.


Unfortunately, in my case, emacs is very much UN-loved. And while I do like vim, I'm not interested in interrupting the creative flow of my words with having to figure out which tags to insert where... {And that's assuming that I can figure out the syntax of said tags} :sigh:
that said, when I installed docbook on my system, there is an option in libreofficer writer to save to docbook format.
Yes, I see that now. But that leaves me with a different problem. I read somewhere {wikihow I think} That I'd want to avoid using actual"point font sizes" in favor of a a relative sized system of measurement for text. I haven't a clue how to get libreoffice or abiword for that matter, to use relative font sizes.

Now about that Ubuntu link...:

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://help.ubuntu.com/community/DocBookEditors"
linktext was:"about LyX https://help.ubuntu.com/community/DocBookEditors"
====================================
wrote:
comments: LaTeX oriented but can import / export DocBook
But my copy of LyX {on antiX} doesn't include anything that looks like docbook to me in either the import or export menus... Which may be a moot point anyway because none of the docbook converters in /usr/bin seem to include an"docbook2epub" anyway.
fatmac wrote:Yes, docbook is a format of text, like manpages, the program suggested was XMLMind.
Thanks for the link... Hmmnnn In spite of what that Ubuntu link said of XMLmind:

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://help.ubuntu.com/community/DocBookEditors"
linktext was:"about LyX https://help.ubuntu.com/community/DocBookEditors"
====================================
wrote:
comments: not Open Source, free to use but restricted
It looks like XMLmind wants $400 USD for a user license, which just isn't in my budget right now.
machinebacon wrote:You could use pandoc and convert .txt to epub:

This means you can use any editor you fancy - you just have to add the 'right' format tags, as shown in the example. You could of course go straight Markdown, too (this would be like the wiki style).
Now that looks promising... It says it can convert between many file formats, including xhtml, latex, and epub. So maybe, I can continue to write with LyX, export to latex or LyXHTML {which results in filename.xhtml} and use pandoc to convert it to epub...

A quick and dirty test seems to work from the LyX's xhtml output. So far it looks like the main things I'll need to adapt to is: not using tables or footnotes, and to figure out how to use CSS instead of LyX's ERT codes.

Anybody know where I can find a good {beginner} howto on CSS???

Anyway, it looks like Pandoc might just work for me.

To all of you kind hearted souls who responded to my problem:

THANKS!
Posts: 17
machinebacon
Joined: 17 Jul 2014
#8
Here some resources for CSS:

Tutorials

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://learn.shayhowe.com/html-css/getting-to-know-css/"
linktext was:"http://learn.shayhowe.com/html-css/getting-to-know-css/"
====================================


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://learnlayout.com/"
linktext was:"http://learnlayout.com/"
====================================


Reference

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.w3schools.com/css/css_intro.asp"
linktext was:"http://www.w3schools.com/css/css_intro.asp"
====================================



Two links to Ebooks that I never posted __{{emoticon}}__


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://it-ebooks.info/book/213/"
linktext was:"http://it-ebooks.info/book/213/"
====================================


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://it-ebooks.info/book/579/"
linktext was:"http://it-ebooks.info/book/579/"
====================================
Posts: 71
jtwdyp
Joined: 08 Apr 2012
#9
machinebacon wrote:Here some resources for CSS:
Thanks for the links...