View Single Post
Old 10-09-2010, 09:40 PM   #4
sergio blum
Member
sergio blum began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2009
Device: SONY READER
dwanthny, thanks for the reply.

just seeing a reply lift my spirits, really.

But I will insist. I still have some hope.

Like I said, I know very very little of HTML/CSS

But wait, I did something just now that may solve the issue.

In Sigil I CTRL-C selected a chunk of body text and code text as shown in the Book View (meaning: NOT the XHTML in the Code View, but pure text).

Then CTRL-V in Word.

With trepidation, I see that the text pasted in Word mantained all the font styles. Arial is still Arial and Courier New is still Courier New, etc!

I am thinking as I write.

Like I said, with Word macros I can do anything!

For example, I could format all non-Courier with one standard style

And reformat Courier as I wished, say, bold, size 12pt, whatever. I could even change the font to Verdana. I mean, in Word I can do everything imaginable.

I dont know if you are familiar with these Word macros. They allow, for instance, to detect every point where text changes from Arial to Courier.

And in these places the macro could easily insert tags for begin/end of body text and also for code text.

The beauty -- I think, or am I still deluding myself? -- with this workflow is that once text is pasted into Word, goodbye ALL current tags! (including, of course, bye bye <pre>).

From here I think it is trivial, although it is where my ignorance in HTML leaves me unsure as to how to proceed.

Let me go to Dreamweaver for a moment.

OK I am back. In Dreamweaver I clicked in New > HTML

This is what I got:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sem título</title>
</head>

<body>
</body>
</html>

Now it is your turn -- please, because of my pathetic ignorance of these matters.

Suppose the output of my macros in Word were this:


<myTagBodyText>
Create a URLRequest instance containing the XML data to send. Use flash.net.sendToURL( ) to send the data and ignore the server response, use flash.net.navigateToURL( ) to send the data and open the server response in a specific browser window, or use URLLoader.load( ) to both send the data and download the response into the .swf file.
Xxxx told someone to: "Open a ticket to request a feature to "reflow" <pre> tags".
</myTagBodyText>
<ActionScriptCode>
package {
import flash.display.*;
import flash.text.*;
import flash.filters.*;
import flash.events.*;
import flash.net.*;
</ActionScriptCode>

And a CSS of only two styles -- arial and courier new, of course.

Now, what do you think of this? I am thinking and writing in "real time".

Having gone so far, what do I simply do, now? Believe me: I dont know.

Where do I insert the whole block of lines beginning with

<myTagBodyText>



and ending with

</ActionScriptCode>

in the template I got from dreamweaver?

Is this waht I should do?


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sem título</title>
</head>

<myTagBodyText>
Create a URLRequest instance containing the XML data to send. Use flash.net.sendToURL( ) to send the data and ignore the server response, use flash.net.navigateToURL( ) to send the data and open the server response in a specific browser window, or use URLLoader.load( ) to both send the data and download the response into the .swf file.
Xxxx told someone to: "Open a ticket to request a feature to "reflow" <pre> tags".
</myTagBodyText>
<ActionScriptCode>
package {
import flash.display.*;
import flash.text.*;
import flash.filters.*;
import flash.events.*;
import flash.net.*;
</ActionScriptCode>

</html>

then I would paste this back in Sigil.


And by now I already now how to write such a simpel CSS.

Granted, it is quit convoluted, but tell me: will it work?

For reference books I may be using for quite a long time, I think it woiuld definitely be worthwhile. If all this make sense... Does it? I reckon I could do this whole "conversion" in a couple of hours.

Are you still awake/online?

Thanks AGAIN for your patience, really.

Blum

PS- Plus the bonus of now knowing it is possible to quote selected text of other people's posts.
sergio blum is offline   Reply With Quote