GithubHelp home page GithubHelp logo

konline / bibletool Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 4.0 55.37 MB

耶大雅中文聖經工具程式

Home Page: http://bibletool.konline.org/

PHP 90.87% Python 0.11% CSS 1.06% JavaScript 7.24% Smarty 0.34% Shell 0.38%
bible bible-api bible-study bible-verse bible-search php

bibletool's People

Contributors

kojung avatar koyao avatar kyleskimo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bibletool's Issues

Inconsistent JSON field between query and retrieve

The JSON result returned from a 'retrieve' operations is inconsistent. I'd like retrieve to resemble more like query if possible.

For instance, the following query: 'retrieve/MAT:1:18-18;LUK:1:26-38' returns something like this:

[{"book":"\u99ac\u592a\u798f\u97f3","title":"\u57fa\u7763\u964d\u751f","verses":[{"language":"UCV","book":"\u592a","chapter":"1","verse":"18","subtitle":"\u3010\u8036\u7a4c\u57fa\u7763\u964d\u751f\u3011","content":"\u8036\u7a4c\u57fa\u7763\u964d\u751f\u7684\u4e8b\u8a18\u5728\u4e0b\u9762\uff1a\u7942\u6bcd\u89aa\u99ac\u5229\u4e9e\u5df2\u7d93\u8a31\u914d\u4e86\u7d04\u745f\uff0c\u9084\u6c92\u6709\u8fce\u5a36\uff0c\u99ac\u5229\u4e9e\u5c31\u5f9e\u8056\u9748\u61f7\u4e86\u5b55\u3002"}]},....

As you can see, the field 'book' should be the book index (an integer), but it's right now the book abbreviation (a string). Moreover, the field 'name' is missing.

I know this change will break the existing functions that rely on browse. Don't worry, once you make the JSON structure consistent, I will update the functions that rely on browse.

Thanks,
Jung

Typo on Bartimalus

Category: 錯字糾正

Body:

在聖經詞彙裡:

巴底買 (Bartimalus)
可 10:46
底買的兒子、不潔
在耶利哥被耶穌醫治的瞎子,有記入城的事(路18:35);又有記出城的事(可10:46)。其實耶利可有新舊二城,為在二城中間的事,就此城說為出,就那城為入,並不衝突。

可能筆誤,耶利可應為耶利哥

Need to update browser URL on changes

In order to facilitate bookmarking, we should update the URL whenever there's an Ajax call that changes the current language, book, or chapter.

Let's do that for search as well.

Yao

Add type field for glossary

In order to display a nice logo that distinguishes between a 'place' and 'person', the glossary/retrieve JSON data structure should have an additional field called 'type' that can be either 'place', or 'person'.

What do you think?

Add book abbreviation to search backend

The search backend returns a JSON like this:

{"hits":4116,"time":158.15,"verses":[{"book":"1","chapter":"1","verse":"1","content":"In the beginning God created the heaven and the earth."}, ...,]}

As you can see, the book abbreviation is missing from the search results. Is it possible to add this field in each verse entry? Something like:

{"name": "Gen", "book":"1","chapter":"1","verse":"1","content":"In the beginning God created the heaven and the earth."}

What do you think?

glossary words are repeated

Except for the first item, every remaining words are repeated:

E.g.
一指 (Finger) 一掌 (Handbreadth)
一掌 (Handbreadth) 一虎口 (Span)
一虎口 (Span) etc...

Backend Caching

Before re-enabling backend caching, we need to find a way to forcefully refresh the cache when needed. This will be needed when typos are being fixed.

Yao

Need unittesting

To catch regressions, we should just document the proper way to get PHPUnit installed on MAMP, and start writing tests.

Yao

Need to store subtitle as separate field in the DB

Turns out that parsing out the subtitle field at query time isn't good enough. It influences search results.

For example, search for '神' throughout the UCV Bible, this verse triggered a match:

            (
                [name] => 創
                [book] => 1
                [chapter] => 2
                [verse] => 1
                [content] => 天地萬物都造齊了。
                [subtitle] => 【 神定安息日】
            )

Yao

Need cool search UI

I have an even cooler UI in mind, using some jQuery animation stuff, but I just didn't want to spend time doing this until we reach feature parity.

Let's open a feature request for this loh~!

Sincerely,
Jung Ko

Search needs to handle boolean operators

Let's handle the typical boolean operators: AND, OR. A space between the terms implies AND.

As added bonus, we could handle the - as a negative term, eg: a verse should not have such term.

Yao

Link glossary with browse

Cross reference glossary verses (person, places, etc...) in browse mode. In feature parity mode, this is implemented as footnotes.

Missing subtitle field

How come only Gen 1 has the subtitle field? If I go to Gen 2, the subtitle field is part of the content field....

Missing red words span in interlinear mode

In interlinear mode, the JSON data does not have red words converted into tag. We should enable this feature for versions that support it (preferred), or at least remove the raw delimiter used to denote red span from the output.

Red verses in KJV

There are verses in KJV that are being marked as "span-red". See, for example, DEU 1:2.

.htaccess is not development friendly

The current URL is being redirected to the production server:

http://localhost:8888/Bibletool

If I comment out the following lines in .htaccess:

RewriteBase /bibletool
RewriteRule ^$ "http://bibletool.konline.org/browse/" [R=301,L]
RewriteBase /
RewriteRule ^bibletool/? "http://bibletool.konline.org/browse/" [R=301,L]

Things work back as before.

Selective InitDb

In order to save time, let's add an option to selectively reload certain Bible languages. This will allow typos to be fixed much more quickly, without taking downtime.

Something like:

$ php bin/InitDb.php KJV

would just reload the KJV version.

Yao

Add Credits section

We should public attribute the source of data, where applicable. This includes map coordinates, audio bibles, etc...

Yao

New bible versions

Message from: Teresa

Category: 增加功能

Body:

很高興看到你們有這麼齊全的中文譯本, 願主大大使用 ^^

同時, 現代中文譯本 - http://cb.fhl.net/, 和近來推出的新漢語譯本 (暫只完成新約及創世記) - http://bible360.net/ 也是很好的譯本, 期盼你們考慮日後加入這2個譯本在系統裡 :)

Only update chapter menu if necessary

When someone changes the book menu, let's only reset the chapter menu if the new book doesn't have the corresponding chapter.

For example, if the current book/chapter is GEN:5, and the user changes to EXO, then let's show EXO:5.

If the current book/chapter is PSA:66, and the user changes to EXO, then let's reset it to EXO:1.

Yao

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.