Jump to content


Photo

Best Mac program with RegEx to prepare texts for Accordance?

UserBible RegEx Import UserTools

  • Please log in to reply
7 replies to this topic

#1 OSchrock

OSchrock

    Silver

  • Active Members
  • PipPipPip
  • 131 posts
  • Gender:Male
  • Location:USA / Brazil
  • Accordance Version:12.x
  • Platforms:Mac OS X

Posted 26 May 2019 - 02:49 PM

I've prepared and imported several user Bibles as well as a number of user-tools, but I'm not very happy with my workflow. I'd like to switch to another program that has a more powerful find/replace function using Regular Expressions.

1. I usually start with an HTML text and so I would like a program that displays all the HTML tags in a way that can be manipulated.
2. Also, it would be nice if the program could save my RegEx strings in case I want to prepare a similar text in the future.

What is your favorite RegEx enabled program for preparing texts to be imported into Accordance?

#2 Joel Brown

Joel Brown

    Administrator

  • Admin
  • 5,563 posts
  • Gender:Male
  • Location:Houston, TX
  • Accordance Version:12.x
  • Platforms:Mac OS X, Windows

Posted 26 May 2019 - 03:17 PM

BBEdit!!!!
  • OSchrock likes this
Joel Brown

By day: Consultant for Oaktree
By night: Freelance Trombonist and Private Instructor

#3 Fabian

Fabian

    Mithril

  • Super Member
  • PipPipPipPipPipPip
  • 3,769 posts
  • Gender:Not Telling
  • Accordance Version:12.x
  • Platforms:Mac OS X, iOS

Posted 26 May 2019 - 03:18 PM

I work most with BBEdit. For RTL also with CotEditor both are free in the Mac App Store. 

 

Sublime Text  can be also a great alternative. 

 

Greetings

 

Fabian


  • OSchrock likes this
Greetings

Fabian

ATTENTION: My bug reports are all with the GERMAN INTERFACE and with the EUROPEAN NOTATION! It can be the English interface has no bug, which I describe.

#4 Graham Buck

Graham Buck

    Gold

  • Accordance
  • 409 posts
  • Gender:Male
  • Location:God's Country (New England)
  • Accordance Version:12.x
  • Platforms:Mac OS X, iOS

Posted 26 May 2019 - 03:40 PM

This will be +3 for BBEdit.

 

As for saving your strings, I would recommend scripting from a file rather than relying on one particular editor. For my money Perl will be the easiest to get up and running. MacOS comes with Perl preinstalled and its RegEx engine is one of the fastest and easiest to use. I've attached a boilerplate Perl script to help get you started. Feel free to ask for more help if needed.

Attached Files


  • OSchrock and Fabian like this

Graham Buck

iOS Programmer
Content Development [Ninja]
OakTree Software


#5 דָנִיאֶל

דָנִיאֶל

    Ruby

  • Super Member
  • PipPipPipPipPipPipPip
  • 5,465 posts
  • Gender:Male
  • Accordance Version:12.x
  • Platforms:Mac OS X, Windows, Android

Posted 26 May 2019 - 04:02 PM

Whenever I've done this for anything I might repeat I've used Python.

But it looks like BBEdit supports a form of macros which might serve.

 

Thx

D


  • OSchrock likes this

Sola lingua bona est lingua mortua
ἡ μόνη ἀγαθὴ γλῶσσα γλῶσσα νεκρὰ ἐστιν
lišanu ēdēnitu damqitu lišanu mītu

"Du stammst vom Herrn Adam und der Herrin Eva ab", sagte Aslan. "Und das ist zugleich Ehre genug, um das Häupt des ärmsten Bettlers zu erheben, und genug, um die Schultern des größten Kaisers auf Erden zu beugen. Sei zufrieden." Aslan, Die Chroniken von Narnia, Prinz Kaspian von Narnia. CS Lewis. Übersetzt von Wolfgang Holbein und Christian Rendel.

Accordance Syntax Search For Wallace's Greek Grammar Beyond the Basics : https://github.com/4...WallaceInSyntax

 

Accordance Crib Sheets: http://47rooks.com/l...ch-crib-sheets/

 

 

Accordance Configurations :

Mac : 2009 27" iMac
12GB RAM

Windows : MSI GE72 7RE Apache Pro laptop
Intel Core Duo Intel i7 Kabylake

Android : Samsung Note III 5.0, Samsung Tab S3 7.0 and Lenovo TAB4 8" 7.1


#6 OSchrock

OSchrock

    Silver

  • Active Members
  • PipPipPip
  • 131 posts
  • Gender:Male
  • Location:USA / Brazil
  • Accordance Version:12.x
  • Platforms:Mac OS X

Posted 27 May 2019 - 09:09 AM

Wow! That's pretty unanimous for BBEdit! Looks like exactly what I need!

 

Thank you so much for your help!



#7 Joe Weaks

Joe Weaks

    Platinum

  • Active Members
  • PipPipPipPipPip
  • 1,334 posts
  • Gender:Male
  • Location:Odessa, TX
  • Interests:I like things that are Orange, and possibly Blue.
  • Accordance Version:11.x

Posted 27 May 2019 - 12:04 PM

Atom

 

 

(just kidding… BBedit)


  • OSchrock likes this
Joe Weaks
The Macintosh Biblioblog

Sometimes I'm so helpful even I can't stand it.

#8 OSchrock

OSchrock

    Silver

  • Active Members
  • PipPipPip
  • 131 posts
  • Gender:Male
  • Location:USA / Brazil
  • Accordance Version:12.x
  • Platforms:Mac OS X

Posted 01 June 2019 - 09:48 AM

Ok, You all were right! BBEdit was perfect!

I just finished importing another user Bible and several user tools edited with BBEdit and it was so much easier than all my other processes I've used in the past!

 

Thank you all so much for your help!







Also tagged with one or more of these keywords: UserBible, RegEx, Import, UserTools

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users