Page 1 of 3 123 LastLast
Results 1 to 10 of 30

Thread: Macro for converting Unicode into ASCII?

  1. #1

    Default Macro for converting Unicode into ASCII?

    Has anybody a Word-Macro to convert Greek Unicode into normal ASCII or the Bibleworks format?
    I know I can create it myself, but if someone already has it? I think this would be of general benefit.
    Best wishes
    Wieland
    <><
    ------------------------------------------------
    Wieland Willker, Bremen, Germany
    http://www-user.uni-bremen.de/~wie
    Textcritical commentary:
    http://www-user.uni-bremen.de/~wie/TCG/index.html

  2. #2
    Join Date
    Apr 2004
    Posts
    601

    Talking Ricardo Román's Macros

    Hi Wieland,

    Ricardo Román shared two macros with me back in the Topica days... One is to convert Unicode to BWGRKL and the other to convert Unicode into CCAT format.

    I am attaching a text file with the macros within it.

    Enjoy!
    Last edited by jdarlack; 02-25-2006 at 08:35 AM.
    Jim Darlack - Reference Librarian at Gordon-Conwell Theological Seminary
    Gloucester Assembly of God | Gordon-Conwell Theological Seminary
    The 'Unofficial' BibleWorks Blog | Old in the New | Facebook | LibraryThing

  3. #3
    Join Date
    Apr 2004
    Posts
    2,026

    Lightbulb Macros, who'da thunk it?

    Wow, that's helpful, thanks!!


    Mike

  4. #4

    Default

    Quote Originally Posted by Michael Hanel
    Wow, that's helpful, thanks!!
    I can only repeat that: WOW! Exactly what I needed.
    Thank you very much!
    Best wishes
    Wieland
    <><
    ------------------------------------------------
    Wieland Willker, Bremen, Germany
    http://www-user.uni-bremen.de/~wie
    Textcritical commentary:
    http://www-user.uni-bremen.de/~wie/TCG/index.html

  5. #5
    Join Date
    Apr 2004
    Posts
    601

    Talking Thank you Gandalf!

    Quote Originally Posted by Michael Hanel
    Wow, that's helpful, thanks!
    Quote Originally Posted by wie
    I can only repeat that: WOW!
    Big thanks to Ricardo "Gandalf" Román! He's the one who put this macro together, and it has been quite "configurable" for various other font conversions. It was the basis for the "drogulin" macro posted on my personal website (linked in my signature below).
    Jim Darlack - Reference Librarian at Gordon-Conwell Theological Seminary
    Gloucester Assembly of God | Gordon-Conwell Theological Seminary
    The 'Unofficial' BibleWorks Blog | Old in the New | Facebook | LibraryThing

  6. #6

    Default Bwgrkl to Unicode?

    That is great! Don't suppose anyone has a macro to go from Bwgrkl to unicode?

    ------------------------------------------
    Roy E. Ciampa, Ph.D.
    Associate Professor of New Testament
    Gordon-Conwell Theological Seminary
    130 Essex Street
    South Hamilton, MA 01982

  7. #7
    Join Date
    Apr 2004
    Posts
    601

    Arrow Bwgrkl to unicode

    Quote Originally Posted by Roy Ciampa
    ...a macro to go from Bwgrkl to unicode...
    I just reversed one of the macros that I posted earlier and did some quick "tweaking." It has worked so far. See attachment.

    WARNING! This macro changes ALL TEXT in a document into Palatino Linotype in the Greek font ranges! So, this means you would have to "cut and paste" from BibleWorks into an "conversion document," run the macro, and then copy from that into your text.

    There's gotta be an easier way!

    And there IS an easier way!

    I was just reminded of a macro that John Kendall developed that finds the bwgrkl text and changes it, while leaving the rest of your text free of any change!

    Follow this link:

    http://www.bibleworks.com/forums/att...ttachmentid=54

    See my later post:

    http://www.bibleworks.com/forums/sho...1&postcount=11
    Last edited by jdarlack; 10-15-2004 at 03:18 PM. Reason: Removed obsolete macro!
    Jim Darlack - Reference Librarian at Gordon-Conwell Theological Seminary
    Gloucester Assembly of God | Gordon-Conwell Theological Seminary
    The 'Unofficial' BibleWorks Blog | Old in the New | Facebook | LibraryThing

  8. #8
    Join Date
    Apr 2004
    Posts
    2,026

    Default Other tweaking

    I'm also trying to tweak the Unicode-->BWGrkL, I noticed that some of the characters don't copy over well on the small chunks of text i've tested, the problem mainly being with accents and breathing marks. Nevertheless, it certainly is quicker than the alternate route of trying to do this all by hand from scratch

    Mike

  9. #9
    Join Date
    Apr 2004
    Posts
    2,026

    Question Changes I made

    Ok, I added these lines to the CCAT-->BWGrkL

    WordBasic.EditReplace Find:=":", Replace:="Ç", Direction:=0, MatchCase:=1, WholeWord:=0, PatternMatch:=0, ReplaceAll:=1, Format:=0, Wrap:=0
    WordBasic.EditReplace Find:="'", Replace:="V", Direction:=0, MatchCase:=1, WholeWord:=0, PatternMatch:=0, ReplaceAll:=1, Format:=0, Wrap:=0
    WordBasic.EditReplace Find:="[", Replace:="Î", Direction:=0, MatchCase:=1, WholeWord:=0, PatternMatch:=0, ReplaceAll:=1, Format:=0, Wrap:=0
    WordBasic.EditReplace Find:="]", Replace:="Ð", Direction:=0, MatchCase:=1, WholeWord:=0, PatternMatch:=0, ReplaceAll:=1, Format:=0, Wrap:=0

    in order to make colons, "apostrophes" (where vowels elided), and left and right square brackets convert into the proper codes in BwGrk. I think the only glitch left that I see is how to change a smooth breathing mark and a grave accent on the same vowel. Anybody know what line would be needed for that?

    My test text was Agamemnon since I knew that could be displayed in Unicode.

    Mike

  10. #10
    Join Date
    Apr 2004
    Posts
    601

    Default

    Have you tried the macro I just posted?

    The tweaking that I did involved piling all the combined accented / breathing-marked / iota subscripted characters first, so that the combined characters that require three "letters" in bwgrkl (e.g., w-| = w-l) are converted first, then two character codes (e.g., h| = h|) then one character codes...

    This way you cover all your complex characters first and go to the next lower level of complexity, etc. I think I caught most of the complex characters, and a few of the punctuation marks like brackets and commas had to be "tweaked" as well. This is fascinating stuff...

    There is a "relief on the way"...according to "official reports," the next release will have the ability to export Greek & Hebrew in Unicode. Here's a note from Mike Bushell in a previous post:

    Quote Originally Posted by Mbushell
    Hi BTers,
    Quote Originally Posted by Mbushell

    ...snip... I want you to know that relief is in sight. We have completely replaced the editor now with a new editor that has all the capabilities of Wordpad and a lot more. It has full support for Unicode, multilevel undo, left-wrapped Hebrew and a wealth of formatting features. We also have BibleWorks now exporting Unicode Hebrew and Greek. These are major changes and we will need to do a lot of testing to get the kinks out but we will get it to you as soon as we can. I can't give you a date yet but I wanted you to know that some good things are coming.

    God bless,
    Mike Bushell for the
    BibleWorks Programming Staff
    Last edited by jdarlack; 10-15-2004 at 12:13 PM.
    Jim Darlack - Reference Librarian at Gordon-Conwell Theological Seminary
    Gloucester Assembly of God | Gordon-Conwell Theological Seminary
    The 'Unofficial' BibleWorks Blog | Old in the New | Facebook | LibraryThing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •