Go Back   Literotica Discussion Board > Main Literotica Forums > How To...

Reply
 
Thread Tools

Old 03-11-2018, 09:01 PM   #1
gunhilltrain
Really Experienced
 
gunhilltrain is offline
Join Date: Feb 2018
Posts: 127
Word DOC files - submission formatting

If I understand this correctly, I can use the field to submit a Word document with italic and bold formatting and then - someone on the site adds HTML codes?
__________________
I have heard the mermaids singing, each to each.
  Reply With Quote

Old 03-11-2018, 09:41 PM   #2
Weird Harold
Opinionated Old Fart
 
Weird Harold's Avatar
 
Weird Harold is offline
Join Date: Mar 2000
Location: "Lost Wages", NV USA
Posts: 23,582
Yes you can submit a MSWord .DOC file, but a clean RTF file would probably work better. (by "clean" I mean with tracked changes and comments removed.)
__________________
Answers! I got lots of answers!

(Now if I could just figure out which questions they go to. )
  Reply With Quote

Old 03-12-2018, 10:46 AM   #3
gunhilltrain
Really Experienced
 
gunhilltrain is offline
Join Date: Feb 2018
Posts: 127
Thank you.

Most of the formatting I use would be italics or sometimes indents for a block-quote appearance - not an actual block-quote style which I think is available in Word.
__________________
I have heard the mermaids singing, each to each.
  Reply With Quote

Old 03-12-2018, 11:28 AM   #4
Zeb_Carter
.-- - ..-.
 
Zeb_Carter's Avatar
 
Zeb_Carter is offline
Join Date: Jun 2006
Location: In a state...
Posts: 16,022
You can add those html tags yourself.

<i> text </i> - italic
<b> text </b> - bold
<blockquote> text </blockquote>

The only problem with them it that if the text happens at a page break then the part on the new page won't be formatted.
  Reply With Quote

Old 03-12-2018, 05:45 PM   #5
gunhilltrain
Really Experienced
 
gunhilltrain is offline
Join Date: Feb 2018
Posts: 127
Thanks.

How about other ways of indenting text - tabs for example? Will those be included?
__________________
I have heard the mermaids singing, each to each.
  Reply With Quote

Old 03-12-2018, 09:22 PM   #6
Weird Harold
Opinionated Old Fart
 
Weird Harold's Avatar
 
Weird Harold is offline
Join Date: Mar 2000
Location: "Lost Wages", NV USA
Posts: 23,582
Quote:
Originally Posted by gunhilltrain View Post
Thanks.

How about other ways of indenting text - tabs for example? Will those be included?
No, tabs and leading spaces are ignored. Any paragraph formatting from Word's WYSIWYG features will be ignored.
__________________
Answers! I got lots of answers!

(Now if I could just figure out which questions they go to. )
  Reply With Quote

Old 03-13-2018, 12:56 PM   #7
gunhilltrain
Really Experienced
 
gunhilltrain is offline
Join Date: Feb 2018
Posts: 127
Yes, I seem to remember that from a couple of HTML/CSS courses I took a few years ago (although I never used it on a job).

There is a field ("notes") in the submission form that allows instructions about the document, i.e., "You may include any special instructions in the Notes field. These comments will not be shown on the site, they will only be read by the webmaster before posting the submission on the site."

By the way I did send a question directly to the site. They must be pretty busy because they haven't answered yet (a week or so).
__________________
I have heard the mermaids singing, each to each.
  Reply With Quote

Old 03-13-2018, 04:14 PM   #8
Zeb_Carter
.-- - ..-.
 
Zeb_Carter's Avatar
 
Zeb_Carter is offline
Join Date: Jun 2006
Location: In a state...
Posts: 16,022
Well if you emailed it, you will never get an answer.

If you PM'ed Laurel, she may answer unless it's something that are answered in the FAQ or Submission info.
  Reply With Quote

Old 03-13-2018, 09:37 PM   #9
gunhilltrain
Really Experienced
 
gunhilltrain is offline
Join Date: Feb 2018
Posts: 127
Yes, I imagine managing this site must be a challenge.

This answers some of these questions:

https://www.literotica.com/s/bold-or-italic

It took me a while to find it; I had to go outside the site and use Google to search. There is also a nice section that describes vB code which works on message boards where HTML is disabled.
__________________
I have heard the mermaids singing, each to each.
  Reply With Quote

Old 03-13-2018, 11:42 PM   #10
ReadyOne
Ready to Rock!
 
ReadyOne's Avatar
 
ReadyOne is offline
Join Date: Mar 2003
Location: Indianapolis
Posts: 1,907
You can conjurer up a Word Macro to help you.

I assume you can record a word macro; it's not too hard and there's lots of help. If you know how to edit macros, the skip to the bottom of this post for the code.

The key feature here is the special character sequence "^&", which means "everything matched".

1. Select all text (ctrl-a) before you start recording. This limits the macro to whatever is the selection each time it is run.
2. Start recording a macro. I called mine BI2HTLM. You might want to assign it to a keyboard short cut for easy use.
3. Open Find-Replace dialog (Ctrl-H).
  • Park the cursor in the find what box and clear it out. Click "formatting" button, and select "font". Select "bold" for Font style then "close".
  • Enter "<B>^&</B>" in the Replace with box. Click "formatting" button, and select "font". Select "bold" for Font style then "close".
  • Click Replace All. If you are prompted to search the remainder of the document, say no.
4. Update the Find-Replace find what box to select italic font. Substitute <I>^&</I> in the replace with box. Change the replacement font to italic. Finally, Replace All again.
5. Update the Find-Replace find what box to select bold italic font. Substitute <B><I>^&</I></B> in the replace with box. Change the replacement font to bold italic. Finally, Replace All again.
6. Close the Find-Replace dialog and Stop recording the macro.

Note that the location of the cursor in the Find-Replace dialog determines where the Format button will put the formatting you select.

Clearing all text from the Find what box will look for any contiguous text which matches the formatting you select.


The following MS WORD macro may be of help for Word 2003 and later. It also inserts <p> at the front of paragraphs and replaces newlines with "<br> <br>" to try and get the HTML formatter to act right.

If you're experienced enough with macros to add and edit it, then please let me know if I missed something!
Code:
Sub BI2HTML()
'
' BI2HTML Macro
' Macro recorded 3/13/2018 by Owner
'
    Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    With Selection.Find
        .Text = "^l"
        .Replacement.Text = "<br><br>"
        .Forward = True
        .Wrap = wdFindStop
        .Format = True
        .MatchCase = False
        .MatchWholeWord = False
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
    
    With Selection.Find
        .Text = "^p"
        .Replacement.Text = "<p>"
        .Forward = True
        .Wrap = wdFindStop
        .Format = True
        .MatchCase = False
        .MatchWholeWord = False
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
    
    Selection.Find.ClearFormatting
    Selection.Find.Font.Bold = True
    Selection.Find.Font.Italic = True
    Selection.Find.Replacement.ClearFormatting
    Selection.Find.Replacement.Font.Bold = True
    Selection.Find.Replacement.Font.Italic = True
    With Selection.Find
        .Text = ""
        .Replacement.Text = "<B><I>^&</I></B>"
        .Forward = True
        .Wrap = wdFindStop
        .Format = True
        .MatchCase = False
        .MatchWholeWord = False
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
    
    Selection.Find.ClearFormatting
    Selection.Find.Font.Bold = True
    Selection.Find.Replacement.ClearFormatting
    Selection.Find.Replacement.Font.Bold = True
    With Selection.Find
        .Text = ""
        .Replacement.Text = "<B>^&</B>"
        .Forward = True
        .Wrap = wdFindStop
        .Format = True
        .MatchCase = False
        .MatchWholeWord = False
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
    
    Selection.Find.ClearFormatting
    Selection.Find.Font.Italic = True
    Selection.Find.Replacement.ClearFormatting
    Selection.Find.Replacement.Font.Italic = True
    With Selection.Find
        .Text = ""
        .Replacement.Text = "<I>^&</I>"
        .Forward = True
        .Wrap = wdFindStop
        .Format = True
        .MatchCase = False
        .MatchWholeWord = False
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
End Sub

Last edited by ReadyOne : 03-14-2018 at 12:27 AM. Reason: Fix Word 2003 macro recorder bugs
  Reply With Quote

Old 03-14-2018, 12:18 AM   #11
ReadyOne
Ready to Rock!
 
ReadyOne's Avatar
 
ReadyOne is offline
Join Date: Mar 2003
Location: Indianapolis
Posts: 1,907
The macro recorder in older versions of Word has problems.

In particular, they don't record the from/to font information, and they default to trying to processing the whole darn document.

The easiest way to handle thing may be this:
  1. Open Notepad, cut the macro from the previous post, and paste it into Notepad.
  2. In Word, start the macro recorder, call your macro BI2HTML, and then do something, anything we don't care what, then stop the recorder.
  3. Open the Visual Basic Editor. Try Menu/Tools/Macros/Visual Basic Editor. You version of Word may be different, look for Edit Macro, or Visual Basic.
  4. Locate the BU2HTML macro in the editor. Select everything between the lines, starting Sub BI2HTML() through End Sub.
  5. Swap over to Notepad and select all of the saved macro
  6. Swap back to the Visual Basic Editor and PASTE the Notepad version over what you recorded.
  7. Close the Editor and return to Word.

Last edited by ReadyOne : 03-14-2018 at 12:22 AM. Reason: typos
  Reply With Quote

Old 03-14-2018, 01:52 AM   #12
Jada59
Literotica Guru
 
Jada59's Avatar
 
Jada59 is online now
Join Date: Dec 2017
Posts: 2,389
Not sure what version of word that I have. I just copy and paste to submit and it worked fine.
  Reply With Quote

Old 03-14-2018, 01:08 PM   #13
Zeb_Carter
.-- - ..-.
 
Zeb_Carter's Avatar
 
Zeb_Carter is offline
Join Date: Jun 2006
Location: In a state...
Posts: 16,022
I have word 2003 and I just copy and paste to submit. I also type the html tags I need as I go. No big deal. Unless you are composing on a phone.
  Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT -4. The time now is 01:55 AM.

Copyright 1998-2013 Literotica Online. Literotica is a registered trademark.