Jump to content

Please read the Forum Rules before posting.

Photo

Word macros for editing e-Sword Modules

word macro

  • Please log in to reply
11 replies to this topic

#1 dyan

dyan

    e-Sword Addict

  • Veterans
  • PipPipPipPip
  • 89 posts
Offline

Posted 27 November 2011 - 07:49 AM

Attached File  Esword.png   107.34K   89 downloads

To add this Menu to MS Word,
Attached File  eSword.zip   182.14K   216 downloads
1) Download ‘eSword.zip’
2) Unzip it. It contains the file eSword.dot
3) Paste eSword.dot in C:\Users\YourName\AppData\Roaming\Microsoft\Templates

4) In Word 2003
On the Main Menu Bar, go to Tools>Templates and Add-ins...>click on Add, then select ‘eSword.dot’ and click OK. You will now have a new menu 'Edit e-Sword'

OR
5) In Word 2007
On the Main Menu ribbon, go to Developer>Document Template>click on Add, then select ‘eSword.dot’ and click OK. You will now have a new menu 'Add-ins'. Click on it and you will see 'Edit e-Sword'. If you right-click it, you can add it to the Quick Access Toolbar (QAT).

THIS FILE (eSword.dot) CONTAINS THE FOLLOWING MACROS:


Josh’s Macros (www.biblesupport.com)

TheWord to e-Sword Macro:
“TheWord uses RTF hyperlink verse references. e-Sword uses a "tooltip" verse reference system. When you see "Matthew 3:1" in e-Sword or TheWord, there's different text behind that reference.
In TheWord, the behind the scenes link is something like this (there's a variety of styles TheWord uses): {\field{\*\fldinst HYPERLINK "tw://bible.*?id=40.3.1|_AUTODETECT_|"}{\fldrslt \plain \f2\ul\fs20\cf2 Matt. 3:1}}.
e-Sword's "Tooltip" Reference looks something like this: \cf1\ul Mat_3:1\cf0\ulnone
You should not leave TheWord hyperlink references in your e-Sword file. For one reason, Tooltip will sometimes crash when trying to parse TheWord verse references. Another reason is that the text may look fine now, but if the e-Sword developer switches to a real Hyperlink reference system, then suddenly TheWord's references may start appearing in your e-Sword resource.
To convert TheWord verse references to e-Sword tooltip, use this macro.”

Footnotes to Inline notes:
“Sometimes, someone will give me a Microsoft Word document or RTF document with footnotes. I see these style footnotes in Word documents, RTF documents, etc. It must be a standard footnoting system used by word processors. The footnotes are at the bottom of each page. The footnote text isn't selectable when you copy and paste parts of the document. And it's generally a huge hassle to deal with footnotes because you have to figure out where you're going to put them in a module. And they don't copy very easily. And it's troublesome keeping them with the text they belong to.
This Word macro converts the footnotes into in-line citations. That way, the footnote text is salvaged. And because they are in-line, you don't have to worry with linking them. The citation format is [Note: ...]. The note color is dark blue, by default--but you can change that.”


David Cox’s Macros (http://www.davidcox....ord_macros.html)

Clean Text:
For cleaning up OCR text
Observations:
1.) It does not yet catch lines ending with apostraphes, nor certain puncuation marks.
2.) It doesn't always break and reunite the lines correctly. Most notably, if in the original text, a linefeed ends with a period before it, but that is not the end of the paragraph, it will make a paragraph break there anyway.
3.) You need to test the macro on the type of OCR text you have. Some just don't work right. Others it will make tens of thousands of search and replaces and save you a bunch of time. You just have to try and see. DO NOT USE IT ON FOREIGN LANGUAGE TEXTS, like Spanish. Done that, messed it up.
4.) Do this first after you download the text. I generally like to separate the text into chapters and work on each chapter independently. A 1000 page OCR text will take maybe 5 minutes to run the macro completely. But considering how long it would take you by hand... the wait is worth it.

