GithubHelp home page GithubHelp logo

bophono's Issues

Current pypi module is broken

Using bophono with pip install bophono fails for two reasons:

  • dependency to pypandoc is missing
  • resources are missing / inconsistent source version published

Since the module does seem to work when installed from git,

please consider republishing a complete version of bophono.

missing resource in wheel

When installing bophono from pip, it fails on import with the following trace:

Traceback (most recent call last):
  File "/home/drupchen/PycharmProjects/publishers-cleanup/match_existing_place_RID.py", line 4, in <module>
        import bophono
  File "/home/drupchen/.local/lib/python3.6/site-packages/bophono/__init__.py", line 5, in <module>
        from .apitochinese import *
  File "/home/drupchen/.local/lib/python3.6/site-packages/bophono/apitochinese.py", line 7, in <module>
        zhuyin_csv = get_trie_from_file(_get_trie_path("zhuyin.csv"), "zhuyin_csv")
  File "/home/drupchen/.local/lib/python3.6/site-packages/bophono/sdtrie.py", line 131, in get_trie_from_file
        with open(filename, newline='', encoding="utf8") as csvfile:
FileNotFoundError: [Errno 2] No such file or directory: '/home/drupchen/.local/lib/python3.6/site-packages/bophono/data/chinese/zhuyin.csv'

more specific tone output

there should be options to chose the output of the different tones. The current situation is that we have two tones that correspond to the phonology, but the realization is more complex and described on page 36 of the MST

no way to install the package properly

  • pypi does not work at all
  • If install from git, then the following error will come:

FileNotFoundError: [Errno 2] No such file or directory: '/Users/upstairs/opt/miniconda3/envs/wip/lib/python3.8/site-packages/bophono/data/chinese/zhuyin.csv'

There should not be static files as dependencies for packages unless there is an exceptional reason for it. When that is the case, the data should not be inside the package, but pulled from github or other repository.

RFC: refactor for schemes to have individual roots and ends files

The current system where they are all in one makes it very difficult to read and easy to make mistakes when editing. So the proposal is that we move into a system where each scheme lives in their own sub-folder of schemes folder, and has standard set of files:

  • SchemeName.py
  • roots.csv
  • ends.csv
  • exceptions.csv

Can not understand syllable

It seems like it's can not turn some Tibetan words to IPA, such as 'ཧྥེ', 'པའིམ', and 'འོདད'.

Support for mantras

Right now, looks like Sanskritization is ignored entirely, so basically, mantras are not phonetized.

Looks like a small addition with big value (as otherwise manual work is still needed in the end).

How would we implement this?

pandoc

What is pandoc used for in this library? Given that we are just converting string to another string, it seems that no such package is needed?

Generally speaking, python packages should not have dependencies that are not python. When there is such a thing, it should be because a vitally important capability is impossible without such dependency. It should never be because of convenience or habit.

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.