forked from Numbertext/libnumbertext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
174 lines (133 loc) · 4.19 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
Soros interpreters for C++11, Java, JavaScript and Python
Language-neutral NUMBERTEXT and MONEYTEXT functions for LibreOffice Calc
version 1.0 (2018-07-28)
Numbertext LibreOffice extension,
Soros programming language specification (draft) and IDE*,
Soros interpreter in Python: pythonpath/Soros.py,
Soros interpreter in JavaScript: Soros.js*
Soros interpreter in Java: see NUMBERTEXT.org
* Not in LibreOffice Numbertext extension, see http://NUMBERTEXT.org.
Copyright: 2009-2018 (C) László Németh (nemeth at numbertext dot org)
License: LGPL-3+/Modified BSD dual-license
Numbertext language data (Soros programs):
License: LGPL-3+/Modified BSD dual-license (except Serbian)
Copyright: 2009-2018 (C) László Németh et al. (see AUTHORS)
Bulgarian: 2018 (C) Mihail Balabanov (m dot balabanov at gmail dot com)
Croatian: 2014 (C) Mihovil Stanić (mihovil dot stanic at gmail dot com)
Hebrew module: 2010 (C) Alex Bodnaru (alexbodn at 012 dot net dot il)
French (Belgian and Swiss): 2009 (C) Olivier Ronez
Galician: 2018 (C) Adrián Chaves (adrian at chaves dot io)
Indonesian: 2010 (C) Eko Prasetiyo (ekoprasetiyo at gmail)
Latvian: 2012 (C) Asterisks at OOo Wiki
Luxembourgish: 2009 (C) Michel Weimerskirch (michel at weimerskirch dot net)
Portuguese: 2009 (C) Eduardo Moreno (emoreno at tokonhu dot com)
Turkish: 2009 (C) Randem
Serbian: 2009 (C) Goran Rakić (grakic at devbase dot net)
License: CC BY-SA/LGPL-3+/Modified BSD tri-license
* Note: for full distribution with specifications, IDE and JavaScript
implementation, see http://NUMBERTEXT.org
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied.
= Supported languages in this version =
af Africaans
bg Bulgarian
ca Catalan
cs Czech
da Danish
de German
de-CH Swiss Standard German orthography (dreissig instead of dreißig)
de-LI Swiss Standard German orthography (dreissig instead of dreißig)
el Greek
en English (one hundred one)
en-AU English (one hundred and one)
en-GB English (one hundred and one)
en-IE English (one hundred and one)
en-IN English with Indian numbering system (lakh = 100.000, crore = 10^7)
en-NZ English (one hundred and one)
eo Esperanto
es Spanish
fi Finnish
fr French
fr-BE Belgian French
fr-CH Swiss French
gl Galician
he Hebrew
hr Croatian
hu Hungarian
id Indonesian
is Icelandic
it Italian
ja Japanese
ko South-Korean
ko-KP North-Korean
lb Luxembourgish
lt Lithuanian
lv Latvian
ms Malaysian
nb Norwegian Bokmål
nl Dutch
nn Norwegian Nynorsk
no Norwegian (Bokmål)
pl Polish
pt Brazilian Portuguese
pt-PT Portuguese
ro Romanian
ru Russian
sh Serbian (Latin)
sl Slovenian
sq Albanian
sr Serbian (Cyrillic)
sv Swedish
th Thai
tr Turkish
uk Ukrainian
vi Vietnamese
zh Chinese (simplified)
Old number systems:
Hung Old Hungarian Script
Roman Roman numbers
Roman-large Roman numbers for very large numbers
using parenthesized syntax
Suzhou Chinese Suzhou numerals
= Build C++11 =
autoreconf -i
./configure
make
# test it
src/spellout -l en 123
= Build Java jar =
cd java
make
= Build and using LibreOffice Extension =
make -f Makefile.orig lo
and install the *.oxt package by
Tools->Extension Manager->Add of LibreOffice.
After restarting OpenOffice.org/LibreOffice, there are
two new Calc functions,
NUMBERTEXT() and MONEYTEXT().
Examples:
=NUMBERTEXT(25)
=NUMBERTEXT(25;"th-TH")
=MONEYTEXT(25)
=MONEYTEXT(25;"USD")
=MONEYTEXT(25;"CNY";"zh-ZH")
Module Help (enlarge the row to see all lines), containing
available prefix functions of the module:
= NUMBERTEXT("help")
= NUMBERTEXT("help";"de")
= Development =
See doc/addnewlocale.txt and doc/sorosspec.odt
For general Calc and (portable Excel) Add-In developments, see
Jan Holst Jensen's excellent Add-in example and documentation:
http://biochemfusion.com/doc/Calc_addin_howto.html
== Integrated development environment ==
There is a JavaScript/HTML IDE in this distribution.
Use the online version: http://numbertext.org/Soros.html or
build it with
make -f Makefile.orig
and open web/webroot/Soros.html in a JavaScript capable browser,
= Test =
make -f Makefile.orig check
test/thaicheck.ods is a simple test of the equivalence of
the Soros implementation of Thai number to number name conversion
and BAHTTEXT function.