# Copyright (c) 2001 Toshiki Fujisawa <xbible@fujisawa.gr.jp>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

--------------------------------------------------------------------------------
y1z xbibleɂ

  xbible̓wuCꋌ񐹏̒Ɋ܂܂ĂƂAÍ
A̒P̔zuԂ\\tgEGAłB
  ̃\tgEGAFreeBSDŊJALinuxWindowsœ삷st@C
ł悤ɏĂ܂BȂWindowspoCiFreeBSDœ
t[Win32RpCłAmingw32(gcc)ɂăRpCĂ
B

y2z CZX

  et@C̖`ɂŃCZX܂BȂAlib_FreeBSDfBN
gɂA_rand48.c lrand48.c rand48.h srand48.c ́AFreeBSD-3.3RELEASE
́AlibcCu\[XƂĔzzꂽ̂łB

y3z CXg[

  ܂AwgetR}h𗘗pł悤ɁAݒ肵ĂB̌Amake
sƁA/tmp/tmp-xbible/ fBNg쐬AWeb玫f[^
IɃ_E[h܂BāAIɃRpCsȂA
$(HOME)/bin ݂Ƃɂ́AxbibleR}hCXg[܂B
  ܂A/usr/local/binȂǂɃCXg[ꍇ́A[gɂȂĂ
make installsĂB

  ܂AWindowsłxbible.exe쐬ɂ́Amingw32CXg[āA
make win sĂB

y4z gp@

  VF̃R}hC(܂MS-DOSvvg)玟̂悤Ȍ`ŋN
Ǝw肵EChEőSĂ̒PꃊXg܂񂾈Í\\܂B

      xbible [IvVXg]  PꃊXg...

  \͈ԍŏɎw肵P̃XLbvɍsȂ܂B܂A
IvV͉L̂ƂłB

 -g               : grep    SʒuƃXLbv݂̂\܂B
 -G               : Grep    -gƓlłwP̑O̕\܂B
 -r               : random  f[^̑ɗeLXggp܂B
 -c {count}       : count   w肵񐔕̕\\܂B(ftHg1)
 -w {win_size}    : window  ^[~ĩEChETCYw肵܂B
 -n {num_range}   : number  TP͈̌͂w肵܂B
 -m {match_count} : match   \P̐w()܂B
 -s {skip_range}  : skip    XLbv͈̔͂w肵܂B
 -l {line_div}    : line    \̍sw肵܂B
 -o {ofset_disp}  : offset  \ɏ㉺EVtg܂B
 
y5z IvV̗

o {win_size}

   -w80x25      80Ac25sŕ\B

    Windowsł́Axbible.exe ŉ̒\ꍇ́A
         C>xbible -w160 xxxx > out.txt
         C>notepad out.txt
    Ƃƕ֗łB

o {num_range}   

  -n20000       ̐擪20000ڂ̂݌B
  -n2000-2999   20002999߂܂łB
  -n3000+999    30002999߂܂łB
  
o {skip_range}

  -s4772        4772̃XLbv݂̂B
  -s4772-6772   47726772̃XLbvB
  -s5772+3000   57728772̃XLbvB

o {line_div}

  -l3-l3        3ɕ(s)ĕ\B(3sɕ\)
  -l3:+1        s3ɕ+1ŉs
  -l3:-1        s3ɕ-1ŉs
  -l:4772       s4772ŉsB

o {offset_disp}

  -o+3+4        +3Ac+4Vtgĕ\B

y6z gp

   ex1: xbible -G ycxqr
   ex2: xbible -n254245 -s4772 -w78x18 -o-1,+2 ycxqrbyn xcryrsaxcvr

y7z wuCAXL[ւ̃}bsO

  wuCAXL[ւ̃}bsOmFɂ́At 
heb-conv-disp.sh sĂB

y8z AXL[wuCւ̃}bsO

  wuCňÍ\\邽߂ɂ́Atasc2heb-disp.shL̂悤
ɎgpĂB
  
  xbible ƌ | sh asc2heb-disp.sh

y9z ̕\L@

  {̃J^JiwuCɕϊ@͂݂Ǝv܂
Aw{wuCꏬTx(ISBN4-89586-010-8)ł́AJ^JiwuC
ւ̕ϊ`Ă܂B̒`̃vOŎgpwu
CAXL[ւ̃}bsOpĕ\L̂L̕\łB
  ȂAwuC͉E獶ւƕ\L܂A\ł͍E֕\LĂ
܂B܂̃}bsȌꍇATSɂ͑啶Ə̋ʂ邱
ɂӂKvłB

| A a | C ay | E av | G a | I av |
| J q | L qy | N qv | P q | R qv |
| T S | V sy | X Sv | Z S | \ Sv |
| ^ T | ` cy | c cv | e T | g Tv |
| i n | j ny | k nv | l n | m nv |
| n h | q hy | t pv | w h | z hv |
| } m | ~ my |  mv |  m |  mv |
|  y |       |  yv |      |  yv |
|  r |  ry |  rv |  r |  rv |
|  vv|       |       |      |       |
|  n |       |       |      |       |
| K g | M gy | O gv | Q g | S gv |
| U z | W gy | Y zv | [ z | ] zv |
| _ d | W dy |       | f d | h dv |
| o b | r by | u bv | x b | { bv |
| p p | s py | v pv | y p | | pv |

| L qy | L qyv | L qyv |
| V s  | V sv  | V sv  |
| ` c  | ` cv  | ` cv  |
| j ny | j nyv | j nyv |
| q hy | q hyv | q hyv |
| ~ my | ~ myv | ~ myv |
|  ry |  ryv |  ryv |
| M gy | M gyv | M gyv |
| W gy | W gv  | W gyv |
| r by | r byv | r byv |
| s py | s pyv | s pyv |
                                     ȏ
