| 1 |
<!DOCTYPE html> |
| 2 |
<html lang="en"> |
| 3 |
<head> |
| 4 |
<meta charset="utf-8"> |
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 |
<title>Numbertext.org</title> |
| 7 |
<meta name="description" content=""> |
| 8 |
<meta name="author" content=""> |
| 9 |
|
| 10 |
<!-- Bootstrap --> |
| 11 |
<link rel="stylesheet" type="text/css" href="css/bootstrap.css"> |
| 12 |
<link rel="stylesheet" type="text/css" href="fonts/font-awesome/css/font-awesome.css"> |
| 13 |
|
| 14 |
<!-- Stylesheet |
| 15 |
================================================== --> |
| 16 |
<link rel="stylesheet" type="text/css" href="css/style.css"> |
| 17 |
<link rel="stylesheet" type="text/css" href="css/prettyPhoto.css"> |
| 18 |
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800,600,300' rel='stylesheet' type='text/css'> |
| 19 |
<script type="text/javascript" src="js/modernizr.custom.js"></script> |
| 20 |
|
| 21 |
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> |
| 22 |
<!-- WARNING: Respond.js doesn't work if you view the page via file:// --> |
| 23 |
<!--[if lt IE 9]> |
| 24 |
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> |
| 25 |
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> |
| 26 |
<![endif]--> |
| 27 |
</head> |
| 28 |
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top"> |
| 29 |
<div id="preloader"> |
| 30 |
<div id="status"> <img src="img/preloader.gif" height="64" width="64" alt=""> </div> |
| 31 |
</div> |
| 32 |
<!-- Navigation --> |
| 33 |
<nav class="navbar navbar-custom navbar-fixed-top" role="navigation"> |
| 34 |
<div class="container"> |
| 35 |
<div class="navbar-header"> |
| 36 |
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main-collapse"> <i class="fa fa-bars"></i> </button> |
| 37 |
<a class="navbar-brand page-scroll" href="#page-top"> <i class="fa fa-list-ol"></i> NUMBERTEXT.ORG</a> </div> |
| 38 |
|
| 39 |
<!-- Collect the nav links, forms, and other content for toggling --> |
| 40 |
<div class="collapse navbar-collapse navbar-right navbar-main-collapse"> |
| 41 |
<ul class="nav navbar-nav"> |
| 42 |
<!-- Hidden li included to remove active class from about link when scrolled up past about section --> |
| 43 |
<li class="hidden"> <a href="#page-top"></a> </li> |
| 44 |
<li> <a class="page-scroll" href="#about">About</a> </li> |
| 45 |
<li> <a class="page-scroll" href="#services">Download</a> </li> |
| 46 |
<li> <a class="page-scroll" href="#team">Contributors</a> </li> |
| 47 |
<li> <a class="page-scroll" href="#testimonials">Spell out numbers</a> </li> |
| 48 |
<li> <a class="page-scroll" href="https://travis-ci.org/Numbertext/libnumbertext"><img src="https://travis-ci.org/Numbertext/libnumbertext.svg?branch=master"></a></li> |
| 49 |
<!-- <li> <a class="page-scroll" href="#contact">Contact</a> </li>--> |
| 50 |
</ul> |
| 51 |
</div> |
| 52 |
<!-- /.navbar-collapse --> |
| 53 |
</div> |
| 54 |
<!-- /.container --> |
| 55 |
</nav> |
| 56 |
|
| 57 |
<!-- Header --> |
| 58 |
<div id="intro"> |
| 59 |
<div class="intro-body"> |
| 60 |
<div class="container"> |
| 61 |
<div class="row"> |
| 62 |
<div class="col-md-10 col-md-offset-1"> |
| 63 |
<h1><span class="brand-heading"></span>Numbertext.org</h1> |
| 64 |
<p class="intro-text">Home of Soros Programming Language</p> |
| 65 |
<a href="#about" class="btn btn-default page-scroll">Learn More</a> |
| 66 |
<a href="#testimonials" class="btn btn-default2 page-scroll">Spell Out Numbers</a> </div> |
| 67 |
</div> |
| 68 |
</div> |
| 69 |
</div> |
| 70 |
</div> |
| 71 |
<!-- About Section --> |
| 72 |
<div id="about"> |
| 73 |
<div class="container"> |
| 74 |
<div class="section-title text-center center"> |
| 75 |
<h2>1, 2, 3 → One, Two, Three</h2> |
| 76 |
<hr> |
| 77 |
</div> |
| 78 |
<div class="row"> |
| 79 |
<div class="col-md-4"> |
| 80 |
<div class="about-text"> |
| 81 |
<iframe width="350" height="280" src="https://www.youtube.com/embed/c0j4Sjie8t4" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> |
| 82 |
New chapter numberings in LibreOffice 6.1 (see also <a href="https://wiki.documentfoundation.org/ReleaseNotes/6.1#New_.E2.80.9Cspell_out.E2.80.9D_NatNum_modifier">NatNum12</a> modifier and <a href="https://youtu.be/N9BZ1tCsasw">NUMBERTEXT()</a> spreadsheet extension). |
| 83 |
</div> |
| 84 |
|
| 85 |
</div> |
| 86 |
<div class="col-md-4"> |
| 87 |
<div class="about-text"> |
| 88 |
|
| 89 |
<h4>Write Out Numbers Using Words</h4> |
| 90 |
<p>We provide easy to configure, lightweight open source C++, Java, JavaScript, Python libraries |
| 91 |
and a LibreOffice Spreadsheet extension for writing out numbers (including cardinal and |
| 92 |
ordinal numbers, ordinal indicators and money amounts with currencies) in words in more than 50 languages |
| 93 |
and numeral systems.</p> |
| 94 |
<p>Join the Numbertext/LibreOffice development: check the Soros language tutorial in the integrated language module development environment, fix bugs or missing parts of the language modules, or create new modules based on the existing ones.</p> |
| 95 |
</div> |
| 96 |
</div> |
| 97 |
<div class="col-md-4"> |
| 98 |
<div class="about-text"> |
| 99 |
|
| 100 |
<h4>Background</h4> |
| 101 |
<p>Origin of the “spell out” component of LibreOffice 6.1, NUMBERTEXT/MONEYTEXT functions and Soros programming language was developed in 2009 for generalization of BAHTTEXT spreadsheet function, a function of Microsoft Excel to write out numbers and Thai money amounts using Thai words, standardized by ECMA–376 and ISO/IEC 29 500:2008 Office Open XML format.</p> |
| 102 |
<p>Soros programming language is based on regular expressions, just like its small interpreters (in Python: less, than 120 lines). Despite its simplicity, it can handle language variants, complex spelling functions and rules in a concise manner.</p> |
| 103 |
</div> |
| 104 |
</div> |
| 105 |
</div> |
| 106 |
</div> |
| 107 |
</div> |
| 108 |
<!-- Services Section --> |
| 109 |
<div id="services" class="text-center"> |
| 110 |
<div class="container"> |
| 111 |
<div class="section-title center"> |
| 112 |
<h2>Download</h2> |
| 113 |
<hr> |
| 114 |
</div> |
| 115 |
<div class="space"></div> |
| 116 |
<div class="row"> |
| 117 |
<div class="col-md-3 col-sm-6"> |
| 118 |
<div class="service"> <i class="fa fa-table"></i> |
| 119 |
<h3>LibreOffice</h3> |
| 120 |
<p>Extension with NUMBERTEXT and MONEYTEXT spreadsheet functions: <a href="https://extensions.libreoffice.org/extensions/numbertext-1/1-0.11/@@download/file/numbertext-1.0.11.oxt">numbertext-1.0.11.oxt</a> |
| 121 |
(<a href="https://extensions.libreoffice.org/extensions/numbertext-1/1-0.11">description</a>)</p> |
| 122 |
</div> |
| 123 |
</div> |
| 124 |
<div class="col-md-3 col-sm-6"> |
| 125 |
<div class="service"> <i class="fa fa-cogs"></i> |
| 126 |
<h3>C++</h3> |
| 127 |
<p>Source distribution (1.0.11): <a href="https://github.com/Numbertext/libnumbertext/releases/download/1.0.11/libnumbertext-1.0.11.tar.xz">libnumbertext-1.0.11.tar.xz</a> (<a href="https://github.com/Numbertext/libnumbertext/releases/tag/1.0.11">installation</a>)</p> |
| 128 |
</div> |
| 129 |
</div> |
| 130 |
<div class="col-md-3 col-sm-6"> |
| 131 |
<div class="service"> <i class="fa fa-coffee"></i> |
| 132 |
<h3>Java</h3> |
| 133 |
<p>JAR package: <a href="https://github.com/Numbertext/libnumbertext/releases/download/1.0.11/numbertext.jar">numbertext.jar</a> (1.0.11). |
| 134 |
Usage: java -jar numbertext.jar</p> |
| 135 |
</div> |
| 136 |
</div> |
| 137 |
<div class="col-md-3 col-sm-6"> |
| 138 |
<div class="service"><i class="fa fa-pencil"></i> |
| 139 |
<h3>Python & JavaScript</h3> |
| 140 |
<p>Interpreters: <a href="https://github.com/Numbertext/libnumbertext/blob/master/src/Soros.py">Soros.py</a> and <a href="https://github.com/Numbertext/libnumbertext/blob/master/src/Soros.js">Soros.js</a>. For usage, see source distribution (<a href="https://github.com/Numbertext/libnumbertext/archive/1.0.11.zip">zip</a> or <a href="https://github.com/Numbertext/libnumbertext/archive/1.0.11.tar.gz">tar.gz</a>).</p> |
| 141 |
</div> |
| 142 |
</div> |
| 143 |
</div> |
| 144 |
<div class="space"></div> |
| 145 |
<div class="row"> |
| 146 |
<div class="col-md-3 col-sm-6"> |
| 147 |
<div class="service"><i class="fa fa-github"></i> |
| 148 |
<h3>Sources</h3> |
| 149 |
<p>Repository on GitHub: <a href="https://github.com/Numbertext/libnumbertext">Numbertext/libnumbertext</a></p> |
| 150 |
</div> |
| 151 |
</div> |
| 152 |
<div class="col-md-3 col-sm-6"> |
| 153 |
<div class="service"><i class="fa fa-wrench"></i> |
| 154 |
<h3>Add a new language</h3> |
| 155 |
<p>module or fix an old one in the <a href="Soros.html">integrated development environment</a>.</p> |
| 156 |
</div> |
| 157 |
</div> |
| 158 |
<div class="col-md-3 col-sm-6"> |
| 159 |
<div class="service"><i class="fa fa-book"></i> |
| 160 |
<h3>Soros language</h3> |
| 161 |
<p><a href="https://github.com/Numbertext/libnumbertext/blob/master/doc/sorosspec.pdf">Specification</a> and |
| 162 |
<a href="Soros.html">Tutorial</a>.</p> |
| 163 |
</div> |
| 164 |
</div> |
| 165 |
<div class="col-md-3 col-sm-6"> |
| 166 |
<div class="service"><i class="fa fa-bug"></i> |
| 167 |
<h3>Feedback</h3> |
| 168 |
<p>Please, use <a href="https://github.com/Numbertext/libnumbertext/issues">GitHub Issues</a> to report problems in code and language data.</p> |
| 169 |
</div> |
| 170 |
</div> |
| 171 |
</div> |
| 172 |
</div> |
| 173 |
</div> |
| 174 |
<!-- Team Section --> |
| 175 |
<div id="team" class="text-center"> |
| 176 |
<div class="container"> |
| 177 |
<div class="section-title center"> |
| 178 |
<!--!cat ../AUTHORS | awk '/^[^ ].*:/{if(z!=1)print"•";else{print "<p>";z=0};print toupper(gensub("(\\(| at |:).*", "", "g", $0))}/(author|review)/{print gensub("^\\s*-.*(author of|review)[^A-Z]*(.*) module.*", "(\\2)", "g", $0)}/^=/{print gensub("= (.*) =", "</p><div id='row'><p></p><p></p></div><h2></h2><h2>\\1</h2>", "g");z=1}{next}'--> |
| 179 |
<h2></h2> |
| 180 |
<h2>Donors</h2> |
| 181 |
<p><a href="http://fsf.hu">FSF.hu Foundation</a>, Hungary • <a href="https://nlnet.nl">NLNet Foundation</a>, Netherlands</p> |
| 182 |
|
| 183 |
</div> |
| 184 |
</div> |
| 185 |
<!-- Testimonials Section --> |
| 186 |
<div id="testimonials" class="text-center" onmouseover="getInputFocus();"> |
| 187 |
<div class="container"> |
| 188 |
<div class="section-title center"> |
| 189 |
<h2 class="input"><span>Spell out number </span><input id='num' onKeyUp='usernum();'> |
| 190 |
<!--</input> in <select id="lang" onChange='usernum();'> |
| 191 |
<option value="-">all languages</option> |
| 192 |
</select>--> |
| 193 |
<span> as </span><select id="money" onChange='usernum();'> |
| 194 |
<option value="-">Cardinal number</option> |
| 195 |
<option value="ordinal">Ordinal number</option> |
| 196 |
<option value="ordinal-number">Ordinal indicator</option> |
| 197 |
<option value="year">Year</option> |
| 198 |
<option value="formal">Formal number</option> |
| 199 |
<option value="def">Default currency</option> |
| 200 |
<option value="CHF">CHF</option> |
| 201 |
<option value="EUR">EUR</option> |
| 202 |
<option value="GBP">GBP</option> |
| 203 |
<option value="JPY">JPY</option> |
| 204 |
<option value="USD">USD</option> |
| 205 |
<option value="help">Functions (help)</option> |
| 206 |
</select> |
| 207 |
</h2> |
| 208 |
</div> |
| 209 |
<div class="row"> |
| 210 |
</div> |
| 211 |
<div class="row" id="result"> |
| 212 |
</div> |
| 213 |
</div> |
| 214 |
</div> |
| 215 |
<!-- Contact Section --> |
| 216 |
|
| 217 |
<!-- |
| 218 |
<div id="contact" class="text-center"> |
| 219 |
<div class="container"> |
| 220 |
<div class="section-title center"> |
| 221 |
<h2>Contact us</h2> |
| 222 |
<hr> |
| 223 |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sed dapibus leo nec ornare diamcommodo nibh ante facilisis.</p> |
| 224 |
</div> |
| 225 |
<div class="col-md-8 col-md-offset-2"> |
| 226 |
<div class="col-md-4"> |
| 227 |
<div class="contact-item"> <i class="fa fa-map-marker fa-2x"></i> |
| 228 |
<p>4321 California St,<br> |
| 229 |
San Francisco, CA 12345</p> |
| 230 |
</div> |
| 231 |
</div> |
| 232 |
<div class="col-md-4"> |
| 233 |
<div class="contact-item"> <i class="fa fa-envelope-o fa-2x"></i> |
| 234 |
<p>[email protected]</p> |
| 235 |
</div> |
| 236 |
</div> |
| 237 |
<div class="col-md-4"> |
| 238 |
<div class="contact-item"> <i class="fa fa-phone fa-2x"></i> |
| 239 |
<p> +1 123 456 1234<br> |
| 240 |
+1 321 456 1234</p> |
| 241 |
</div> |
| 242 |
</div> |
| 243 |
<div class="clearfix"></div> |
| 244 |
</div> |
| 245 |
<div class="col-md-8 col-md-offset-2"> |
| 246 |
<h3>Leave us a message</h3> |
| 247 |
<form name="sentMessage" id="contactForm" novalidate> |
| 248 |
<div class="row"> |
| 249 |
<div class="col-md-6"> |
| 250 |
<div class="form-group"> |
| 251 |
<input type="text" id="name" class="form-control" placeholder="Name" required="required"> |
| 252 |
<p class="help-block text-danger"></p> |
| 253 |
</div> |
| 254 |
</div> |
| 255 |
<div class="col-md-6"> |
| 256 |
<div class="form-group"> |
| 257 |
<input type="email" id="email" class="form-control" placeholder="Email" required="required"> |
| 258 |
<p class="help-block text-danger"></p> |
| 259 |
</div> |
| 260 |
</div> |
| 261 |
</div> |
| 262 |
<div class="form-group"> |
| 263 |
<textarea name="message" id="message" class="form-control" rows="4" placeholder="Message" required></textarea> |
| 264 |
<p class="help-block text-danger"></p> |
| 265 |
</div> |
| 266 |
<div id="success"></div> |
| 267 |
<button type="submit" class="btn btn-default">Send Message</button> |
| 268 |
</form> |
| 269 |
<div class="social"> |
| 270 |
<h3>Follow us</h3> |
| 271 |
<ul> |
| 272 |
<li><a href="#"><i class="fa fa-facebook"></i></a></li> |
| 273 |
<li><a href="#"><i class="fa fa-twitter"></i></a></li> |
| 274 |
<li><a href="#"><i class="fa fa-dribbble"></i></a></li> |
| 275 |
<li><a href="#"><i class="fa fa-github"></i></a></li> |
| 276 |
<li><a href="#"><i class="fa fa-instagram"></i></a></li> |
| 277 |
<li><a href="#"><i class="fa fa-linkedin"></i></a></li> |
| 278 |
</ul> |
| 279 |
</div> |
| 280 |
</div> |
| 281 |
</div> |
| 282 |
</div> |
| 283 |
--> |
| 284 |
<div id="footer"> |
| 285 |
<div class="container"> |
| 286 |
<p>Copyright © Numbertext.org. Designed by <a href="http://www.templatewire.com" rel="nofollow">TemplateWire</a>. |
| 287 |
Cover Photo: <a href="https://commons.wikimedia.org/wiki/File:Tablet_with_Cuneiform_Inscription_LACMA_M.79.106.2_(2_of_4).jpg">Wikimedia Commons</a></p> |
| 288 |
</div> |
| 289 |
</div> |
| 290 |
|
| 291 |
<!-- Numbertext data --> |
| 292 |
<!-- **************************************************************************************************** --> |
| 293 |
<!--!cd ../data;for i in ??.sor ???*.sor; do echo "<textarea id='`basename $i .sor | tr "_" " "`' class='hidden'>"; cat $i; echo "</textarea>"; done--> |
| 294 |
<!-- **************************************************************************************************** --> |
| 295 |
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> |
| 296 |
<script type="text/javascript" src="js/jquery.1.11.1.js"></script> |
| 297 |
<!-- Include all compiled plugins (below), or include individual files as needed --> |
| 298 |
<script type="text/javascript" src="js/bootstrap.js"></script> |
| 299 |
<script type="text/javascript" src="js/SmoothScroll.js"></script> |
| 300 |
<script type="text/javascript" src="js/jquery.prettyPhoto.js"></script> |
| 301 |
<script type="text/javascript" src="js/jquery.isotope.js"></script> |
| 302 |
<script type="text/javascript" src="js/jquery.parallax.js"></script> |
| 303 |
<script type="text/javascript" src="js/jqBootstrapValidation.js"></script> |
| 304 |
<script type="text/javascript" src="js/contact_me.js"></script> |
| 305 |
|
| 306 |
<!-- Javascripts |
| 307 |
================================================== --> |
| 308 |
<script type="text/javascript" src="js/main.js"></script> |
| 309 |
<!-- **************************************************************************************************** --> |
| 310 |
<!--!cd ../data;for i in *.sor; do echo "<textarea rows='0' cols='0' id='`basename $i .sor`' class='hidden'>"; cat $i; echo "</textarea>"; done--> |
| 311 |
<!-- **************************************************************************************************** --> |
| 312 |
<script language="javascript1.3"> |
| 313 |
|
| 314 |
function getInputFocus() { |
| 315 |
if (!window.inputFocused) { |
| 316 |
window.inputFocused = true; |
| 317 |
document.getElementById('num').focus(); |
| 318 |
} |
| 319 |
} |
| 320 |
|
| 321 |
<!-- **************************************************************************************************** --> |
| 322 |
<!--!cat ../src/Soros.js--> |
| 323 |
<!-- **************************************************************************************************** --> |
| 324 |
|
| 325 |
var keep = this |
| 326 |
|
| 327 |
language = { |
| 328 |
"af": "Afrikaans", |
| 329 |
"bg": "Български", |
| 330 |
"ca": "Català", |
| 331 |
"cs": "Česky", |
| 332 |
"da": "Dansk", |
| 333 |
"de": "Deutsch", |
| 334 |
"de-CH": "Deutsch (CH)", |
| 335 |
"el": "Ελληνικά", |
| 336 |
"en": "English", |
| 337 |
"en-GB": "English (GB)", |
| 338 |
"en-IN": "English (IN)", |
| 339 |
"es": "Español", |
| 340 |
"et": "Eesti", |
| 341 |
"eo": "Esperanto", |
| 342 |
"fa": "فارسی", |
| 343 |
"fr": "Français", |
| 344 |
"fr-BE": "Français (BE)", |
| 345 |
"fr-CH": "Français (CH)", |
| 346 |
"ga": "Gaeilge", |
| 347 |
"gl": "Galego", |
| 348 |
"he": "עברית", |
| 349 |
"hr": "Hrvatski", |
| 350 |
"hu": "Magyar", |
| 351 |
"id": "Bahasa Indonesia", |
| 352 |
"is": "Íslenska", |
| 353 |
"it": "Italiano", |
| 354 |
"ja": "日本語", |
| 355 |
"ja_JP_2": "大字", |
| 356 |
"ko": "한국어 (KR)", |
| 357 |
"ko-KP": "한국어 (KP)", |
| 358 |
"lb": "Luxembourgish", |
| 359 |
"lg": "Luganda", |
| 360 |
"lt": "Lietuvių", |
| 361 |
"lv": "Latviešu", |
| 362 |
"mr": "मराठी", |
| 363 |
"ms": "Bahasa Melayu", |
| 364 |
"mt": "Malti", |
| 365 |
"nl": "Nederlands", |
| 366 |
"no": "Bokmål", |
| 367 |
"nn": "Nynorsk", |
| 368 |
"pl": "Polski", |
| 369 |
"pt": "Português", |
| 370 |
"pt-BR": "Português (BR)", |
| 371 |
"ro": "Română", |
| 372 |
"ru": "Русский", |
| 373 |
"sq": "Shqip", |
| 374 |
"sl": "Slovenščina", |
| 375 |
"fi": "Suomi", |
| 376 |
"sh": "Srpski", |
| 377 |
"sr": "Српски", |
| 378 |
"sv": "Svenska", |
| 379 |
"th": "ไทย", |
| 380 |
"tr": "Türkçe", |
| 381 |
"uk": "Українська", |
| 382 |
"vi": "Tiếng Việt", |
| 383 |
"zh": "中文", |
| 384 |
"zh": "大写", |
| 385 |
"hu_Hung": "𐳥𐳋𐳓𐳉𐳗 𐳑𐳢𐳁𐳤*", |
| 386 |
"Roman-large": "Roman*", |
| 387 |
"Suzhou": "花碼*" |
| 388 |
} |
| 389 |
|
| 390 |
default_currency = { |
| 391 |
"af": "ZAR", |
| 392 |
"bg": "BGN", |
| 393 |
"ca": "EUR", |
| 394 |
"cs": "CZK", |
| 395 |
"de": "EUR", |
| 396 |
"de-CH": "CHF", |
| 397 |
"da": "DKK", |
| 398 |
"el": "EUR", |
| 399 |
"en-GB": "GBP", |
| 400 |
"en-IN": "INR", |
| 401 |
"en": "USD", |
| 402 |
"es": "EUR", |
| 403 |
"et": "EUR", |
| 404 |
"eo": "-", |
| 405 |
"fa": "IRR", |
| 406 |
"fr": "EUR", |
| 407 |
"fr-BE": "EUR", |
| 408 |
"fr-CH": "CHF", |
| 409 |
"ga": "EUR", |
| 410 |
"gl": "EUR", |
| 411 |
"id": "IDR", |
| 412 |
"is": "ISK", |
| 413 |
"it": "EUR", |
| 414 |
"ja": "JPY", |
| 415 |
"ko-KP": "KPW", |
| 416 |
"ko": "KRW", |
| 417 |
"lb": "EUR", |
| 418 |
"lg": "UGX", |
| 419 |
"lt": "EUR", |
| 420 |
"lv": "EUR", |
| 421 |
"mr": "INR", |
| 422 |
"ms": "MYR", |
| 423 |
"mt": "EUR", |
| 424 |
"he": "ILS", |
| 425 |
"hu": "HUF", |
| 426 |
"hr": "HRK", |
| 427 |
"nl": "EUR", |
| 428 |
"nb": "NOK", |
| 429 |
"nl": "NOK", |
| 430 |
"pl": "PLN", |
| 431 |
"pt": "EUR", |
| 432 |
"pt-BR": "BRL", |
| 433 |
"ro": "RON", |
| 434 |
"ru": "RUB", |
| 435 |
"sq": "ALL", |
| 436 |
"sl": "EUR", |
| 437 |
"fi": "EUR", |
| 438 |
"sv": "SEK", |
| 439 |
"th": "THB", |
| 440 |
"tr": "TRY", |
| 441 |
"uk": "UAH", |
| 442 |
"vi": "VND", |
| 443 |
"zh": "CNY", |
| 444 |
"Roman": "-", |
| 445 |
"Rovas": "-", |
| 446 |
"Suzhou": "CNY" |
| 447 |
} |
| 448 |
|
| 449 |
numlang=[] |
| 450 |
|
| 451 |
<!-- **************************************************************************************************** --> |
| 452 |
<!--!cd ../data;for i in *.sor; do name=`basename $i .sor`; echo "numlang['$name']=new Soros(document.getElementById('$name').value, '$name')"; done--> |
| 453 |
<!-- **************************************************************************************************** --> |
| 454 |
numlang['de-CH']=new Soros(document.getElementById('de').value, 'de-CH'); |
| 455 |
numlang['en-GB']=new Soros(document.getElementById('en').value, 'en-GB'); |
| 456 |
numlang['en-IN']=new Soros(document.getElementById('en').value, 'en-IN'); |
| 457 |
numlang['fr-BE']=new Soros(document.getElementById('fr').value, 'fr-BE'); |
| 458 |
numlang['fr-CH']=new Soros(document.getElementById('fr').value, 'fr-CH'); |
| 459 |
numlang['ko-KP']=new Soros(document.getElementById('ko').value, 'ko-KP'); |
| 460 |
numlang['pt-BR']=new Soros(document.getElementById('pt').value, 'pt-BR'); |
| 461 |
numlang['nn']=new Soros(document.getElementById('no').value, 'nn'); |
| 462 |
numlang['Roman-large']=new Soros(document.getElementById('Roman').value, 'Roman-large'); |
| 463 |
|
| 464 |
window.header = "" |
| 465 |
window.num = "" |
| 466 |
window.time = setTimeout("tim()", 1000); |
| 467 |
window.startDemo = true; |
| 468 |
|
| 469 |
window.currency = document.getElementById('money').value |
| 470 |
|
| 471 |
/* |
| 472 |
if (navigator.appName.indexOf("Microsoft")!=-1) { |
| 473 |
window.width = document.body.clientWidth |
| 474 |
window.height = document.body.clientHeight |
| 475 |
}else{ |
| 476 |
window.width = window.innerWidth |
| 477 |
window.height = window.innerHeight |
| 478 |
}*/ |
| 479 |
|
| 480 |
function usernum() { |
| 481 |
clearTimeout(window.time) |
| 482 |
window.currency = document.getElementById('money').value |
| 483 |
window.num = (window.currency == "help") ? "help" : document.getElementById('num').value |
| 484 |
if (window.num != undefined && window.num != "") { |
| 485 |
window.header = "x" |
| 486 |
} else { |
| 487 |
window.header = "" |
| 488 |
} |
| 489 |
tim() |
| 490 |
} |
| 491 |
|
| 492 |
function tim( ) { |
| 493 |
var b = new Date() |
| 494 |
var header = "" |
| 495 |
if (window.header == "") { |
| 496 |
window.num = (window.currency == "help") ? "help" : Math.round(b.getTime()/1000) + ""; |
| 497 |
header = "Number: " + num + " (Unix time in sec)" |
| 498 |
window.time = setTimeout("tim()", 1000); |
| 499 |
} else header = "Number: " + window.num |
| 500 |
target = document.getElementById('result') |
| 501 |
if (document.body.scrollTop < target.offsetTop + target.offsetHeight) target.innerHTML = "<table id='conv' width='100%'><tbody><tr id='header' style='text-align:left;background-color:rgba(100%, 100%, 100%, 0)'><td width='150px'>Language<td>" + header + "</td></tr>" + |
| 502 |
<!-- **************************************************************************************************** --> |
| 503 |
<!--!cd ../data; n=3; for i in `ls *.sor | awk '{print}/de/{print"de-CH.sor"}/en/{print"en-GB.sor\nen-IN.sor"}/pt/{print"pt-BR.sor"}/ko/{print"ko-KP.sor"}/fr/{print"fr-BE.sor\nfr-CH.sor"}/no/{print"nn.sor"}' | grep -v ^[A-Z] | grep -v Hung | grep -v mul` hu_Hung.sor Roman-large.sor Suzhou.sor; do name=`basename $i .sor`; name2=`echo $name | tr _ -`; head=""; rtl=""; rovas=""; case $name in hu_Hung) rovas="rovas"; rtl="align='right'";; fa|he) rtl="align='right'";; esac; echo "\"$head<tr class='$rovas \"+ ($n%2?\"second\":\"\")+\"' style='text-align:left;' title='$name2'><td valign='top'>\" + language[\"$name\"] + \"</td><td $rtl>\" + numlang['$name'].run((window.currency == \"-\" || window.currency == \"help\" ? \"\" : (window.currency == \"def\" ? default_currency[\"$name\"] : window.currency) + \" \") + window.num).replace(/\\\n/g,\"<br>\") + '</td></tr>' +";n=`echo $n+1 | bc`; done--> |
| 504 |
<!-- **************************************************************************************************** --> |
| 505 |
"<tr><td colspan=2>*Old numeral systems (extended for large numbers) – Old Hungarian, Roman and Suzhou numerals</td></tr></tbody></table>"; |
| 506 |
} |
| 507 |
tim() |
| 508 |
</script> |
| 509 |
</body> |
| 510 |
</html> |