Roman 2 Arabic:
Converts Roman numerals to Arabic numerals.
Comments:
This will not work on everything. I perhaps have some errors here and there. It obvious will make non-Bible verse references without picking up that it is not a Bible reference, for example, Philo book viii, 45. Cannot figure out how to fix that. Have to live with it. Also it doesn't pick up wierd puncuation around the references either.
Updated as of October 2011

Versify:
This is my largest macro with about 800 search and replaces. Still not working perfectly yet though. It will seek to find all the verses in the text and make them into an e-Sword format. Note that this macro includes
(1) Convert all Bible references to their standard e-Sword format. Note that this macro will not make the correct RTF formatting because that is in a separate macro below.
(2) Convert Arabic numeral references, e.g. John ix. 12.
(3) It also will interpret the series of references in a single book to separate them correctly, e.g. John 1:2, 12; 3:4. to Joh_1:2; Joh_1:12; Joh_3:4.

RTF Prep Conversion:
This makes the Document ready for simple RTF import.

RTF Italics One:
Encloses the line with rtf italics {\i……\i0}

Remove cf11:
This is to reverse the RTF formatting (to undo RTF Prep Conversion) if that is sometime necessary.

Refs Green:
This is simple code to make the verse references green underlined for the Microsoft Word Doc. This won't show up in an e-Sword module per say, but it helps to format the text in Word so that you can see the verse references. I say it won't work in e-Sword modules, but if you are making a TOP module, it will work for cut and paste into that module, and it will also work if you save your Microsoft Word document in RTF format and import it into the TOP module.

The next 4 macros are helpers to help me find Bible references in a text and check them for correct format or not. Once the text has been versified, run these below. There are two ways of checking, make all the non-Bible reference text invisible, or make all the Bible references invisible. Both have their counter macros to restore the text to normal (visible). I normally work with books that runs hundreds or thousands of pages long. So these macros are very useful to do what I want done. They are "helpers" to quickly allow me to spot exceptions the versify macro didn't convert correctly.

Invisble Refs:
This makes all the correctly formatted verse references invisible. This helps in scanning for verse references that didn't get converted. To restore to all visible run the macro below, Visible Refs.

Visible Refs:
This returns the invisible refs back to normal black text. (Note: this is the same as selecting the entire document, and setting the text color to automatic.)

Invisible Refs:
This is the companion to the above macro, except it will make invisible all the non-verse reference text. To restore to all visible run the macro below, Visible Words.

Visible Words:
This returns the invisible text back to normal black text. (Note: this is the same as selecting the entire document, and setting the text color to automatic.) Note that this macro will remove any coloring of text in the document.


Paul Beverley’s Macros (www.archivepub.co.uk/macros.html)

FRedit is by far the biggest timesaver for me. Unfortunately it uses a concept that is new to most editors: scripted find and replace. It sounds complicated, but it isn’t, and if this book prompts you to use only one macro, let it be FRedit. Trust me, you won’t regret it. Within this book I have only provided a brief introduction to the concept because FRedit has its own instructions and a library of scripts for you to use for a vast range of different jobs. (http://www.archivepub.co.uk/FRedit)

DocAlyse and TextAlyse are invaluable in helping me to prepare my style sheet for a job. I make (hopefully) intelligent decisions about punctuation and spelling etc, based partly on what is the predominant form in the book. Because I do this before I start reading, it saves me a lot of time in the long run.

SpellAlyse is a spelling system where the macro analyses the (mis)spellings within the document, while I go off and make a cup of tea. When I come back, those ‘spelling errors’ that are in fact just proper nouns are highlighted in light grey while the real spelling errors are in bright green so that I can see them clearly. Foreign words are highlighted in a different colour (if I so choose), and the computer has produced a list of pairs of proper nouns that look as if they might possibly be variant spellings of one another.

IStoIZ and IZtoIS changes and/or highlights all the words in a file that need switching to whichever convention your client wants. It can also be made to change and/or highlight whichever a number of variant spellings, for example: burned/burnt, spelled/spelt, judgement/judgment (you decide which words you want to use this for).

For more details on how to use Paul Beverley’s macros download ‘TheBook.zip’
Attached File  TheBook.zip   531.41K   62 downloads

Edited by dyan, 03 December 2011 - 03:49 PM.


#2 Josh Bond

Josh Bond

    Administrator

  • Administrators
  • PipPipPipPipPip
  • 2,882 posts
  • LocationGallatin, TN
Offline

Posted 27 November 2011 - 10:42 AM

Dyan, thanks for sharing. I learn something new every day here. I didn't realize others (other than David Cox and I) made Word Macros. This is why I like Microsoft Word...

#3 pfpeller

pfpeller

    Moderator

  • Moderators
  • 1,112 posts
  • LocationWA
Offline

Posted 27 November 2011 - 11:09 AM

Dyan,

Thanks for posting this. I had forgotten about David's macro's. I make use of the ones Josh has written. I will have to check out these others as well.

Maybe this will inspire me to learn how to write my own :).

