Skip to content

Commit

Permalink
Update README.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
bobsc committed Mar 10, 2012
1 parent 3784e5f commit c7fb095
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
OLB2UTF is a very simple Terminal command to convert Greek or Hebrew text copied from Mac Online Bible.
Online Bible (OLB) uses OLB Greek and OLB Hebrew fonts, which are not unicode based.
If you want to use the text in a program which uses Unicode, you have to convert. Otherwise you get gibberish.
If you want to use the text in a program which uses Unicode, you have to convert.
Otherwise you get gibberish.

Convert Greek or Hebrew text copied from Online Bible to unicode utf-8
Copies stdin to stdout, converting as it goes.
Expand All @@ -12,10 +13,11 @@ Recommended usage:
OLB2UTF H > ~/Desktop/hebrew.txt
3. Paste the input text into the terminal window.
4. Type ctrl-D to signal end of file
The act of pasting into the terminal window apparently converts
high-ascii characters like the paragraph symbol from the font encoding into utf-8.
The act of pasting into the terminal window converts high-ascii characters
like the paragraph symbol from the font encoding into utf-8.
This program will then convert the ascii codes used by OLB to the Greek or Hebrew Unicode equivalent.
For Hebrew, the program will also attempt to re-order the characters on each line
so that the apparent right-to-left flow is maintained for the Hebrew characters.
So far I have not figured out a perfect algorithm for the re-ordering. I think I have it correct
for the Hebrew characters, but the non-Hebrew characters such as verse numbers may be "not quite right".
So far I have not figured out a perfect algorithm for the re-ordering.
I think I have it correct for the Hebrew characters,
but the non-Hebrew characters such as verse numbers may be "not quite right".

0 comments on commit c7fb095

Please sign in to comment.