Open zkranjcec opened 6 years ago
@zkranjcec
Thanks for your contribution, we'll review your code. However, since we are using a git based collaboration platform. Could you submit a proper Pull Request please ?
Best regards, Istvan
Dear Istvan, I have tried to publish my branch and to create Pull Request, but I am receiving the following error:
What should I do? I am really noob in github THank you! Best regards, Željko
Hi @zkranjcec You need to create a fork first.
Here is a step by step guide to your 1st Github contribution
It seems you're using github desktop, the specific tutorial with it is here
Best regards Istvan
Hi, this issue seems orphaned. I was wondering whether I could take it over @ventilooo
Hello Any updates on this issue ???
Dear colleagues, I have used code that was originally used for Slovenian language and modified the code for Croatian language. To have it in the package, init file should be updated with the following lines:
and _'hr': lang_HR.Num2WordHR()
in the CONVERTER_CLASSES = {....
I have tried to modify the code so it could be easilly used for Croatian language (it could be now easily used for Serbian and Bosnian language), but issues I found with decimal numbers, so I have put reccomendation for usage of the module:
_from num2words import num2words number = 13547650.40 split_num = '{:.2f}'.format(number).split('.') int_part = int(split_num[0]) decimal_part = int(split_num[1]) print(num2words(int_part,lang="hr") + " kn i " + num2words(decimalpart,lang="hr") + " lp")
Such approach will create words that will cover both part of the number, depending on the number of decimal places defined in the format...
Could anybody be so kind and check the code and put it into the package? Thank you very much!
lang_HR.zip