Blessings,
Peter

#4 DoctorDaveT

DoctorDaveT

    e-Sword Fanatic

  • Members (T)
  • PipPipPipPipPip
  • 385 posts
Offline

Posted 27 November 2011 - 01:49 PM

Hi, Guys,

in my opinion, Dyan's post should be moved somewhere prominent.

Dave
visit www.DoctorDaveT.com for eSword modules, software tips, & more


#5 chosen

chosen

    Liking e-Sword

  • Members (T)
  • PipPip
  • 17 posts
Offline

Posted 07 February 2017 - 09:03 AM

attachicon.gifEsword.png

To add this Menu to MS Word,
attachicon.gifeSword.zip
1) Download ‘eSword.zip’
2) Unzip it. It contains the file eSword.dot
3) Paste eSword.dot in C:\Users\YourName\AppData\Roaming\Microsoft\Templates
 

 

I can't download "eSword.zip." The attached file is missing.



#6 GWSwordUser

GWSwordUser

    e-Sword Supporter

  • Veterans
  • PipPipPip
  • 32 posts
  • LocationCoopersburg, PA, USA
Offline

Posted 10 February 2017 - 10:45 AM

I am unable to download the eSword.zip file. When I click on it I get a page that says, "Oops, something went wrong."

 

Have you uploaded this file to biblesupport.com? If so, where?

 

Gary



#7 Tj Higgins

Tj Higgins

    e-Sword Fanatic

  • Members
  • PipPipPipPipPip
  • 591 posts
Offline

Posted 10 February 2017 - 02:47 PM

I am unable to download the eSword.zip file. When I click on it I get a page that says, "Oops, something went wrong."

 

Have you uploaded this file to biblesupport.com? If so, where?

 

Gary

 

Esword Macros can be found on the e-sword offical website:

http://www.e-sword.net/extras.html



#8 chosen

chosen

    Liking e-Sword

  • Members (T)
  • PipPip
  • 17 posts
Offline

Posted 11 February 2017 - 12:21 AM

Esword Macros can be found on the e-sword offical website:

http://www.e-sword.net/extras.html

 

Thank you for your concern.

This macro is used for editing documents as the topic indicates, and is different from the e-Sword official word macro.



#9 GWSwordUser

GWSwordUser

    e-Sword Supporter

  • Veterans
  • PipPipPip
  • 32 posts
  • LocationCoopersburg, PA, USA
Offline

Posted 11 February 2017 - 06:06 AM

That's correct Chosen. So where can I download this Dyan's macro?

 

Gary



#10 GWSwordUser

GWSwordUser

    e-Sword Supporter

  • Veterans
  • PipPipPip
  • 32 posts
  • LocationCoopersburg, PA, USA
Offline

Posted 16 February 2017 - 03:57 AM

The link to Dyan's macro is broken. I cannot download it. I get a page that says "oops, something went wrong." Can this please be fixed? I see that 216 others have downloaded it and would like to also have it.

 

Gary






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users




Similar Topics



Latest Blogs