I can't find my post... Lets see if the old email address still works.
Though if that were the problem, then I'd have expected to see a bounce
notice from either the list server, or gmane's NTTP portal...

---------- Forwarded message ----------
-> Newsgroups: gmane.editors.lyx.general
-> Message-ID: <alpine.DEB.2.11.1509042208260.3095@antiXme2012>
-> From: Joe <jtw...@gmx.com>
-> Date: Sat, 5 Sep 2015 00:02:32 -0400
-> Subject: LyX -> word.doc via Libreoffice -> smashwords "paragraph marks"

LyX -> word.doc via Libreoffice -> smashwords "paragraph marks"

I can't begin to list all the reasons why I want to write with LyX.
I can't begin to describe how messed up my 'work' would be if I had
to create and/or edit the text with ANY standard word processor.

So what I'm doing is writing in LyX, And washing the formatting with a
plain text file, which gets pasted into an Libreoffice "blank" document
with preconfigured paragraph styles, consistently named, so that all I
should need do, is start at one end of the document. Mark blocks of text,
and apply the style that best emulates how LyX formatted it. And of course
insert supporting bookmark and TOC hyperlinks...

I don't do this until I'm done editing the words, Because if I decided to
make any changes, I would want to make them in my .lyx source document. And
repeat the above steps...

That part is working for me.

Except for the problem with paragraph marks.

When I export to plain text, LyX adds all those extra carriage returns, like
I'd need if I wanted to read the exported text with something that doesn't
wrap the text, such as leafpad.

I already tried exporting to the various other formats that I should be able
to import into Libreoffice. But none of them import to Libreoffice cleanly. 
And I can't get export as *.odt to work at all.
Exporting as html(word) almost worked once. But somehow a bunch of apostrophes
got converted to single close quotes. Then when I tried again after a few
updates (whether it was a change in Lyx or in Libreoffice I couldn't say)
it didn't work the same way. And I need to be able to get it there cleanly.
Every time, with consistent results.

Washing the formatting with a version of the nuclear option as described in
Mark Coker's "Smashwords Style Guide" is a good way to get consistent results.
So I'm partial to a clean plain text output.

I came up with a partial workaround. As long as there aren't any comment or ert
boxes etc...: I open the .lyx file with LyX: {ctrl+a}{ctrl+c}
open a blank leafpad doc: {ctrl+v}
*find a way to strip out all those blank lines caused by LyX effectively using
double CRs as paragraph markers. I couldn't think of the syntax to strip
them out with sed, so I opened the file with vim and:

/^$
:map t ddn

t {repeat until not found}

Then I opened it in leafpad again: {ctrl+a}{ctrl+c}
opened the above described blank Libreoffice doc
{ctrl+v} And apply the paragraph formats etc... as described above.

Now I need to work on cover art and other background stuff. But I think the
output.doc file itself, will make it through, what Smashwords describes as
their meat grinder. If I'm right. And if the ebook is well received, There
may well be sequels... My kludge is repeatable. But it would be so much
easier if I knew how to get LyX to export a plain text version, without all
the extra linefeeds.

What am I missing here???

-- 
JtWdyP


Reply via email to