[nfbcs] Braille file help.
Dean Martineau
dean at topdotenterprises.com
Fri Oct 31 00:17:46 UTC 2008
Everett is right; this can be totally solved with regular expressions. You
could mostly solve it without them as well. Let's take your example of John
3:16. First, we have to know that we're working with contracted Braille,
and how that is represented on the computer. The 3 will obviously be a c,
and the number sign is the same character. Fortunately, in contracted
Braille, one never runs into a combination of a c followed by a ble sign,
which of course is also represented by the number sign. Hence, in any text
editor with a search and replace feature, you could find all occurrences of
c# and replace them with c3 (the 3 is the character used to represent the
contracted Braille colon. That will solve the 3-16 problem. Similar brute
force could be used to solve all but verses found in chapters 1 5 and 9,
since those characters are represented by vowels and they could be followed
by a ble sign. For this, and for a more elegant solution, you need regular
expressions.
Dean
-----Original Message-----
From: nfbcs-bounces at nfbnet.org [mailto:nfbcs-bounces at nfbnet.org] On Behalf
Of E.J. Zufelt
Sent: Thursday, October 30, 2008 12:10 PM
To: NFBnet NFBCS Mailing List
Subject: Re: [nfbcs] Braille file help.
Good afternoon Alan,
You are probably going to need to use a good document editor that supports
find and replace with regular expressions.
If you want you can send me this file, off list, and I will take a look and
see if I can do this for you.
HTH,
Everett
----- Original Message -----
From: "Alan Wheeler" <awheeler at neb.rr.com>
To: "NFBCS list" <nfbcs at nfbnet.org>
Sent: Thursday, October 30, 2008 1:55 PM
Subject: [nfbcs] Braille file help.
>I have a .brf (grade two braille) file and the big problem I have is this.
>It is a Christian book with scripture references. The main problem is that
>within these references they put a number sign where a colon ought to go.
>In other words, instead of writing John3:16 in braille, they write John
>(number sign) 3 (number sign) 16. I want to quickly fix this file so that
>there are colons where the second number sign is. How do I do this without
>having to do it manually, number sign by number sign?
>
>
> +-+-+-
>
> End of e-mail. Delete? <y/n>:
> ~~~
>
> Alan D Wheeler
> awheeler at neb.rr.com
> IM me at: outlaw-cowboy at live.com
> Skype: redwheel1
> Check me out on the Q, Fridays from 10 AM to 1 PM eastern time at
> www.theqonline.net
> _______________________________________________
> nfbcs mailing list
> nfbcs at nfbnet.org
> http://www.nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
> To unsubscribe, change your list options or get your account info for
> nfbcs:
> http://www.nfbnet.org/mailman/options/nfbcs_nfbnet.org/everett%40zufelt.ca
>
_______________________________________________
nfbcs mailing list
nfbcs at nfbnet.org
http://www.nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
To unsubscribe, change your list options or get your account info for nfbcs:
http://www.nfbnet.org/mailman/options/nfbcs_nfbnet.org/dean%40topdotenterpri
ses.com
More information about the NFBCS
mailing list