Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to recognise   as a space #34

Open
1-John opened this issue May 12, 2017 · 2 comments
Open

How to recognise   as a space #34

1-John opened this issue May 12, 2017 · 2 comments

Comments

@1-John
Copy link

1-John commented May 12, 2017

Hi,

I am currently struggling with (Lk 19,1–10) and alike references. The dash is ok, but can't make the space work.

I have tried to edit
the parser file in this way:
bcv_parser.prototype.regexps.space = "(?:[\s\xa0]| )";

Thank you

@1-John
Copy link
Author

1-John commented May 12, 2017

So it does not work because it is not used later on...

In bcv_parser.prototype.regexps.get_books:
for Czech language I see:
{
osis: ["Gen"],
regexp: /(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:Prvn[ií][\s\xa0]*(?:kniha[\s\xa0]*Moj(?:zž|Mojzž))|1I|G(?:en(?:esis)?|n))|(?:Prvn[ií][\s\xa0]Moj(?:zž)|1I)|[1I][\s\xa0](?:kniha[\s\xa0]*Moj(?:zž|Mojzž))|[1I][\s\xa0]*Moj(?:zž))(?:(?=[\d\s\xa0.:,;\x1e\x1f&()()[]/"'*=~-\u2013\u2014])|$)/gi
}

with spaces defined as [\s\xa0] instead of bcv_parser.prototype.regexps.space

@openbibleinfo
Copy link
Owner

Hi, I think \xa0 is equivalent to  , right? Could you convert the  s to the actual unicode character?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants